/**********
* ACCUEIL *
**********/

/* Hero */
.hero{
    background-image: url(/wp-content/uploads/2024/02/hero-background.jpg);
    background-size: cover;
    height: 60vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanc);
    text-align: center;
}
.hero__titre{
    font-size: 3rem;
}
.hero__sous-titre{
    font-family: 'Asap', sans-serif;
    font-size: 2rem;
    margin-top: 1rem;
}
/* Responsive desktop */
@media screen and ( min-width:1300px ) {
    .hero{
        margin-top: 6rem;
        height: calc(100vh - 6rem);
    }
    .hero__titre{
        font-size: 4rem;
    }
    .hero__sous-titre{
        font-size: 3rem;
    }
}


/* Présentation */
.presentation{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}
.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%;
}
/* Responsive desktop */
@media screen and ( min-width:1000px ) {
    .presentation{
        flex-direction: row;        
        gap: 10%;
    }
    .presentation__contenu{
        width: 55%;
    }
    .presentation__photo{
        width: 45%;
        height: auto;
        object-fit: cover;
        align-self: stretch;
    }
    .presentation__contenu > *:not(:last-child){
        margin-bottom: 2rem;
    }
}
@media screen and ( min-width:1300px ) {
    .presentation{
        margin-top: 5rem;
        position: relative;
    }
    .presentation::before{
        position: absolute;
        content: url(../images/mortier.svg);
        left: 7%;
        top: -1rem;
    }
}



