:root {
    --jmz-blue: #0A1931; /* Bleu Institutionnel profond */
    --jmz-blue-rgb: 10, 25, 49;
    --jmz-red: #E63946;  /* Rouge d'action républicaine */
    --jmz-green: #2A9D8F; /* Vert transition écologique */
    --bg-light: #F8F9FA;
    --text-main: #333333;
    --whitespace: 100px;
    --mobile-padding: 5%;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* --- TYPOGRAPHIE FLUIDE --- */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem) !important; }
h2 { font-size: clamp(1.2rem, 3vw, 2rem) !important; }
.hero-subtext { font-size: clamp(1rem, 2vw, 1.25rem) !important; }

.btn-cta, .btn-primary, .btn-outline, .btn-primary-large {
    font-size: clamp(14px, 1.5vw, 18px) !important;
    white-space: nowrap; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* =========================================
   LA NAVBAR GLOBALE (STYLE APPLE / GOOGLE)
   ========================================= */
nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px; /* Largeur max légèrement réduite pour un côté plus premium */
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* Ombre plus douce et subtile */
    padding: 5px 20px; /* <--- CURE D'AMINCISSEMENT : barre beaucoup plus fine */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Hauteur fixe très élégante */
}

/* =========================================
   FORCER TOUT SUR UNE SEULE LIGNE (Le correctif)
   ========================================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px; /* Gère l'espace entre les menus intelligemment */
    white-space: nowrap; /* Interdit strict le retour à la ligne pour le menu */
}

/* STYLE DU NOM (Logo) */
.nav-brand { white-space: nowrap; } /* Interdit à "Zulesi" de passer en dessous */
.nav-brand a { color: var(--jmz-blue) !important; font-size: 1.25rem; font-weight: 800; } /* Légèrement affiné */
.nav-brand a span { color: var(--jmz-red) !important; }

/* BOUTONS DU MENU BUREAU */
.dropbtn, .nav-single { 
    text-decoration: none; 
    color: var(--jmz-blue); 
    font-weight: 700; 
    margin-left: 0; /* Géré automatiquement par le 'gap' au-dessus */
    cursor: pointer; 
    transition: color 0.3s; 
    padding: 5px 0; 
    display: inline-block; 
    background: none; 
    border: none; 
    font-size: 0.95rem; /* Typo plus élégante et moderne */
    font-family: inherit; 
}
.dropbtn:hover, .nav-single:hover { color: var(--jmz-red); }

.dropdown { position: relative; display: inline-block; }

/* =========================================
   ZONE D'ACTION (Pilule affinée)
   ========================================= */
.action-zone {
    display: flex; 
    align-items: center;
    gap: 8px; /* Boutons plus rapprochés */
    background-color: rgba(0, 0, 0, 0.04); 
    padding: 4px 4px 4px 15px; /* Bulle grise plus serrée autour des boutons */
    border-radius: 50px; 
    margin-left: 10px; /* L'éloigne un peu du menu FAQ */
}

/* Style du bouton "Me contacter" */
.btn-contact {
    background: transparent; color: var(--jmz-blue); font-weight: 700;
    text-decoration: none; padding: 6px 12px; border-radius: 50px;
    transition: all 0.3s ease; font-size: 0.95rem;
}
.btn-contact:hover {
    background-color: rgba(10, 25, 49, 0.05); color: var(--jmz-red); transform: scale(1.02); 
}

