


/* Styles uniquement applicables à la page accueil.html */
body {
    background-color: #000;
    color: #fff;
    min-height: 120vh;
    /* overflow-x: hidden; */
    padding-top: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100vw; */

}


/* main {
    padding-top: 110px;
} */



/* caroussel */
.caroussel {
    /* position: relative; */
    /* width: 100vw;
    height: 100vh; */
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-direction: row;

  
    /* justify-content: center;
    align-items: center; */
    /* position: relative; */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 

    text-align: center;


    /* background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 100%); */
    
  
}

.caroussel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse 300% 50% at center 100%,rgb(0, 0, 0) 10%,transparent 90%,transparent); /* Dégradé noir */
    pointer-events: none; /* Assure que les clics passent à travers l'overlay */
    z-index: 1; /* Place l'overlay au-dessus de l'image */
}


.caroussel-image {
    min-width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    opacity: 0; /* Caché par défaut */
    transition: opacity var(--transition-duration) ease-in-out; /* Animation de fondu */

    /* animation: clignotement 2.5s infinite; */

}

.caroussel-image.fade-in {
    opacity: 1;
    animation: none;

}

#caroussel-container>div.loaderBox {
    min-width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    /* ajouter animation de faible clignotement sur le background */
    /* animation: clignotement 2.5s infinite; */


}

#caroussel-container.loading {
    animation: clignotement 2.5s infinite;

}

@keyframes clignotement {
    0% {
        background-color: rgba(255, 255, 255, 0);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.1);
    }
    100% {
        background-color: rgba(255, 255, 255, 0);
    }
}






.caroussel::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* make scrollbar transparent */
}
#caroussel-text-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: min-content;
    text-align: center;
    text-shadow: 2px 2px 40px rgba(0, 0, 0, 0.7);
    height: 0;
    transform: translateY(80vh);

    position: relative;  /* sinon par défaut c'est static et on ne peut pas modifier z-index */
    z-index: 2; /* pour que le texte soit au-dessus de l'overlay */
    

}

#caroussel-text-content h1 {
    font-size: 80px;
}

#caroussel-text-content p {
    font-size: 26px;
    font-family: 'Raleway';
    font-weight: 600;
    word-wrap: break-word;
    max-width: 100%;

    padding: 0 20px;


}

.stats {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin: 80px 5vw 160px 5vw;
}

.groupe {
    height: 100%;
    display: flex;
    flex-direction: row;

    flex: 1;
    max-width: 500px;
    min-width: min(200px,90vw);
}

.barre::before {
    content: "";
    display: block;
    width: 13px;
    height: 100%;
    background-color: var(--red-insaerospace);
}

.valeur {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items:start;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    /* padding-left: 20px; */
    padding-right: 40px;


}

.valeur > p {
    color: #FFF;
    font-family: Raleway;
    font-size: 24px;
    font-weight: 700;
}

.valeur > p.nombre {
    color: #FFF;
    font-family: Raleway;
    font-size: 54px;
    font-weight: 700;
}


/* ------------CONTENU PAGE ACCUEIL (ARTICLE)------------------- */
#socials>a {
    color: white;
    font-size: 42px;

    transition: all 0.1s ease-in-out;
}

#socials>a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}


section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(black 100vh,rgb(13, 13, 64));

    padding-bottom: 180px;
}
#accueil-content{
    padding: 0 5vw;

    * {
        line-height: 1.5;

    }
    

    h2 {
        font-size: 40px;
        font-weight: 700;
        margin: 40px 0;
        text-align: center;
    }

    .flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items:center;
        gap: 40px;
    }

    .flex>img.cover {
        width: 300px;
        min-height: 300px;
        object-fit: cover;
        border-radius: 12px;

        border: none;
    }

    .flex>img {
        width: 300px;
        min-height: 300px;
        object-fit: contain;
        border-radius: 12px;
        border: none;
        box-shadow: none;
    }

    .flex>div {
        flex:1;
    }

    li {
        margin-bottom: 24px;
    }
}


















@media (max-width: 800px) {

    #caroussel-text-content h1 {
        font-size: 40px;
    }

    #caroussel-text-content p {
        font-size: 16px;
    }





    /*  nomrbres qui scrollent */
    .stats {
        margin: 40px 20px 80px 40px;
    }

    .valeur > p {
        font-size: 18px;
    }

    .valeur > p.nombre {
        font-size: 32px;
    }
    
}