/* --- Styles de base --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');


body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    padding: 0;
    overflow-x: hidden;
}




/* ======================================================= */
/* 🖥️ STYLES ORDINATEUR (Min 769px) - Les ajustements précis sont ici */
/* ======================================================= */
@media (min-width: 769px) {


    /* Style de la vidéo en haut de page */
    /* CORRECTION : Retrait de 'fixed' pour que la vidéo ne couvre que la première section et non tout l'écran en permanence */
    .video-background {
        position: relative; /* Changé de 'fixed' à 'relative' */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* La vidéo prend 100% de la hauteur de la fenêtre */
        overflow: hidden;
        z-index: -2;
    }

    .video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-accueil {
        display: none;
    }


    

    /* Style pour la section principale du contenu avec l'image de fond */
    /* CORRECTION : Retrait du margin-top: 100vh car le contenu suit la vidéo, il n'est plus fixe */
    .main-content {
        background-image: url('https://i.imgur.com/NMx9fzP.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed; /* L'image de fond reste fixe pendant le défilement */
        z-index: -1;
        margin-top: 0; /* Changé de 100vh à 0 */
        color: #333; /* Couleur de texte pour les sections à fond blanc */
    }

   

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
        padding: 0 clamp(20px, 5vw, 80px);
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    /* Nouveaux éléments MOBLIES cachés sur Ordinateur */
    .header-socials-mobile,
    .menu-toggler,
    .main-nav-mobile {
        display: none;
    }

    /* Le bouton hamburger n'est plus utilisé. */
    .hamburger {
        display: none;
    }

/* Le "bloc" de gauche qui contient logo + nom */
    .header-logo-group {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 15px; /* L'espace fixe entre logo et nom */
        margin-right: auto; /* <--- C'est ça qui pousse le menu à droite ! */
        flex-shrink: 0;
    }

    .logo-filou3 {
        height: 50px;
        width: auto;
    }

    .header-nom {
        color: #000;
        white-space: nowrap;
        font-size: clamp(10px, 12px, 14px);
        opacity: 0.8;
        opacity: 0.5;
    }

    /* --- 2. Menu de navigation (main-nav-desktop) --- */

    .main-nav-desktop ul {
        display: flex;
        list-style: none;
        gap: clamp(14px, 2vw, 40px);
        margin: 0;
        padding: 0;
    }

    /* Styles des liens d'images de navigation */
    .nav-img-link {
        color: transparent;
        text-decoration: none;
        display: block;
        position: relative;
    
    }


    /* Le bloc de droite (Menu) */
    .main-nav-desktop {
        display: flex;
    } 

    .main-nav-desktop a {
        text-decoration: none;
        color: #000;
        font-size: clamp(10px, 12px, 14px);
        font-weight: 500;
        transition: color 0.3s;
        opacity: 0.5;
    }

    /* 2. On ajoute cette nouvelle règle pour la page active */
    .main-nav-desktop a.active {
        font-weight: bold;
        /* Optionnel : vous pouvez aussi changer la couleur pour la page active */
        /* color: #EB7F2A; */
    }

    /* On retire le <B> du HTML ou on force le reset ici si nécessaire */
    .main-nav-desktop a B {
        font-weight: inherit;
    }

    .main-nav-desktop b {
        font-weight: inherit;
    }

    /* 🖱️ Effet de survol (hover) */
    .main-nav-desktop a:hover {
    
        color: #ca0013;
        opacity: 1;
    }






    /* debut qui sommes nous------------------------------------------------------------------------------------------------- debut qui sommes nous*/
    :root {
        --red: #D31217;
        --beige: #EBE7DE;
    }

    .paintball-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 4%;
        background-color: #EBE7DE; /* Couleur beige du fond */
    }

    /* --- Alignement des Lignes --- */
    .header-area {
       
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    .horizontal-line {
        height: 1px;
        background-color: #D31217;
        width: 30%;
        margin-bottom: 20px;
        width: 0%; /* Commence à 0 */
        transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Animation fluide */
        transition-delay: 0.5s; /* Attend un peu que le texte apparaisse */
    }

    .short-line {
        height: 1px;
        background-color: #D31217;
        width: 60%;
        margin: 20px auto 0 auto;
        width: 0%; /* Commence à 0 */
        transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Animation fluide */
        transition-delay: 0.5s; /* Attend un peu que le texte apparaisse */
    }

    /* --- Styles des Titres --- */
    .title-who {
        color: #D31217;
        font-size: 2rem;
        font-weight: 800;
    }

    .main-title {
        color: #D31217;
        font-size: 5rem;
        line-height: 0.85;
        margin: 0;
        font-weight: 900;
    }

    .brand-sub {
        color: #D31217;
        font-weight: bold;
        font-size: 1.1rem;
        margin: 10px 0;
    }

    .image-area-left {
        display: flex;
        align-items: flex-start; /* On part du haut par défaut */
        gap: 20px;
        margin-top: 25px;
    }

        /* La petite image à gauche */
    .tiny { 
        width: 30%; 
        align-self: flex-end; /* Elle descend tout en bas du conteneur */
        margin-bottom: -150px; /* Optionnel : pour la faire descendre encore plus bas que le flux normal */
    }

    /* La grande image au milieu */
    .large { 
        width: 70%; 
        align-self: flex-start; /* Elle reste calée en haut */

    }

    .content-area-right {
        display: flex;
        gap: 30px;
        align-items: flex-start;

    }


    .img-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

    .tiny { width: 30%; }
    .large { width: 70%; }
    .medium { width: 50%; }

    .text-wrapper {
        width: 50%;
    }

    .description {
        color: #D31217;
        font-size: 0.9rem;
        text-align: right;
        line-height: 1.5;
    }

    /* État initial : invisible et décalé vers le bas */
    .slide-in {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: opacity, transform;
    }

    /* État final : visible et à sa place */
    .slide-in.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Optionnel : Délai pour la colonne de droite pour un effet décalé */
    .column.right.slide-in {
        transition-delay: 0.2s;
    }

    /* Animation spécifique pour les images à l'intérieur (zoom léger) */
    .img-wrapper img {
        transition: transform 0.5s ease;
    }

    .img-wrapper:hover img {
        transform: scale(1.03); /* Petit effet interactif au survol */
    }

    /* --- Quand le parent devient .active (déclenché par le JS) --- */
    .active .horizontal-line {
        width: 30%; /* Sa taille finale */
    }

    .active .short-line {
        width: 60%; /* Sa taille finale */
    }

    /* Optionnel : Ajustement pour la ligne courte centrée */
    .short-line {
        margin: 20px auto 0 auto;
    }

    /* fin qui sommes nous----------------------------------------------------------------------------------------------------- fin qui sommes nous*/

 
/* debut 7 sections--------------------------------------------------------------------------------------------------------------------------- debut 7 sections*/



     /* Nouveau style pour les conteneurs de lignes */
    .content-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0px;
        gap: 20px;
        flex-wrap: wrap;
        max-width: 1200px; /* Ajout d'une largeur maximale pour les cartes */
        margin: 40px auto; /* Centre les cartes */

    }

    .content-row.first-row {
        /* Le décalage vers le haut de 200px n'est plus nécessaire car le header n'est plus fixe */
        margin-top: 150px; /* Ajustement de la marge supérieure après le changement de header */
        /* DÉFINIT LA MARGE DE 40PX ENTRE LA PREMIÈRE ET LA DEUXIÈME LIGNE DE CARTES */
        margin-bottom: 40px;
    }

    /* NOUVELLE RÈGLE : pour la dernière ligne de cartes, écrase la marge inférieure de 40px */
    .content-row.last-row {
        /* Ancienne valeur : margin-bottom: 250px; */
        margin-bottom: 150px; /* Espace de base entre les cartes et la vidéo */
    }

    .content-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        flex: 1 1 200px;
        background-color: #eeebe3;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        height: 230px; /* Supprime la hauteur fixe pour un contenu flexible */

        opacity: 0;
        filter: blur(15px); /* Flou un peu plus prononcé au départ */
        transform: scale(0.9) translateY(20px); /* Ajout d'un léger effet de dézoom */
        transition: 
            opacity 0.6s ease-in-out, 
            filter 0.6s ease-in-out, 
            transform 0.6s ease-in-out;
        will-change: filter, opacity; /* Optimise les performances du flou *//
    }

    /* État quand la carte est visible */
    .content-section.is-visible {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }



    .content-text {
        padding: 0;
        margin-bottom: 20px;
    }

    .content-text h2 {
        color: black;
        margin-top: 0;
    }

    .content-image {
        width: 100%;
    }

    .content-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Boutons CTA */
    .cta-button {
        display: inline-block;
        padding: 10px 20px;
        margin-top: 20px;
        background-color: #5cb85c;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .cta-button:hover {
        background-color: #4cae4c;
    }

    /* Styles pour les logos des 7 conteneurs d'informations */
    .logo_cible_rose, .logo_coupe_rose, .logo_verre_rose, .logo_gun_rose, .logo_horloge_rose, .logo_terrains_rose, .logo_mains_rose {
        width: 120px;
    }

    p {
        color: black;
    }


/* fin 7 sections--------------------------------------------------------------------------------------------------------------------------- fin 7 sections*/


