@font-face {
    font-family: 'Vedafine-Regular';
    src: url('Vedafine-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden; /* pas de scroll */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: url('../img/fond1.jpg') no-repeat center center / cover;
}


/* <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name*/

.outfit-<uniquifier> {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

/* ========== MENU ========= */


.sidebar {
    position: fixed;
    top: 50%;
    left: 20px;              /* marge par rapport au bord gauche */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 5px;
    z-index: 10;
}

.sidebar .menu-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideIn 0.6s ease forwards;
}

.sidebar .menu-item:nth-child(1) {
    animation-delay: 0.10s;
}
.sidebar .menu-item:nth-child(2) {
    animation-delay: 0.20s;
}
.sidebar .menu-item:nth-child(3) {
    animation-delay: 0.30s;
}
.sidebar .menu-item:nth-child(4) {
    animation-delay: 0.40s;
}
.sidebar .menu-item:nth-child(5) {
    animation-delay: 0.50s;
}
.sidebar .menu-item:nth-child(6) {
    animation-delay: 0.60s;
}

.menu-item {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    background: black;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.35s ease, background-color 0.35s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    position: relative;
    user-select: none;
}

.menu-item span {
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-item:hover {
    width: 180px;
    border-radius: 20px;
    background: black;
    color: white;
}

.menu-item a {
    color: white;
    text-decoration: none;
}

.menu-item:hover a {
    color: white;
    text-decoration: none;
}

.menu-item:hover span {
    opacity: 1;
}

.menu-item.active {
    width: 20px;
    height: 40px;
    border-bottom-right-radius: 60px;
    border-top-right-radius: 60px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    padding-right: 2px;
    margin-left: 13px;
    background: white;
    color: #111;
    box-shadow: 0 0 18px #00bfa5;
}

.menu-item.active span {
    opacity: 0;
}

.menu-item.accueil {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: white solid 1px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.35s ease, background-color 0.35s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    position: relative;
    user-select: none;
}



.menu-item.accueil:hover {
    width: 180px;
    border-radius: 20px;
    background: transparent;
    color: white;
}



/*social links*/

.sidebar2 {
    position: fixed;
    top: 50%;
    right: 20px;              /* marge par rapport au bord droit */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 5px;
    z-index: 10;
}

.sidebar2 .social-links {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideIn 0.6s ease forwards;
}

.sidebar2 .social-links:nth-child(1) {
    animation-delay: 0.10s;
}
.sidebar2 .social-links:nth-child(2) {
    animation-delay: 0.20s;
}
.sidebar2 .social-links:nth-child(3) {
    animation-delay: 0.30s;
}

.social-links {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1aafa6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.social-links a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Effets au survol */
.social-links a:hover {
    color: white;
}

/* =========== BURGER =========== */

.burger-toggle {
    display: none !important;
}

.burger-btn {
    display: none !important;
}

/* Les 3 barres */
.burger-btn span {
    position: relative;
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

/* ========== ANIMATION → CROIX ========= */

/* barre du haut */
.burger-toggle:checked + .burger-btn span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

/* barre du milieu */
.burger-toggle:checked + .burger-btn span:nth-child(2) {
    opacity: 0;
}

/* barre du bas */
.burger-toggle:checked + .burger-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Par défaut, les réseaux mobile sont invisibles */
.mobile-socials {
    display: none;
}

/* ===== SIDEBAR MOBILE ===== */
@media (max-width: 768px) {

    /* Bouton dans un cercle */
    .burger-btn {
        display: flex !important;
        position: fixed;
        top: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background: black;
        border-radius: 50%;
        z-index: 3000;
        cursor: pointer;
        /* 🔥 La clé pour empiler les 3 barres verticalement */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 2500;
        padding-top: 80px; /* pour ne pas cacher le burger */
        gap: 0;
        background: 
            linear-gradient(
                to right,
                rgba(0,0,0,1) 0%,      /* noir opaque */
                rgba(0,0,0,0) 100%     /* fin transparent */
            ),
            url('../img/fond4.jpg');
        background-size:cover;
        background-position: center;
    }

    /* Quand le burger est coché → sidebar ouverte */
    .burger-toggle:checked ~ .sidebar {
        transform: translateX(0);
    }

    /* Exemple : texte du menu en blanc */
    .sidebar .menu-item span,
    .sidebar a {
        color: #fff;
    }

    .menu-item {
        width: 100%;
        height: auto;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 14px 20px;
        margin: 0;
        transition: none;
        display: block;
        text-align: left;
    }

    /* Texte toujours visible */
    .menu-item span {
        opacity: 1 !important;
        margin-left: 0;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.1rem;
        color: white; /* si sidebar fond noir */
        text-transform: uppercase;
    }

    /* Liens dans les spans */
    .menu-item a {
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
    }

    .menu-item a:hover {
        color: #05ad9f;
    }

    /* On enlève l'effet hover mobile */
    .menu-item:hover {
        width: 100%;
        border-radius: 0;
        background: none;
    }

    /* Ajustement de l'état actif */
    .menu-item.active {
        width: 100%;
        height: auto;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 14px 20px;
        margin: 0;
        transition: none;
        display: block;
        text-align: left;
        color:red;
    }

    .menu-item.active span {
        opacity: 1;
        color: grey;
    }

    .menu-item.accueil {
        width: 100%;
        height: auto;
        background: none;
        border-radius: 0;
        box-shadow: none;
        padding: 14px 20px;
        margin: 0;
        transition: none;
        display: block;
        text-align: left;
        border:none;
    }
    
        /* Texte toujours visible */
    .menu-item.accueil span {
        opacity: 1 !important;
        margin-left: 0;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.1rem;
        color: white; /* si sidebar fond noir */
        text-transform: uppercase;
    }
    
        /* Liens dans les spans */
    .menu-item.accueil a {
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
    }
    
        .menu-item.accueil a:hover {
        color: #05ad9f;
    }


    /* On masque la sidebar réseaux de droite */
    .sidebar2 {
        display: none !important;
    }

    /* On affiche les réseaux dans le menu mobile */
    .mobile-socials {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
    }

    .mobile-socials a {
        color: white;
        font-size: 0.7rem;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mobile-socials a:hover {
        color: #05ad9f;
    }

    .mobile-socials i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }
}

/* ================= */


/* contenu*/ 

.contenu {
    vertical-align: text-top;
    margin-left: 5%;
    padding: 2rem;
    flex-grow: 1;
    animation: fadeIn 0.5s ease-in;
}

.section-title-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    text-align: center;
    font-family: 'Vedafine-Regular', sans-serif;
    font-size: clamp(1.8rem, 2vw, 3rem);
    color: white;
    margin: 1rem;
    line-height: 0.8;
}

.section {
    position: absolute; inset:0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease;
    z-index: 1;
}

/* Images (deuxième partie) */
#part2 {
    background: url('img/fond10.jpg') no-repeat center center / cover fixed;
    color: white;
    transform: translateY(100%); /* cachée en bas */
}

.texte {
    font-family: "Outfit", sans-serif; 
    position: relative;
    color: white;
    background: none; /* pas de fond ici */
    isolation: isolate; /* indispensable pour bien gérer les blends */
}

/* Fond décoratif lié au bloc */
.texte::before {
    content: "";
    position: absolute;
    inset: 0; /* équivaut à top:0; right:0; bottom:0; left:0 */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    mix-blend-mode: multiply;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.fondpaies::before {
    background-image: url('../img/blobtrash4.png');
    padding: 100px;
}



.fondblob1::before{
    background-image: url('../img/blobtrash1.png');
    padding: 50px;
}

.fondblob2::before{
    background-image: url('../img/blobtrash2.png');
    padding: 50px;
}

.fondblob3::before{
    background-image: url('../img/blobtrash3.png');
    padding: 50px;
}


.texte p {
    font-size: clamp(1rem, 1vw, 1.2rem);
    margin: 0;
    font-weight: 300;
    text-shadow: 0px 0px 20px #000000;
}

.texte h1 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: clamp(1.5rem, 1.4vw, 1.2rem);
    margin: 0;
    font-weight: 200;
    text-shadow: 0px 0px 20px #000000;
    mix-blend-mode: normal;
}


/*lien telechargement*/
.telechargement {
    width: 100%;
    text-align: center;
    margin:40px;
}

.brochure-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: clamp(14px, 4vw, 16px);

    transition: color 0.3s ease;
}

/* Cercle blanc */
.icon-wrap {
    width: clamp(20px, 3vw, 40px);
    height: clamp(20px, 3vw, 40px);
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Flèche noire */
.icon-wrap i {
    color: black;
    font-size: clamp(10px, 1vw, 15px);
    transition: transform 0.3s ease;
}

/* ---------------- */
/*      HOVER       */
/* ---------------- */
.brochure-link:hover .icon-wrap {
    transform: scale(1.15);        /* cercle plus grand */
    background: #05ad9f;
}

.brochure-link:hover .icon-wrap i {
    transform: translateY(2px);    /* flèche descend un peu */
    color: white;
}

.brochure-link:hover {
    filter: brightness(1.1);       /* texte blanc légèrement boosté */
    color: #05ad9f;
}
/******/

.blob-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 180px;
    /* background-color: black;*/
    background: url('../img/fond4.jpg') no-repeat center center / cover;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
    -webkit-box-shadow:inset -10px -10px 40px 2px black;
    -moz-box-shadow:inset -10px -10px 40px 2px black;
    box-shadow:inset -10px -10px 40px 2px black;
}

.three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.6rem;
    /*
    margin-top: 3rem;
    margin-bottom: 1rem;
    */
    margin: 0 7rem 0 7rem;
    color: white;
    position: relative;
    z-index: 4;
}




