/* =============================================
   CHAMBRE PROVINCIALE HUISSIERS - KONGO CENTRAL
   Design Premium aux couleurs RDC
   ============================================= */

/* --- COULEURS DRAPEAU RDC + DORÉ --- */
:root {
    --bleu: #0B1D3A;
    --bleu-clair: #1A3A6B;
    --jaune: #F5D020;
    --dore: #C6A15B;
    --dore-clair: #E8D5A3;
    --rouge: #CE1126;
    --rouge-doux: #E8394D;

    --bg: #F4F1EB;
    --text: #0B1D3A;
    --surface: #FFFFFF;
    --border: #E0DCD4;
    --text-soft: #5A6577;

    --shadow: 0 8px 32px rgba(11, 29, 58, 0.10);
    --shadow-lg: 0 20px 60px rgba(11, 29, 58, 0.15);
    --radius: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
    --bg: #060E1A;
    --text: #F0EDE6;
    --surface: #0F1F38;
    --border: #1C3358;
    --text-soft: #8899B0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.5s var(--ease), color 0.5s var(--ease);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- BARRE TRICOLORE RDC EN HAUT --- */
body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    height: 5px;
    background: linear-gradient(90deg, var(--bleu) 0%, var(--bleu) 33%, var(--jaune) 33%, var(--jaune) 66%, var(--rouge) 66%, var(--rouge) 100%);
}

/* --- LAYOUT --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- TOP BAR --- */
.top-bar {
    background: var(--bleu);
    color: white;
    padding: 10px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 2px solid var(--dore);
}
.top-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
@media (min-width: 640px) {
    .top-bar-inner { flex-direction: row; justify-content: space-between; }
}
.top-bar-right { display: flex; gap: 12px; color: rgba(255,255,255,0.6); }
.top-bar-right span { display: flex; align-items: center; gap: 6px; }
.top-bar-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dore); }

/* --- HEADER --- */
.header {
    position: sticky; top: 5px; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease);
}
html.dark .header { background: rgba(15, 31, 56, 0.95); }

.header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link { display: flex; align-items: center; gap: 14px; }
.logo-box {
    width: 52px; height: 52px;
    background: white;
    border: 2px solid var(--dore);
    border-radius: 10px;
    padding: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(198,161,91,0.2);
}
.logo-label-sm { font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-soft); font-weight: 600; }
.logo-label-main { font-size: 14px; font-weight: 800; text-transform: uppercase; color: var(--text); letter-spacing: 0.04em; line-height: 1.2; }
.logo-label-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dore); font-weight: 700; }

/* Nav Desktop */
.nav-desktop { display: none; align-items: center; gap: 0; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease);
}
.nav-link:hover { color: var(--bleu); }
html.dark .nav-link:hover { color: var(--jaune); }
.nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
    background: linear-gradient(90deg, var(--jaune), var(--rouge));
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all 0.3s var(--ease);
}
.theme-btn:hover {
    border-color: var(--dore);
    color: var(--dore);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198,161,91,0.25);
}
.mobile-menu-btn {
    display: flex;
    background: none; border: none;
    font-size: 26px; color: var(--text);
    cursor: pointer; padding: 4px;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--dore); }

/* =============================================
   HERO — CARTE CENTRÉE AU MILIEU
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow */
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transition: transform 10s ease-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide.active img { transform: scale(1.1); }

/* Overlay dégradé radial centré */
.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse at center, rgba(11,29,58,0.55) 0%, rgba(11,29,58,0.85) 70%),
        linear-gradient(180deg, rgba(11,29,58,0.3) 0%, rgba(11,29,58,0.7) 100%);
}

/* CARTE CENTRÉE */
.hero-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 780px;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(198, 161, 91, 0.35);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 30px 80px rgba(0, 0, 0, 0.4);
    animation: heroCardIn 1.2s var(--ease) 0.3s both;
}
@media (min-width: 768px) {
    .hero-card { padding: 3.5rem 3rem; }
}

/* Ligne tricolore décorative en haut de la carte */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
}

@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(50px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(198, 161, 91, 0.15);
    border: 1px solid rgba(198, 161, 91, 0.3);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--jaune);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dore-clair);
    font-weight: 700;
}

