  /* ==================== 
           Réinitialisation globale 
        ==================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins", sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            overflow-x: hidden;
            background-color: #0c3e74;
        }

        /* ==================== 
           Header Principal 
        ==================== */
      
        .header {
            width: 100%;
            min-height: 100vh;
            background: linear-gradient(#0c3e74 0%, #2c455f 49%, #05172a 100%);
            padding: 0 10%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            position: relative;
            z-index: 1;
            /* Assurer un espacement équilibré */
            gap: clamp(1rem, 4vh, 3rem);
        }

        .header h1 {
            font-size: clamp(1.8rem, 5vw, 4rem);
            line-height: 1.2;
            color: #fff;
            text-align: center;
            font-weight: 700;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            /* Suppression des marges pour un meilleur contrôle */
            margin: 0;
            /* Assurer une position stable */
            flex-shrink: 0;
        }

        /* ==================== 
        Conteneur du Rafale - Version améliorée
        ==================== */
        .rafale-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column; /* CHANGEMENT ICI */
            width: 100%;
            max-width: 800px;
            height: auto; /* CHANGEMENT ICI */
            margin: 0 auto;
            z-index: 1;
        }

        .rafale {
            position: relative;
            z-index: 2;
            width: min(75%, 600px);
            height: auto;
            display: block;
            margin: 0 auto;
        }

        .circle {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: clamp(300px, 60vw, 800px);
            height: clamp(300px, 60vw, 800px);
            background: radial-gradient(circle, rgba(202, 200, 200, 0.888) 0%, rgba(255, 255, 255, 0) 60%);
            border-radius: 50%;
            filter: blur(20px);
            z-index: 0;
        }


        /* ==================== 
           Flapboard Responsive
        ==================== */
        /* Corriger les dimensions du board */
        .board {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: clamp(3px, 2vw, 8px);
            margin: 2rem 0;
            flex-wrap: wrap;
            z-index: 10; /* Augmenter le z-index */
        }

        .letter {
            position: relative;
            width: clamp(30px, 6vw, 55px);    /* Minimum plus grand */
            height: clamp(40px, 7vw, 65px);   /* Minimum plus grand */
            perspective: 600px;
            overflow: hidden;
        }

        .flap {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #222;
            border: 2px solid #555;
            border-radius: 5px;
            color: white;
            font-weight: 600;
            font-size: clamp(0.8rem, 2.5vw, 1.8rem);
            transform: rotateX(0deg);
            transition: transform 0.15s ease-out;
            text-align: center;
            line-height: 1;
        }

        /* ==================== 
           Bouton Décollage Responsive
        ==================== */
        .takeoff-button {
            position: relative;
            margin-top: -5rem;
            padding: clamp(12px, 3vw, 15px) clamp(30px, 8vw, 40px);
            background: linear-gradient(45deg, #020269, #1e49f7);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: clamp(14px, 4vw, 18px);
            font-weight: 600;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(30, 73, 247, 0.3);
            transition: all 0.3s ease;
            overflow: hidden;
            z-index: 10;
        }

        .takeoff-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(30, 73, 247, 0.5);
            background: linear-gradient(45deg, #00046d, #2636e7);
        }

        .takeoff-button:active {
            transform: translateY(0);
        }

        /* ==================== 
           Nuages Responsives
        ==================== */
        .clouds-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
            z-index: 0;
        }

        

        .cloud {
            position: absolute;
            opacity: 1;
            transition: all 1s ease-out;
            pointer-events: none;
        }

        .cloud img {
            width: 100%;
            height: auto;
            filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
        }

        .cloud-left {
            left: -20px;
            top: 50%;
            transform: translateY(-50%);
        }

        .cloud-right {
            right: -20px;
            top: 50%;
            transform: translateY(-50%);
            transform: scaleX(-1);
        }

        .takeoff-button:hover ~ .clouds-container .cloud-left {
            opacity: 0.8;
            left: 20px;
        }

        .takeoff-button:hover ~ .clouds-container .cloud-right {
            opacity: 0.8;
            right: 20px;
        }

        .clouds-container.scroll-active .cloud-left {
            opacity: 0.8;
            left: 20px;
        }

        .clouds-container.scroll-active .cloud-right {
            opacity: 0.8;
            right: 20px;
        }

        /* ==================== 
           Histoire Responsive
        ==================== */
        .Histoire {
            width: 100%;
            background: linear-gradient(#05172a 0%, #050518 20%, #04051e 80%, #050518 100%);
            padding: clamp(30px, 8vw, 50px) 5%;
            flex-direction: column;
        }

        .Histoire h1 {
            font-size: clamp(2.5rem, 12vw, 4rem);
            color: #fff;
            margin-bottom: clamp(15px, 4vw, 20px);
            text-align: center;
            font-weight: 800;
        }

        .Histoire p {
            color: #fff;
            margin-bottom: 30px;
            line-height: 1.6;
            font-size: clamp(14px, 3.5vw, 16px);
            text-align: center;
            max-width: 800px;
            margin: 0 auto 30px auto;
        }

        .LogoHistoriques {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: clamp(15px, 4vw, 20px);
            padding: 20px 0 50px 0;
            max-width: 600px;
            margin: 0 auto;
        }

        .LogoHisto img {
            width: 100%;
            max-width: 150px;
            height: clamp(100px, 20vw, 150px);
            object-fit: contain;
            border-radius: 15px;
            background-color: rgba(255,255,255,0.05);
            padding: 10px;
            transition: all 0.3s ease;
            margin: 0 auto;
            display: block;
        }

        

        /* ==================== 
           Nos activités Responsive
        ==================== */
        .Nos_activites {
            width: 100%;
            color: #fff;
            background: linear-gradient(#050518 0%, #04051e 20%, #050518 80%, #0c3e74 100%);
            padding: clamp(30px, 8vw, 50px) 5%;
            flex-direction: column;
        }

        .Nos_activites > h1,
        .Cultureetsport h1,
        .Nos_projets h1,
        .StrategieetCommunication h1 {
            font-size: clamp(1.5rem, 6vw, 2.5rem);
            margin: clamp(20px, 5vw, 40px) 0 clamp(15px, 4vw, 20px) 0;
            text-align: center;
            font-weight: 700;
        }

        .Pole {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            margin: clamp(20px, 5vw, 30px) 0;
            padding: 20px;
            background: rgba(255,255,255,0.02);
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
        }

        .Pole:hover {
            background: rgba(255,255,255,0.05);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .logoPole img {
            width: clamp(120px, 25vw, 160px);
            height: auto;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .logoPole img:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            filter: brightness(1.2) contrast(1.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .text {
            text-align: center;
            max-width: 500px;
        }

        .text h2 {
            font-size: clamp(1.2rem, 4vw, 1.5rem);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .text p {
            font-size: clamp(14px, 3.5vw, 16px);
            line-height: 1.6;
            opacity: 0.9;
        }

        /* ==================== 
           Partenaires Responsive
        ==================== */
       .NospartenairesGlobaux {
            width: 100%;
            background: #0c3e74;
            padding: clamp(30px, 8vw, 50px) 0;
            flex-direction: column;
            overflow: hidden;
        }

        .NospartenairesGlobaux h1 {
            color: #fff;
            text-align: center;
            margin-bottom: clamp(30px, 6vw, 40px);
            font-size: clamp(1.5rem, 6vw, 2.5rem);
            font-weight: 700;
        }

        .carousel-container {
            width: 100%;
            overflow: hidden;
            position: relative;
            /* Masquer le débordement proprement */
            mask: linear-gradient(to right, 
                transparent 0%, 
                black 5%, 
                black 95%, 
                transparent 100%);
            -webkit-mask: linear-gradient(to right, 
                transparent 0%, 
                black 5%, 
                black 95%, 
                transparent 100%);
        }

        .PartenersGlobaux {
            display: flex;
            align-items: center;
            gap: clamp(20px, 5vw, 40px);
            /* Animation plus lente et fluide */
            animation: scroll-left 40s linear infinite;
            width: fit-content;
            /* Assurer que l'animation démarre immédiatement */
            animation-delay: 0s;
            animation-fill-mode: both;
        }

        /* Animation améliorée pour un défilement parfaitement continu */
        @keyframes scroll-left {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* Pause au survol */
        .PartenersGlobaux:hover {
            animation-play-state: paused;
        }

        .LogoPartenaires {
            flex-shrink: 0;
            /* Assurer que les éléments apparaissent immédiatement */
            opacity: 1;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }

        .LogoPartenaires img {
            width: clamp(100px, 20vw, 150px);
            height: clamp(100px, 20vw, 150px);
            object-fit: contain;
            border-radius: 15px;
            background-color: rgba(255, 255, 255, 0.1);
            padding: clamp(5px, 2vw, 10px);
            transition: all 0.3s ease;
            /* Assurer le chargement immédiat des images */
            display: block;
        }

        .LogoPartenaires img:hover {
            transform: scale(1.1);
            background-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        }

        /* Amélioration pour le mobile */
        @media (max-width: 768px) {
            .PartenersGlobaux {
                animation-duration: 30s; /* Plus rapide sur mobile */
            }
        }

        /* Préchargement des images pour éviter les délais d'apparition */
        .LogoPartenaires img {
            image-rendering: auto;
            image-rendering: crisp-edges;
            image-rendering: -webkit-optimize-contrast;
        }

         /* ==================== 
           Reseaux Responsive
        ==================== */
        .ReseauxSociaux {
            width: 100%;
            background: linear-gradient(#0c3e74 0%, #09091c 100%);
            padding: clamp(30px, 8vw, 50px) 5%;
            flex-direction: column;
        }

        .ReseauxSociaux h1 {
            color: #fff;
            text-align: center;
            margin-bottom: clamp(30px, 6vw, 20%);
            font-size: clamp(1.5rem, 6vw, 2.5rem);
            font-weight: 700;
        }

        .logosReseau {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: clamp(15px, 4vw, 20px);
            padding: 20px 0 50px 0;
            max-width: 600px;
            margin: 0 auto;
        }

        .Reseau img {
            width: 60%;
            max-width: 120px;
            height: clamp(100px, 20vw, 100px);
            object-fit: contain;
            border-radius: 15px;
            background-color: rgba(255,255,255,0.05);
            padding: 10px;
            transition: all 0.3s ease;
            margin: 0 auto;
            display: block;
            cursor: pointer;
        }

        .footer {
            background-color: #09091c ;
        }


        /* ==================== 
           Media Queries Spécifiques
        ==================== */
        @media (min-width: 768px) {
            
            .Pole {
                flex-direction: row;
                text-align: left;
                gap: 30px;
            }

            .text {
                text-align: left;
                max-width: none;
                flex: 1;
            }
        }

        @media (max-width: 480px) {
             body {
                overflow-x: hidden;
                background-color: #0e3763;
            }
            
            .header {
                padding: 0 3%;
                min-height: 90vh;
            }

            .rafale {
                width: min(90%, 600px);
                height: auto;
            }


            .cloud img {
                width: 70%;
                height: auto;
                filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
            }

            .cloud-left {
                left: -100px;
                top: 50%;
                transform: translateY(-30%);
            }

            .cloud-right {
                right: -100px;
                top: 50%;
                transform: translateY(-20%);
                transform: scaleX(-1);
            }

            .clouds-container.mobile-clouds-visible .cloud-left,
            .clouds-container.scroll-active .cloud-left {
                opacity: 0.6;
                left: 10px;
            }

            .clouds-container.mobile-clouds-visible .cloud-right,
            .clouds-container.scroll-active .cloud-right {
                opacity: 0.6;
                right: 10px;
            }

            .header h1 {
                font-size: clamp(1.8rem, 8vw, 2.5rem);
                margin-top: 0.1rem;
                margin-bottom: 1rem;
            }

            .board {
                gap: 2px;
                margin: 0.5rem 0;
            }

            .letter {
                width: 20px;
                height: 35px;
            }

            .flap {
                font-size: 0.7rem;
                border: 1px solid #555;
            }

            .takeoff-button {
                font-size: 12px;
                padding: 10px 20px;
                margin-top: 1rem;
            }

            .Histoire h1 {
                font-size: 2rem;
            }

            .LogoHistoriques {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .Pole {
                margin: 15px 0;
                padding: 15px;
            }

            .logoPole img {
                width: 100px;
            }

            .logosReseau {
                grid-template-columns: repeat(3, 1fr);
                gap: 5px;
                margin-bottom: clamp(30px, 6vw, 10%);
            }

            .Reseau img {
                width: 80%;
                max-width: 120px;
                height: clamp(100px, 20vw, 100px);
                
            }
        }

        /* ==================== 
           Animations et Transitions
        ==================== */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

         /* ==================== 
           Media Query pour Tablettes Portrait (768px - 1024px)
        ==================== */
        @media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
            .header {
                padding: 0 4%;
                min-height: 95vh;
            }

            .header h1 {
                font-size: clamp(2.5rem, 7vw, 3.5rem);
                margin-top: 6rem;
                margin-bottom: 1.5rem;
            }

            .rafale {
                width: min(70%, 500px);
            }


            .board {
                gap: clamp(4px, 2.5vw, 8px);
                font-size: clamp(1.2rem, 3.5vw, 1.8rem);
                margin: 1.5rem 0;
            }

            .letter {
                width: clamp(30px, 5.5vw, 45px);
                height: clamp(35px, 6.5vw, 55px);
            }

            .flap {
                font-size: clamp(0.7rem, 2.2vw, 1.3rem);
            }

            .takeoff-button {
                padding: clamp(14px, 3.5vw, 18px) clamp(35px, 9vw, 45px);
                font-size: clamp(16px, 4.5vw, 20px);
                margin-top: 2.5rem;
            }

            .cloud img {
                width: 90%;
            }

            .cloud-left {
                left: -120px;
                top: 45%;
            }

            .cloud-right {
                right: -120px;
                top: 45%;
            }

            .clouds-container.scroll-active .cloud-left,
            .takeoff-button:hover ~ .clouds-container .cloud-left {
                left: 15px;
            }

            .clouds-container.scroll-active .cloud-right,
            .takeoff-button:hover ~ .clouds-container .cloud-right {
                right: 15px;
            }

            .Histoire {
                padding: clamp(40px, 6vw, 60px) 4%;
            }

            .Histoire h1 {
                font-size: clamp(3rem, 8vw, 3.8rem);
                margin-bottom: 25px;
            }

            .Histoire p {
                font-size: clamp(16px, 2.8vw, 18px);
                max-width: 700px;
                margin-bottom: 35px;
            }

            .LogoHistoriques {
                grid-template-columns: repeat(4, 1fr);
                gap: clamp(20px, 3vw, 25px);
                max-width: 700px;
            }

            .LogoHisto img {
                height: clamp(110px, 15vw, 130px);
            }

            .Nos_activites {
                padding: clamp(40px, 6vw, 60px) 4%;
            }

            .Nos_activites > h1,
            .Cultureetsport h1,
            .Nos_projets h1,
            .StrategieetCommunication h1 {
                font-size: clamp(2rem, 5vw, 2.8rem);
                margin: clamp(30px, 4vw, 45px) 0 clamp(20px, 3vw, 25px) 0;
            }

            .Pole {
                flex-direction: row;
                gap: 25px;
                margin: clamp(25px, 4vw, 35px) 0;
                padding: 25px;
                text-align: left;
            }

            .logoPole img {
                width: clamp(140px, 18vw, 180px);
                flex-shrink: 0;
            }

            .text {
                text-align: left;
                flex: 1;
            }

            .text h2 {
                font-size: clamp(1.3rem, 3.5vw, 1.7rem);
                margin-bottom: 12px;
            }

            .text p {
                font-size: clamp(15px, 2.8vw, 17px);
            }

            .NospartenairesGlobaux {
                padding: clamp(40px, 6vw, 60px) 0;
            }

            .NospartenairesGlobaux h1 {
                font-size: clamp(2rem, 5vw, 2.8rem);
                margin-bottom: clamp(35px, 5vw, 45px);
            }

            .LogoPartenaires img {
                width: clamp(120px, 15vw, 160px);
                height: clamp(120px, 15vw, 160px);
                padding: clamp(8px, 2vw, 12px);
            }

            .ReseauxSociaux {
                padding: clamp(40px, 6vw, 60px) 4%;
            }

            .ReseauxSociaux h1 {
                font-size: clamp(2rem, 5vw, 2.8rem);
                margin-bottom: clamp(35px, 5vw, 45px);
            }

            .logosReseau {
                grid-template-columns: repeat(3, 1fr);
                gap: clamp(25px, 4vw, 30px);
                max-width: 500px;
            }

            .Reseau img {
                width: 60%;
                max-width: 140px;
                height: clamp(110px, 15vw, 120px);
                padding: 12px;
            }
        }

        @media (hover: none) and (pointer: coarse) {
            .logoPole img:hover,
            .LogoGlobaux img:hover,
            .LogoHisto img:hover {
                transform: none;
            }

            .logoPole img:active,
            .LogoPartenaires img:active,
            .LogoHisto img:active {
                transform: scale(1.05);
            }

            .takeoff-button:hover {
                transform: none;
            }

            .takeoff-button:active {
                transform: scale(0.95);
            }
        }

        