.column {
    /*background-color:  #01a7a3;
    border-radius: 50% 50% 50% 70% / 50% 50% 50% 40%;
    width: 80%;*/
    z-index: -1;
    display: block;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /*   background-image: url('../img/blob1.png');
    background-size: contain;
    background-position: left left;
    background-repeat: no-repeat;*/
}


.image-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.image-wrapper img {
    width: 100%;
    display: block;
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    /*transition: transform 0.4s ease;*/
}


@media (max-width: 768px) {
    .content { margin-left: 0; padding-top: 4rem; }
    .two-columns { grid-template-columns: 1fr; }
    .three-columns { 
        grid-template-columns: 1fr; 
        margin: 0;
    }
}

/* GRILLE IMG PROD*/

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 80%;
}

.image-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.image-grid a:hover {
    transform: scale(1.05);
}

.image-wrapper .caption {
    /* position: absolute;
    font-size: 1.3rem;
    bottom: 50%;
    width: 100%;
    color: white;
    font-weight: 400;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;*/
    position: absolute;
    font-size: 1.3rem;
    bottom: 0;
    width: 100%;
    color: white;
    font-weight: 400;
    text-align: left;
    line-height: 0.8;
    padding: 20px;
    text-shadow: 2px 2px 9px #000000;
}

.image-wrapper .caption span{
    font-size: 0.8rem;
}

