/* =====================================================
   LA TANOISE — DESIGN SYSTEM v3.2
   Palette officielle extraite du logo :
   Bleu tortue #1B75BC · Ruban bourgogne #641E27

   Sommaire
   1.  Variables
   2.  Reset & base
   3.  Accessibilité & utilitaires
   4.  En-tête & navigation (desktop / tablette / mobile)
   5.  Mise en page (containers, héros, grilles)
   6.  Composants (cartes, boutons, formulaires, tableaux, pastilles, alertes)
   7.  Pied de page
   8.  Composants spécifiques au site
   9.  Panneaux & indicateurs (espace bureau / membre)
   10. Responsive général
   11. Impression
   ===================================================== */

/* =====================================================
   1. VARIABLES
   ===================================================== */
:root {
    /* Police native style Apple : rapide, aucune ressource à charger */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* Échelle typographique (base 16 px) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */

    /* Primaire — bleu du logo */
    --primary: #1B75BC;
    --primary-dark: #155D96;
    --primary-light: #E8F1F8;
    --primary-050: #F0F7FC;

    /* Secondaire — bourgogne du ruban */
    --secondary: #641E27;
    --secondary-dark: #4A161D;
    --secondary-light: #FDF2F4;
    --secondary-050: #FBF4F5;

    /* Neutres */
    --dark: #0F172A;
    --text: #334155;
    --text-soft: #475569;
    --muted: #64748B;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --light: #F7FAFC;
    --surface: #FFFFFF;

    /* Sémantiques */
    --danger: #DC2626; --danger-bg: #FEF2F2; --danger-border: #FECACA;
    --success: #16A34A; --success-bg: #F0FDF4; --success-border: #BBF7D0;
    --warning: #D97706; --warning-bg: #FFFBEB; --warning-border: #FDE68A;
    --info: #0284C7; --info-bg: #F0F9FF; --info-border: #BAE6FD;

    /* Rayons & ombres */
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; --radius-full: 999px;
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-focus: 0 0 0 3px rgba(27, 117, 188, 0.2);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;

    /* Mise en page */
    --topbar-h: 84px;          /* hauteur de l'en-tête (bureau) */
    --nav-breakpoint: 1320px;  /* informatif : bascule vers le menu burger */
    --container: 1280px;
}

/* =====================================================
   2. RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

main { flex: 1; width: 100%; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Titres : espacement négatif pour un rendu compact et premium */
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 600; line-height: 1.2; margin-bottom: 0.75rem; overflow-wrap: break-word; }
h1, .h1 { font-size: var(--text-4xl); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h2, .h2 { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.02em; }
h3, .h3 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.005em; }
h5, .h5 { font-size: var(--text-lg); font-weight: 600; }
h6, .h6 { font-size: var(--text-base); font-weight: 600; }

p { font-size: var(--text-base); line-height: 1.7; color: var(--text-soft); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; font-weight: 500; transition: color var(--duration-fast) var(--ease-in-out); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

::selection { background: rgba(27, 117, 188, 0.18); color: var(--dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

.text-muted, .form-help, small { font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }

label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.375rem; color: var(--dark); }
.required { color: var(--danger); }

/* Animations d'apparition. Sécurité : si le script d'activation ne s'exécute pas,
   le contenu devient visible tout seul après 1,8 s (jamais de contenu caché). */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); animation: revealSafe .01s 1.8s forwards; }
.reveal.active { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealSafe { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDownCentered { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (scripting: none) { .reveal { opacity: 1; transform: none; animation: none; } }

/* =====================================================
   3. ACCESSIBILITÉ & UTILITAIRES
   ===================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--surface); color: var(--primary); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow-lg); transition: top var(--duration-fast); }
.skip-link:focus { top: 12px; text-decoration: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.inline-form { display: inline-block; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.hide-mobile { display: initial; } .show-mobile { display: none !important; }

/* =====================================================
   4. EN-TÊTE & NAVIGATION
   Compatible avec le HTML existant :
   .topbar > .topbar-inner > (.brand, #mainNav, .menu-toggle)
   .nav-dropdown > (.dropdown-toggle, .dropdown-menu)
   Ouverture : :hover / clavier (ordinateur) ou classe .is-open / .open (JS, tactile)
   ===================================================== */
.topbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow-md);
}

.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 24px;
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Marque : à gauche, dans le flux (ne chevauche plus jamais le menu) */
.brand {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--surface);
    z-index: 5;
}
.brand:hover { color: var(--surface); opacity: 0.92; text-decoration: none; }

