@import url('typo.css');

:root{
    --background-color: #F2E6D8;
    --principal-color: #CCDBC3;
    --text-color: #1A1F18;
    --btn-color: #92CC70;
    --card-color: #F6f6f6;
    --dark-green: #205702;

    --font-title: 'IBM Plex Sans', sans-serif;
    --font-text: 'Lexend', sans-serif;
}

*{
    margin: 0;
    padding: 0;
}

body{
    background-color: var(--background-color);
}

h1{
    font-family: var(--font-title);
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

h2{
    font-family: var(--font-title);
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
}

h3{
    font-family: var(--font-title);
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 500;
}

p{
    font-family: var(--font-text);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
}

/* telephone*/

/*Nav*/
.header__nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    margin-top: 24px;
}

.header__menu{
    margin-right: 20px;
    display: flex;
    gap: 24px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.header__logo{
    font-family: "Caveat", cursive;
    font-size: 2rem;
    color: var(--dark-green);
    margin-left: 20px;
    text-decoration: none;
}

.histoire__lien{
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    color: var(--dark-green);
    padding: 16px 8px;
}

.header__btn{
    background-color: var(--btn-color);
    font-family: 'Lexend', sans-serif;
    border-radius: 8px;
    border: 1px solid var(--dark-green);
    padding: 16px 8px;
    font-size:1rem;
    color: var(--dark-green);
    text-decoration: none;
}


.header_nav a{
    color: var(--dark-green);
    text-decoration:none ;
}

/*index*/
.header{
    background-image: url('./assets/images/background_tel.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__title{
    margin: 20px 0 40px 0;
    font-size: 4rem;
    padding-bottom: 40px;
    align-self:center;
    font-family: "Caveat", cursive;
    color: #000000;
}

.explication__titre{
    font-size: 2rem;
    margin: 20px 24px 0 24px ;
}

.text1__header{
    font-size: 1.25rem;
    font-weight: 600;
}

.text2__header{
    margin-top: 8px;
}

.header__texte{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0 20px 24px;
}

.explication__btn{
    background-color: var(--btn-color);
    color: var(--text-color);
    font-family: var(--font-text);
    border-radius: 8px;
    padding: 16px 32px 16px 32px;
    border: none;
    width: fit-content;
    margin:48px auto 48px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.explication__btn--btn{
    border: none;
    font-family: 'Lexend', sans-serif;
    background-color: transparent;
    font-size: 1rem;
}

.steps__title{
    margin: 48px 20px 24px 20px;
    text-align: center;
}

.steps__cards{
    position: relative;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.card1{
    background-color: var(--principal-color);
    border-radius: 8px;
    padding-top: 24px;
    margin: 0 20px 48px 20px;
}

.card2{
    background-color: #f0dec8;
    border: 1px solid var(--text-color);
    border-radius: 8px;
    padding-top: 24px;
    margin: 0 20px 48px 20px;
}

.steps img{
    margin-top:24px;
}

.steps p{
    background-color: var(--card-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 32px 24px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.understand{
    background-color: var(--principal-color);
    padding: 48px 20px 40px 20px;

}

.understand__title{
    text-align: center;
    margin-bottom: 24px;
}

.understand__box{
    background-color: var(--background-color);
    padding: 24px;
    margin-top: 24px;
}

.understand__box img{
    background-color: var(--principal-color);
    border-radius: 16px;
    padding: 10px;
    align-self: center;
}

.understand__box-title{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-direction: column;
}

.understand__icone{
    width: 36px;
    height: 36px;
    align-self: center;
    padding: 2px;
}

.understand__box h3{
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.understand__tr{
    border-top-right-radius:48px;
    border-bottom-left-radius:48px;
    border-top-left-radius:16px;
    border-bottom-right-radius:16px;
}

.understand__tl{
    border-top-left-radius:48px;
    border-bottom-right-radius:48px;
    border-top-right-radius:16px;
    border-bottom-left-radius:16px;
}

.understand__ml{
    border-top-left-radius:16px;
    border-bottom-right-radius:16px;
    border-top-right-radius:48px;
    border-bottom-left-radius:16px;
}

.understand__mr{
    border-top-left-radius:48px;
    border-bottom-right-radius:16px;
    border-top-right-radius:16px;
    border-bottom-left-radius:16px;
}

.understand__end{
    border-top-left-radius:16px;
    border-bottom-right-radius:48px;
    border-top-right-radius: 16px;
    border-bottom-left-radius:48px;
    min-height:auto;
    padding: 32px;
    display: flex;
    align-content: center;
    flex-direction: column;
    gap:16px;
}

.understand__end img{
    width: 36px;
    height: 36px;
    margin: auto;
}

.situations{
    display: flex;
    flex-direction: column;
}

.situation{
    display: flex;
    flex-direction: column;
    margin: 0 20px 40px 20px;
}

.situation__gauche--text1, .situation__droite--text1{
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.situation__title{
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-green);
}

.situation{
    background-color: var(--principal-color);
    border: 1px dashed #ffffff;
    padding: 24px 32px;
    border-top-left-radius: 48px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 48px;
}

.line{
    display: inline-block;
    width: 100%;
    height: 2px;
    background-color: #000000;
    margin: 24px 0;
}

/*Histoire*/
.histoire .header__title{
    margin-bottom: 24px;
    padding: 0;
}

.histoire .header__title2{
    margin-bottom: 16px;
}

.histoire .header p{
    margin:0 20px 80px 20px;
}

.section1__text1--img{
    position: relative;
    display: flex;
    justify-content: center;
}

.section1__text1--img img{
    width: 78%;
    aspect-ratio: 16/10;
    border-radius: 32px;
    z-index: 10;
    margin-bottom: 40px;
    margin-top: 34px;
}

.histoire .section1__title{
    margin: 60px 0 60px 0;
    text-align: center;
    background-color: #F2E6D8;
}

.histoire .rectangle{
    width: 80%;
    aspect-ratio: 16/10;
    border-radius: 32px;
    position: absolute;
    top: 34px;
    left: 42px;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: #CC7070;
    opacity: 0.6;
    transform: rotate(-9deg);
}

.histoire .section1 p{
    margin: 0 20px 16px 20px;
}

.histoire .section2{
    margin : 100px 20px 100px 20px;
    position: relative;
    z-index: 1;
}

.histoire .section2::before{
    content: "";
    position: absolute;
    top: 90px;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #ffffff;
    z-index: -1;

}

.histoire .section2__text{
    background-color: var(--principal-color);
    border-top-left-radius: 48px;
    border-bottom-right-radius: 48px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    padding: 32px;
    border: solid #ffffff 1px;
    margin-bottom: 40px;
}

.histoire .box{
    background-color: var(--principal-color);
    display: flex;
    position: relative;
    margin-bottom: 40px;
    border: #ffffff 2px dashed;
    padding: 16px 40px;
}

.histoire .book{
    display: inline-block;
    position: absolute;
    top: 54px;
    left: 45%;
    width: 40px;
    filter:invert(24%) sepia(85%) saturate(1171%) hue-rotate(69deg) brightness(97%) contrast(98%);
}

.histoire .box h2{
    color: var(--dark-green);
    margin: 8px 0;
}

.histoire .box img{
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: auto;
    filter:invert(24%) sepia(85%) saturate(1171%) hue-rotate(69deg) brightness(97%) contrast(98%);
}

.immersion, .integration{
    text-align: left;
    border-top-left-radius: 48px;
    border-bottom-right-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 48px;
}

.interface, .realite{
    text-align: left;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 48px;
    border-top-right-radius: 48px;
    border-bottom-left-radius: 16px;
}

.footer{
    background-color: var(--principal-color);
}

.mise-evidence{
    color: var(--dark-green);
}

.mise-evidence--titre{
    font-weight: 800;
}

.mise-evidence--sousTitre{
    font-weight: 700;
}

/*footer*/

.footer{
    display: flex;
    flex-direction: column;
    font-family : 'Lexend', sans-serif;
    gap: 20px;
}
.projet{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lien{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--dark-green);
    margin-top: 16px;
    margin-bottom: 16px;
}

.footer img{
    width: 28px;
    height: 28px;
}

.projet__section--titre{
    font-weight: 700;
    color: var(--dark-green);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.projet__section1--titre{
    font-family: "Caveat", cursive;
    color: var(--dark-green);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.projet__section3 p:last-child{
    margin-bottom: 0;
}
.projet{
    margin: 40px 20px 0 20px;
}

.line2{
    border-bottom: 2px dotted black;
    margin: 16px 0;
}

.warning-line{
    height: 2px;
    background-color: #000000;
    margin : 16px 20px;
}

.warning{
    margin: 0 20px 40px 20px;
}

.projet__section--lien{
    margin-bottom: 16px;
}

/*Crédits*/

.credit{
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Lexend', sans-serif;
    margin: 0 20px;
}

.credit li{
    margin-bottom: 16px;
}

.credit__header h1{
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--dark-green);
    margin: 16px auto;
    text-align: center;
}

.credit__header{
    background-color: var(--principal-color);
    padding: 24px;
}

.credit .line2{
    display: block;
    width: 100%;
    height: 2px;
}

.credit ul{
    margin-left: 16px;
    list-style-type: none;
}

.remerciements__text{
    margin: 16px;
    margin-bottom: 32px;
}
.credit a{
    color: var(--dark-green);
}

.credit h2{
    color: var(--dark-green);
    margin: 16px;
}

/*Tablette*/
@media (min-width: 700px){
    /*Index*/

    .situations{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
    .situation__gauche, 
    .situation__droite {
        flex: 1; 
    }
    .situation__gauche--text1, 
    .situation__droite--text1 {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .line{
        width: 2px;
        align-self: stretch;
        margin: 0;
        height: auto;
    }

    .understand__top, .understand__middle{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer{
        margin-top: 40px;
        padding-top: 40px;
    }

    .projet__section--lien{
        margin-bottom: 16px;
        font-family: var(--font-text);
        color: var(--text-color);
        font-size: 1rem;
        font-weight: 400;
    }

    /*Histoire*/
    .histoire .section1__text1{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px){

    .header__title{
        margin-bottom:80px ;
    }

    .steps__container{
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        justify-content: center;
    }

    .projet{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .projet__section3 p:last-child{
        margin: 0;
        width: auto;
    }

    .line2{
        display: none;
    }

    .situation{
        margin: 40px 80px 80px 80px;
    }

    .understand{
        padding: 48px 80px 40px 80px;
    }

    .histoire .section1{
        margin: 80px 80px 80px 80px;
    }

    .section1__text1--text{
        justify-content: center;
        margin: auto 0;
    }

    .histoire .section2{
        margin: 80px 80px 80px 80px;
    }

    .histoire .section2__text{
        margin: 0 100px;
    }

    .histoire .date__box{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
        position: relative;
        margin: 0 160px;
    }

    .date__box .box:nth-child(1){
        grid-column: 1;
        grid-row: 1;
    }

    .date__box .box:nth-child(2){
        grid-column: 2;
        grid-row: 2;
    }

    .date__box .box:nth-child(3){
        grid-column: 1;
        grid-row: 3;
    }

    .date__box .box:nth-child(4){
        grid-column: 2;
        grid-row: 4;
    }
    
    .book{
        left: 50%;
    }
}