.image-wrapper:hover img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

/* GRILLE IMAGE ADMIN*/
.image-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 80%;
}

.image-grid2 a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.image-grid2 img {
    width: 100%;
    height: auto;
    display: block;
}

.image-grid2 a:hover {
    transform: scale(1.05);
}


@media (min-width: 1025px){ 
    .image-grid { 
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
        gap: 0.8rem; 
        width: 78%;
    } 

    .image-grid2 { 
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
        gap: 0.8rem; 
        width: 80%;
    } 

    .image-wrapper .caption {
        font-size: 1rem;
    }
}

@media (min-width: 1400px){ 
    .image-grid { 
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
        gap: 0.8rem; 
        width: 70%;
    }

    .image-grid2 { 
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 0.8rem; 
        width: 70%;
    } 

    .image-wrapper .caption {
        font-size: 1.1rem;
    }
}

@media (min-width: 1600px){ 
    .image-grid { 
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 1rem; 
        width: 80%;
    } 

    .image-grid2 { 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
        gap: 0.8rem; 
        width: 80%;
    } 

    .image-wrapper .caption {
        font-size: 1.3rem;
    }
}

/* Texte (première partie) */
#part1 {
    color: white;
    z-index: 2;
}


/* Transition: quand on montre la partie 2, on la met DEVANT et on coupe les events de la 1 */
body.show-part2 #part1{ transform: translateY(-100%); pointer-events:none; }
body.show-part2 #part2{ transform: translateY(0); z-index:3; } /* au-dessus quand visible */