/* Titre Hero */
.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.08;
    color: white;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
@media (min-width: 640px)  { .hero-title { font-size: 3rem; } }
@media (min-width: 768px)  { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; } }

.hero-title-gold {
    display: block;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 50%, var(--dore-clair) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2rem;
}
@media (min-width: 768px) { .hero-desc { font-size: 1.15rem; } }

/* Boutons Hero */
.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
@media (min-width: 480px) {
    .hero-btns { flex-direction: row; justify-content: center; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    border: none;
}
.btn-gold {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 100%);
    color: var(--bleu);
    box-shadow: 0 4px 20px rgba(245, 208, 32, 0.35);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 208, 32, 0.5);
}
.btn-glass {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: white;
    color: var(--bleu);
    border-color: white;
    transform: translateY(-3px);
}

/* Indicateurs de slide */
.hero-dots {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex; gap: 10px;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none; cursor: pointer;
    transition: all 0.4s var(--ease);
}
.hero-dot.active {
    background: var(--jaune);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(245,208,32,0.5);
}

/* =============================================
   BANDEAU RÉSULTATS
   ============================================= */
.banner-results {
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
    color: white;
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
}
.banner-results::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--jaune), var(--rouge), var(--jaune));
}
.banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
@media (min-width: 768px) {
    .banner-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.banner-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--jaune); font-weight: 700; }
.banner-title { font-size: 1.15rem; font-weight: 800; margin-top: 2px; }
.btn-dark {
    background: var(--jaune);
    color: var(--bleu);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.btn-dark:hover { background: white; transform: translateY(-2px); }

/* =============================================
   SECTIONS GÉNÉRALES
   ============================================= */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.section-badge-line {
    width: 28px; height: 3px;
    border-radius: 2px;
}
.section-badge-line-left { background: linear-gradient(90deg, var(--rouge), var(--jaune)); }
.section-badge-line-right { background: linear-gradient(90deg, var(--jaune), var(--bleu-clair)); }
.section-badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: var(--dore);
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
}
@media (min-width: 768px) { .section-title { font-size: 2.75rem; } }
.section-title-accent { color: var(--rouge); }

.section-desc {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* =============================================
   CARTES (Missions, Actus, etc.)
   ============================================= */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--dore);
}
.card:hover::after { transform: scaleX(1); }

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Mission cards */
.mission-num {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--dore), var(--jaune));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 1rem;
    transition: opacity 0.4s;
}
.card:hover .mission-num { opacity: 1; }
.mission-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 0.75rem; }
.mission-text { font-size: 15px; color: var(--text-soft); line-height: 1.7; }

/* =============================================
   ACTUALITÉS
   ============================================= */
.news-card { padding: 0; overflow: hidden; }
.news-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.card:hover .news-img img { transform: scale(1.08); }
.news-img-tag {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--rouge);
    color: white;
}
.news-body { padding: 1.5rem; }
.news-date { font-size: 12px; color: var(--dore); font-weight: 700; margin-bottom: 0.5rem; }
.news-title { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 0.75rem; }
.news-excerpt { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.news-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 1rem;
    font-size: 13px; font-weight: 700;
    color: var(--dore);
    transition: gap 0.3s var(--ease);
}
.news-link:hover { gap: 10px; color: var(--rouge); }

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
    background: linear-gradient(160deg, var(--bleu) 0%, #0A1628 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
}
.contact-section::after {
    content: '';
    position: absolute;
    bottom: -200px; right: -200px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,208,32,0.08) 0%, transparent 70%);
}

.contact-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease);
}
.contact-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--dore);
    transform: translateY(-6px);
}
.contact-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,208,32,0.15), rgba(198,161,91,0.1));
    border: 1px solid rgba(198,161,91,0.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 26px;
}
.contact-label { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.contact-info { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #030A14;
    color: white;
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: var(--dore);
    margin-bottom: 1.25rem;
}
.footer li { margin-bottom: 0.75rem; }
.footer a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.footer a:hover { color: var(--jaune); padding-left: 4px; }
.footer-text { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 1rem; }

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* Ligne tricolore en bas du footer */
.footer-tricolor {
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair) 0%, var(--bleu-clair) 33%, var(--jaune) 33%, var(--jaune) 66%, var(--rouge) 66%, var(--rouge) 100%);
}
/* =============================================
   LOGO RESPONSIVE
   ============================================= */