.brand-logo {
    width: 88px;
    height: 64px;
    background: var(--surface);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
}
.brand:hover .brand-logo { transform: scale(1.03); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-text { line-height: 1.2; }
.brand-text strong { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; color: var(--surface); display: block; }
.brand-text span, .brand-text small { display: block; color: rgba(255, 255, 255, 0.78); font-size: var(--text-xs); font-weight: 500; }

/* Navigation principale (ordinateur) */
#mainNav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    gap: 2px;
    flex-wrap: wrap;
    row-gap: 2px;
}
#mainNav > a {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-in-out), color var(--duration-fast) var(--ease-in-out);
    white-space: nowrap;
}
#mainNav > a:hover { color: var(--surface); background: rgba(255, 255, 255, 0.14); text-decoration: none; }
#mainNav > a.active { color: var(--surface); background: rgba(255, 255, 255, 0.18); font-weight: 600; }
#mainNav > a.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--surface); opacity: .9;
}
#mainNav > a.btn-light { background: var(--surface); color: var(--primary); border: none; font-weight: 600; }
#mainNav > a.btn-light:hover { background: var(--primary-light); }
#mainNav > a.btn-secondary { background: var(--secondary); color: var(--surface) !important; border: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
#mainNav > a.btn-secondary:hover { background: var(--secondary-dark); }
#mainNav > a.btn-light::after, #mainNav > a.btn-secondary::after { display: none; }

.btn-deconnexion { color: #FFD3D8 !important; font-weight: 500 !important; margin-left: 4px; }
.btn-deconnexion:hover { background: rgba(255, 255, 255, 0.14) !important; color: var(--surface) !important; }

/* Menus déroulants */
.nav-dropdown { position: relative; }
/* « pont » invisible : le menu ne se referme pas quand la souris traverse l'espace */
.nav-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }

.nav-dropdown .dropdown-toggle {
    background: transparent; border: none; color: rgba(255, 255, 255, 0.92);
    font-weight: 500; font-size: var(--text-sm); font-family: inherit;
    padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
    display: flex; align-items: center; gap: 6px; position: relative;
    transition: background var(--duration-fast) var(--ease-in-out), color var(--duration-fast) var(--ease-in-out); white-space: nowrap;
}
.nav-dropdown .dropdown-toggle:hover { color: var(--surface); background: rgba(255, 255, 255, 0.14); }
.nav-dropdown .dropdown-toggle.active, .nav-dropdown.is-open .dropdown-toggle, .nav-dropdown.open .dropdown-toggle {
    color: var(--surface); background: rgba(255, 255, 255, 0.18); font-weight: 600;
}
.nav-dropdown .dropdown-toggle::after {
    content: ''; width: 0; height: 0; border-left: 4px solid transparent;
    border-right: 4px solid transparent; border-top: 4px solid currentColor;
    margin-left: 2px; transition: transform var(--duration-fast) var(--ease-in-out);
}
.nav-dropdown.is-open .dropdown-toggle::after, .nav-dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; transform: none;
    min-width: 260px; max-width: min(360px, calc(100vw - 24px)); max-height: 75vh; max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface) !important; border-radius: var(--radius-md); box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
    padding: 6px; z-index: 1200;
}
/* Les derniers menus s'alignent à droite pour ne jamais sortir de l'écran */
#mainNav > .nav-dropdown:nth-last-child(-n+3) > .dropdown-menu { left: auto; right: 0; }
.dropdown-menu.is-open { display: block; animation: slideDown var(--duration-normal) var(--ease-out); }
.nav-dropdown.is-open > .dropdown-menu, .nav-dropdown.open > .dropdown-menu { display: block; animation: slideDown var(--duration-normal) var(--ease-out); }
.dropdown-menu::-webkit-scrollbar { width: 8px; }
.dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

