﻿/* ==========================================================================
   1. Variables globales (couleurs, thèmes) - IDENTITÉ DD QUÉBEC
   ========================================================================== */
:root {
    /* Palette principale bleu profond + or */
    --blue-deep: #0B2A5B; /* Bleu profond - Souveraineté et autorité */
    --blue-main: #1E4DA1; /* Bleu principal - Identité DD */
    --blue-light: #6FA3FF; /* Bleu clair - Accents et hovers */
    --gold-main: #D4A437; /* Or souverain - Excellence et valeur */
    --gold-light: #F2C94C; /* Or clair - Highlights */
    /* Anciennes variables (rétrocompatibilité) */
    --primary: #1E4DA1; /* Aligné sur --blue-main */
    --secondary: #D4A437; /* Aligné sur --gold-main */
    --accent: #ffffff; /* Blanc pur – clarté, souveraineté populaire */
    --dark: #121212; /* Charbon très foncé – contraste fort */
    --light: #f5f5f5; /* Gris clair – douceur, fond neutre */

    --blue-dark: #0B2A5B; /* Aligné sur --blue-deep */
    --gold-bright: #F2C94C; /* Aligné sur --gold-light */
    /* Glassmorphism */
    --white-glass: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.1); /* Fond vitreux léger */
    --glass-border: rgba(255, 255, 255, 0.25); /* Bordure subtile */
    --white-border: rgba(255, 255, 255, 0.2);
    --blur-light: 15px;
    --blur-heavy: 25px;
    /* États hover */
    --primary-hover: #0B2A5B; /* Aligné sur --blue-deep */
    --secondary-hover: #b5953e;
}

/* ==========================================================================
   2. Base typographique & mises en page globales
   ========================================================================== */
body {
    font-family: 'Montserrat', 'Open Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 3rem 0;
}



/* ==========================================================================
   3. Boutons & couleurs utilitaires - IDENTITÉ DD
   ========================================================================== */
/* Boutons primaires - Gradient bleu avec transformation or */
.btn-primary {
    background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-deep) 100%);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(212, 164, 55, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
        color: var(--blue-deep);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(212, 164, 55, 0.5);
    }

/* Boutons outline */
.btn-outline-primary {
    border: 2px solid var(--blue-main);
    color: var(--blue-main);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background: linear-gradient(135deg, var(--blue-main), var(--blue-deep));
        border-color: var(--blue-main);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(30, 77, 161, 0.4);
    }

/* Boutons Glass - Style moderne transparent */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-heavy)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(180%);
    border: 1px solid var(--white-border);
    color: white;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px 0 rgba(11, 42, 91, 0.3), inset 0 0 1px rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

    .btn-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(212, 164, 55, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-glass:hover::before {
        left: 100%;
    }

    .btn-glass:hover {
        background: rgba(212, 164, 55, 0.2);
        border-color: var(--gold-main);
        color: white;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 45px 0 rgba(212, 164, 55, 0.4), 0 0 30px 5px rgba(212, 164, 55, 0.3);
    }

.btn-glass-responsive {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Bouton Solid Glass - Or souverain pour CTA */
.btn-solid-glass {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
    color: var(--blue-deep);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    padding: 16px 50px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(212, 164, 55, 0.4), inset 0 0 1px rgba(255,255,255,0.5);
    text-shadow: 0 1px 2px rgba(11, 42, 91, 0.2);
    position: relative;
    overflow: hidden;
}

    .btn-solid-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-solid-glass:hover::before {
        left: 100%;
    }

    .btn-solid-glass:hover {
        background: linear-gradient(135deg, var(--gold-light) 0%, #FFF5CC 100%);
        color: var(--blue-deep);
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 15px 50px rgba(212, 164, 55, 0.5), 0 0 30px rgba(212, 164, 55, 0.3);
    }

/* Couleurs utilitaires */
.bg-primary {
    background-color: var(--blue-main) !important;
}

.text-primary {
    color: var(--blue-main) !important;
    text-shadow: 0 1px 2px rgba(11, 42, 91, 0.1);
}

.text-secondary {
    color: var(--gold-main) !important;
}

.border-primary {
    border-color: var(--blue-main) !important;
    box-shadow: inset 0 0 0 1px rgba(30, 77, 161, 0.15);
}

/* ==========================================================================
   4. Navigation (navbar, dropdowns)
   ========================================================================== */
.navbar-dark.bg-dark-glass {
    background: rgba(4, 29, 58, 0.7) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .navbar-dark.bg-dark-glass a {
        color: white !important;
    }

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.glass-dropdown {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   5. Sections héro & parallax - IDENTITÉ DD
   ========================================================================== */
/* Hero avec fond bleu dynamique */
.hero {
    position: relative;
    background: radial-gradient(circle at 30% 30%, var(--blue-main), var(--blue-deep) 70%), url('DD/BGDD1.jpg') center/cover no-repeat;
    min-height: 300px;
    color: white;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 164, 55, 0.1) 0%, rgba(0,0,0,0.5) 100%);
}

/* Hero Title - Dégradé or avec glow */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(212, 164, 55, 0.4);
    animation: titleGlow 3s ease-in-out infinite;
    line-height: 1.2;
}

    /* Spans dans hero-title doivent être blancs et visibles */
    .hero-title span {
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: white !important;
        background-clip: initial !important;
        color: white !important;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    }

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.15);
    }
}