.logo-box {
    width: 52px;
    height: 52px;
    transition: all 0.3s var(--ease);
}

/* Sur mobile : logo plus grand */
@media (max-width: 767px) {
    .logo-box {
        width: 64px;
        height: 64px;
    }
}

/* Sur desktop : logo normal */
@media (min-width: 768px) {
    .logo-box {
        width: 56px;
        height: 56px;
    }
}

/* Cacher "Chambre Provinciale des" sur mobile */
@media (max-width: 767px) {
    .logo-hide-mobile {
        display: none !important;
    }
}

/* Réduire la taille des textes du logo sur mobile */
@media (max-width: 767px) {
    .logo-label-main {
        font-size: 13px !important;
    }
    .logo-label-sub {
        font-size: 9px !important;
    }
}

/* =============================================
   BOUTON SE CONNECTER (visible sur desktop, caché sur mobile)
   ============================================= */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 100%);
    color: var(--bleu);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 12px rgba(245, 208, 32, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 208, 32, 0.4);
}

.btn-login svg {
    flex-shrink: 0;
}

/* Cacher le bouton sur mobile */
@media (max-width: 1023px) {
    .btn-login {
        display: none !important;
    }
}

/* =============================================
   BOUTON SE CONNECTER DANS LE MENU MOBILE
   ============================================= */
.mobile-login-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 100%);
    color: var(--bleu) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 208, 32, 0.3);
    transition: all 0.3s var(--ease);
}

.mobile-login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 208, 32, 0.45);
    color: var(--bleu) !important;
}

.mobile-login-link svg {
    flex-shrink: 0;
}
/* Mode nuit : ajuster légèrement */
html.dark .btn-login {
    background: linear-gradient(135deg, var(--dore) 0%, var(--jaune) 100%);
    color: var(--bleu);
}

html.dark .btn-login:hover {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore-clair) 100%);
}

/* =============================================
   PAGE HUISSIERS - EN-TÊTE
   ============================================= */
.page-header {
    background: linear-gradient(160deg, var(--bleu) 0%, var(--bleu-clair) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.page-header .badge {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.page-header .badge-line {
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, var(--rouge), var(--jaune));
    border-radius: 2px;
}

.page-header .badge-text {
    color: var(--jaune);
    font-size: 12px;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.15;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title { font-size: 3rem; }
}

.page-title-gold {
    display: block;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 50%, var(--dore-clair) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* =============================================
   GRILLE HUISSIERS
   ============================================= */
.grid-huissiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-huissiers { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-huissiers { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   CARTE HUISSIER
   ============================================= */
.card-huissier {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    position: relative;
}

.card-huissier::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease);
}

.card-huissier:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--dore);
}

.card-huissier:hover::after {
    transform: scaleX(1);
}

.huissier-photo {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bleu-clair) 0%, var(--bleu) 100%);
}

.huissier-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease);
}

.card-huissier:hover .huissier-photo img {
    transform: scale(1.08);
}

.huissier-rang {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 100%);
    color: var(--bleu);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2;
}

.huissier-info {
    padding: 1.5rem;
    text-align: center;
}

.huissier-nom {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.huissier-fonction {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(198, 161, 91, 0.15), rgba(245, 208, 32, 0.1));
    color: var(--dore);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(198, 161, 91, 0.2);
}

/* =============================================
   SECTION INFO SIÈGE
   ============================================= */
.section-info-siege {
    background: linear-gradient(160deg, var(--bleu) 0%, #0A1628 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-info-siege::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
}

.section-info-siege::after {
    content: '';
    position: absolute;
    bottom: -150px; right: -150px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,208,32,0.08) 0%, transparent 70%);
}

.info-siege-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.info-siege-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,208,32,0.15), rgba(198,161,91,0.1));
    border: 2px solid rgba(198,161,91,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
}

.info-siege-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.info-siege-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 15px;
}

.info-siege-card strong {
    color: var(--jaune);
}