#mainNav .dropdown-menu a, .topbar .dropdown-menu a, .dropdown-menu a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    color: #334155 !important; background: transparent !important;
    border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; font-size: var(--text-sm);
    transition: background var(--duration-fast) var(--ease-in-out), color var(--duration-fast) var(--ease-in-out);
}
.dropdown-menu a svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
#mainNav .dropdown-menu a:hover, #mainNav .dropdown-menu a.active, .dropdown-menu a:hover, .dropdown-menu a.active {
    color: #1B75BC !important; background: #F0F7FC !important; text-decoration: none;
}
#mainNav .dropdown-menu a.active, .dropdown-menu a.active { font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
#mainNav .dropdown-menu a.highlight, .dropdown-menu a.highlight { color: #1B75BC !important; font-weight: 600; background: #F0F7FC !important; }
#mainNav .dropdown-menu a.highlight:hover, .dropdown-menu a.highlight:hover { background: #1B75BC !important; color: #FFFFFF !important; }

.dropdown-divider { height: 1px; background: var(--border); margin: 6px 8px; }
.dropdown-label { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.notification-badge {
    position: absolute; top: 2px; right: 0; background: var(--danger); color: var(--surface);
    font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: var(--radius-full);
    min-width: 16px; text-align: center; line-height: 1; box-shadow: 0 0 0 2px var(--primary);
}
.nav-count { display: inline-block; margin-left: 6px; background: var(--danger); color: var(--surface); font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: var(--radius-full); min-width: 18px; text-align: center; }

.menu-toggle {
    display: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--surface); width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); cursor: pointer;
    transition: background var(--duration-fast) var(--ease-in-out);
    align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); }
.menu-toggle svg { display: block; }

/* Ouverture au survol / au clavier : ordinateur avec souris uniquement */
@media (min-width: 1321px) and (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown:has(:focus-visible) > .dropdown-menu { display: block; animation: slideDown var(--duration-normal) var(--ease-out); }
    .nav-dropdown:hover > .dropdown-toggle { color: var(--surface); background: rgba(255, 255, 255, 0.18); }
    .nav-dropdown:hover > .dropdown-toggle::after { transform: rotate(180deg); }
}

/* Intermédiaire : on resserre (et on masque le nom à côté du logo) pour garder le menu sur une seule ligne */
@media (min-width: 1321px) and (max-width: 1600px) {
    .topbar-inner { padding-left: 16px; padding-right: 16px; gap: 12px; }
    #mainNav > a, .nav-dropdown .dropdown-toggle { padding: 10px 9px; font-size: 0.84rem; }
    #mainNav > a.active::after { left: 9px; right: 9px; }
    .brand-text { display: none; }
}