/* Badge pilule - Glass blue */
.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--blur-light));
    border: 1px solid var(--white-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(11, 42, 91, 0.3), inset 0 0 1px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

    .hero-badge:hover {
        background: rgba(212, 164, 55, 0.15);
        border-color: var(--gold-main);
        transform: scale(1.05);
    }

.hero-subtitle {
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-text {
    max-width: 850px;
    font-size: 1.1rem;
    line-height: 1.75;
    background-color: rgba(11, 42, 91, 0.6);
    backdrop-filter: blur(4px);
    word-break: break-word;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Adaptations mobiles pour .hero-text */
@media (max-width: 576px) {
    .hero-text {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 2rem 1.25rem;
    }

        .hero-text h1 {
            font-size: 1.6rem;
            line-height: 1.4;
        }

        .hero-text p:not(.lead) {
            font-size: 0.92rem;
            text-align: justify;
            hyphens: auto;
        }

    .hero-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   6. Glass-morphism pour sections & modals
   ========================================================================== */
.glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .glass-section:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    }

/* Glass pour modals */
.glass-modal {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation d’apparition des modals */
.modal.fade .modal-dialog {
    transform: translateY(30px);
    opacity: 0;
}

.modal.fade.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   7. Cartes (cards)
   ========================================================================== */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 150px;
    height: auto !important;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.card-title {
    font-weight: 600;
    color: var(--primary) !important;
}

/* ==========================================================================
   8. Parallax section
   ========================================================================== */
/* ==========================================================================  
   5. Section Parallax  
   ========================================================================== */
.parallax-section {
    position: relative;
    /* Dégradé + image fixe */
    background: linear-gradient( to bottom, rgba(4, 29, 58, 0.85), rgba(4, 29, 58, 0.86) ), url('../DD/BGDD1.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Effet parallax */
    padding: 100px 0; /* Espace vertical */
    color: #ffffff;
}

    .parallax-section::before {
        content: "";
        position: absolute;
        inset: 0;
        /* Overlay supplémentaire pour renforcer le contraste */
        background-color: rgba(4, 29, 58, 0.5);
        z-index: 1;
    }

    .parallax-section .container {
        position: relative;
        z-index: 2; /* Pour que le contenu soit au-dessus de l’overlay */
    }

    .parallax-section h3 {
        margin: 0;
    }

    .parallax-section .display-4 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .parallax-section .btn-glass {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        color: #fff;
        transition: background 0.3s ease, border-color 0.3s ease;
    }

        .parallax-section .btn-glass:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
        }

/* Adaptations tablettes (≤ 992px) */
@media (max-width: 992px) {
    .parallax-section .display-4 {
        font-size: 2.5rem;
    }

    .parallax-section h3.fw-lighter {
        font-size: 1.5rem;
    }
}

/* Adaptations mobiles (≤ 576px) */
@media (max-width: 576px) {
    .parallax-section {
        padding: 70px 0;
        background-attachment: scroll; /* Désactivation partielle du parallax sur mobile */
    }

        .parallax-section .display-4 {
            font-size: 2rem;
        }

        .parallax-section h3.fw-lighter {
            font-size: 1.25rem;
        }

        .parallax-section .btn-glass {
            padding: 0.75rem 1.5rem;
            font-size: 0.9rem;
        }
}

/* ==========================================================================
   9. Footer & liens sociaux
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

    .footer-links a {
        color: white;
        text-decoration: none;
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--secondary);
            transform: translateY(-2px);
        }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

    .social-icons a {
        color: white;
        font-size: 1.5rem;
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .social-icons a:hover {
            color: var(--secondary);
            transform: scale(1.2);
        }

/* ==========================================================================
   10. Animation utilities
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ==========================================================================
   11. Responsive overrides
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .parallax-section {
        background-attachment: scroll;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .card .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .glass-section {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   12. High-contrast mode
   ========================================================================== */
.high-contrast {
    background-color: black !important;
    color: yellow !important;
}

    .high-contrast a {
        color: cyan !important;
    }

/* ==========================================================================
   13. Modals — éléments spécifiques
   ========================================================================== */
/* Breadcrumb modernisé */
.breadcrumb-modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

    .breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: var(--secondary);
        margin: 0 0.5rem;
    }

/* Listes stylées */
.list-modern {
    list-style: none;
    padding-left: 0;
}

    .list-modern li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        line-height: 1.6;
    }

        .list-modern li::before {
            content: "✔";
            position: absolute;
            left: 0;
            top: 0.15rem;
            color: var(--primary);
            font-size: 1rem;
        }

/* Titres et paragraphes dans modals */
.modal-body h2 {
    color: var(--primary);
}

.modal-body p {
    color: var(--dark);
}

/* Bouton de fermeture pour fond sombre */
.btn-close-white {
    filter: invert(1);
}


.section-sei {
    /* variables scoped */
    --primary: #002d64;
    --secondary: #caa948;
    --accent: #ffffff;
    --dark: #121212;
    --light: #f5f5f5;
    --glass-bg: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.25);
    --primary-hover: #041d3a;
    --secondary-hover: #b5953e;
}


    .section-sei .btn-primary {
        background-color: var(--primary);
        border-color: var(--primary);
        transition: background-color .3s, border-color .3s;
    }

        .section-sei .btn-primary:hover {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
        }

    .section-sei .glass-section {
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: .75rem;
        padding: 2rem;
        transition: transform .3s, box-shadow .3s;
    }

        .section-sei .glass-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 32px rgba(31,38,135,0.25);
        }

    .section-sei .hero {
        position: relative;
        background: linear-gradient(135deg, rgba(0,86,179,0.85), rgba(0,105,217,0.9)), url('https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg') center/cover no-repeat;
        min-height: 300px;
        color: var(--accent);
        display: flex;
        align-items: center;
    }

    .section-sei h2 {
        font-size: 2rem;
    }