.info-siege-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* =============================================
   MODAL DE RÉSULTATS
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 29, 58, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s var(--ease);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--rouge);
    color: white;
    border-color: var(--rouge);
}

.modal-step { text-align: center; }
.modal-step.hidden { display: none; }

.modal-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 480px) {
    .modal-actions { flex-direction: row; }
}

.btn-modal-primary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 100%);
    color: var(--bleu);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(245, 208, 32, 0.3);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 208, 32, 0.5);
}

.btn-modal-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-modal-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Formulaire */
.modal-form { text-align: left; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s var(--ease);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--dore);
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.2);
}

.form-group input::placeholder { color: var(--text-soft); opacity: 0.6; }

.btn-modal-back {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-modal-back:hover { color: var(--dore); }

/* Mode sombre pour le modal */
html.dark .modal-card {
    background: var(--surface);
    border-color: var(--border);
}
html.dark .form-group input {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* =============================================
   PAGE DE CONNEXION (LOGIN)
   ============================================= */
.login-wrapper {
    min-height: calc(100vh - 300px); /* S'adapte selon la hauteur du header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--bg);
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* --- Côté Gauche (Visuel) --- */
.login-left {
    flex: 1;
    position: relative;
    background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1000&q=85') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.login-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,29,58,0.4) 0%, rgba(11,29,58,0.95) 100%);
}

.login-left-content {
    position: relative;
    z-index: 2;
    color: white;
}

.login-welcome-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.login-welcome-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
}

.login-tricolor-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--jaune), var(--rouge));
    border-radius: 2px;
}

/* --- Côté Droit (Formulaire) --- */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--surface);
}

.login-form-card {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.login-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--bleu-clair), var(--jaune), var(--rouge));
    border-radius: 0 0 4px 4px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.login-form-subtitle {
    font-size: 14px;
    color: var(--text-soft);
}

/* Erreurs */
.login-error-box {
    background: rgba(206, 17, 38, 0.1);
    border: 1px solid rgba(206, 17, 38, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.login-error-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.login-error-box li {
    font-size: 13px;
    color: var(--rouge);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.login-error-box li:last-child { margin-bottom: 0; }

/* Options (Checkbox + Forgot Password) */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    cursor: pointer;
}
.checkbox-container input { accent-color: var(--dore); width: 16px; height: 16px; cursor: pointer; }

.forgot-password {
    color: var(--dore);
    font-weight: 600;
    transition: color 0.3s;
}
.forgot-password:hover { color: var(--jaune); text-decoration: underline; }

/* Bouton Submit */
.btn-login-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--jaune) 0%, var(--dore) 100%);
    color: var(--bleu);
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(245, 208, 32, 0.3);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 208, 32, 0.5);
}

/* Footer du formulaire */
.login-form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 14px;
    color: var(--text-soft);
}
.login-form-footer a {
    color: var(--dore);
    font-weight: 600;
}
.login-form-footer a:hover { text-decoration: underline; }

.back-home-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 13px !important;
    color: var(--text-soft) !important;
    font-weight: 500 !important;
}
.back-home-link:hover { color: var(--text) !important; text-decoration: none !important; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .login-left {
        display: none; /* Cache l'image sur mobile pour se concentrer sur le formulaire */
    }
    .login-container {
        min-height: auto;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .login-right {
        padding: 1.5rem;
    }
    .login-form-card::before {
        width: 100px;
    }
}

/* Mode Sombre */
html.dark .login-container {
    background: var(--surface);
    border-color: var(--border);
}
html.dark .login-form-card {
    background: var(--surface);
}

/* =============================================
   TOGGLE MOT DE PASSE (LOGIN)
   ============================================= */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px; /* Laisse de la place pour l'icône à droite */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--dore);
}

.toggle-password:focus {
    outline: none;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Force le défilement horizontal au lieu d'écraser */
}


/* =============================================
   GRILLE ACTUALITÉS : 2 colonnes PC / 1 colonne mobile
   ============================================= */
.grid-actualites {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes par défaut (ordinateur) */
    gap: 2rem;
}

/* Sur tablette et mobile (< 900px) : 1 colonne */
@media (max-width: 900px) {
    .grid-actualites {
        grid-template-columns: 1fr; /* 1 seule colonne */
        gap: 1.5rem;
    }
}