/* Tablette & mobile : menu burger avec panneau déroulant */
@media (max-width: 1320px) {
    :root { --topbar-h: 68px; }
    .topbar-inner { padding: 8px 16px; gap: 12px; }
    .brand-logo { width: 68px; height: 50px; border-radius: 12px; padding: 4px; }
    .brand-text strong { font-size: var(--text-base); }
    .menu-toggle { display: flex; }

    #mainNav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); flex-direction: column; align-items: stretch; flex-wrap: nowrap;
        padding: 8px 12px 14px; box-shadow: var(--shadow-xl); border-top: 1px solid var(--border);
        gap: 2px; max-height: calc(100vh - var(--topbar-h) - 3px); max-height: calc(100dvh - var(--topbar-h) - 3px);
        overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
    #mainNav.open { display: flex; animation: slideDown var(--duration-normal) var(--ease-out); }

    #mainNav > a, .nav-dropdown .dropdown-toggle {
        color: var(--text) !important; padding: 13px 14px; min-height: 48px; width: 100%;
        justify-content: space-between; align-items: center; display: flex; border-radius: var(--radius-sm); font-size: var(--text-base);
    }
    #mainNav > a:hover, #mainNav > a.active, .nav-dropdown .dropdown-toggle:hover { background: var(--primary-050); color: var(--primary) !important; }
    #mainNav > a.active::after { display: none; }
    #mainNav > a.active, .nav-dropdown .dropdown-toggle.active { box-shadow: inset 3px 0 0 var(--primary); }
    .nav-dropdown.is-open .dropdown-toggle, .nav-dropdown.open .dropdown-toggle { background: var(--primary-050); color: var(--primary) !important; }
    #mainNav > a.btn-light { border: 1px solid var(--border-strong); justify-content: center; margin-top: 6px; }
    #mainNav > a.btn-secondary { justify-content: center; margin-top: 6px; }
    .btn-deconnexion { color: var(--danger) !important; margin-left: 0; }
    .nav-dropdown::after { display: none; }

    .dropdown-menu, #mainNav > .nav-dropdown:nth-last-child(-n+3) > .dropdown-menu {
        position: static; transform: none; box-shadow: none; border: none; left: auto; right: auto; top: auto;
        background: var(--light) !important; margin: 2px 0 6px !important; padding: 4px 6px;
        border-radius: var(--radius-sm); max-height: none; max-width: none; min-width: 0; width: 100%;
    }
    #mainNav .dropdown-menu a, .dropdown-menu a { color: #334155 !important; background: transparent !important; min-height: 44px; font-size: var(--text-sm); }
    #mainNav .dropdown-menu a:hover, .dropdown-menu a:hover { background: #E8F1F8 !important; color: #1B75BC !important; }
    .notification-badge { top: 50%; right: 40px; transform: translateY(-50%); box-shadow: none; }
}

@media (max-width: 480px) {
    .topbar-inner { padding: 6px 12px; }
    .brand-text { display: none; }
}

/* -----------------------------------------------------
   En-tête centré (v2026.12.10.1)
   Ligne 1 : grand logo lisible, centré, sur fond blanc (défile avec la page)
   Ligne 2 : menu centré sur la bande bleue (reste collé en haut)
   --logo-row = hauteur de la ligne du logo ; l'en-tête « remonte »
   de cette hauteur au défilement, seule la bande du menu reste visible.
   ----------------------------------------------------- */