/* Nos actions */
.actions{
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
}
.actions__contenu{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.actions__conteneur{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.action{
    padding: 2rem;
    background-color: var(--gris-clair);
    box-shadow: var(--ombre1);
}
.action__titre{
    color: var(--bleu-fonce);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: .875rem;
}
.action__texte{
    color: var(--gris);
    margin-bottom: .625rem;
}

/* Responsive desktop */
@media screen and ( min-width:1000px ) {
    .actions__contenu{
        gap: 2rem;
    }
}
@media screen and ( min-width:1100px ) {
    .actions{
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
    .actions__conteneur{
        flex-direction: row;
        gap: 3rem;
    }
    .actions__conteneur > *{
        flex: 1;
    }
}


/* Notre agenda */
.agenda{
    background-color: var(--gris-clair);
    padding-top: 2rem;
    margin-top: 3rem;
    padding: 4rem 0;
    padding-top: 0;
}
.agenda__titre{
    background-color: var(--bleu-fonce);
    padding: 1rem 2.25rem ;
    color: var(--blanc);
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translate(-50%, 50%);
}
.agenda__image{
    width: 100%;
    max-width: initial;
}
.agenda .btn{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.evenements{
    margin-top: 4rem;
    display: inline-flex;
    padding: 0 2rem;
}
.slider__conteneur {
    overflow-x: scroll;
    margin-right: -15px;
    padding-bottom: 15px; 
}
.slider__conteneur::-webkit-scrollbar {
    width: 0;
    height: 0; 
}
/* Événement */
.evenement{
    padding: 2rem;
    background-color: var(--blanc);
    position: relative;
    width: 16rem;
    margin-right: 3rem;
    box-shadow: var(--ombre2);
}
.evenement__titre{
    color: var(--bleu-fonce);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: .875rem;
}
.evenement__texte{
    color: var(--gris);
    margin-bottom: .625rem;
}
.evenement__picto{
    height: 3.625rem;
    margin-bottom: 1rem;
}
.evenement__date{
    background-color: var(--rose);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    padding: .5rem 1rem;
    position: absolute;
    right: -1rem;
    top: -1rem;
    min-width: 80px;
    justify-content: center;
}
.evenement__date > p{
    font-family: 'Abril Fatface', sans-serif; 
    font-size: 1.5rem;
    color: var(--blanc);
    text-align: center;
}
/* Indicateurs */
.indicateurs {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.indicateur {
    width: 2.25rem;
    height: 8px;
    background-color: #CAC9C9;
    margin: 0 5px;
    cursor: pointer;
    border: none;
}
.indicateur.active {
    background-color: var(--bleu-clair);
}
.agenda .indicateurs{
    margin-bottom: 2rem;
}
@media screen and ( min-width:1100px ) {
    .agenda{
        display: flex;
        padding: 0;
        position: relative;
        margin-top: 5rem;
    }
    .agenda__titre{
        position: absolute;
        top: 4rem;
        left: 15%;
        transform: initial;
    }
    .agenda__image-conteneur{
        width: 50%;
        overflow: hidden;
    }
    .agenda__image{
        width: auto;
        height: 100%;
        object-fit: cover;
    }
    .agenda .btn{
        position: absolute;
        bottom: 4rem;
        right: 33%;
        left: inherit;
        transform: none;
    }
    .agenda .indicateurs{
        position: absolute;
        bottom: 3rem;
        right: 15%;
    }
    .agenda .slider__conteneur{
        margin-left: 10%;
        padding-bottom: 10rem;
    }
    .evenement{
        margin-right: 4rem;
    }
    .evenements{
        padding: 0;
    }
    .evenements .evenement:last-child{
        margin-right: 6rem;
    }
    .agenda::before{
        position: absolute;
        content: url(../images/ballon-bleu.svg);
        right: 8%;
        top: 0;
        transform: translateY(-98%);
    }
}
@media screen and ( min-width:1600px ) {
    .agenda__titre{
        left: 30%;
    }
}




/* Notre actualité */
.actus{
    padding: 4rem 0;
}
.actus .sous-titre{
    text-align: center;
    margin-bottom: 1rem;
}
/* actu */
.actu{
    width: 15rem;
    box-shadow: var(--ombre1);
    cursor: pointer;
    margin: 1rem;
    height: 94%;
}
.actu__image-conteneur{
    overflow: hidden;
    width: 100%;
    height: 13rem;
}
.actu__image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s;
}
.actu:hover .actu__image{
    transform: scale(1.1);
    filter: contrast(1.2);
}
.actu__contenu{
    padding: 1rem 1.5rem;
}
.actu__titre{
    color: var(--bleu-fonce);
    margin-bottom: .875rem;
    font-size: 1.25rem;
}
.actus__conteneur{
    display: inline-flex;
    padding: 0 1rem;
}
.actus .btn{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;
}
@media screen and ( min-width:1100px ) {
    .actus{
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        margin-top: 4rem;
        position: relative;
        padding: 5rem 15%;
    }
    .actus::before{
        position: absolute;
        content: url(../images/carnet-rose.svg);
        left: 5%;
        top: 0;
    }
    .actus__conteneur{
        display: flex;
        gap: 2.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .actus .indicateurs{
        display: none;
    }
    .actu{
        width: 20vw;
        margin: 0;
        height: 100%;
    }
    .actus .slider__conteneur{
        overflow: initial;
    }
    .actus .btn{
        position: initial;
        transform: none;
    }
}


/* Infos clés */
.infos .sous-titre{
    text-align: center;
    margin-bottom: 3rem;
}
.infos__conteneur{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* Style des blocs infos */
.info{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
}
.info strong{
    font-family: 'Abril Fatface', sans-serif;
    font-size: 1.5rem; 
    display: block;
    color: var(--blanc);
    font-weight: 400;
}
.info{
    text-align: center;
    padding: 2rem;
    color: var(--blanc);
}
.info1{
    flex-direction: column;
    background-color: var(--rose);
}
.info2{
    color: var(--bleu-fonce);
    background-color: var(--bleu-clair);
}
.info2 strong{
    color: var(--bleu-fonce);
}
.info3{
    flex-direction: column;
    background-color: var(--violet);
}
.info3 ul li {
    position: relative;
    text-align: left;
    margin-bottom: .375rem;
}
.info3 ul li::before {
    content: '';
    position: absolute; 
    left: -1.5rem;
    top: calc(50% - 0.375rem); 
    width: 0; 
    height: 0; 
    border-style: solid; 
    border-width: 0.375rem 0 0.375rem 0.75rem;
    border-color: transparent transparent transparent var(--rose);
}
.info4{
    flex-direction: column;
    background-color: var(--bleu-fonce);
}
.info4 div{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.info5{
    flex-direction: column;
    background-color: var(--rose);
}
.info6{
    justify-content: space-between;
    background-color: var(--bleu-clair);
    display: flex;
    flex-direction: column;
    color: var(--bleu-fonce);
}
.info6 strong{
    color: var(--bleu-fonce);
}
.info6 img{
    width: calc(100% + 4rem);
    max-width: initial;
    margin-top: -2rem;
}
.info7{
    background-color: var(--bleu-fonce);
}

/* Configuration sur tablette */
@media screen and ( min-width:750px ) {
    .infos .sous-titre{
        margin-bottom: 4rem;
    }
    .info{
        height: 15rem;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 1rem;
    }
    .infos__conteneur {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 1.5rem;
        grid-row-gap: 1.5rem;
    }
    .info1 { 
        grid-area: 1 / 1 / 2 / 3; 
    }
    .info2 { 
        grid-area: 1 / 3 / 2 / 7; 
    }
    .info3 { 
        grid-area: 2 / 1 / 4 / 4; 
        height: calc(30rem + 1.5rem);
    }
    .info4 { 
        grid-area: 2 / 4 / 4 / 7; 
        height: calc(30rem + 1.5rem);
    }
    .info7 { 
        grid-area: 4 / 1 / 5 / 5; 
    }
    .info5 { 
        grid-area: 4 / 5 / 5 / 7; 
    }
    .info6 { 
        grid-area: 5 / 1 / 6 / 7; 
        flex-direction: row;
    }
    .info6 img{
        height: calc(100% + 4rem);
        position: relative;
        left: -2rem;
        margin-top: 0;
    }
}


/* Configuration sur desktop */
@media screen and ( min-width:1340px ) {
    .infos{
        position: relative;
    }
    .infos::before{
        position: absolute;
        content: url(../images/fusee-bleue.svg);
        right: 10%;
        top: 0;
    }
    .infos__conteneur {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 1.5rem;
        grid-row-gap: 1.5rem;
    }
    .info1 { 
        grid-area: 1 / 1 / 2 / 3; 
    }
    .info2 { 
        grid-area: 1 / 3 / 2 / 6; 
    }
    .info3 { 
        grid-area: 1 / 6 / 4 / 8; 
        height: calc(30rem + 1.5rem);
    }
    .info4 { 
        grid-area: 2 / 1 / 3 / 4; 
        height: 15rem;
    }
    .info4 div{
        flex-direction: row;
    }
    .info5 { 
        grid-area: 2 / 4 / 3 / 6; 
    }
    .info6 { 
        grid-area: 3 / 1 / 4 / 5; 
    }
    .info7 { 
        grid-area: 3 / 5 / 4 / 8; 
    }
}


/* Les partenaires */
.partenaires{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.partenaires__contenu > *:not(:last-child){
    margin-bottom: 1rem;
}
.partenaires__contenu > p:not(:last-of-type){
    margin-bottom: .5rem;
}
.partenaires__image{
    box-shadow: var(--ombre3);
    width: 100%;
}

/* Responsive desktop */
@media screen and ( min-width:1100px ) {
    .partenaires{
        flex-direction: row;
        gap: 4rem;
        margin-top: 4rem;
    }
    .partenaires__contenu{
        position: relative;
        height: fit-content;
        padding-left: 4rem;
        width: 50%;
    }
    .partenaires__contenu::before{
        content: '';
        position: absolute;
        top: -4rem;
        bottom: -4rem;
        left: 0;
        right: -10rem;
        background-color: var(--gris-clair);
        z-index: -2;
    }
    .partenaires__image{
        width: 60%;
        max-width: initial;
    }
}