/* Bouton demi-cercle */
#goToImages {
    position: absolute;
    bottom: 0; /* le fait dépasser de l'écran */
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: black;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 300px 300px 0 0; /* demi-cercle */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    font-weight: medium;
    transition: background 0.3s;
}

#goToImages:hover {
    background: #ddd;
}

#goBack {
    position: absolute;
    top: 0; /* le fait dépasser de l'écran */
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: black;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 300px 300px; /* demi-cercle */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    font-weight: medium;
    font-size: 1.5rem;
    transition: background 0.3s;
}

#goBack:hover {
    background: #ddd;
}


.texte img.inline {
    float: left;
    width: auto;
    height: clamp(60px, 5vw, 80px);
    margin: 0 30px 5px 0;
    shape-outside: circle(); /* optionnel pour une forme élégante */
    clip-path: circle();     /* nécessite que l’image soit carrée */
}


/* ============ GALERIE VIDEO ============ */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 95px 0 95px;
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.video-card:hover { transform: scale(1.05); }

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay sombre */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-card:hover .overlay { opacity: 1; }

.play-icon {
    font-size: 48px;
    color: white;
    opacity: 0.9;
    transform: scale(0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1);
    opacity: 1;
}

.video-card .caption {
    position: absolute;
    font-size: 1.3rem;
    bottom: 0;
    width: 100%;
    color: white;
    font-weight: 400;
    text-align: left;
    line-height: 0.8;
    padding: 20px;
    text-shadow: 2px 2px 9px #000000;
}

.video-card .caption span {
    font-size: 0.8rem;
}

/* Responsive : sur petits écrans, une seule colonne */
@media (max-width: 600px) {
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============ MODALES ============ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 85%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal video {
    width: 90%;
    max-width: 960px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* ============ MODALE INTRO PLEIN ÉCRAN ============ */
.intro-modal video {
    width: 100vw;
    height: 100vh;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Bouton de fermeture */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close:hover { color: #ff5555; }


.mentions {
    position: absolute;
    bottom:20px; 
    left:0;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
}

.mentions p {
    font-size: 0.8rem;
}


.header-text {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
    margin: 0 30px 30px 0;
}

.header-text p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 300;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 30px 30px 0;
    color: white;
    position: relative;
    z-index: 4;
}

@media (max-width: 1024px) {

    .section{
        position: relative;
        height: auto;
    }

    body{
        overflow: auto;
    }

    #goToImages {
        pointer-events: none;
        cursor: default;
    }

    #goBack {
        display: none;
    }

    /* ✨ FIX CRUCIAL — annule la translation de la section images */
    #part2 {
        transform: none !important;
    }

    .header-text {
        margin: 100px 0 0 0;
    }

    .three-columns {
        margin: 100px 0 170px 0;
        padding: 40px;
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr; /* une seule colonne sur petit écran */
        padding: 40px;
        margin: 0 0 100px 0;
    }

    .column {
        padding: 0;
        min-height: 0;
    }    

    .blob-background {
        top: 30%;
    }

    .image-grid, .image-grid2 {
        padding: 40px;
    }

    .texte img.inline {
        height: clamp(55px, 2vw, 70px);
    }

    .texte h1 {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);

    }
}