:root { --logo-h: 170px; --logo-row: calc(var(--logo-h) + 20px); --topbar-h: 60px; }
.topbar {
    top: calc(-1 * var(--logo-row));
    background: linear-gradient(to bottom, var(--surface) 0 var(--logo-row), var(--primary) var(--logo-row) 100%);
}
.topbar-inner { flex-wrap: wrap; justify-content: center; padding-top: 0; padding-bottom: 0; row-gap: 0; min-height: 0; }
.brand { flex: 0 0 100%; justify-content: center; height: var(--logo-row); padding: 10px 0; box-sizing: border-box; }
.brand:hover { opacity: 1; }
.brand-logo { width: auto; height: var(--logo-h); padding: 0; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
.brand:hover .brand-logo { transform: none; }
.brand-logo img { width: auto; height: 100%; object-fit: contain; }
#mainNav { flex: 0 0 100%; justify-content: center; min-height: var(--topbar-h); }
#mainNav > .nav-dropdown:nth-last-child(-n+3) > .dropdown-menu { left: 0; right: auto; }
#mainNav > .nav-dropdown:last-child > .dropdown-menu { left: auto; right: 0; }
.menu-toggle-label { display: none; }

@media (min-width: 1321px) and (max-width: 1600px) {
    .topbar-inner { padding-top: 0; padding-bottom: 0; }
}

/* Tablette & téléphone : logo centré en haut, puis une barre « Menu » pleine largeur */
@media (max-width: 1320px) {
    :root { --logo-h: 150px; --logo-row: calc(var(--logo-h) + 16px); --topbar-h: 52px; }
    .topbar-inner { padding: 0; }
    .brand { padding: 8px 0; }
    .brand-logo { width: auto; height: var(--logo-h); padding: 0; border-radius: 0; }
    .menu-toggle {
        flex: 0 0 100%; width: 100%; height: var(--topbar-h); border: none; border-radius: 0;
        gap: 10px; font-family: inherit; font-size: var(--text-base); font-weight: 600;
    }
    .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
    .menu-toggle-label { display: inline; }
    #mainNav { min-height: 0; left: 0; right: 0; }
    #mainNav > .nav-dropdown:last-child > .dropdown-menu { left: auto; right: auto; }
}
@media (max-width: 480px) {
    :root { --logo-h: 136px; }
    .topbar-inner { padding: 0; }
}

/* -----------------------------------------------------
   Bandeau défilant « À la une » (v2026.12.12.1) : app/views/bandeau-nouveautes.php
   ----------------------------------------------------- */
.bn { display: flex; align-items: stretch; background: var(--secondary); color: #fff; font-size: 14px; line-height: 1.2; height: var(--bn-h); overflow: hidden; position: sticky; top: 0; z-index: 1001; }
/* v2026.12.13.1 : quand le bandeau est affiché (classe posée par bandeau-nouveautes.php), il reste collé en haut
   et la bande du menu se colle juste en dessous ; seul le logo s'efface au défilement */
:root { --bn-h: 40px; }
html.bn-on .topbar { top: calc(var(--bn-h) - var(--logo-row)); }
html.bn-on { scroll-padding-top: calc(var(--bn-h) + var(--topbar-h) + 16px); }
html.bn-on .st-toc, html.bn-on .st-chapter, html.bn-on .st-adopt { top: calc(var(--bn-h) + var(--topbar-h) + 16px); scroll-margin-top: calc(var(--bn-h) + var(--topbar-h) + 16px); }
.bn-label { display: flex; align-items: center; gap: 8px; padding: 0 16px; background: rgba(0, 0, 0, 0.22); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }
.bn-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.bn-track { display: flex; width: max-content; animation: bnDefile var(--bn-duree, 30s) linear infinite; }
.bn:hover .bn-track, .bn:focus-within .bn-track, .bn.bn-paused .bn-track { animation-play-state: paused; }
@keyframes bnDefile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bn-list { display: flex; list-style: none; margin: 0; padding: 0; }
.bn-item { display: flex; align-items: center; }
.bn-item::after { content: "•"; opacity: .5; padding: 0 22px; }
.bn-item a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; padding: 6px 2px; border-radius: 4px; }
.bn-item a:hover .bn-title { text-decoration: underline; }
.bn-item a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bn-new { background: #FFD166; color: #3b1d00; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; letter-spacing: .03em; }
.bn-type { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.bn-title { font-weight: 600; }
.bn-date { opacity: .75; font-size: 13px; }
.bn-pause { flex-shrink: 0; width: 44px; border: none; background: rgba(0, 0, 0, 0.22); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bn-pause:hover { background: rgba(0, 0, 0, 0.35); }
.bn-pause:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.bn-ico-play, .bn.bn-paused .bn-ico-pause { display: none; }
.bn.bn-paused .bn-ico-play { display: block; }
@media (max-width: 768px) {
    :root { --bn-h: 38px; }
    .bn { font-size: 13px; }
}
@media (max-width: 1320px) {
    html.bn-on #mainNav { max-height: calc(100vh - var(--bn-h) - var(--topbar-h) - 3px); max-height: calc(100dvh - var(--bn-h) - var(--topbar-h) - 3px); }
}
@media (max-width: 768px) {
    .bn-label { padding: 0 10px; }
    .bn-label span { display: none; }
    .bn-date { display: none; }
    .bn-item::after { padding: 0 16px; }
}
/* Appareil réglé sur « réduire les animations » : pas de défilement automatique,
   la liste se fait glisser au doigt ou à la molette, et la copie est masquée */
@media (prefers-reduced-motion: reduce) {
    .bn-track { animation: none; }
    .bn-track > .bn-list[aria-hidden="true"], .bn-pause { display: none; }
    .bn-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
}
@media print { .bn { display: none; } }

/* =====================================================
   5. MISE EN PAGE
   ===================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 40px 24px; width: 100%; }
.section-full { width: 100%; padding: 64px 0; }

.page-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: var(--text-3xl); margin-bottom: 0.5rem; }
.page-header p { color: var(--muted); font-size: var(--text-base); max-width: 720px; margin-bottom: 0; }

/* Héros */
.hero, .page-hero { background: var(--primary); color: var(--surface); padding: 96px 24px 120px; position: relative; overflow: hidden; }
.hero::before, .page-hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none;
}
.hero h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 20px; letter-spacing: -0.03em; position: relative; color: var(--surface); }
.hero p, .page-hero p { max-width: 640px; font-size: var(--text-lg); opacity: 0.95; line-height: 1.6; margin: 0 auto 28px auto; position: relative; color: var(--surface); }
.hero-actions { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Grilles */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* =====================================================
   6. COMPOSANTS
   ===================================================== */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 24px; box-shadow: var(--shadow-xs);
    transition: box-shadow var(--duration-normal) var(--ease-in-out), transform var(--duration-normal) var(--ease-in-out), border-color var(--duration-normal) var(--ease-in-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.card h2 { font-size: var(--text-base); font-weight: 600; color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: var(--radius-sm); padding: 9px 18px;
    font-size: var(--text-sm); font-weight: 600; font-family: var(--font-sans);
    text-decoration: none; cursor: pointer; transition: all var(--duration-fast) var(--ease-in-out);
    line-height: 1.4; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--surface); }
.btn-primary:hover { background: var(--primary-dark); color: var(--surface); }
.btn-primary:disabled, .btn:disabled { background: var(--border-strong); color: var(--surface); cursor: not-allowed; transform: none; opacity: .8; }
.btn-secondary { background: var(--secondary); color: var(--surface); }
.btn-secondary:hover { background: var(--secondary-dark); color: var(--surface); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-light:hover { background: var(--light); border-color: var(--muted); color: var(--dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: var(--light); color: var(--dark); }
.btn-danger { background: var(--danger); color: var(--surface); }
.btn-danger:hover { background: #B91C1C; color: var(--surface); }
.btn-success { background: var(--success); color: var(--surface); }
.btn-success:hover { background: #15803D; color: var(--surface); }
.btn-warning { background: var(--warning); color: var(--surface); }
.btn-warning:hover { background: #B45309; color: var(--surface); }
.btn-info { background: var(--info); color: var(--surface); }
.btn-info:hover { background: #0369A1; color: var(--surface); }
.btn-large { padding: 12px 24px; font-size: var(--text-base); }
.btn-small { padding: 6px 12px; font-size: var(--text-xs); }
.btn-full { width: 100%; }

/* Formulaires */
.form-group { margin-bottom: 18px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="datetime-local"],
input[type="time"], input[type="number"], input[type="month"], input[type="tel"], input[type="url"], input[type="search"], select, textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-size: var(--text-sm); font-family: var(--font-sans); color: var(--text); background: var(--surface);
    transition: all var(--duration-fast) var(--ease-in-out); -webkit-appearance: none; appearance: none; min-height: 40px;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; vertical-align: middle; }
input[type="file"] { max-width: 100%; font-size: var(--text-sm); }
input::placeholder, textarea::placeholder { color: #94A3B8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--light); color: var(--muted); cursor: not-allowed; }
textarea { min-height: 100px; resize: vertical; }
/* iOS : évite le zoom automatique à la saisie */
@media (max-width: 768px) { input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="number"], input[type="month"], input[type="tel"], input[type="url"], input[type="search"], select, textarea { font-size: 16px; } }
.form-help { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Tableaux */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
th { background: var(--light); color: var(--muted); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--duration-fast) var(--ease-in-out); }
tbody tr:hover { background: var(--primary-050); }
.num { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--dark); }

/* Pastilles & badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill-success, .pill-ok { background: var(--success-bg); color: #047857; }
.pill-danger, .pill-late { background: var(--danger-bg); color: #B91C1C; }
.pill-warning, .pill-wait { background: var(--warning-bg); color: #B45309; }
.pill-info { background: var(--info-bg); color: #0369A1; }
.pill-muted, .pill-mut { background: var(--light); color: var(--text-soft); }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-dark { background: var(--light); color: var(--text-soft); }

/* Alertes */
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: var(--text-sm); border: 1px solid transparent; display: flex; align-items: flex-start; gap: 12px; animation: fadeIn var(--duration-normal) var(--ease-out); box-shadow: var(--shadow-xs); }
.alert-success { background: var(--success-bg); color: #065F46; border-color: var(--success-border); }
.alert-error, .alert-danger { background: var(--danger-bg); color: #991B1B; border-color: var(--danger-border); }
.alert-info { background: var(--info-bg); color: #075985; border-color: var(--info-border); }
.alert-warning { background: var(--warning-bg); color: #92400E; border-color: var(--warning-border); }

/* Authentification */
.auth-container { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.auth-header { background: var(--primary); color: var(--surface); padding: 32px 28px; text-align: center; position: relative; overflow: hidden; }
.auth-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); }
.auth-header h1 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 6px; position: relative; color: var(--surface); }
.auth-header p { opacity: 0.95; font-size: var(--text-sm); position: relative; color: var(--surface); }
.auth-form { padding: 28px; }

/* =====================================================
   7. PIED DE PAGE
   ===================================================== */
.footer { width: 100%; margin-top: auto; background: var(--dark); color: rgba(255, 255, 255, 0.9); padding: 64px 24px 24px; border-top: 4px solid var(--secondary); }
.footer-content { max-width: 1400px; width: 100%; margin: 0 auto 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-col h3 { color: var(--surface); font-size: var(--text-xs); font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: var(--text-sm); transition: color var(--duration-fast) var(--ease-in-out); display: inline-block; }
.footer-col ul li a:hover { color: var(--surface); text-decoration: none; }
.footer-brand { text-align: left; }
.footer-logo { width: 56px; height: 56px; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.footer-logo img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand h2 { color: var(--surface); font-size: var(--text-xl); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: var(--text-sm); line-height: 1.6; margin-bottom: 6px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: rgba(255, 255, 255, 0.85); font-size: var(--text-sm); overflow-wrap: anywhere; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: rgba(255, 255, 255, 0.7); margin-top: 2px; }
/* Entrée « 📲 Téléchargez l'appli » du menu principal (v2026.12.16.1) */
#mainNav > a.nav-app { border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.10); font-weight: 600; margin: 0 4px; }
#mainNav > a.nav-app:hover, #mainNav > a.nav-app.active { background: rgba(255, 255, 255, 0.22); }
#mainNav > a.nav-app.active::after { display: none; }
@media (max-width: 1320px) {
    #mainNav > a.nav-app { justify-content: flex-start; gap: 8px; margin: 4px 0; border: 1px solid var(--primary-light); background: var(--primary-050); color: var(--primary) !important; }
}

/* Bouton « Retour en haut » du pied de page (v2026.12.13.1) */
.footer-top-wrap { max-width: 1400px; width: 100%; margin: 0 auto 20px; display: flex; justify-content: center; }
.footer-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background var(--duration-fast) var(--ease-in-out), transform var(--duration-fast) var(--ease-in-out); }
.footer-top:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.footer-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media print { .footer-top-wrap { display: none; } }
.footer-bottom { max-width: 1400px; width: 100%; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; color: rgba(255, 255, 255, 0.5); font-size: var(--text-xs); }

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .footer { padding: 48px 20px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================
   8. COMPOSANTS SPÉCIFIQUES AU SITE
   ===================================================== */
.president-grid, .infra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.president-card, .infra-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; transition: all var(--duration-normal) var(--ease-in-out); }
.president-card:hover, .infra-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.president-photo { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--primary-light); border: 3px solid var(--surface); box-shadow: var(--shadow-md), 0 0 0 1px var(--border); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--primary); }
.president-photo img, .infra-image { width: 100%; height: 100%; object-fit: cover; }
.infra-image { height: 180px; border-radius: var(--radius-md); margin-bottom: 14px; border: 1px solid var(--border); }

.presidents-timeline { position: relative; padding-left: 44px; }
.presidents-timeline::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.president-item { position: relative; margin-bottom: 32px; }
.president-item::before { content: attr(data-order); position: absolute; left: -44px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--surface); font-size: var(--text-xs); font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.president-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }

.essentiel-title { color: var(--primary) !important; font-size: var(--text-base); margin: 0 0 6px 0; font-weight: 600; letter-spacing: -0.01em; }

.missions-section { background: var(--surface); width: 100%; padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mission-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; transition: all var(--duration-normal) var(--ease-in-out); height: 100%; }
.mission-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mission-icon { width: 44px; height: 44px; background: var(--primary-050); color: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 16px; border: 1px solid var(--primary-light); }
.mission-title { color: var(--dark); font-size: var(--text-base); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: var(--text-3xl); color: var(--dark); margin-bottom: 14px; font-weight: 700; letter-spacing: -0.02em; }
.section-header .divider { width: 48px; height: 3px; background: var(--primary); margin: 0 auto; border-radius: 2px; }
.section-header p { color: var(--muted); max-width: 640px; margin: 18px auto 0; font-size: var(--text-base); line-height: 1.6; }

.whatsapp-float { position: fixed; width: 56px; height: 56px; bottom: 24px; right: 24px; background: #25D366; color: var(--surface); border-radius: 50%; text-align: center; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); z-index: 900; display: flex; align-items: center; justify-content: center; transition: all var(--duration-normal) var(--ease-out); text-decoration: none; }
.whatsapp-float:hover { background: #1DA851; color: var(--surface); transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4); text-decoration: none; }

/* =====================================================
   9. PANNEAUX & INDICATEURS (espace bureau / membre)
   ===================================================== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.panel-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: var(--text-sm); font-weight: 600; color: var(--dark); margin: 0; }
.panel-body { padding: 20px; }
.panel-note { padding: 12px 20px; background: var(--light); font-size: var(--text-xs); color: var(--muted); border-top: 1px solid var(--border); }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.kpi { background: var(--surface); padding: 18px 20px; }
.kpi .label { font-size: var(--text-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .value { font-size: var(--text-2xl); font-weight: 700; color: var(--dark); margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .value.danger { color: var(--danger); }
.kpi .value.success { color: var(--success); }

.callout { display: flex; gap: 12px; padding: 14px 18px; background: var(--info-bg); border: 1px solid var(--info-border); border-radius: var(--radius-md); margin-bottom: 24px; font-size: var(--text-sm); color: #0C4A6E; line-height: 1.6; }
.callout svg { flex-shrink: 0; margin-top: 2px; }

/* =====================================================
   10. RESPONSIVE GÉNÉRAL
   ===================================================== */
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .container { padding: 32px 16px; }
    .section-full { padding: 48px 0; }
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .hero, .page-hero { padding: 64px 20px 80px; }
    .hero h1, .page-hero h1 { font-size: var(--text-2xl); }
    .president-panel { grid-template-columns: 1fr; text-align: center; }
    .president-photo { margin: 0 auto 16px auto; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .page-header h1 { font-size: var(--text-2xl); }
    h1, .h1 { font-size: var(--text-3xl); }
    h2, .h2 { font-size: var(--text-2xl); }
    th, td { padding: 10px 12px; }
    .hide-mobile { display: none !important; } .show-mobile { display: initial !important; }
    .auth-container { margin: 32px auto; }
    .auth-form { padding: 22px; }
}
@media (max-width: 420px) {
    .container { padding: 24px 14px; }
    .btn-large { padding: 12px 18px; }
    .alert { padding: 12px 14px; }
}

/* Mouvement réduit : on coupe toutes les animations et transitions */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   11. IMPRESSION
   ===================================================== */
@media print {
    .topbar, .footer, .whatsapp-float, .menu-toggle, .no-print { display: none !important; }
    body { background: #fff; color: #000; display: block; }
    .container { max-width: none; padding: 0; }
    .card, .panel, .kpi { box-shadow: none !important; break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}