@media (max-width:576px) {
    .section-sei h2 {
        font-size: 1.5rem;
    }
}

.section-sei .high-contrast {
    background: #000 !important;
    color: #ff0 !important;
}

/* ==========================================================================
   15. COMPOSANTS MODERNES - BENTO GRID, TIMELINE, CTA
   ========================================================================== */

/* Bento Grid pour les 6 Mandats - Or et Bleu */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.bento-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 32px 0 rgba(11, 42, 91, 0.1);
}

    .bento-item::after {
        content: "";
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        z-index: -1;
        background: linear-gradient(135deg, var(--blue-light) 0%, var(--gold-main) 100%);
        filter: blur(25px);
        opacity: 0;
        transition: opacity 0.4s ease;
        border-radius: 18px;
    }

    .bento-item:hover {
        background: rgba(255, 255, 255, 0.85);
        transform: translateY(-10px) scale(1.02);
        border-color: var(--gold-main);
        box-shadow: 0 25px 70px 0 rgba(212, 164, 55, 0.2), 0 0 0 1px var(--gold-light);
    }

        .bento-item:hover::after {
            opacity: 0.5;
        }

.bento-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-main), var(--blue-deep));
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(30, 77, 161, 0.4);
    transition: all 0.3s ease;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    box-shadow: 0 8px 30px rgba(212, 164, 55, 0.6);
}

.bento-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.bento-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bento-description {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
}

/* Context Cards avec profondeur */
.context-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(11, 42, 91, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.4s ease;
}

    .context-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 70px rgba(11, 42, 91, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px var(--blue-light);
    }

.context-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-main);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(11, 42, 91, 0.1);
}

/* Timeline Interactive Verticale */
.interactive-timeline {
    position: relative;
    padding-left: 45px;
    margin: 3rem 0;
}

    .interactive-timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, var(--blue-main), var(--gold-main), var(--blue-main));
        background-size: 100% 200%;
        border-radius: 2px;
        box-shadow: 0 0 15px rgba(30, 77, 161, 0.6);
        animation: timelineGlow 3s ease infinite;
    }

