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

/* Hero */
.hero{
    width: 100vw;
    height: 100vh;
    padding: 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/uploads/2024/03/hero.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bleu-fonce);
    z-index: -1;
}
.hero__img{
    width: 100%;
    max-width: 25rem;
}
.hero__titre{
    color: var(--blanc);
    font-weight: 800;
    font-size: 1.75rem;
}

/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .hero{
        padding: 20%;
    }
    .hero__titre{
        color: var(--blanc);
        font-weight: 800;
        font-size: 2.5rem;
        max-width: 50rem;
    }
}

/* Intro */
.intro__contenu > *{
    margin-bottom: .5rem;
}


/* Savoir faire */
.notre-savoir-faire{
    background-color: var(--bleu-clair);
    display: flex;
    flex-direction: column;
}
.savoir-faire__conteneur{
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 3rem;
}
.savoir-faire{
    max-width: 13rem;
}
.savoir-faire__img{
    height: 6.25rem;
}
.savoir-faire__titre{
    color: var(--bleu);
    font-size: 1.125rem;
    margin-top: .5rem;
}
.savoir-faire__btn{
    align-self: center;
}

/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .notre-savoir-faire{
        position: relative;
    }
    .savoir-faire img{
        transition: all .5s;
    }
    .savoir-faire:hover img{
        transform: rotateY(360deg);
    }
    .savoir-faire__btn{
        position: absolute;
        right: 20%;
        top: 6rem;
    }
}



/* Domaines d'interventions */
.domaines-interventions ul{
    margin-left: 1rem;
}
.domaines-interventions ul li{
    position: relative;
    margin-left: 1rem;
    margin-top: .5rem;
}
.domaines-interventions  ul > li::before{
    position: absolute;
    content: "\002022";
    color: var(--cyan);
    margin-left: -1rem;
    font-size: 1.3rem;
    margin-top: -3px;
}
/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .domaines-interventions{
        padding: 9rem 20%;
    }
    .domaines-interventions ul{
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes */
        column-gap: 5rem;
    }
}


/* Témoignages */
.temoignages{
    position: relative;
    padding: 0;
}
.temoignages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/uploads/2024/03/temoignages-scaled.jpg);
    background-position: center;
    background-size: cover;
    z-index: -2;
}
.temoignages__container{
    width: 100%;
    height: 100%;
    position: relative;
    padding: 5rem 15%;
}
.temoignages__container {
    background-color: var(--bleu-fonce);
}
.temoignages .titre{
    color: var(--blanc);
}
.temoignage__texte{
    font-style: italic;
    margin-bottom: .5rem;
}
.temoignage__nom{
    font-weight: 600;
}
.temoignages .indicators{
    margin-top: 1.5rem;
}
.temoignages__container::before{
    position: absolute;
    content: url(../images/apostrophe.svg);
    top: 10rem;
    left: .5rem;
    transform: scale(.6);
}
.temoignages__container::after{
    position: absolute;
    content: url(../images/apostrophe.svg);
    bottom: 6rem;
    right: 1rem;
    transform: scale(-0.6);
}

/* Slider témoignages */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slider {
    display: flex;
    width: 400%;
    transition: transform 0.3s ease-in-out;
}
.slide {
    flex: 0 0 25%; /* Chaque slide est 25% de la largeur du conteneur */
    box-sizing: border-box;
    transition: transform 0.3s;
    color: var(--blanc);
}
.slider {
    user-select: none; /* Empêche la sélection de texte sur le slider */
    cursor: grab; /* Curseur de base lorsqu'il est survolé */
}
.slider:active {
    cursor: grabbing; /* Curseur lorsqu'il est en cours de glissement */
}
.indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.indicator {
    width: 2rem;
    height: .5rem;
    background-color: var(--blanc);
    border-radius: 15px;
    margin: 0 5px;
    cursor: pointer;
}
.indicators .active {
    background: var(--cyan);
}

/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .temoignages__container{
        width: 50%;
        margin-left: auto; 
        padding: 6rem 10%;
    }
    .temoignages__container::before{
        left: 4rem;
        transform: scale(1);
    }
    .temoignages__container::after{
        bottom: 8rem;
        right: 5rem;
        transform: scale(-.8);
    }
}


/* Actus */
.actus{
    display: flex;
    flex-direction: column;
}
.actus .titre{
    margin-bottom: 3rem;
}
.actus__conteneur{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.actu{
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.actu__contenu{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .875rem;
}
.actu__image{
    width: 100%;
    height: auto;
    object-fit: cover;
}
.actu__titre{
    font-weight: 500;
    color: var(--bleu);
    transition: all .2s;
}
.actu:hover .actu__titre{
    color: var(--cyan);
}
.actu__date{
    color: var(--bleu);
}
.actus__btn{
    align-self: center;
    margin-top: 2rem;
}
.actus__conteneur a{
    color: inherit;
}

/* Responsive desktop */
@media screen and ( min-width:1000px ) {
    .actus{
        position: relative;
    }
    .actus__conteneur{
        flex-direction: row;
        gap: 3rem;
    }
    .actus__conteneur > :first-child{
        width: 60%;
    }
    .actus__conteneur > :nth-child(2){
        width: 40%;
    }
    .actu__image{
        height: 250px;
    }
    .actu{
        transition: all .3s ease;
        height: 100%;
    }
    .actu:hover{
        transform: scale(1.05);
        box-shadow: 0px 4px 10px 2px rgba(0, 0, 0, 0.15);
    }
    .actus__btn{
        position: absolute;
        right: 15%;
        top: 6rem;
    }
}
@media screen and ( min-width:1170px ) {
    .actus__btn{
        right: 20%;
    }
}


/* Ils nous font confiance */

.clients__conteneur {
    width: 100vw;
    overflow: hidden;
    margin-left: -12vw;
    margin-top: 3rem;
    margin-top: 4rem;
}
.logos {
    display: flex;
}
.logos img {
    min-width: 8rem;
    height: 5rem;
    margin-right: 4rem;
    object-fit: contain;
}

/* Responsive desktop */
@media screen and ( min-width:1170px ) {
    .clients__conteneur {
        width: 100vw;
        overflow: hidden;
        margin-left: -20vw;
        margin-top: 4rem;
    }
    .logos img {
        min-width: 10rem;
        height: 6.25rem;
        object-fit: contain;
        padding: .5rem;
        transition: all .3s;
    }
    .logos img:hover{
        transform: scale(1.125);
    }
}

/* Nous sommes adhérents */
.adherents {
    /* même padding que les autres sections grâce à global.css */
}

.adherents__conteneur {
	gap: 3rem 6.5rem;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.adherent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Taille des logos d’adhérents */
.adherent img {
    width: auto;
    max-width: 8rem;
    max-height: 4rem;
    object-fit: contain;
    display: block;
}

/* Desktop */
@media screen and (min-width:1170px) {
    .adherents__conteneur {
        
    }

    .adherent img {
        max-width: 10rem;
        max-height: 8rem;
        transition: transform .3s ease;
    }

    .adherent:hover img {
        transform: scale(1.05);
    }
}