/* Style du bouton Don */
.btn-donate {
    background-color: var(--jmz-red); color: white !important; 
    padding: 8px 18px; /* Bouton plus fin */
    border-radius: 50px; font-weight: 700; text-decoration: none; margin-left: 0;
    display: inline-flex; align-items: center; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    font-size: 0.95rem; 
    animation: pulse-red 2s infinite; animation-delay: 10s;
}
.btn-donate:hover { transform: scale(1.05); background-color: #ff4d5a; box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5); }

/* Adaptation mode sombre (VOD) */
body.vod-page .action-zone { background-color: rgba(255, 255, 255, 0.08); }
body.vod-page .btn-contact { color: #ffffff; }
body.vod-page .btn-contact:hover { background-color: rgba(255, 255, 255, 0.1); }

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* SOUS-MENUS BUREAU (Affichage au survol) */
.dropdown-content {
    visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 30px;
    background-color: white; min-width: 220px; box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
    border-radius: 4px; border-top: 3px solid var(--jmz-red); z-index: 1001;
    transition: all 0.3s ease; transform: translateY(10px); display: flex; flex-direction: column;
}
.dropdown-content a { color: var(--jmz-blue); padding: 12px 20px; text-decoration: none; display: block; font-size: 0.95rem; font-weight: 600; border-bottom: 1px solid #f0f0f0; transition: 0.2s; margin-left: 0; }
.dropdown-content a:hover { background-color: #f8f9fa; color: var(--jmz-red); padding-left: 25px; }
.dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(0); }

.btn-cta { background-color: var(--jmz-red); color: white !important; padding: 10px 20px; border-radius: 5px; margin-left: 30px; text-decoration: none; font-weight: 700; transition: transform 0.2s; }
.btn-cta:hover { transform: translateY(-2px); }

/* =========================================
   ZONE D'ACTION (Pilule regroupant les boutons)
   ========================================= */
.action-zone {
    display: inline-flex;
    align-items: center;
    gap: 15px; 
    background-color: rgba(0, 0, 0, 0.04); 
    padding: 6px 6px 6px 20px; 
    border-radius: 50px; 
    margin-left: 20px; 
    vertical-align: middle; 
}

/* Adaptation de la pilule pour le mode sombre (Page Actualité) */
body.vod-page .action-zone {
    background-color: rgba(255, 255, 255, 0.08); 
}

/* Style du bouton "Me contacter" (Ghost Button) */
.btn-contact {
    background: transparent;
    color: var(--jmz-blue);
    font-weight: 700;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Animation douce au survol */
.btn-contact:hover {
    background-color: rgba(10, 25, 49, 0.05); 
    color: var(--jmz-red);
    transform: scale(1.02); 
}

/* Adaptation du texte pour la page Actualité (VOD) */
body.vod-page .btn-contact { color: #ffffff; }
body.vod-page .btn-contact:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Cache le bouton Burger sur ordinateur */
.burger-checkbox, .burger-label { display: none; }

/* --- HERO SECTION HYBRIDE --- */
.hero-hybride { display: flex; flex-wrap: nowrap; min-height: 100vh; height: auto; background-color: var(--jmz-blue); }
.hero-left { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; padding: 120px 5% 80px 10vw; background-color: var(--jmz-blue); color: white; position: relative; z-index: 2; }
.hero-text-content { max-width: 650px; }
.hero-hybride h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: white; letter-spacing: -1px; }
.hero-subtext { font-size: 1.25rem; font-weight: 400; color: #f0f0f0; margin-bottom: 40px; line-height: 1.6; }
.hero-actions { display: flex; gap: 20px; }
.btn-primary { background-color: var(--jmz-red); color: white; padding: 15px 30px; text-decoration: none; font-weight: 700; border-radius: 4px; }
.btn-primary:hover { background-color: #d3161c; transform: translateY(-3px); }
.btn-outline { border: 2px solid white; color: white; padding: 15px 30px; text-decoration: none; font-weight: 700; border-radius: 4px; }
.btn-outline:hover { background-color: white; color: var(--jmz-blue); }
.hero-right { flex: 1 1 50%; position: relative; background-image: url('JMZ-2027-PP.jpg'); background-size: cover; background-position: center top; }
.hero-right::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, var(--jmz-blue) 0%, rgba(var(--jmz-blue-rgb), 0.3) 25%, rgba(var(--jmz-blue-rgb), 0) 80%); }

/* =========================================
   BOUTON PARTICIPATIF (ORANGE VIBRANT)
   ========================================= */
.hero-actions-participatory {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.btn-participatory {
    background-color: #F39C12; /* Orange chaleureux et dynamique */
    color: white !important;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    border: none;
}

.btn-participatory:hover {
    background-color: #E67E22;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.4);
}

/* =========================================
   ANIMATION DE SCROLL (GUIDE VISUEL)
   ========================================= */
.scroll-indicator {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
    margin-left: 10px;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-indicator p {
    font-size: 0.9rem;
    color: #A0B2C9;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow-wave {
    width: 15px;
    height: 15px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    animation: arrowJump 2s infinite;
}

@keyframes arrowJump {
    0% { transform: rotate(45deg) translate(0, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(45deg) translate(10px, 10px); opacity: 0; }
}

/* Adaptation Mobile */
@media screen and (max-width: 992px) {
    .hero-actions-participatory { align-items: center; }
    .btn-participatory { width: 100%; text-align: center; }
}

/* --- SECTIONS STANDARDS --- */
.section-classic { padding: var(--whitespace) 10vw; background-color: white; }
.section-title { font-size: 2.5rem; color: var(--jmz-blue); font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.section-subtitle { font-size: 1.1rem; color: #666; max-width: 700px; margin-bottom: 60px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.inst-card { background: var(--bg-light); border: 1px solid #EAEAEA; padding: 40px 30px; border-radius: 8px; transition: box-shadow 0.3s; }
.inst-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-header { display: inline-block; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; color: white; text-transform: uppercase; border-radius: 4px; margin-bottom: 20px; }
.card-header.blue { background-color: var(--jmz-blue); }
.card-header.green { background-color: var(--jmz-green); }
.card-header.red { background-color: var(--jmz-red); }
.inst-card h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--jmz-blue); }

.section-modern { padding: var(--whitespace) 10vw; background-color: var(--bg-light); }
.vision-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: center; }
.vision-text h3 { font-size: 2.2rem; color: var(--jmz-blue); font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.vision-text p { font-size: 1.1rem; color: #555; margin-bottom: 20px; }
.vision-list li { margin-bottom: 15px; list-style-type: none; position: relative; padding-left: 25px; }
.vision-list li::before { content: '→'; position: absolute; left: 0; color: var(--jmz-red); font-weight: bold; }
.vision-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-box { background: white; padding: 40px; border-left: 5px solid var(--jmz-blue); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.stat-number { display: block; font-size: 3rem; font-weight: 900; color: var(--jmz-blue); line-height: 1; margin-bottom: 10px; }
.stat-label { font-weight: 600; color: #666; }

.section-cta { padding: 80px 10vw; background-color: var(--jmz-blue); color: white; }
.section-cta h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-cta p { font-size: 1.2rem; margin-bottom: 40px; color: #A0B2C9; }
.btn-primary-large { background-color: var(--jmz-red); color: white; padding: 20px 40px; font-size: 1.2rem; display: inline-block; font-weight: 800; border-radius: 5px; text-decoration: none; }
footer { text-align: center; padding: 30px; background: #050d1a; color: #666; font-size: 0.9rem; }

/* --- WIDGETS PROGRESSION --- */
.progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: rgba(0,0,0,0.05); z-index: 2000; }
.progress-bar { height: 100%; background: var(--jmz-red); width: 0%; }
.scroll-widget { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; z-index: 1000; display: flex; align-items: center; justify-content: center; background: white; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.progress-circle { width: 100%; height: 100%; transform: rotate(-90deg); }
.bg-circle, .fg-circle { fill: none; stroke-width: 8; }
.bg-circle { stroke: #f0f0f0; }
.fg-circle { stroke: var(--jmz-blue); stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; }
#progress-text { position: absolute; font-size: 10px; font-weight: 800; color: var(--jmz-blue); }

/* --- DESIGN SYSTEM THÉMATIQUES --- */
.theme-header { padding: 150px 10vw 80px; text-align: center; }
.theme-header h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
.theme-header p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }
.bg-sec { background-color: #1A365D; border-bottom: 4px solid #8B4513; color: white; }
.strict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 80px 10vw; background: #F8F9FA; }
.strict-card { background: white; border-top: 4px solid #1A365D; padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.bg-mob { background-color: var(--jmz-blue); color: white; border-bottom: 4px solid #4A90E2; }
.bg-eco { background: linear-gradient(135deg, #2E8B57, #654321); color: white; }
.story-section { padding: 150px 20vw; background: white; text-align: center; }
.story-section h2 { color: #2E8B57; font-size: 2.5rem; margin-bottom: 30px; }
.bg-ter { background-color: #F9A826; color: var(--jmz-blue); }
.territoire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 80px 10vw; background: #FFF9F0; }
.ter-card { background: white; padding: 25px; border-radius: 10px; border-left: 5px solid #F9A826; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.bg-sol { background-color: #D53F8C; color: white; }
.wcag-section { padding: 80px 10vw; background: white; color: #111; font-size: 1.25rem; line-height: 1.8; }
.wcag-card { border: 2px solid #E2E8F0; padding: 40px; margin-bottom: 30px; border-radius: 8px; background: #fff; }
.wcag-card h2 { color: #D53F8C; font-size: 2rem; margin-bottom: 15px; }

/* =========================================
   MODALE DE CONTACT & CHATBOT (RÉPARÉS POUR PC)
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 49, 0.8); z-index: 2000;
    align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal-content {
    background-color: white; width: 90%; max-width: 500px;
    border-radius: 12px; padding: 40px 30px; position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: #999; cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: var(--jmz-red); }
.chat-buttons { display: flex; flex-direction: column; gap: 10px; }
.chat-btn { background-color: #f8f9fa; border: 2px solid #e9ecef; color: var(--jmz-blue); padding: 15px 20px; text-align: left; font-size: 1.05rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.chat-btn:hover { border-color: var(--jmz-red); background-color: white; transform: translateX(5px); }
.form-group { margin-bottom: 15px; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--jmz-blue); }

.bot-bubble {
    position: absolute; bottom: 70px; right: 0; background: white; width: 220px; padding: 15px; border-radius: 12px;
    border-bottom-right-radius: 4px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); border: 1px solid #eee;
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default; z-index: 1500;
}
.bot-bubble.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.bot-close { position: absolute; top: 5px; right: 10px; font-size: 1.2rem; color: #aaa; cursor: pointer; transition: color 0.2s; }
.bot-close:hover { color: var(--jmz-red); }
.bot-btn { background-color: var(--jmz-red); color: white; border: none; padding: 8px 15px; width: 100%; border-radius: 6px; margin-top: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.bot-btn:hover { background-color: #d3161c; }

/* =========================================
   LE SEUL ET UNIQUE BLOC SMARTPHONE / TABLETTE (Max 992px)
   ========================================= */

/* Cache les nouvelles barres mobiles sur ordinateur par défaut */
.mobile-top-bar, .mobile-bottom-bar { display: none; }

@media screen and (max-width: 992px) {
    :root { --whitespace: 60px; }

    /* LE BOUCLIER ANTI-DÉZOOM */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        /* Espace en bas pour ne pas que le texte soit caché par la Bottom Bar */
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; 
    }
    
    .hero-hybride, .hero-left, .hero-right, .vision-layout {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    h1, h2, p { word-wrap: break-word !important; overflow-wrap: break-word !important; }

    /* 1. CACHE L'ANCIEN MENU CLASSIQUE SUR MOBILE */
    .desktop-only { display: none !important; }

    /* 2. STYLE DE L'ÎLOT SUPÉRIEUR (TOP BAR) */
    .mobile-top-bar {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; top: 0; left: 0; width: 100%; height: 60px;
        padding: 0 20px; z-index: 2000;
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }
    
/* Le Switch de thème de la Top Bar (Contraste Amélioré) */
    .mobile-top-bar.theme-light { 
        background: rgba(255, 255, 255, 0.95); /* Cover blanche beaucoup plus forte */
        box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    }
    .mobile-top-bar.theme-dark { 
        background: rgba(25, 25, 25, 0.92); /* Gris très sombre mat */
        box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
        border-bottom: 1px solid rgba(255,255,255,0.05); /* Ligne de séparation subtile */
    }

    /* ÉTAPE 2 : Blindage absolu du logo (Anti-Violet) */
    a.mob-logo, a.mob-logo:visited, a.mob-logo:hover, a.mob-logo:active { 
        font-size: 1.5rem; font-weight: 900; text-decoration: none !important; 
    }
    .theme-light a.mob-logo, .theme-light a.mob-logo:visited { color: var(--jmz-blue) !important; }
    .theme-dark a.mob-logo, .theme-dark a.mob-logo:visited { color: #ffffff !important; }
    a.mob-logo span { color: var(--jmz-red) !important; }

    /* ÉTAPE 3 : Nouveaux boutons d'action (Look Netflix) */
    .mob-actions { display: flex; gap: 18px; align-items: center; }
    .mob-btn-action { 
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; gap: 3px; transition: color 0.3s;
    }
    .mob-btn-action i { font-size: 1.25rem; }
    .mob-btn-action span { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
    
    /* Contraste maximal */
    .theme-light .mob-btn-action { color: var(--jmz-blue) !important; }
    .theme-dark .mob-btn-action { color: #ffffff !important; }
    
    /* Bouton Don avec Impulsion */
    .mob-btn-action.donate { 
        color: var(--jmz-red) !important; 
        animation: pulse-icon-red 2s infinite;
    }

    /* Animation dédiée pour l'icône de Don */
    @keyframes pulse-icon-red {
        0% { filter: drop-shadow(0 0 0 rgba(230, 57, 70, 0.7)); transform: scale(1); }
        50% { filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.8)); transform: scale(1.08); }
        100% { filter: drop-shadow(0 0 0 rgba(230, 57, 70, 0)); transform: scale(1); }
    }

    /* =========================================
       EFFET CAMÉLÉON (Top Bar Transparente en haut de page)
       ========================================= */
    .mobile-top-bar.at-top {
        background: transparent !important;
        backdrop-filter: none !important; 
        -webkit-backdrop-filter: none !important; /* On enlève le flou en haut */
        box-shadow: none !important;
        border-bottom: none !important;
    }
    
    /* On force le texte en BLANC avec une petite ombre pour une lisibilité parfaite */
    .mobile-top-bar.at-top .mob-logo,
    .mobile-top-bar.at-top .mob-logo:visited,
    .mobile-top-bar.at-top .mob-btn-action {
        color: #ffffff !important;
        text-shadow: 0 2px 6px rgba(0,0,0,0.6) !important; 
    }
    
    /* Le bouton Don reste rouge pour attirer l'oeil */
    .mobile-top-bar.at-top .mob-btn-action.donate {
        color: var(--jmz-red) !important;
        text-shadow: none !important;
    }

    /* 3. ON AFFICHE ET ON FIXE LA BARRE BASSE AU FOND DE L'ÉCRAN */
    .mobile-bottom-bar {
        display: flex !important; 
        justify-content: space-around; align-items: center;
        position: fixed !important; 
        bottom: 0 !important; 
        top: auto !important; /* <--- LE BLINDAGE EST ICI */
        left: 0 !important; 
        width: 100% !important; 
        height: 65px !important;
        margin: 0 !important; 
        border-radius: 0 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        z-index: 2000;
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    }
    
    /* Le Switch de thème de la Bottom Bar */
    .mobile-bottom-bar.theme-light { background: rgba(255, 255, 255, 0.95); border-top: 1px solid rgba(0,0,0,0.05); }
    .mobile-bottom-bar.theme-dark { background: rgba(20, 20, 20, 0.95); border-top: 1px solid rgba(255,255,255,0.1); }

    /* Style des icônes (Inactives) */
    .nav-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; transition: all 0.3s ease;
        gap: 4px; flex: 1; color: #8e8e93; 
    }
    .theme-dark .nav-item { color: #999999; }
    
    .nav-item i { font-size: 1.3rem; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .nav-item span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2px; }

    /* Style des icônes (Actives - Page courante) */
    .nav-item.active { color: var(--jmz-red); transform: translateY(-2px); }
    .nav-item.active i { transform: scale(1.15); }

    /* 4. HERO SECTION SUR MOBILE */
   /* 4. HERO SECTION SUR MOBILE */
    .hero-hybride { flex-direction: column !important; height: auto !important; min-height: auto !important; width: 100%; }
    
    /* MODIFICATION ICI : On passe le padding haut de 120px à 90px */
    .hero-left { width: 100% !important; flex: none !important; padding: 90px 6% 40px 6% !important; text-align: center; }
    
    .hero-text-content { width: 100% !important; }
    .hero-hybride h1 { font-size: clamp(2rem, 8vw, 3rem) !important; margin-bottom: 15px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
    .hero-actions a { width: 100%; text-align: center; }
    .hero-right { width: 100% !important; flex: none !important; height: 65vw !important; min-height: 300px; margin-top: 20px; }
    .hero-right::before { background: linear-gradient(to bottom, var(--jmz-blue) 0%, rgba(var(--jmz-blue-rgb), 0) 30%, rgba(var(--jmz-blue-rgb), 0) 70%, var(--jmz-blue) 100%) !important; }

    .section-classic, .section-modern, .section-cta, .theme-header, .wcag-section { padding-left: var(--mobile-padding); padding-right: var(--mobile-padding); }
    .vision-layout { grid-template-columns: 1fr; gap: 30px; }

    /* Repositionnement des widgets pour ne pas être sous les barres */
    .scroll-widget { bottom: calc(85px + env(safe-area-inset-bottom)) !important; }
}

/* =========================================
   FIX PAYSAGE (Landscape / Téléphone tourné)
   ========================================= */
@media screen and (max-width: 992px) and (orientation: landscape) {
    .hero-hybride { flex-direction: row !important; min-height: 100vh; }
    .hero-left { width: 50% !important; padding: 80px 4% 40px 4% !important; text-align: left; }
    .hero-right { width: 50% !important; height: auto !important; min-height: 100vh; }
    .hero-right::before { background: linear-gradient(to right, var(--jmz-blue) 0%, rgba(var(--jmz-blue-rgb), 0) 40%) !important; }
}

/* =========================================
   CUSTOMISATION VISUELLE DE LA MODALE IDÉES
   ========================================= */
/* Les boutons de choix (citoyen, asso...) deviennent orange au survol */
.part-btn:hover {
    border-color: #F39C12 !important;
    color: #F39C12 !important;
    background-color: #FFF9F0 !important; /* Un fond très légèrement orangé */
}

/* Les champs de texte se soulignent en orange quand on tape dedans */
#participatoryModal .form-input:focus {
    border-color: #F39C12 !important;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3) !important;
}

/* Le bouton de validation final réagit bien au survol */
#participatoryModal button[type="submit"]:hover {
    background-color: #E67E22 !important;
    transform: scale(1.02);
}

/* =========================================
   BLINDAGE DU WIDGET SUR PC (Hors du bloc mobile)
   ========================================= */
@media screen and (min-width: 993px) {
    .scroll-widget { bottom: 30px !important; }
}