/*******************************************************************
                    STYLE POUR  LA PAGE DE STAGES
********************************************************************/

/* Style des sections */

.stages h4{
    width: 90vw;

        strong {
        font-size: calc(var(--mobile-taille-grosTitresSecondaires) * 1.2);
        font-weight: var(--graisseur-gras);
        
        @media (min-width:768px){
            font-size: calc(var(--tablette-taille-grosTitresSecondaires) * 1.2);
        }
    }
}

.stages{
	.article_conteneur{
		position: initial;
		opacity: 1;
    	transition: opacity 0.25s ease, transform 0.25s ease;
	}

        .section_mission{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 5rem;
    }
}

/* Images du haut*/
    .hero-stages-images {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    height: 320px; /* Ajuste selon tes images */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    
    img {
        position: absolute;
        width: 255px;
        height: auto;
        border-radius: 12px;

        /* Image gauche */
        &:nth-child(1) {
            z-index: 1;
            transform: translateX(-300px) scale(0.85);
            filter: brightness(0.6);
            opacity: 0.75;
        }
        
        /* Image centrale (en avant) */
        &:nth-child(2) {
            z-index: 3;
            transform: translateX(0) scale(1);
            filter: blur(0);
            border: 21px solid #080d1c;
            box-shadow: 0 0 0 1px var(--couleur-accent-secondaire);
        }

        /* Image droite */
        &:nth-child(3) {
            z-index: 1;
            transform: translateX(300px) scale(0.85);
            filter: brightness(0.6);
            opacity: 0.75;
        }
    }

    .hero-etudiant{
        border: 21px solid #080d1c;
        box-shadow: 0 0 0 1px var(--couleur-accent-secondaire);
    }
}

.stage_sectionInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px 40px 20px;
    margin-bottom: 60px;
}

.stage_sectionInfo div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px 40px 20px;
    margin-bottom: 60px;
}

.stages .timee{
    width: 165px;
    /* bottom: 0; */
    z-index: -1;
    display: block;
    position: absolute;
    

    /* Animation */
    animation: idleMascotte 3s ease-in-out infinite;
    transform-origin: center bottom; /* plus naturel */
    translate: 0px -109px;
    filter: drop-shadow(4px 9px 0 #AC72E4);
}

/* Carousel des applications */
.applications_carousels {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 0 5rem;
    width: 100%;
}

.applications_carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    filter: drop-shadow(var(--));
}

.carousel {
    display: inline-flex;
    gap: 40px;
    will-change: transform;
    position: relative;
    filter: drop-shadow(-4px 0px 0px var(--couleur-accent-primaire)) drop-shadow(4px 0px 0 var(--couleur-accent-secondaire));
}


.applications_carousel .carousel-track {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
    will-change: transform; /* optimisation pour les animations */
}

.applications_carousel img {
    height: 100px;
    flex-shrink: 0;
}

/* Version Tablette */
@media (min-width: 768px) and (max-width: 1023px){
    .hero-stages-images img  {
        width: 500px;
    }

    .stages .timee{
        z-index: 3;
        top: 10rem;
        left: 12rem;
        width: 180px;
    }
}

/* Version Desktop */
@media (min-width: 1024px) {

    /* Mascotte */
    .stages .timee{
        width: clamp(12rem, calc(8rem + 6.25vw), 13rem);
        top: 10rem;
        left: 17rem;
        z-index: 1;
    }

.hero-stages-images img {
    width: 475px;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s;
}
}