/***************
* PRESENTATION *
***************/

.main{
    padding: 4rem 10%;
}
.main__ancres{
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}
.main__ancres a{
    color: var(--rose);
}
/* Responsive desktop */
@media screen and ( min-width:1300px ) {
    .main{
        margin-top: 10vh;
        position: relative;
    }
    .main__ancres{
        margin-top: 4rem;
        font-size: 1.125rem;
    }
    .main__ancres a:hover{
        color: var(--bleu-clair);
    }
    .main::before{
        position: absolute;
        content: url(../images/carnet-bleu.svg);
        right: 5%;
        top: 2rem;
    }
}


/* Présenation - bloc 1 */
.presentation{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
.presentation__contenu > *{
    margin-bottom: 1rem;
}
.presentation__contenu > *:not(:last-child){
    margin-bottom: 1rem;
}
.presentation__contenu > p:not(:last-of-type){
    margin-bottom: .5rem;
}
.presentation__photo{
    box-shadow: var(--ombre3);
    width: 100%;
    max-width: 37.5rem;
}
/* Présenation - bloc 2 */
.presentation--2{
    flex-direction: column-reverse;
}
.presentation--2 strong{
    font-size: 1.125rem;
}
/* Responsive desktop */
@media screen and ( min-width:1000px ) {
    .presentation--1{
        flex-direction: row;        
        gap: 10%;
    }
    .presentation--1 .presentation__photo{
        width: 50%;
        height: auto;
        object-fit: cover;
        align-self: stretch;
    }
    .presentation__contenu > *:not(:last-child){
        margin-bottom: 2rem;
    }
}
@media screen and ( min-width:1100px ) {
    .presentation--2{
        flex-direction: row;        
        gap: 4rem;
        margin-top: 2rem;
        margin-bottom: 4rem;
    }
    .presentation__photo{
        width: 50%;
        height: auto;
        object-fit: cover;
        align-self: stretch;
    }
    .presentation__contenu > *:not(:last-child){
        margin-bottom: 2rem;
    }
    .presentation--2{
        margin-top: 4rem;
    }
    .presentation--2 .presentation__contenu{
        position: relative;
        padding-right: 4rem;
    }
    .presentation--2 .presentation__contenu::before{
        content: "";
        position: absolute;
        top: -4rem;
        left: -10rem;
        bottom: -4rem;
        right: 0;
        background-color: var(--gris-clair);
        z-index: -2;
    }
}


/* Portrait du territoire */
.territoire{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
.territoire .sous-titre{
    text-align: center;
}
.territoire__illustration{
    width: 100%;
    max-width: 50rem;
}
@media screen and ( min-width:1100px ) {
    .territoire{
        gap: 3rem;
        position: relative;
    }
    .territoire::before{
        position: absolute;
        content: url(../images/terre-rose.svg);
        left: -2rem;
        top: 0;
    }
}


/* Périmètre de la cité */
.perimetre{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
.perimetre__carte{
    width: 100%;
    height: 60vh;
    z-index: 0;
}
.perimetre .sous-titre{
    text-align: center;
}
.perimetre .ecoles{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.perimetre .ecole{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    background-color: var(--blanc);
    box-shadow: var(--ombre2);
    padding: 2rem;
    width: 18.75rem;
    color: var(--gris)
}
.perimetre .ecole__picto{
    height: 6.25rem;
    width: auto;
}
.perimetre .ecole__titre{
    color: var(--bleu-fonce);
    font-family: 'Abril Fatface', sans-serif;
    font-size: 1.5rem;
}
@media screen and ( min-width:1000px ) {
    .perimetre{
        gap: 4rem;
        margin-bottom: -10rem;
    }
    .perimetre .ecoles{
        position: relative;
        top: -10rem;
    }
}



/* Les axes stratégiques */

.axes-strategiques{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
.axes-strategiques__contenu > *{
    margin-bottom: 1rem;
}
.axes-strategiques__contenu > *:not(:last-child){
    margin-bottom: 1rem;
}
.axes-strategiques__contenu > p:not(:last-of-type){
    margin-bottom: .5rem;
}
.axes-strategiques__photo{
    box-shadow: var(--ombre3);
    width: 100%;
    max-width: 37.5rem;
}
.axes-strategiques__conteneur{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
/* Axes */
.axes{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 2rem;
}
.axe{
    width: 18.75rem;
    padding: 2rem;
    background-color: var(--blanc);
    box-shadow: var(--ombre2);
    color: var(--gris)
}
.axe__titre{
    color: var(--bleu-clair);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .875rem;
}
/* Responsive tablette */
@media screen and ( min-width:950px ) {
    .axes-strategiques{
        margin-top: 4rem;
    }
    .axes-strategiques__conteneur{
        flex-direction: row;        
        justify-content: stretch;
        gap: 4rem;
    }
    .axes-strategiques .axes-strategiques__photo{
        align-self: stretch;
        height: auto;
        object-fit: cover;
        width: 50%;
    }
}
/* Responsive desktop */
@media screen and ( min-width:1390px ) {
    .axes-strategiques__conteneur{  
        justify-content: flex-start;
        position: relative;
        gap: 0;
    }
    .axes-strategiques .axes-strategiques__photo{
        position: absolute;
        right: 0;
        width: 55%;
        height: 100%;
        top: -4rem;
        bottom: 0;
        object-fit: cover;
        max-width: initial;
    }
    .axes-strategiques__contenu{
        width: 45%;
        padding: 3rem;
        position: relative;
    }
    .axes-strategiques__contenu > *:not(:last-child){
        margin-bottom: 2rem;
    }
    .axes-strategiques__contenu::before{
        position: absolute;
        content: '';
        background-color: var(--gris-clair);
        top: 0;
        left: 0;
        right: -90%;
        bottom: -10rem;
        z-index: -2;
    }
    .axes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 92%;
        align-items: flex-start;
        gap: 1rem;
        margin-top: -2rem;
        position: relative;
    }
    .axe{
        width: calc(33% - 1rem);
    }
    .axes .btn{
        position: absolute;
        right: 0;
        bottom: 0;
    }
}


/* Gouvernance */
.gouvernance{
    background-image: url(../images/gouvernance-background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
}
.gouvernance .sous-titre{
    color: var(--blanc);
}
.gouvernance-conteneur{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.gouvernance-article{
    padding: 2rem;
    background-color: var(--blanc);
    box-shadow: var(--ombre2);
}
.gouvernance-article__titre{
    color: var(--rose);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .875rem;
}
.gouvernance-article p{
    color: var(--gris);
}
.gouvernance__trait{
    display: none;
}
/* Responsive tablette */
@media screen and ( min-width:950px ) {
    .gouvernance{
        margin-bottom: -14rem;
    }
    .gouvernance-conteneur{
        gap: 4rem;
    }
    .gouvernance-article{
        width: calc(33% - 4rem);
    }
    .gouvernance__trait{
        display: block;
        width: 68%;
        margin-bottom: -2.1rem;
    }
}



/* Suivi et évaluation */
.suivi{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    text-align: center;
    position: relative;
}
.suivi::before{
    position: absolute;
    content: url(../images/soleil-bleu.svg);
    right: -5.5rem;
    top: -6.5rem;
    transform: scale(.5);
}
/* Responsive tablette */
@media screen and ( min-width:950px ) {
    .suivi{
        margin-top: 16rem;
    }
    .suivi::before{
        position: absolute;
        content: url(../images/soleil-bleu.svg);
        right: 5%;
        top: 0;
        transform: none;
    }
}


/* Chronologie */
.chronologie{
    text-align: center;
    margin-bottom: 4rem;
}
.chronologie .sous-titre{
    margin-bottom: 3rem;
}
.chronologie-conteneur{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem;
    position: relative;
}
.chronologie-conteneur .date__titre{
    color: var(--bleu-clair);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .875rem;
}
.chronologie-conteneur::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    background-image: linear-gradient(to bottom, var(--rose) 50%, transparent 50%);
    background-size: 100% 30px;
    height: 0%;
}
.chronologie-conteneur::after {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    display: inline-block;
    height: 20px;
    width: 20px;
    border: solid 2px var(--rose);
    border-top: unset;
    border-left: unset;
    transform: rotate(44deg);
    transition: top 2.5s linear;
    z-index: -1;
}
.chronologie-conteneur.active::after {
    top: 100%;
    background-color: var(--blanc);
}
.chronologie-conteneur.active::before{
    animation: drawLine 2.5s linear forwards;
}
@keyframes drawLine {
    0% {
        height: 0;
    }
    100% {
        height: 100%; 
    }
}
.chronologie .date{
    position: relative;
    opacity: 0;
    transition: all .5s;
}
.chronologie .date::before{
    content: '';
    position: absolute;
    top: 50%;
    left: -2.55rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--bleu-fonce);
    border-radius: 50%;
}
.date.affiche{
    opacity: 1;
}
/* Responsive desktop */
@media screen and ( min-width:1100px ) {
    .chronologie{
        margin-bottom: 8rem;
    }
    .chronologie .sous-titre{
        margin-bottom: 5rem;
    }
    .chronologie .date{
        flex: 1;
        transition: all .5s;
    }
    .chronologie-conteneur{
        flex-direction: row;
        gap: 4rem;
        padding-left: 0;
    }
    .chronologie-conteneur::after {
        transform: rotate(-45deg) translateY(50%); 
        transition: left 1.9s linear;
        bottom: -2.1rem;
        top: initial !important;
    }
    .chronologie-conteneur.active::after {
        left: 108%;
        background-color: var(--blanc);
    }
    .chronologie-conteneur::before {
        content: "";
        position: absolute;
        left: -15vw;
        bottom: -2rem;
        width: 0; 
        top: initial;
        background-image: linear-gradient(to right, var(--rose) 50%, transparent 50%);
        background-size: 30px 100%;
        height: 2px; 
    }
    @keyframes drawLine {
        0% {
            width: 0;
        }
        100% {
            width: 130%; 
        }
    }
    .chronologie-conteneur.active::before{
        animation: drawLine 1.9s linear forwards;
    }
    .chronologie .date::before{
        content: '';
        position: absolute;
        top: initial;
        bottom: -2rem;
        transform: translate(-50%, 45%);
        left: 50%;
        width: 1.25rem;
        height: 1.25rem;
        background-color: var(--bleu-fonce);
        border-radius: 50%;
    }

}