@keyframes timelineGlow {
    0%, 100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

.timeline-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    .timeline-card::before {
        content: '';
        position: absolute;
        left: -48px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background: linear-gradient(135deg, var(--blue-main), var(--gold-main));
        border: 4px solid white;
        border-radius: 50%;
        box-shadow: 0 0 0 5px rgba(30, 77, 161, 0.2), 0 3px 10px rgba(30, 77, 161, 0.5);
        transition: all 0.3s ease;
    }

    .timeline-card:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: translateX(10px);
        box-shadow: -10px 10px 30px rgba(212, 164, 55, 0.15);
    }

        .timeline-card:hover::before {
            width: 24px;
            height: 24px;
            left: -51px;
            background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
            box-shadow: 0 0 0 6px rgba(212, 164, 55, 0.3), 0 4px 15px rgba(212, 164, 55, 0.7);
        }

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-main);
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(11, 42, 91, 0.1);
}

.timeline-subtitle {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Alerte Système - Bleu accentué */
.system-alert {
    background: rgba(30, 77, 161, 0.12);
    backdrop-filter: blur(var(--blur-light));
    border: 1px solid rgba(30, 77, 161, 0.3);
    border-left: 4px solid var(--blue-main);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(30, 77, 161, 0.2);
}

.system-alert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-main);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section avec fond dynamique */
.cta-section {
    background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-deep) 50%, var(--blue-main) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 50%, rgba(212, 164, 55, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(111, 163, 255, 0.1) 0%, transparent 50%);
        animation: float 6s ease-in-out infinite;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(11, 42, 91, 0.3);
    margin-bottom: 2rem;
}

/* Responsive pour composants modernes */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-icon {
        width: 60px;
        height: 60px;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .interactive-timeline {
        padding-left: 35px;
    }

    .timeline-card::before {
        left: -40px;
        width: 14px;
        height: 14px;
    }

    .timeline-card:hover::before {
        left: -42px;
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   16. COMPOSANTS SPÉCIFIQUES ASSEMBLÉE CONSTITUANTE
   ========================================================================== */

/* ==========================================================================
   17. ACCESSIBILITÉ - PREFERS-REDUCED-MOTION (WCAG 2.2 AAA)
   ========================================================================== */
/* Désactive toutes animations pour utilisateurs sensibles au mal des transports */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Désactive spécifiquement les animations problématiques */
    .scroll-indicator,
    .hero-badge,
    .timeline-progress,
    .parallax-section::before,
    .parallax-section::after {
        animation: none !important;
    }

    /* Désactive transformations 3D (nausée) */
    .bento-item:hover {
        transform: translateY(-5px) !important; /* Garde lift simple, enlève scale/rotate */
    }

    /* Parallax désactivé */
    .parallax-section {
        background-attachment: scroll !important;
    }

    /* Gradient animations désactivées */
    .cta-section,
    .cta-section::before {
        animation: none !important;
    }

    .interactive-timeline::before {
        animation: none !important;
        background: linear-gradient(to bottom, var(--blue-main), var(--gold-main)) !important;
    }
}

/* ==========================================================================
   18. ACCESSIBILITÉ - FOCUS INDICATORS (WCAG 2.2 AAA)
   ========================================================================== */
/* Focus visible pour navigation clavier - Ratio contraste ≥ 3:1 */
:focus {
    outline: none; /* Reset par défaut */
}

:focus-visible {
    outline: 3px solid var(--gold-main);
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(212, 164, 55, 0.3);
}

/* Focus sur boutons primaires */
.btn-solid-glass:focus-visible,
.btn-glass:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(212, 164, 55, 0.4), 0 15px 50px rgba(212, 164, 55, 0.6);
}

.btn-outline-primary:focus-visible,
.btn-primary:focus-visible {
    outline: 3px solid var(--gold-main);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(212, 164, 55, 0.3);
}

/* Focus sur bento items */
.bento-item:focus-visible {
    outline: 3px solid var(--blue-main);
    outline-offset: 4px;
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px 0 rgba(11, 42, 91, 0.2), 0 0 0 6px rgba(30, 77, 161, 0.2);
}

/* Focus sur timeline items */
.timeline-item:focus-visible {
    outline: 3px solid var(--blue-main);
    outline-offset: 2px;
    background: rgba(30, 77, 161, 0.05);
}