/* debut 1.5 h-------------------------------------------------------------------------------------------------------------------------------------------------- debut 1.5 h*/
    :root {
        --red: #D31217;
        --beige: #EBE7DE;
    }

    .terrains-section {
        background-color: var(--beige);
        position: relative;
        width: 100%;
        height: 80vh; 
        display: flex;
        align-items: center;
        overflow: hidden; 
    }

    /* --- LE BANDEAU PHOTO --- */
    .full-height-banner {
        position: absolute;
        top: 0;
        right: 0;
        width: 20%; 
        height: 100%; 
        z-index: 1;
    }

    .full-height-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* --- LE CONTENU --- */
    .main-container {
        width: 100%;
        display: grid;
        /* On donne plus de souplesse à la colonne de droite */
        grid-template-columns: 1fr 1fr; 
        padding-left: 5%;
        padding-right: 5%; /* Marge de sécurité pour éviter le collage au bord */
        z-index: 10;
        box-sizing: border-box;
    }

    /* --- COLONNE TEXTE GAUCHE --- */
    .massive-title { 
        /* MODIFICATION : Taille fluide (Min: 4rem, Idéal: 7vw, Max: 8rem) */
        font-size: clamp(4rem, 7vw, 8rem); 
        line-height: 0.8; 
        color: var(--red); 
        font-weight: 900; 
        margin: 20px 0; 
        white-space: nowrap; /* Évite que le "1.5" passe au-dessus du "HECTARE" bizarrement */
    }

    .desc-box { 
        width: 100%;
        max-width: 320px; 
        color: var(--red); 
        font-weight: bold; 
        font-size: 0.9rem; 
        margin-top: 40px 
    }

    /* --- COLONNE INTERACTIVE DROITE --- */
    .col-interactive {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .img-map-natural {
        /* MODIFICATION : La map s'adapte à la largeur disponible */
        width: 100%;
        max-width: 450px; 
        height: auto; 
        display: block;
        margin-bottom: 30px;
    }

    .cta-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 450px;
        margin-top: 380px; 
        z-index: 15;
    }

    .btn-venez {
        position: relative;
        display: inline-block;
        padding: 20px 45px;
        border: 2px solid #000;
        color: #000;
        text-decoration: none;
        font-weight: bold;
        overflow: hidden; 
        z-index: 1;
        transition: color 0.3s;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .btn-venez .blob {
        position: absolute;
        background: #000;
        border-radius: 10%;
        width: 0;
        height: 0;
        transition: width 0.8s ease-out, height 0.8s ease-out;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: -1;
    }

    .btn-venez:hover { color: #fff; }
    .btn-venez:hover .blob { width: 600px; height: 600px; }

    .list-container ul {
        list-style: none;
        padding: 0;
        color: black;
    }

    .list-container li {
        border-bottom: 2px solid var(--red);
        padding: 8px 0;
        width: 280px;
        max-width: 100%;
        font-weight: normal;
    }

    /* --- AUTRES STYLES --- */
    .line-red { height: 1px; background-color: var(--red); margin: 10px 0; }
    .line-red.s, .line-red.f { width: 60%; }
    .total-terrains { 
        color: var(--red); 
        font-size: 2.5rem; 
        font-weight: 900; 
        margin-top: 110px; 
        display: block; 
    }
    .label-red { color: black; font-weight: 900; }

    /* --- ANIMATIONS --- */
    .massive-title, .img-map-natural, .cta-box, .full-height-banner {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }

    .full-height-banner { transform: translateX(50px); }

    .active .massive-title, 
    .active .img-map-natural, 
    .active .cta-box, 
    .active .full-height-banner {
        opacity: 1;
        transform: translate(0);
    }

    .active .img-map-natural { transition-delay: 0.2s; }
    .active .cta-box { transition-delay: 0.4s; }

    .paintball2, .carte2, .line-red2.s, .line-red2.f { display: none; }

    p {
        font-weight: normal;
    }
/* fin 1.5 h------------------------------------------------------------------------------------------------------------------------------------------------------- fin 1.5 h*/






/* debut offres-------------------------------------------------------------------------------------------------------------------------------------------------- debut offres*/

    /* .titre_photo2 */
    .titre_photo2 {
        display: flex;
        color: #ca0013;
        font-size: 28px; /* Taille réduite pour mobile */
        margin-top: 50px; /* Marge réduite */
        width: 100%;
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 0px;
    }





    .cards-section {
        display: flex;
        justify-content: center;
        gap: 100px;
        background-color: #fff;
        padding: 50px 20px;
    }

    .category-card {
        background-color: var(--beige);
        width: 350px;
        height: 800px;
        border-radius: 25px; /* Coins bien arrondis comme sur l'image */
        overflow: hidden; /* Important pour que l'image ne dépasse pas des coins arrondis */
        display: flex;
        flex-direction: column;
        position: relative;
        opacity: 0;
        transform: translateY(50px); /* Les cartes montent vers le haut */
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        text-decoration: none; /* Enlève le soulignement */
        color: inherit;        /* Garde vos couleurs actuelles */
        /* ... vos autres propriétés existantes ... */
    }

    .card-header {
        padding: 30px 25px 0 25px;
        text-align: center;
        z-index: 10;
    }

    .top-title { color: var(--red); font-size: 2.5rem; font-weight: 900; margin-bottom: 45px; }
    .sub-labels { display: flex; justify-content: space-between; color: black; font-weight: bold; font-size: 0.8rem; margin-bottom: 15px; }
    .card-desc { color: var(--red); font-size: 0.85rem; font-weight: normal; line-height: 1.2; text-transform: uppercase; }

    /* --- ZONE DE L'IMAGE ET DU TEXTE DE FOND --- */
    .card-body {
        position: relative;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Aligne tout en bas */
        width: 100%;
    }

    .bg-text-stack {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px; /* Ajuste la hauteur des textes de fond */
        gap: 30px;
    }

    .bg-text-stack span {
        color: var(--red);
        font-size: 3rem;
        font-weight: 900;
        line-height: 0.95;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease-out;
    }

    /* --- L'IMAGE QUI TOUCHE LES BORDS --- */
    .character-img {
        position: absolute;
        bottom: 0; /* Touche le bas du conteneur */
        left: 50%;
        
        width: 100%; /* Prend toute la largeur de la carte */
        height: auto;
        z-index: 5;
        object-fit: contain;
        display: block;
        transform: translateX(-50%) scale(0.8); /* Le personnage est plus petit au début */
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s; /* Effet rebond */
    }

    /* Cas particulier pour la main ou les images qui doivent vraiment "remplir" les côtés */
    .full-width-img {
        width: 110%; /* Légèrement plus large pour assurer le contact avec les bords */
        max-width: none;
    }

    /* --- ÉTAT ACTIF (Visible) --- */
    .category-card.active {
        opacity: 1;
        transform: translateY(0);
    }

    .category-card.active .character-img {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    .category-card.active .bg-text-stack span {
        opacity: 1;
        transform: translateX(0);
    }

    /* On décale l'apparition des lignes de texte dans la pile */
    .category-card.active .bg-text-stack span:nth-child(1) { transition-delay: 0.4s; }
    .category-card.active .bg-text-stack span:nth-child(2) { transition-delay: 0.5s; }
    .category-card.active .bg-text-stack span:nth-child(3) { transition-delay: 0.6s; }
    .category-card.active .bg-text-stack span:nth-child(4) { transition-delay: 0.7s; }
    .category-card.active .bg-text-stack span:nth-child(5) { transition-delay: 0.8s; }

    /* --- EFFET HOVER (Au survol de la souris) --- */
    .category-card:hover .character-img {
        transform: translateX(-50%) scale(1.05); /* Zoom léger sur le perso */
    }

    .category-card:hover {
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

/* fin offres------------------------------------------------------------------------------------------------------------------------------------------------------fin offres*/



/* debut 7 sections--------------------------------------------------------------------------------------------------------------------------- debut 7 sections*/



     /* Nouveau style pour les conteneurs de lignes */
    .content-row2 {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0px;
        gap: 20px;
        flex-wrap: wrap;
        max-width: 1200px; /* Ajout d'une largeur maximale pour les cartes */
        margin: 40px auto; /* Centre les cartes */

    }

    .content-row2.first-row2 {
        /* Le décalage vers le haut de 200px n'est plus nécessaire car le header n'est plus fixe */
        margin-top: 0px; /* Ajustement de la marge supérieure après le changement de header */
        /* DÉFINIT LA MARGE DE 40PX ENTRE LA PREMIÈRE ET LA DEUXIÈME LIGNE DE CARTES */
        margin-bottom: 0px;
    }

    /* NOUVELLE RÈGLE : pour la dernière ligne de cartes, écrase la marge inférieure de 40px */
    .content-row2.last-row2 {
        /* Ancienne valeur : margin-bottom: 250px; */
        margin-bottom: 20px; /* Espace de base entre les cartes et la vidéo */
    }

    .content-section2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        flex: 1 1 200px;
        background-color: #eeebe3;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        height: 320px;

        opacity: 0;
        filter: blur(15px); /* Flou un peu plus prononcé au départ */
        transform: scale(0.9) translateY(20px); /* Ajout d'un léger effet de dézoom */
        transition: 
            opacity 0.6s ease-in-out, 
            filter 0.6s ease-in-out, 
            transform 0.6s ease-in-out;
        will-change: filter, opacity; /* Optimise les performances du flou *//
    }

    /* État quand la carte est visible */
    .content-section2.is-visible {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }



    .content-text {
        padding: 0;
        margin-bottom: 20px;
    }

    .content-text h2 {
        color: black;
        margin-top: 0;
    }

    .content-image {
        width: 100%;
    }

    .content-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Boutons CTA */
    .cta-button {
        display: inline-block;
        padding: 10px 20px;
        margin-top: 20px;
        background-color: #5cb85c;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .cta-button:hover {
        background-color: #4cae4c;
    }

    /* Styles pour les logos des 7 conteneurs d'informations */
    .logo_cible_rose, .logo_coupe_rose, .logo_verre_rose, .logo_gun_rose, .logo_horloge_rose, .logo_terrains_rose, .logo_mains_rose {
        width: 120px;
    }

    p {
        color: black;
    }


/* fin 7 sections--------------------------------------------------------------------------------------------------------------------------- fin 7 sections*/





/* debut gg---------------------------------------------------------------------------------------------------------------------------------------------------------- debut gg*/


    .section-divider {
        /* Dimensions du trait */
        width: 60%;
        height: 1px; /* Finesse du trait */

        /* Centrage */
        margin: 20px auto; /* Centre horizontalement (auto) et ajoute 20px de marge verticale */

        /* Style du trait */
        background-color: #ca0013; /* Couleur grise légère */
        border: none; /* S'assurer qu'il n'y a pas de bordure par défaut */
        margin-bottom: 80px;
    }

    .page-container-tel {
        display: none;
    }

    /* Conteneur principal qui simule la page */
    .page-container {
        width: 100%;
        max-width: 1200px; /* Largeur maximale de votre contenu */
        margin: 0 auto; /* Centre la page */
        padding: 50px 20px; /* Espace autour du contenu */
        box-sizing: border-box;
        color: var(--text-color);
        margin-top: 70px;
        /* --- LES 3 LIGNES MANQUANTES POUR L'EFFET --- */
        opacity: 0;                     /* 1. On la cache au départ */
        transform: translateY(30px);    /* 2. On la descend de 30px */
        /* 3. On ajoute 'opacity' et 'transform' dans la transition */
        transition: transform 0.6s ease-out, opacity 0.8s ease-out, box-shadow 0.3s ease-in-out;
    }

    .page-container.is-visible {
        /* 2. État Final (Visible) - L'élément revient à sa position normale et est visible */
        opacity: 1;
        transform: translateY(0); /* Retour à la position normale (effet de "levé") */
    
   
    }


    .atelier-nom {
        display: flex;
        color: #144b63;
        /* align-content est retiré car il est inutile ici */
        font-size: 28px;
        margin-top: 100px;
        width: 100%; /* S'assurer qu'il prend toute la place */
    
        /* 👇 Solution 2 : Centrage horizontal de l'enfant */
        justify-content: center;
    
        /* (Optionnel) Si vous voulez aussi le centrer verticalement : */
        align-items: center; 
    }

    /* --- SECTION 2 : Contenu principal --- */
    .main-content-section {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        padding-bottom: 100px; /* Espace pour les infos du pied de page */
        position: relative; /* Indispensable pour que le texte se place par rapport à lui */
        overflow: hidden;
        margin-bottom: 0px;
    }   

    .background-text {
        position: absolute;
        /* Positionnement vertical selon votre besoin */
        top: 290px; 
        
        /* ÉTAPE CLÉ : Centrage parfait sans calcul de marge négative */
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        
        /* Style du texte */
        font-size: 15vw;
        font-weight: 900;
        color: #ca0013; 
        opacity: 0.07;
        line-height: 1;
        z-index: -1;
        
        /* Gestion de l'affichage */
        white-space: nowrap;
        overflow: hidden; /* Coupe ce qui dépasse du conteneur 100vw */
        display: flex;
        pointer-events: none;
        user-select: none; /* Empêche la sélection du texte en fond */
    }

    .background-text span {
        display: inline-block;
        padding-right: 50px; /* Petit espace entre les répétitions du texte */
        animation: defilement-infini 3020s linear infinite;
    }

    @keyframes defilement-infini {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* Colonne de gauche (Texte/Stats) */
    .info-block {
        flex-basis: 55%; /* Prend 55% de la largeur */
        padding-right: 30px;
    }

    .name-title {
        font-size: 1.2em;
        font-weight: bold;
        color: #ca0013;
        margin-bottom: 20px;
    }

    .description-text {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 30px;
        font-weight: 300;
    }

    /* Conteneur des statistiques */
    .stats-container {
        display: flex;
        gap: 40px; /* Espacement entre les blocs de stats */
    }

    .stat-item {
        display: flex;
        flex-direction: column;
    }

    .stat-number {
        font-size: 1.8em;
        font-weight: bold;
        color: #ca0013;
        line-height: 1.2;
        
        /* STABILITÉ : Empêche le mouvement des éléments voisins */
        display: inline-block;
        min-width: 85px; /* Ajustez selon la largeur du "+1500" */
        font-variant-numeric: tabular-nums; /* Les chiffres prennent la même largeur */
        text-align: left;
    }

    .stat-label {
        font-size: 0.75em;
        text-transform: uppercase;
        color: black;
        font-weight: 500;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* Colonne de droite (Photo) */
    .photo-block {
        flex-basis: 40%; /* Prend 40% de la largeur */
        /* Assure que la photo ne dépasse pas en hauteur pour un aspect carré/rectangulaire */
        max-height: 800px; 
        overflow: hidden;
        position: relative;
        border-radius: 12px;
        top: 60px;
    }

    .photo-block img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* Assure que l'image couvre le bloc sans être déformée */
        /* La photo semble avoir une légère bordure ou un effet de découpe */
        border-radius: 5px; /* Optionnel */
    }









    .footer-info-section.is-visible {
        /* 2. État Final (Visible) - L'élément revient à sa position normale et est visible */
        opacity: 1;
        transform: translateY(0); /* Retour à la position normale (effet de "levé") */
    
   
    }

    /* --- SECTION 3 : Infos Atelier et Carte (Pied de page) --- */
    .footer-info-section {
        display: flex;
        justify-content: space-between;
        align-items: flex-end; /* Alignement en bas */
        margin-top: 50px;
                /* --- LES 3 LIGNES MANQUANTES POUR L'EFFET --- */
        opacity: 0;                     /* 1. On la cache au départ */
        transform: translateY(30px);    /* 2. On la descend de 30px */
        /* 3. On ajoute 'opacity' et 'transform' dans la transition */
        transition: transform 0.6s ease-out, opacity 0.8s ease-out, box-shadow 0.3s ease-in-out;
    }

    .atelier-image-block {
        flex-basis: 30%; /* L'image Atelier */
        max-width: 300px;
    }

    .atelier-image-block img, .map-block img {
        width: 130%;
        height: auto;
        display: block;
        border-radius: 5px; /* Optionnel */
    }

    .detailed-info-container {
        flex-basis: 30%; /* Bloc de stats du bas */
        display: flex;
        
        gap: 60px; 
        padding-left: 20px;
        margin-bottom: 290px;
        margin-right: -810px;
    
    }

    /* Reprend le style de stat-item mais avec un espacement adapté */
    .detailed-info-item {
        display: flex;
        flex-direction: column;

    }
    .detailed-info-item .stat-number {
        /* Le style est hérité de .stat-number mais ajusté pour être plus petit en bas */
        font-size: 1.4em; 
    }
    .detailed-info-item .stat-label {
        /* Le style est hérité de .stat-label */
    }

    .map-container {
        width: 60%; 
        height: 250px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        overflow: hidden; /* Maintient l'aspect propre */
        position: relative;
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        display: block;
    }


/* fin gg---------------------------------------------------------------------------------------------------------------------------------------------------------------fin gg*/



    #popup-container {
        display: none; /* INDISPENSABLE pour que le JS garde le contrôle */
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 9999;
        
        /* On prépare le centrage, mais il ne s'activera que quand le JS 
           changera le 'display' de 'none' à 'flex' */
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(12px);
        padding: 30px; 
    }

    /* 2. Fenêtre du Popup */
    .popup-content {
        background: white;
        width: 100%;
        max-width: 1100px;
        max-height: 90vh;
        padding: clamp(20px, 5vw, 50px);
        border-radius: 15px;
        position: relative;
        overflow-y: auto;
        animation: popupFadeScale 0.4s ease-out;
    }

    @keyframes popupFadeScale {
        from { opacity: 0; transform: scale(0.98); }
        to { opacity: 1; transform: scale(1); }
    }

    /* 3. Grille Principale */
    .popup-grid-layout {
        display: grid;
        grid-template-columns: 1.1fr 1fr; /* Équilibre gauche/droite */
        gap: 40px;
        align-items: start; /* Aligne le contenu en haut */
    }

    /* 4. Colonne de Gauche (Texte) */
    .name-title { 
        color: #ca0013;
        font-size: clamp(2rem, 4vw, 3.5rem); 
        line-height: 1; 
        margin-bottom: 25px;
        font-weight: 800;
        text-transform: none;
    }

    .description-text { 
        font-size: 1.05rem;
        color: #444; 
        margin-bottom: 30px; 
        line-height: 1.5;
    }

    /* Alignement des dates en ligne */
    .stats-container { 
        display: flex;
        gap: 25px;
        border-top: 1px solid #eee; 
        padding-top: 20px; 
        margin-bottom: 25px; 
    }

    .stat-number2 { 
        font-size: 1.8rem; 
        color: #ca0013; 
        font-weight: 900; 
    }

    .secondary-text { 
        font-size: 0.95rem; 
        color: #666; 
        border-left: 3px solid #ca0013; 
        padding-left: 15px; 
        line-height: 1.6;
    }

    /* 5. Colonne de Droite (Images) */
    .col-right {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .photo-grid { 
        display: flex; 
        gap: 15px; 
        height: 400px; /* Fixe une hauteur harmonieuse avec le texte */
        margin-bottom: 20px; 
    }

    .img-large { 
        width: 60%; 
        height: 100%;
        object-fit: cover; 
        border-radius: 12px; 
    }

    .img-stack { 
        width: 40%; 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
    }

    .img-stack img { 
        height: calc(50% - 7.5px); 
        width: 100%;
        object-fit: cover; 
        border-radius: 12px; 
    }

    /* 6. Bouton */
    .cta-button {
        align-self: flex-start; /* Évite que le bouton soit étiré */
        background: #ca0013; 
        color: white;
        padding: 14px 28px; 
        border-radius: 8px; 
        text-decoration: none;
        font-weight: bold; 
        font-size: 0.9rem;
        transition: all 0.3s ease;
        text-align: center;
    }

    .cta-button:hover {
        background: #a3000f;
        transform: translateY(-2px);
    }

    /* Bouton Fermer */
    .close-button {
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 30px;
        cursor: pointer;
        color: #aaa;
    }


    /*DEBUT FOOTER----------------------------------------------------------------------------------------------------------------------------------------------------------------------------DEBUT FOOTER*/
    /* --- DEBUT FOOTER ADAPTATIF --- */

    /* ======================================================= */
    /* 🖥️ FOOTER - VERSION CENTRÉE ET ÉQUILIBRÉE              */
    /* ======================================================= */

    footer {
        width: 100%;
        padding: 30px 20px;
        background-color: #fff;
        display: flex;
        justify-content: center; /* Centre le conteneur main-nav */
    }

    .main-nav {
        width: 100%;
        max-width: 1200px; /* On augmente un peu pour l'équilibre */
    }

    .main-nav ul {
        display: flex;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* --- LE SECRET DU CENTRAGE VISUEL --- */

    .main-nav ul li {
        /* On divise l'espace en 3 parts égales */
        flex: 1; 
        display: flex;
        align-items: center;
    }

    /* Bloc de gauche : On pousse le texte vers le bord gauche */
    .main-nav ul li:first-child {
        justify-content: flex-start;
    }

    /* Bloc du milieu (Socials) : On le force au centre absolu */
    .footer-socials {
        justify-content: center;
        gap: 25px;
    }

    /* Bloc de droite : On pousse le texte vers le bord droit */
    .main-nav ul li:last-child {
        justify-content: flex-end;
    }

    /* --- STYLES DES TEXTES --- */

    .main-nav a,
    .main-nav span {
        text-decoration: none;
        color: #000;
        white-space: nowrap;
        font-size: 0.9em;
        transition: all 0.3s ease;
    }

    .footer-socials a {
        font-size: 1.4em;
        color: #000;
    }

    .main-nav a:hover {
        color: #ca0013;
        transform: translateY(-3px);
    }


}










































@media (max-width: 768px) {
    
    /* --- 1. PRÉVENTION DU DÉBORDEMENT GLOBAL --- */
    body, html {
        /* Empêche toute barre de défilement horizontale forcée par un élément enfant */
        overflow-x: hidden; 
        /* Règle la taille de la police de base pour une meilleure lisibilité */
        font-size: 14px;
        font-family: 'Montserrat', sans-serif;
        

    }


    
    /* --- 2. GESTION DE L'EN-TÊTE FIXE --- */
    
    header {
        position: absolute;
        box-sizing: border-box;
        margin: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 10px 20px;
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 16000;
        /* Réinitialise les marges desktop qui pourraient causer des débordements */
        
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }

    /* ... dans le bloc @media (max-width: 768px) ... */

        /* Rendre la vidéo visible sur mobile */
    .video-background {
        display: block; 
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Force la hauteur à 100% de la fenêtre */
        overflow: hidden;
        z-index: -2;
    }

    .video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Masquer l'image d'accueil mobile si la vidéo est utilisée */
    .photo-accueil {
        display: none !important;
    }

    /* Ajuster le contenu principal pour qu'il commence APRES la vidéo */
    .main-content {
        /* Retirez la marge-top fixe du header, car la vidéo couvre l'écran entier */
        margin-top: 0 !important; 
    }



    .main-nav-desktop {
        display: none;
    }
    
/* Le "bloc" de gauche qui contient logo + nom */
    .header-logo-group {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 15px; /* L'espace fixe entre logo et nom */
        margin-right: auto; /* <--- C'est ça qui pousse le menu à droite ! */
        flex-shrink: 0;
    }

    .logo-filou3 {
        height: 50px;
        width: auto;
    }

    .header-nom {
        color: #000;
        white-space: nowrap;
        font-size: clamp(10px, 1.0vw, 14px);
        opacity: 0.8;
        opacity: 0.5;
    }
    
/* ... dans le bloc @media (max-width: 768px) ... */

    /* Conteneur des barres (le bouton entier) */
    .menu-toggler {
        /* Nous allons utiliser flex pour empiler les barres */
        position: relative;
        display: flex; 
        flex-direction: column;
        justify-content: space-around;
        height: 25px; /* Définissez une hauteur pour l'empilement */
        width: 30px; /* Définissez une largeur pour le bouton */
        padding: 0;
        margin: 0;
        
        /* Enlevez l'ancienne font-size si elle existe, car nous utilisons maintenant des barres */
        font-size: initial; 
        z-index: 1600;
    }

    /* Style commun pour chaque barre */
    .menu-toggler .bar {
        display: block;
        width: 100%;
        height: 3px; /* Épaisseur de la barre */
        background-color: black; /* Couleur de votre bouton */
        transition: all 0.3s ease-in-out; /* Animation pour la transformation */
        transform-origin: center; /* Point de rotation */
        z-index: 1600;

    }

    /* Style de la transformation en croix (lorsque le menu est ouvert) */
    /* Cible l'état lorsque la classe 'open' est appliquée au corps (si vous l'utilisez) 
       OU plus simple, cible l'état lorsque la classe 'open' est appliquée au menu lui-même 
       et utilise l'opérateur adjacent ( + ) */

    /* Si vous utilisez le code JS de la section 1 et que .main-nav-mobile.open est la classe d'ouverture : */
    .main-nav-mobile.open + .menu-toggler .top-bar, /* Si le toggler est après le nav */
    .main-nav-mobile.open ~ .menu-toggler .top-bar, /* Si le toggler n'est pas directement après le nav */
    .main-nav-mobile.open + .menu-toggler .middle-bar,
    .main-nav-mobile.open + .menu-toggler .bottom-bar {
        /* Si le toggler est DANS le header et n'est pas juste après le nav, vous devez 
           adapter ce sélecteur pour cibler .menu-toggler.open .bar si votre JS ajoute 'open' au toggler.
           
           Puisque votre JS ajoute 'open' au .main-nav-mobile, 
           nous allons nous baser sur le body pour un ciblage universel.
        */
        
    }

    /* 🏆 SOLUTION LA PLUS PROPRE : Ajouter la classe 'open' au Toggler en JS */

    /* 1. Mettez à jour votre fonction JS (toggleMenu) pour qu'elle ajoute 'open' au Toggler ET au Nav: */
    /*
    function toggleMenu() {
        document.querySelector('.main-nav-mobile').classList.toggle('open');
        document.querySelector('.menu-toggler').classList.toggle('open'); // 💥 AJOUTEZ CETTE LIGNE
    }
    */

    /* 2. Si le Toggler a la classe 'open' (il est maintenant une croix) */
    .menu-toggler.open .top-bar {
        /* Rotation en diagonale et déplacement */
        transform: rotate(45deg) translate(7px, 7px); 
    }

    .menu-toggler.open .middle-bar {
        /* Disparaît */
        opacity: 0;
    }

    .menu-toggler.open .bottom-bar {
        /* Rotation en diagonale opposée et déplacement */
        transform: rotate(-45deg) translate(5px, -5px);
    }
        
    /* 5. Menu de navigation Mobile (Fenêtre latérale) */
    .main-nav-mobile {
        position: fixed;
        /* top: 0; et left: 0; sont importants pour le positionnement */
        top: 0; 
        left: 0; /* Ancrage à gauche */
        
        /* 💥 MODIFICATION 1 : Cache le menu en le décalant au-dessus */
        top: -105%; 
        
        /* 💥 MODIFICATION 2 : Il prend toute la largeur */
        width: 100%; 
        
        /* 💥 MODIFICATION 3 : Il prend toute la hauteur pour couvrir l'écran */
        height: 100vh; /* Utiliser 100vh (viewport height) */
        
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        
        /* 💥 MODIFICATION 4 : La transition porte maintenant sur 'top' */
        transition: top 0.6s ease-in-out; 
        
        z-index: 14990;
        padding-top: 0px;
        display: block; /* Important pour qu'il ne soit pas display: none */
    }

    /* Style pour l'ouverture du menu (Reste inchangé) */
    .main-nav-mobile.open {
        /* 💥 MODIFICATION 5 : Ancre le menu en haut de la fenêtre */
        top: 0; 
    }


   
    .main-nav-mobile .close-btn {
        /* 🔑 CLÉ 1 : Positionne la croix par rapport au coin de son parent (.main-nav-mobile) */
        position: absolute;
   
        /* 🔑 CLÉ 2 : Ancrage en haut à 10px du bord du menu */
        top: 10px;
   
        /* 🔑 CLÉ 3 : Ancrage à droite à 10px du bord du menu */
        right: 10px;
   
        /* SUPPRIMEZ TOUTES LES AUTRES PROPRIÉTÉS DE POSITIONNEMENT OU MARGES */
        margin-top: initial !important;
        margin-left: initial !important;
   
        /* Maintien des autres styles */
        color: #7d7d7d;
        font-size: 1.8em;
        text-decoration: none;
        z-index: 15000; /* Assurez-vous qu'il est cliquable */
    }
   
    /* Structure de la liste (les uns en dessous des autres) */
    .main-nav-mobile ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        margin-top: 70px;
    }
 
    .main-nav-mobile li {
        margin: 15px 0;
        /* ⭐ MODIFICATION CLÉ 1 : Ajout de la bordure inférieure pour la séparation */
        
        padding-bottom: 35px; /* Pour ajouter de l'espace sous la ligne */
        /* On peut aussi enlever le margin-bottom pour utiliser le padding-bottom pour l'espace */
        margin: 15px 0 0 0; /* Garde la marge du haut, enlève celle du bas pour utiliser le padding */
    }

    /* ⭐ MODIFICATION CLÉ 2 : Retirer la bordure sur le dernier élément */
    /* C'est important pour éviter une ligne inutile sous le dernier lien "Contact" */
    .main-nav-mobile li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
 
    .main-nav-mobile a {
        color: black;
        text-decoration: none;
        font-size: 1.8em;
        /* Ajustement du padding pour que le texte soit bien au-dessus de la ligne */
        padding: 0 20px 0 0; /* Réduction du padding car l'espace est géré par le LI */
        display: block;
        transition: color 0.3s;
    }
    .main-nav-mobile a:hover {
        color: #ca0013;
    }

    /* 1. Logo principal */
    .logo-filou32 {
        /* Taille REDUITE */
        height: 180px; /* Taille recommandée pour qu'il tienne dans le header */
        width: auto;
        margin-left: -30px;
        margin-top: -200px;
        margin-bottom: 70px;
       
        z-index: 1560;
    }



    /* debut qui sommes nous-------------------------------------------------------------------------------------------------------------------------------- debut qui sommes nous*/



    .paintball-layout {
        max-width: 780px;
        margin: 0 auto;
        padding: 20px;
        background-color: #eeebe3;
        
        display: flex;
        flex-direction: column;
        gap: 25px; /* Espace constant entre les blocs */
        margin-bottom: 30px;
        
    }

    /* Titre principal avec un style "Badge" */
    .header-area .main-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        font-size: 2.2rem;
        color: #1a1a1a;
        line-height: 1;
        text-transform: uppercase;
        text-align: left;
        border-left: 5px solid #e63946; /* Ligne d'accent moderne */
        padding-left: 15px;
    }

    /* Section Qui sommes-nous sous forme de carte */
    .column.left {
        background: #f8f9fa;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .title-who {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        color: #e63946;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    /* Grille pour les photos (même si elles sont petites) */
    .image-area-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .image-area-left img {
        width: 100%;
        height: 120px; /* Hauteur fixe pour l'uniformité */
        object-fit: cover; /* Recadre proprement les photos */
        border-radius: 12px;
    }

    /* Bloc texte avec typographie aérée */
    .text-wrapper .description {
        font-size: 1rem;
        line-height: 1.6;
        color: #444;
        text-align: justify;
    }

    .text-wrapper strong {
        color: #333333;
    }

    /* Suppression des anciens éléments décoratifs */
    .horizontal-line, .short-line, .brand-sub {
        display: none;
    }

    /* Ciblage spécifique de la photo mobylettes */
    .content-area-right .img-wrapper.medium img {
        width: 100%;      /* Prend toute la largeur du container */
        max-width: 300px; /* Ajuste ce chiffre (ex: 200px, 400px) pour changer la taille */
        height: auto;     /* Garde les proportions de l'image */
        display: block;
        margin: 10px auto; /* Centre la photo si elle est petite */
        border-radius: 8px; /* Optionnel : pour des bords arrondis modernes */
    }

    /* 1. Définition de l'animation */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px); /* Part de 30px plus bas */
        }
        to {
            opacity: 1;
            transform: translateY(0);    /* Arrive à sa position normale */
        }
    }

    /* État initial : caché et décalé */
    .slide-in {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        will-change: opacity, transform;
    }

    /* État quand le JavaScript ajoute la classe "is-visible" */
    .slide-in.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Décalage pour un effet de cascade sur mobile */
    .column.left.is-visible {
        transition-delay: 0.1s;
    }

    .column.right.is-visible {
        transition-delay: 0.3s;
    }

    /* 3. Décalage (Delay) pour que les colonnes n'arrivent pas en même temps */
    .column.left {
        animation-delay: 0.2s;
    }

    .column.right {
        animation-delay: 0.5s;
    }

    /* 4. Animation bonus pour l'image des mobylettes */
    .content-area-right .img-wrapper.medium img {
        transition: transform 0.3s ease; /* Effet au survol */
    }

    .content-area-right .img-wrapper.medium img:hover {
        transform: scale(1.05); /* S'agrandit légèrement quand on passe la souris */
    }

    /* Style de base pour les lignes (assurez-vous qu'elles ne sont plus en display: none) */
    .horizontal-line, .short-line {
        display: block !important; /* On les réaffiche */
        height: 3px;
        background-color: #ce1b1b; /* Rouge pour rappeler le thème */
        width: 0; /* Départ à zéro pour l'effet de dessin */
        margin: 10px 0;
        border-radius: 2px;
    }

    /* Animation du tracé */
    @keyframes drawLine {
        from {
            width: 0;
        }
        to {
            width: 100%; /* La ligne se "dessine" jusqu'au bout */
        }
    }

    /* On déclenche l'animation quand le JavaScript ajoute la classe .is-visible */
    .is-visible .horizontal-line {
        animation: drawLine 1.2s cubic-bezier(0.42, 0, 0.58, 1) forwards;
        animation-delay: 0.8s; /* Attendre que le texte commence à apparaître */
    }

    .is-visible .short-line {
        animation: drawLine 0.8s cubic-bezier(0.42, 0, 0.58, 1) forwards;
        animation-delay: 1s;
        max-width: 100px; /* Si c'est la ligne courte */
    }

    


    /* fin qui sommes nous------------------------------------------------------------------------------------------------------------------------------------------- fin qui sommes nous*/




/* debut 7 sections-------------------------------------------------------------------------------------------------------------------------------------------------------  debut 7 sections*/



   
/* 1. Le conteneur parent avec une marge de sécurité de chaque côté */
    .content-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 colonnes égales */
        gap: 12px !important; /* Espace entre les cartes */
        padding: 0 15px !important; /* Marge de 15px par rapport aux bords de l'écran */
        width: 100% !important;
        box-sizing: border-box !important; /* Très important pour inclure le padding dans le calcul */
        margin: 20px 0 !important;
    }

    /* 2. Les sections individuelles */
    .content-section {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
        height: auto !important;
        min-height: 240px !important; /* Ajuste selon la longueur de ton texte */
        background-color: #eeebe3 !important;
        border-radius: 8px !important;
        opacity: 0;
        filter: blur(15px); /* Flou un peu plus prononcé au départ */
        transform: scale(0.9) translateY(20px); /* Ajout d'un léger effet de dézoom */
        transition: 
            opacity 0.6s ease-in-out, 
            filter 0.6s ease-in-out, 
            transform 0.6s ease-in-out;
        will-change: filter, opacity; /* Optimise les performances du flou */
    }

    .content-section.is-visible {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }

    /* 3. Le Texte (Visibilité maximale) */
    .content-text {
        display: block !important;
        width: 100% !important;
    }

    .content-text h2 {
        display: block !important;
        color: #000000 !important; /* Noir pur */
        font-size: 1rem !important;
        margin: 10px 0 !important;
        line-height: 1.2 !important;
    }

    .content-text p {
        display: block !important;
        color: #333333 !important; /* Gris très foncé */
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 5px !important;
    }

    /* 4. Les Images / Logos */
    .content-image, [class^="logo_"] {
        display: block !important;
        width: 60px !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
    }

    /* 5. La dernière section en bas */
    .content-row.last-row .content-section:last-child {
        grid-column: span 2 !important;
        width: 100% !important;
    }


    /* --- STYLES COMMUNS ET ÉTAT INITIAL (ANIMATIONS) --- */
    .terrains-section {
        background-color: var(--beige);
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    /* Le bandeau photo passe en fond ou en haut */
    .full-height-banner {
        position: relative;
        width: 100%;
        height: 250px; /* Taille réduite pour mobile */
        order: -1; /* Place la photo tout en haut */
        transform: translateY(20px); /* Ajustement pour l'animation */
    }

    .main-container {
        grid-template-columns: 1fr; /* Une seule colonne */
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Préparation de l'effet d'apparition (flou + mouvement) */
    .massive-title, .img-map-natural, .cta-box, .full-height-banner {
        opacity: 0;
        filter: blur(12px);
        transition: all 0.8s ease-out;
    }

    .desc-box {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .line-red.s, .line-red.f {
        width: 40%;
        margin: 15px auto; /* Centre les lignes rouges */
    }

    .txt-right {
        text-align: center;
    }

    /* La Map */
    .col-interactive {
        right: 0;
        margin-top: 40px;
        width: 100%;
    }

    .img-map-natural {
        width: 90%; /* Prend presque toute la largeur */
        margin: 0 auto 20px auto;
    }

    /* Le bloc bouton et liste */
    .cta-box {
        width: 100%;
        margin-right: 0; /* On annule le gros décalage PC */
        margin-top: 20px;
        align-items: center; /* Centre tout sur mobile */
        text-align: center;
    }

    .btn-venez {
        font-size: 2.2rem;
        text-align: center;
    }

    .list-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .list-container li {
        width: 200px; /* Plus petit sur mobile */
        text-align: center;
    }

    .total-terrains {
        margin-top: 40px;
        text-align: center;
    }

/* fin 7 sections------------------------------------------------------------------------------------------------------------------------------------------------------- fin 7 sections*/



/* debut 1.5 h-------------------------------------------------------------------------------------------------------------------------------------------------- debut 1.5 h*/
/* --- CONFIGURATION DE LA SECTION --- */
/* --- STRUCTURE DE LA SECTION --- */
/* --- STRUCTURE GLOBALE --- */
/* 1. Reset de la section pour utiliser une Grille */
    /* ===== RESET FLOU & VISIBILITÉ ===== */
    .terrains-section,
    .terrains-section * {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
    }

    body {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    /* ===== SECTION ===== */
    .terrains-section {
        box-sizing: border-box;   /* important pour padding */
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        background-color: #eeebe3;
        position: relative;
        overflow: hidden;
    }


    .main-container,
    .col-text,
    .col-interactive,
    .desc-box,
    .cta-box,
    .list-container,
    .carte2 {
        box-sizing: border-box;
        max-width: 100%;   /* empêche débordement */
    }
    /* ===== IMAGE FUSIL (HÉRO) ===== */
    .paintball2 {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 30px;
    }

    .paintball2 img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* ===== CONTAINER TEXTE ===== */
    .main-container {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: relative;
        z-index: 2;
    }

    .col-text {
        text-align: center;
        color: #ffffff;
        display: flex;
        flex-direction: column;
    }

    .label-red {
        font-size: 12px;
        letter-spacing: 2px;
        color: black;
        display: inline-block;
        margin-bottom: 8px;
    }

    .massive-title {
        font-size: clamp(36px, 12vw, 52px);
        line-height: 1.05;
        margin: 10px 0 18px;
        word-break: keep-all;
    }

    .desc-box {
        font-size: clamp(13px, 3.8vw, 14px);
        line-height: 1.6;
        color: black;
        text-align: left;
        position: relative;
    }

    .desc-box p {
        margin-bottom: 14px;
    }

    .line-red.s { /* petite ligne au-dessus */
        display: none;
    }

    .line-red.f { /* grande ligne en dessous */
        display: none;
    }

    .line-red2.s { /* petite ligne au-dessus */
        display: block;
        width: 36px;
        height: 2px;
        background-color: #c40000;
        margin: 12px 0;
    }

    .line-red2.f { /* grande ligne en dessous */
        display: block;
        width: 100%;
        max-width: 640px; /* optionnel, limite largeur sur desktop */
        height: 2px;
        background-color: #c40000;
        margin: 18px 0;
    }

    .total-terrains {
        margin-top: 18px;
        font-size: clamp(16px, 5vw, 22px);
        letter-spacing: 2px;
    }

    /* ===== CTA ===== */
    .cta-box {
        background: #fff;
        padding: 18px 14px;
        border-radius: 14px;
        text-align: center;
        margin-top: -30px;
    }

    .btn-venez {
        display: block;
        width: 100%;
        padding: 14px 0;
        background: #c40000;
        color: #fff;
        font-weight: 700;
        letter-spacing: 2px;
        border-radius: 8px;
        text-decoration: none;
        margin-bottom: 18px;
        transition: all 0.25s ease; /* transition pour hover */
    }

    .btn-venez:hover,
    .btn-venez:focus,
    .btn-venez:active {
        background: #ff0000;       /* rouge plus vif */
        transform: scale(1.05);    /* léger agrandissement */
        cursor: pointer;
    }

    .list-container ul {
        list-style: none;
        padding: 0;
        margin: 10px 0 0;
    }

    .list-container li {
        font-size: clamp(12px, 3.6vw, 13px);
        letter-spacing: 1px;
        margin-bottom: 8px;
        color: black;
    }

    /* ===== IMAGE CARTE ===== */
    .carte2 {
        position: relative;
        margin: 20px auto 0;
        max-width: 100%;
        padding: 0 8px;
    }

    .carte2 img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }


    .total-terrains {
        order: 10;
    }


    /* ===== DÉSACTIVATION DESKTOP ===== */
    .map-overlap,
    .full-height-banner {
        display: none !important;
    }

    .txt-right {
        text-align: left !important;
    }

    /* ÉTAT INITIAL */
    .slide-in {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.8s ease-out;
    }

    /* QUAND ACTIVE */
    .slide-in.active {
        opacity: 1;
        transform: translateY(0);
    }



/* fin 1.5 h------------------------------------------------------------------------------------------------------------------------------------------------------- fin 1.5 h*/

/* debut offres-------------------------------------------------------------------------------------------------------------------------------------------------- debut offres*/


    /* On cible directement la classe de ton lien et ses enfants */
    .category-card, 
    .category-card * {
        text-decoration: none !important;
    }

    /* Optionnel : Empêcher le texte de devenir bleu/violet après avoir cliqué */
    .category-card {
        color: inherit !important;
        text-decoration: none !important;
    }



/* --- 1. SECTION ET SÉCURITÉ --- */
    .cards-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 50px !important; /* Espacement entre les cartes pour l'indépendance du scroll */
        padding: 50px 15px !important;
        background-color: #fff !important;
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cards-section * {
        box-sizing: border-box !important;
    }

    /* --- 2. LA CARTE (STRUCTURE) --- */
    .category-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 360px !important;
        height: 650px !important;
        background-color: #eeebe3 !important;
        border-radius: 25px !important;
        position: relative !important;
        overflow: hidden !important;
        opacity: 1 !important; /* La carte parente reste visible */
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    }

    /* --- 3. HEADER (TEXTES DU HAUT) --- */
    .card-header {
        padding: 30px 20px 0 20px !important;
        text-align: center !important;
        z-index: 10 !important;
    }

    .top-title {
        color: #ca0013 !important;
        font-size: 2rem !important;
        font-weight: 900 !important;
        margin: 0 0 20px 0 !important;
    }

    .sub-labels {
        display: flex !important;
        justify-content: space-between !important;
        color: #000 !important;
        font-weight: bold !important;
        font-size: 0.7rem !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .card-desc {
        color: #ca0013 !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        text-transform: uppercase !important;
        margin: 0 !important;
    }

    /* --- 4. BODY ET TEXTE DE FOND --- */
    .card-body {
        position: relative !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

    .bg-text-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding-bottom: 40px !important;
    }

    /* ÉTAT INITIAL DU TEXTE (Caché) */
    .bg-text-stack span {
        color: #ca0013 !important;
        font-size: 2.2rem !important;
        font-weight: 900 !important;
        line-height: 0.95 !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        transform: translateX(-50px) !important;
        transition: all 0.6s ease-out !important;
    }

    /* --- 5. L'IMAGE (PERSONNAGE) --- */
    /* ÉTAT INITIAL DE L'IMAGE (Cachée/Petite) */
    .character-img {
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 100% !important;
        height: auto !important;
        z-index: 5 !important;
        object-fit: contain !important;
        opacity: 0 !important;
        transform: translateX(-50%) scale(0.6) !important;
        transition: all 0.9s cubic-bezier(0.17, 0.84, 0.44, 1.3) !important;
    }

    /* --- 6. ÉTATS ACTIFS (DÉCLENCHÉS PAR JS) --- */
    
    /* Image devient visible et grandit */
    .category-card.active .character-img {
        opacity: 1 !important;
        transform: translateX(-50%) scale(1) !important;
    }

    /* Textes de fond deviennent visibles et glissent */
    .category-card.active .bg-text-stack span {
        opacity: 0.3 !important; /* Opacité réduite pour le style "fond" */
        transform: translateX(0) !important;
    }

    /* Effet cascade sur le texte */
    .category-card.active .bg-text-stack span:nth-child(1) { transition-delay: 0.1s; }
    .category-card.active .bg-text-stack span:nth-child(2) { transition-delay: 0.2s; }
    .category-card.active .bg-text-stack span:nth-child(3) { transition-delay: 0.3s; }
    .category-card.active .bg-text-stack span:nth-child(4) { transition-delay: 0.4s; }
    .category-card.active .bg-text-stack span:nth-child(5) { transition-delay: 0.5s; }

    /* --- 7. NETTOYAGE DES EFFETS PC --- */
    .category-card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
        transform: none !important;
    }

    .category-card:hover .character-img {
        transform: translateX(-50%) scale(1) !important;
    }

    .full-width-img {
        width: 110% !important;
    }    
/* fin offres------------------------------------------------------------------------------------------------------------------------------------------------------fin offres*/





/* debut 7 sections-------------------------------------------------------------------------------------------------------------------------------------------------------  debut 7 sections*/



   
/* 1. Le conteneur parent avec une marge de sécurité de chaque côté */
    .content-row2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 colonnes égales */
        gap: 12px !important; /* Espace entre les cartes */
        padding: 0 15px !important; /* Marge de 15px par rapport aux bords de l'écran */
        width: 100% !important;
        box-sizing: border-box !important; /* Très important pour inclure le padding dans le calcul */
        margin: 20px 0 !important;
    }

    /* 2. Les sections individuelles */
    .content-section2 {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
        height: auto !important;
        min-height: 240px !important; /* Ajuste selon la longueur de ton texte */
        background-color: #eeebe3 !important;
        border-radius: 8px !important;
        opacity: 0;
        filter: blur(15px); /* Flou un peu plus prononcé au départ */
        transform: scale(0.9) translateY(20px); /* Ajout d'un léger effet de dézoom */
        transition: 
            opacity 0.6s ease-in-out, 
            filter 0.6s ease-in-out, 
            transform 0.6s ease-in-out;
        will-change: filter, opacity; /* Optimise les performances du flou */
    }

    .content-section2.is-visible {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
    }

    /* 3. Le Texte (Visibilité maximale) */
    .content-text {
        display: block !important;
        width: 100% !important;
    }

    .content-text h2 {
        display: block !important;
        color: #000000 !important; /* Noir pur */
        font-size: 1rem !important;
        margin: 10px 0 !important;
        line-height: 1.2 !important;
    }

    .content-text p {
        display: block !important;
        color: #333333 !important; /* Gris très foncé */
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 5px !important;
    }

    /* 4. Les Images / Logos */
    .content-image, [class^="logo_"] {
        display: block !important;
        width: 60px !important;
        height: auto !important;
        margin: 0 auto 10px auto !important;
    }

    /* 5. La dernière section en bas */
    .content-row2.last-row2 .content-section2:last-child {
        grid-column: span 2 !important;
        width: 100% !important;
    }


    /* --- STYLES COMMUNS ET ÉTAT INITIAL (ANIMATIONS) --- */
    .terrains-section {
        background-color: var(--beige);
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    /* Le bandeau photo passe en fond ou en haut */
    .full-height-banner {
        position: relative;
        width: 100%;
        height: 250px; /* Taille réduite pour mobile */
        order: -1; /* Place la photo tout en haut */
        transform: translateY(20px); /* Ajustement pour l'animation */
    }

    .main-container {
        grid-template-columns: 1fr; /* Une seule colonne */
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Préparation de l'effet d'apparition (flou + mouvement) */
    .massive-title, .img-map-natural, .cta-box, .full-height-banner {
        opacity: 0;
        filter: blur(12px);
        transition: all 0.8s ease-out;
        color: black;
    }

    .desc-box {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .line-red.s, .line-red.f {
        width: 40%;
        margin: 15px auto; /* Centre les lignes rouges */
    }

    .txt-right {
        text-align: center;
    }

    /* La Map */
    .col-interactive {
        right: 0;
        margin-top: 40px;
        width: 100%;
    }

    .img-map-natural {
        width: 90%; /* Prend presque toute la largeur */
        margin: 0 auto 20px auto;
    }

    /* Le bloc bouton et liste */
    .cta-box {
        width: 100%;
        margin-right: 0; /* On annule le gros décalage PC */
        margin-top: 20px;
        align-items: center; /* Centre tout sur mobile */
        text-align: center;
    }

    .btn-venez {
        font-size: 2.2rem;
        text-align: center;
    }

    .list-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .list-container li {
        width: 200px; /* Plus petit sur mobile */
        text-align: center;
    }

    .total-terrains {
        margin-top: 40px;
        text-align: center;
    }

/* fin 7 sections------------------------------------------------------------------------------------------------------------------------------------------------------- fin 7 sections*/









/* debut gg------------------------------------------------------------------------------------------------------------------------------------------------------debut gg*/
    .page-container {
        display: none;
    }


   /* Conteneur principal qui simule la page */
    .page-container-tel {
        width: 100%;
        max-width: 1200px; /* Largeur maximale de votre contenu */
        margin: 0 auto; /* Centre la page */
        padding: 50px 20px; /* Espace autour du contenu */
        box-sizing: border-box;
        color: var(--text-color);
        margin-top: 0px;
                /* --- LES 3 LIGNES MANQUANTES POUR L'EFFET --- */
        opacity: 0;                     /* 1. On la cache au départ */
        transform: translateY(30px);    /* 2. On la descend de 30px */
        /* 3. On ajoute 'opacity' et 'transform' dans la transition */
        transition: transform 0.6s ease-out, opacity 0.8s ease-out, box-shadow 0.3s ease-in-out;
    }

    .page-container-tel.is-visible {
        /* 2. État Final (Visible) - L'élément revient à sa position normale et est visible */
        opacity: 1;
        transform: translateY(0); /* Retour à la position normale (effet de "levé") */
    
   
    }







    /* --- SECTION 2 : Contenu principal --- */
    .main-content-section {
        display: flex;
        
        align-items: flex-start;
        position: relative;
        padding-bottom: 100px; /* Espace pour les infos du pied de page */
        flex-wrap: wrap;
        gap: 30px;
    }   

    .background-text {
        position: absolute;
        bottom: -10px;
        
        /* ÉTAPE CLÉ : On force le texte à ignorer le padding du parent */
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        top: 400px;
        
        font-size: 15vw;
        font-weight: 900;
        color: #ca0013; 
        opacity: 0.07;
        line-height: 1;
        z-index: -1;
        white-space: nowrap;
        overflow: hidden;
        display: flex;
        pointer-events: none;
    }

    .background-text span {
        display: inline-block;
        animation: defilement-infini 320s linear infinite;
    }

    @keyframes defilement-infini {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* Colonne de gauche (Texte/Stats) */
    .info-block {
    /* Ajuster la base pour qu'elle puisse tenir avec l'autre colonne et l'espace entre les deux */
        flex-basis: calc(60% - 15px); /* 60% pour la colonne de gauche */
        max-width: 55%; /* Assure que le bloc ne s'étend pas trop */
        padding-right: 0;
        margin-top: 50px;
        margin-top: 0px;
        flex-grow: 1;
        
        
        /* 🔑 Rendre ce bloc Flexbox pour organiser Title et Stats */
        display: flex;
        flex-direction: column;
    }

    .name-title {
        font-size: 3.5vw;
        font-weight: bold;
        color: #ca0013;
        margin-bottom: 10px;
        
    }

    .description-text {
        font-size: 0.7em;
        line-height: 1.5;
        margin-bottom: 0px;
        font-weight: 300;
        top: 300px;
    }

    /* Conteneur des statistiques */
    .stats-container {
        display: flex;
        flex-direction: column;
        gap: 13px; /* Espacement entre les blocs de stats */
        padding: 0px;
        top: 200px;

    }

    .stat-item {
        display: flex;
        flex-direction: column;
    }

    .stat-number {
        font-size: 3.5vw;
        font-weight: bold;
        color: #ca0013;
        line-height: 1.2;
    }

    .stat-label {
        font-size: 2.3vw;
        text-transform: uppercase;
        color: black;
        font-weight: 500;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    /* Colonne de droite (Photo) */
    .photo-block {
        flex-basis: calc(40% - 15px);
        /* Assure que la photo ne dépasse pas en hauteur pour un aspect carré/rectangulaire */
        max-height: 500px;
        max-width: 40%; 
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        margin-top: 10px;
    }

    .photo-block img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* Assure que l'image couvre le bloc sans être déformée */
        /* La photo semble avoir une légère bordure ou un effet de découpe */
        border-radius: 5px; /* Optionnel */
    }

    /* --- SECTION 3 : Infos Atelier et Carte (Pied de page) --- */
    .footer-info-section {
        display: flex;
        justify-content: space-between;
        align-items: flex-end; /* Alignement en bas */
        margin-top: 50px;
        flex-wrap: nowrap;
        opacity: 0;                     /* 1. On la cache au départ */
        transform: translateY(30px);    /* 2. On la descend de 30px */
        /* 3. On ajoute 'opacity' et 'transform' dans la transition */
        transition: transform 0.6s ease-out, opacity 0.8s ease-out, box-shadow 0.3s ease-in-out;
    }

    .footer-info-section.is-visible {
        /* 2. État Final (Visible) - L'élément revient à sa position normale et est visible */
        opacity: 1;
        transform: translateY(0); /* Retour à la position normale (effet de "levé") */
    
   
    }




    /* Nouveau conteneur pour l'empilement de gauche */
    .left-stack-container {
        display: flex;
        flex-direction: column;
        /* Prend la place nécessaire dans la ligne */
        flex-basis: 35%; /* Laisser de la place pour la carte */
        max-width: 40%;
    }


    .atelier-image-block {
        
        max-width: 300px;
        margin-top: 20px;
    }

    .atelier-image-block img, .map-block img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 5px; /* Optionnel */
    }

    .detailed-info-container {
        flex-basis: 30%; /* Bloc de stats du bas */
        display: flex;
        flex-grow: 1;
        
        gap: 30px; 
      
        
        flex-direction: column;
    
    }




    /* Reprend le style de stat-item mais avec un espacement adapté */
    .detailed-info-item {
        display: flex;
        flex-direction: column;

    }
    .detailed-info-item .stat-number {
        /* Le style est hérité de .stat-number mais ajusté pour être plus petit en bas */
        font-size: 3.5vw; 
    }
    .detailed-info-item .stat-label {
        flex-wrap: wrap;
    }

    .map-container-tel {
        display: block !important;
        min-height: 300px !important;
        visibility: visible !important;
        position: relative !important;
        border-radius: 10px;
        padding-left: 10px;
        
    }
    #google-map-tel {
        display: block !important;
        width: 100% !important;
        height: 300px !important;
        border-radius: 10px;
    }



    
    /* --- 6. DIVERS ET FOOTER --- */

    .section-divider {
        /* Dimensions du trait */
        width: 60%;
        height: 1px; /* Finesse du trait */

        /* Centrage */
        margin: 20px auto; /* Centre horizontalement (auto) et ajoute 20px de marge verticale */

        /* Style du trait */
        background-color: #EB7F2A; /* Couleur grise légère */
        border: none; /* S'assurer qu'il n'y a pas de bordure par défaut */
        margin-bottom: 60px;
        margin-top: 80px;
    }


    p {
        color: black;
    }

/* fin gg------------------------------------------------------------------------------------------------------------------------------------------------------------------fin gg*/




    .cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #E8E8E8;
        color: #333; /* Changé en sombre car le fond est gris très clair (#E8E8E8) */
        padding: 20px;
        border-radius: 10px;
        z-index: 1000;
        display: none; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        
        /* --- AJUSTEMENT DES MARGES --- */
        width: calc(100% - 100px); /* 100% moins 50px de chaque côté */
        max-width: none; /* On retire le max-width pour forcer le respect des 50px sur grand écran */
        /* Si vous voulez quand même une limite sur très grand écran, gardez un max-width élevé */
        
        text-align: center;
    }


    h6 {
        font-size: 18px;
        font-weight: normal;
    }

    .cookie-buttons { margin-top: 15px; display: flex; gap: 10px; justify-content: center; }

    .btn-accept { background: transparent; border: 1px solid orange; color: orange; padding: 10px 20px; cursor: pointer; border-radius: 5px; }
    .btn-refuse { background: transparent; border: 1px solid orange; color: orange; padding: 10px 20px; cursor: pointer; border-radius: 5px; }



    .map-placeholder {
        width: 100%; height: 100%;
        background: #f0f0f0;
        display: flex; align-items: center; justify-content: center;
        text-align: center; padding: 20px;
    }

        /* Style pour le bouton En savoir plus */
    .btn-info {
        font-size: 0.85em;
        color: #144b63; /* Couleur de votre charte */
        text-decoration: none;
        align-self: center; /* Pour bien l'aligner si vous utilisez flex */
        padding: 10px;
        transition: opacity 0.3s;
    }

    .btn-info:hover {
        opacity: 0.7;
        
    }



    #popup-container {
        display: none; 
        position: fixed; 
        inset: 0;
        top: 160px; /* 1. AJUSTE ICI : Mets la hauteur exacte de ton header (ex: 80px) */
        background: rgba(0,0,0,0.8); 
        z-index: 999; /* 2. RÉDUIS ICI : Assure-toi que ton Header a un z-index de 1000 ou plus */
        justify-content: center; 
        align-items: center;
        padding: 20px;
        backdrop-filter: blur(12px) brightness(0.85);
        -webkit-backdrop-filter: blur(12px) brightness(0.85);
    }

    /* On centre le contenu dans l'espace restant */
    .popup-content {
        background: white; 
        width: 100%;
        max-width: 1100px; 
        padding: 60px;
        border-radius: 10px; 
        position: relative; 
        overflow-y: auto;
        max-height: 80vh; /* On réduit un peu la hauteur max pour tenir compte du header */
        animation: popupFadeScale 0.4s ease-out;
    }
    .popup-grid-layout {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
        position: relative; 
        z-index: 2;
    }

    @keyframes popupFadeScale {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    /* Texte */
    .name-title { color: #c41e24; font-size: 3rem; line-height: 1; margin-bottom: 20px; margin-top: 0; }
    .description-text { font-size: 1.1rem; color: #444; margin-bottom: 30px; }

    .stats-container { border-top: 1px solid #eee; padding-top: 20px; margin-bottom: 20px; display: flex; gap: 20px; }
    .stat-number2 { font-size: 2.5rem; color: #c41e24; font-weight: 900; display: block; }

    .secondary-text { font-size: 0.9rem; color: #777; border-left: 3px solid #c41e24; padding-left: 15px; }

    /* Photos */
    .photo-grid { display: flex; gap: 15px; height: 400px; margin-bottom: 20px; }
    .img-large { width: 60%; object-fit: cover; border-radius: 15px; }
    .img-stack { width: 40%; display: flex; flex-direction: column; gap: 15px; }
    .img-stack img { height: calc(50% - 7.5px); object-fit: cover; border-radius: 15px; }

    /* Bouton */
    .cta-button {
        display: inline-block; 
        background: #fff; 
        color: white;
        padding: 15px 30px; 
        border-radius: 8px; 
        text-decoration: none;
        font-weight: bold; 
        float: right;
        transition: background 0.3s ease;
    }

    .cta-button:hover {
        background: #a3181d;
        color: white;
        text-decoration: none;
    }

    /* Amélioration du bouton fermer sur mobile */
    .close-button {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 3rem; /* Plus grand pour le pouce */
        color: #333;
        cursor: pointer;
        z-index: 100;
        padding: 10px; /* Zone de clic agrandie sans changer la taille visuelle */
        top: 5px;
        right: 10px;
        font-size: 3.5rem; /* Encore plus grand sur petit écran */
    
    }

    .popup-content {
        padding: 40px 20px 30px 20px; /* Réduction du padding */
    }

    .popup-grid-layout {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 20px;
    }

    .name-title {
        font-size: 2rem; /* Titre plus petit */
        text-align: center;
    }

    .description-text {
        font-size: 1rem;
        text-align: center;
    }

    .stats-container {
        justify-content: center;
        flex-wrap: wrap; /* Aligne les dates sur une ligne ou deux */
    }

    .stat-number2 {
        font-size: 1.8rem;
    }

    /* Inversion de l'ordre pour mettre les photos sous le texte ou vice-versa */
    .col-left { order: 1; }
    .col-right { order: 2; }

    .photo-grid {
        height: 250px; /* Plus petit sur mobile */
    }

    .cta-button {
        float: none;
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    
    .background-text {
        display: none; /* On cache le texte de fond qui peut gêner la lisibilité sur petit écran */
    }






    footer {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-nav ul {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .main-nav li {
        text-align: center;
        width: 100%;
    }
    
    .main-nav a, .main-nav span {
        font-size: 0.85em;
        color: #144b63; 
        white-space: normal; /* Permet aux liens longs de se couper si nécessaire */
    }


        /*DEBUT FOOTER----------------------------------------------------------------------------------------------------------------------------------------------------------------------------DEBUT FOOTER*/
    /* --- DEBUT FOOTER ADAPTATIF --- */

    footer {
        width: 100%;
        padding: 20px 10px; /* Un peu moins de padding sur mobile */
        background-color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 999;
    }

    .main-nav {
        width: 100%;
        max-width: 1200px;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column; /* On empile les éléments verticalement sur mobile */
        gap: 15px; /* Espace entre le copyright, les logos et les mentions */
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Style pour le groupe de réseaux sociaux */
    .footer-socials {
        display: flex;
        gap: 20px; /* Espace entre les icônes elles-mêmes */
        justify-content: center;
    }

    .footer-socials a {
        font-size: 1.4em; /* Taille des logos sur mobile */
        color: #000000;
        display: inline-block;
    }

    .main-nav a,
    .main-nav span {
        text-decoration: none;
        color: #000000;
        font-size: 0.85em; /* Texte légèrement plus petit pour mobile */
        text-align: center;
    }

}