@media (min-width:769px) and (max-width: 1023px) {
    .three-columns {
        gap: 1.2rem;
        margin: 7rem 4rem 7rem 4rem;;
    }

}



.section {
    min-height: 100vh;
    height: auto;
    overflow: hidden;
}

@media (max-height: 1024px) {
    .section {
        overflow-y: auto;
    }
}



/* noms cies _page paies*/

.cloud-compact {
    text-align: center;
    width:85%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.5rem;         /* espacement horizontal + vertical */
    padding: 3.5rem 0 3.5rem 0;
}

.cloud-compact span {
    display: flex;             /* clé pour bien aligner texte + image */
    align-items: center;
    gap: 6px;                  /* espace entre nom et séparateur */
    white-space: nowrap;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    padding-left: 1rem; /* espace pour le séparateur */
}


/* 1 → navette */
.cloud-compact span:nth-child(3n + 1)::after {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("../img/navette2.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    margin-left: 1.4rem;
    animation:  flotterEtZoomer 8s ease-in-out infinite;
}

/* 2 → planet */
.cloud-compact span:nth-child(3n + 2)::after {
    content: "";
    width: 15px; /* tu peux mettre une taille différente */
    height: 15px;
    background-image: url("../img/navetteVter.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    margin-left: 1.4rem;
    animation:  rotationDouce 10s ease-in-out infinite;
}

/* 3 → étoile */
.cloud-compact span:nth-child(3n)::after {
    content: "";
    width: 13px; /* tu peux mettre une taille différente */
    height: 13px;
    background-image: url("../img/demicercle2.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    margin-left: 1.4rem;
    animation:  twinkle 2s ease-in-out infinite; /* 2s = durée d’un cycle */
    transform-origin: center;
}


/* retirer le dernier */
.cloud-compact span:last-child::after {
    content: none;
}

/* versions mobiles */
@media (max-width: 480px) {
    .cloud-compact span {
        font-size: 1rem;
    }
    .cloud-compact {
        width:100%;
        gap: 6px;
        flex-direction: column;   /* empile les éléments */
        align-items: center;
    }

    /* optionnel : cacher les séparateurs pour mobile */
    .cloud-compact span::after {
        display: none;
    }
}


/* MEDIA QUERIES*/


/* Ajustement laptop / desktop moyen */
@media (max-width: 1280px) {
    .texte h1 {
        font-size: clamp(1.2rem, 1.7vw, 1.7rem);
    }
}



/*INTRO VIDEO PAGE FILME*/

/* Modale plein écran */
.intro-modal {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.intro-modal.show {
    opacity: 1;
    transform: scale(1);
}

.intro-modal.hidden {
    display: none;
}

.intro-modal .close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Version PLEIN ÉCRAN FIABLE comme ton test */
.fullscreen-video iframe {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}


/* KEYFRAMES */

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        border-radius: 50% 50% 60% 40% / 50% 60% 40% 50%;
        transform: translate(-50%, -50%) scale(1.02);
    }
    50% {
        border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%;
        transform: translate(-50%, -50%) scale(1.05);
    }
    75% {
        border-radius: 70% 30% 40% 60% / 40% 50% 60% 50%;
        transform: translate(-50%, -50%) scale(1.02);
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-50%, -50%) scale(1);
    }
}
50% {
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
}
100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes flotterEtFlouter {
    0% {
        transform: translateY(0);
        filter: blur(0px);
    }
    50% {
        transform: translateY(-10px);
        filter: blur(2px);
    }
    100% {
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes flotterEtZoomer {
    0% {
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    50% {
        transform: translateY(-10px) scale(1.03);
        filter: blur(1.5px);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes flotterXY {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(3px, -8px);
    }
    50% {
        transform: translate(-3px, -12px);
    }
    75% {
        transform: translate(-2px, -6px);
    }
    100% {
        transform: translate(0, 0);
    }
}
@keyframes flotterFlouterFade {
    0% {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-12px);
        filter: blur(2px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes rotationDouce {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.5); }
}

/* Animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