/* Focus sur loi cards */
.loi-card:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 4px;
    transform: translateY(-8px);
}

/* Focus sur liens texte */
a:focus-visible {
    outline: 2px solid var(--gold-main);
    outline-offset: 2px;
    background: rgba(212, 164, 55, 0.1);
    border-radius: 2px;
}

/* Focus sur inputs/forms (pour futures pages) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--blue-main);
    outline-offset: 2px;
    border-color: var(--blue-main);
    box-shadow: 0 0 0 4px rgba(30, 77, 161, 0.2);
}

/* Focus sur scroll indicator */
.scroll-indicator:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
    transform: translateX(-50%) scale(1.1);
}

/* Focus sur trust badges */
.trust-badge:focus-visible {
    outline: 2px solid var(--gold-main);
    outline-offset: 3px;
    background: rgba(212, 164, 55, 0.25);
}

/* Focus sur stats hero */
.hero-stat-item:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
    transform: scale(1.08);
}

/* Loi Cards - Pour les 5 lois organiques */
.loi-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(11, 42, 91, 0.08);
    position: relative;
    overflow: hidden;
}

    .loi-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--blue-main) 0%, var(--gold-main) 50%, var(--blue-main) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .loi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 45px rgba(11, 42, 91, 0.15), 0 0 0 1px var(--blue-light);
    }

        .loi-card:hover::before {
            opacity: 1;
        }

/* Timeline simple pour l'échéancier */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: 0.65rem;
        top: 0.5rem;
        width: 14px;
        height: 14px;
        background: linear-gradient(135deg, var(--blue-main), var(--gold-main));
        border: 3px solid white;
        border-radius: 50%;
        box-shadow: 0 0 0 4px rgba(30, 77, 161, 0.15);
        z-index: 2;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        left: 1.2rem;
        top: 1.5rem;
        width: 2px;
        height: calc(100% - 0.5rem);
        background: linear-gradient(to bottom, var(--blue-light), rgba(30, 77, 161, 0.3));
    }

    .timeline-item:last-child::after {
        display: none;
    }

    .timeline-item h5 {
        margin-bottom: 0.5rem;
        font-size: 1.15rem;
    }

    .timeline-item p {
        color: #495057;
        line-height: 1.6;
        margin-bottom: 0;
    }

/* Animation fadeInUp pour le hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation subtile pour les éléments flottants */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive pour page Assemblée Constituante */
@media (max-width: 992px) {
    .loi-card {
        padding: 1.5rem;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

        .timeline-item::before {
            left: 0.5rem;
            width: 12px;
            height: 12px;
        }

        .timeline-item::after {
            left: 1rem;
        }
}

@media (max-width: 576px) {
    .loi-card h4 {
        font-size: 1.1rem;
    }

    .timeline-item h5 {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Boutons « soulevés » au survol
   --------------------------------------------------------------------------
   Remplace les attributs onmouseover/onmouseout qui etaient ecrits en ligne
   dans le markup. Raisons du deplacement (voir DOCS/PROPOSITION_EDITEUR_ANNONCES.md) :
     - un attribut on* interdit tout filtrage du contenu edite par l'admin ;
     - les gestionnaires en ligne sont incompatibles avec la Content-Security-Policy
       recommandee dans AUDIT-SOLIDIFICATION.md.

   Usage :  class="btn ... btn-souleve btn-souleve-vert"
   La couleur de l'ombre se choisit par la variable --ombre-souleve.
   ========================================================================== */
.btn-souleve {
    --ombre-souleve: rgba(11, 42, 91, .4); /* defaut : bleu profond DD */
    transition: transform .2s, box-shadow .2s;
}

    /* :focus-visible en plus de :hover -> meme retour visuel au clavier qu'a la souris. */
    .btn-souleve:hover,
    .btn-souleve:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px var(--ombre-souleve);
    }

/* Variantes de couleur d'ombre */
.btn-souleve-vert {
    --ombre-souleve: rgba(40, 167, 69, .4);
}

.btn-souleve-bleu {
    --ombre-souleve: rgba(24, 20, 193, .4);
}

.btn-souleve-indigo {
    --ombre-souleve: rgba(102, 126, 234, .4);
}

/* Respect des preferences systeme : pas d'animation si l'utilisateur l'a demande. */
@media (prefers-reduced-motion: reduce) {
    .btn-souleve {
        transition: none;
    }

        .btn-souleve:hover,
        .btn-souleve:focus-visible {
            transform: none;
        }
}
