/* ==========================================================================
   Plateforme Jeunesse — Basse-Côte
   Direction : dashboard SaaS — sidebar sombre pleine hauteur, cartes KPI à
   bordure colorée, badges catégorisés, panneaux d'alerte. Cohérent avec
   l'identité visuelle de BeautyShop Manager.
   ========================================================================== */

:root {
    /* Sidebar */
    --sidebar-bg:        #131A2B;
    --sidebar-bg-fonce:  #0D1220;
    --sidebar-texte:     #9CA6BF;
    --sidebar-texte-fort:#FFFFFF;
    --sidebar-actif:     #3D5AFE;
    --sidebar-survol:    rgba(255,255,255,0.07);
    --sidebar-bordure:   rgba(255,255,255,0.08);

    /* Contenu */
    --fond:          #F3F5F9;
    --carte:         #FFFFFF;
    --bordure:       #E4E8F0;
    --texte:         #16192B;
    --texte-doux:    #667085;
    --texte-tres-doux:#98A2B3;

    /* Accents sémantiques — plus saturés/vifs */
    --vert:      #12A150;
    --vert-fond: #DAF5E4;
    --bleu:      #3D5AFE;
    --bleu-fond: #E1E6FF;
    --ambre:     #F59E0B;
    --ambre-fond:#FEF0CE;
    --rouge:     #F2394A;
    --rouge-fond:#FDDEE1;
    --cyan:      #06B6D4;
    --cyan-fond: #D3F5FA;
    --violet:    #7C4DFF;
    --violet-fond:#EAE1FF;

    --police: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --police-chiffres: 'Plus Jakarta Sans', system-ui, sans-serif;
    --police-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

    --rayon: 12px;
    --rayon-petit: 8px;
    --ombre: 0 1px 2px rgba(16,24,40,0.05), 0 2px 8px rgba(16,24,40,0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--police);
    background: var(--fond);
    color: var(--texte);
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
}

/* Icônes Lucide */
.icone-lucide { width: 1em; height: 1em; stroke-width: 2.2; vertical-align: -0.15em; }
.icone-badge {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.icone-badge svg { width: 20px; height: 20px; stroke-width: 2.3; }
.icone-badge--bleu  { background: var(--bleu-fond); color: var(--bleu); }
.icone-badge--vert  { background: var(--vert-fond); color: var(--vert); }
.icone-badge--ambre { background: var(--ambre-fond); color: var(--ambre); }
.icone-badge--rouge { background: var(--rouge-fond); color: var(--rouge); }
.icone-badge--cyan  { background: var(--cyan-fond); color: var(--cyan); }
.icone-badge--violet{ background: var(--violet-fond); color: var(--violet); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--bleu);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

h1, h2, h3 { color: var(--texte); margin: 0 0 4px; font-weight: 700; }
h1 { font-size: 1.5em; }
h2 { font-size: 1.1em; margin-top: 26px; }
h3 { font-size: 1em; }

/* ==========================================================================
   Mise en page générale
   ========================================================================== */

.layout { display: flex; min-height: 100vh; }

/* ==========================================================================
   Sidebar sombre pleine hauteur
   ========================================================================== */

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--sidebar-bordure);
}
.sidebar-brand .nom {
    color: var(--sidebar-texte-fort);
    font-weight: 700;
    font-size: 1.02em;
    line-height: 1.25;
}
.sidebar-brand .sous-nom {
    color: var(--sidebar-texte);
    font-size: 0.75em;
    margin-top: 2px;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav .menu-titre {
    font-size: 0.68em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texte-tres-doux);
    margin: 16px 10px 6px;
    font-weight: 600;
}
.sidebar-nav .menu-titre:first-child { margin-top: 4px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sidebar-texte);
    padding: 9px 10px;
    border-radius: var(--rayon-petit);
    font-size: 0.9em;
    font-weight: 500;
}
.sidebar-nav a:hover { background: var(--sidebar-survol); color: var(--sidebar-texte-fort); }
.sidebar-nav a.actif { background: var(--sidebar-actif); color: var(--sidebar-texte-fort); }
.sidebar-nav .icone-lucide { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; vertical-align: middle; }
.sidebar-nav a.actif .icone-lucide { opacity: 1; }

.sidebar-user {
    padding: 14px 16px;
    border-top: 1px solid var(--sidebar-bordure);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bleu);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8em;
    flex-shrink: 0;
}
.sidebar-user .infos { min-width: 0; flex: 1; }
.sidebar-user .nom { color: var(--sidebar-texte-fort); font-size: 0.86em; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .role { color: var(--sidebar-texte); font-size: 0.74em; }
.sidebar-user a.deconnexion {
    color: var(--sidebar-texte); text-decoration: none; font-size: 1.1em;
    flex-shrink: 0;
}
.sidebar-user a.deconnexion:hover { color: var(--rouge); }

/* ==========================================================================
   Contenu
   ========================================================================== */

.content { flex: 1; padding: 26px 30px 40px; min-width: 0; }
.content-pleine-largeur { width: 100%; padding: 0; }

.page-header { margin-bottom: 22px; }
.page-header h1 { font-size: 1.4em; }
.sous-titre { color: var(--texte-doux); font-size: 0.85em; margin: 2px 0 0; }

/* ==========================================================================
   Connexion
   ========================================================================== */

.login-page {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; background: var(--sidebar-bg);
}
.login-card {
    background: var(--carte); padding: 40px 36px; border-radius: var(--rayon);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25); width: 340px;
}
.login-card h1 { font-size: 1.3em; line-height: 1.25; margin-bottom: 20px; }
.login-card h2 {
    font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--texte-doux); font-weight: 700; margin-top: 0;
}

/* ==========================================================================
   Formulaires
   ========================================================================== */

.formulaire, form { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.formulaire label, form label { font-weight: 600; font-size: 0.83em; margin-top: 10px; color: var(--texte); }
.formulaire input, .formulaire select, .formulaire textarea,
form input, form select, form textarea {
    padding: 9px 11px; border: 1px solid var(--bordure); border-radius: var(--rayon-petit);
    font-family: var(--police); font-size: 0.93em; background: var(--carte); color: var(--texte);
}
.formulaire input[type=number], form input[type=number] { font-family: var(--police-chiffres); }
.formulaire textarea, form textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus,
form input:focus, form select:focus, form textarea:focus { border-color: var(--bleu); }

.formulaire-ligne { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; max-width: none; }
.formulaire-ligne input, .formulaire-ligne select { margin-top: 0; }

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
    display: inline-block; padding: 9px 18px; border-radius: var(--rayon-petit);
    border: 1px solid transparent; cursor: pointer; text-decoration: none; margin-top: 14px;
    font-weight: 600; font-size: 0.87em; transition: background 0.12s ease, border-color 0.12s ease;
}
.btn-primaire { background: var(--bleu); color: white; }
.btn-primaire:hover { background: #2559C4; }
.btn-secondaire { background: var(--carte); color: var(--texte); border-color: var(--bordure); }
.btn-secondaire:hover { background: var(--fond); border-color: var(--texte-tres-doux); }

/* ==========================================================================
   Tableaux
   ========================================================================== */

.table {
    width: 100%; border-collapse: collapse; background: var(--carte);
    box-shadow: var(--ombre); border-radius: var(--rayon); overflow: hidden;
}
.table th {
    text-align: left; padding: 11px 14px; font-size: 0.72em; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--texte-doux); background: var(--fond);
    border-bottom: 1px solid var(--bordure); font-weight: 700;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--bordure); font-size: 0.92em; }
.table tbody tr:hover { background: rgba(47, 111, 237, 0.04); }
.table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
    .table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ==========================================================================
   Badges de statut
   ========================================================================== */

.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 0.76em; font-weight: 700; letter-spacing: 0.01em;
}
.badge-actif, .badge-paye, .badge-valide, .badge-tenue, .badge-fait, .badge-accorde,
.badge-execute, .badge-cloture { background: var(--vert-fond); color: var(--vert); }
.badge-inactif, .badge-rejete, .badge-annule, .badge-refuse, .badge-mauvais { background: var(--rouge-fond); color: var(--rouge); }
.badge-en_pause, .badge-en_retard, .badge-en_cours, .badge-en_attente,
.badge-declare, .badge-planifie, .badge-planifiee, .badge-reporte,
.badge-a_faire, .badge-recu, .badge-en_preparation { background: var(--ambre-fond); color: var(--ambre); }

/* ==========================================================================
   Cartes KPI (façon tableau de bord)
   ========================================================================== */

.grille-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.carte-solde, .carte-kpi {
    background: var(--carte);
    padding: 16px 20px;
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    border-top: 3px solid var(--bleu);
    margin-bottom: 22px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.grille-kpi .carte-solde, .grille-kpi .carte-kpi { margin-bottom: 0; width: 100%; }

.carte-solde span, .carte-kpi span.libelle {
    font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texte-doux); font-weight: 700;
}
.carte-solde strong, .carte-kpi strong {
    font-family: var(--police-chiffres); font-size: 1.55em; color: var(--texte); font-weight: 600;
}
.carte-kpi .delta { font-size: 0.78em; font-weight: 600; }
.carte-kpi .delta.hausse { color: var(--vert); }
.carte-kpi .delta.baisse { color: var(--rouge); }
.carte-kpi .delta.neutre { color: var(--texte-doux); }

.carte-kpi--vert  { border-top-color: var(--vert); }
.carte-kpi--bleu  { border-top-color: var(--bleu); }
.carte-kpi--ambre { border-top-color: var(--ambre); }
.carte-kpi--rouge { border-top-color: var(--rouge); }
.carte-kpi--cyan  { border-top-color: var(--cyan); }

/* ==========================================================================
   Panneau d'alertes
   ========================================================================== */

.panneau {
    background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre);
    margin-bottom: 22px; overflow: hidden;
}
.panneau-entete {
    padding: 14px 18px; font-weight: 700; font-size: 0.95em;
    border-bottom: 1px solid var(--bordure);
    display: flex; align-items: center; gap: 8px;
}
.panneau-entete .compteur {
    background: var(--rouge-fond); color: var(--rouge); border-radius: 999px;
    font-size: 0.75em; padding: 1px 9px; font-weight: 700;
}
.ligne-alerte {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 18px; border-bottom: 1px solid var(--bordure); font-size: 0.9em;
}
.ligne-alerte:last-child { border-bottom: none; }
.ligne-alerte:hover { background: var(--fond); }
.ligne-alerte.niveau-ambre { background: var(--ambre-fond); }
.ligne-alerte.niveau-rouge { background: var(--rouge-fond); }

/* ==========================================================================
   Liste classée (façon "Top 5")
   ========================================================================== */

.liste-classee { list-style: none; margin: 0; padding: 0; }
.liste-classee li { padding: 10px 18px; border-bottom: 1px solid var(--bordure); }
.liste-classee li:last-child { border-bottom: none; }
.liste-classee .ligne-titre { display: flex; justify-content: space-between; font-size: 0.9em; font-weight: 600; }
.liste-classee .ligne-titre .valeur { font-family: var(--police-chiffres); color: var(--texte); }
.liste-classee .sous-ligne { font-size: 0.78em; color: var(--texte-doux); margin-top: 2px; }
.liste-classee .barre { height: 5px; border-radius: 999px; background: var(--fond); margin-top: 6px; overflow: hidden; }
.liste-classee .barre span { display: block; height: 100%; background: var(--bleu); border-radius: 999px; }

/* ==========================================================================
   Fiches simples
   ========================================================================== */

.fiche { background: var(--carte); padding: 14px 18px; border-radius: var(--rayon); margin-bottom: 12px; box-shadow: var(--ombre); }

/* ==========================================================================
   Bandeau profil (espace personnel du jeune, façon ChoralDB)
   ========================================================================== */

.bandeau-profil {
    background: linear-gradient(120deg, #1E3A8A 0%, #2F6FED 45%, #8A9A2B 100%);
    border-radius: var(--rayon);
    padding: 22px 26px;
    color: white;
    margin-bottom: 20px;
    box-shadow: var(--ombre);
}
.bandeau-profil .entete { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bandeau-profil .avatar-grand {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1em; flex-shrink: 0;
}
.bandeau-profil .salutation { font-size: 0.78em; opacity: 0.85; }
.bandeau-profil .nom-complet { font-size: 1.25em; font-weight: 700; }
.bandeau-profil .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bandeau-profil .badges span {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px; border-radius: 999px; font-size: 0.72em; font-weight: 600;
}
.bandeau-profil .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 4px;
    background: rgba(0,0,0,0.12);
    border-radius: var(--rayon-petit);
    overflow: hidden;
}
.bandeau-profil .stats > div {
    padding: 14px 10px;
    text-align: center;
    background: rgba(255,255,255,0.06);
}
.bandeau-profil .stats strong { display: block; font-size: 1.3em; font-family: var(--police-chiffres); }
.bandeau-profil .stats span { font-size: 0.7em; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.bandeau-profil .stats .alerte-stat { background: rgba(229,72,77,0.35); }

/* ==========================================================================
   Alerte large (bandeau pleine largeur, action à droite)
   ========================================================================== */

.alerte-large {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-radius: var(--rayon);
    margin-bottom: 14px; gap: 12px;
}
.alerte-large.niveau-rouge { background: var(--rouge-fond); }
.alerte-large.niveau-ambre { background: var(--ambre-fond); }
.alerte-large .texte { font-size: 0.9em; }
.alerte-large .texte strong { display: block; font-size: 1em; }
.alerte-large.niveau-rouge .texte strong { color: var(--rouge); }
.alerte-large.niveau-ambre .texte strong { color: var(--ambre); }
.alerte-large .btn { margin-top: 0; flex-shrink: 0; }

/* ==========================================================================
   Panneau de progression (façon "Cotisations 2026" ChoralDB)
   ========================================================================== */

.panneau-progression { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px 22px; margin-bottom: 16px; }
.panneau-progression h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.panneau-progression .colonnes { display: flex; gap: 28px; margin-bottom: 12px; flex-wrap: wrap; }
.panneau-progression .colonnes > div span { display: block; font-size: 0.7em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 2px; }
.panneau-progression .colonnes > div strong { font-family: var(--police-chiffres); font-size: 1.2em; }
.panneau-progression .colonnes .perçu strong { color: var(--vert); }
.panneau-progression .colonnes .du strong { color: var(--rouge); }
.panneau-progression .barre-progression { height: 7px; background: var(--fond); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.panneau-progression .barre-progression span { display: block; height: 100%; background: var(--vert); }
.panneau-progression .resume { font-size: 0.78em; color: var(--texte-doux); }

/* ==========================================================================
   Liste de rappels (avatar coloré + badge + montant)
   ========================================================================== */

.liste-rappels { list-style: none; margin: 0; padding: 0; }
.liste-rappels li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-bottom: 1px solid var(--bordure);
}
.liste-rappels li:last-child { border-bottom: none; }
.liste-rappels .avatar-lettre {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72em; font-weight: 700; color: white; flex-shrink: 0;
}
.liste-rappels .avatar-lettre.cat-A { background: var(--bleu); }
.liste-rappels .avatar-lettre.cat-B { background: var(--vert); }
.liste-rappels .avatar-lettre.cat-C { background: var(--ambre); }
.liste-rappels .avatar-lettre.cat-D { background: var(--cyan); }
.liste-rappels .infos { flex: 1; min-width: 0; }
.liste-rappels .infos .nom { font-size: 0.88em; font-weight: 600; }
.liste-rappels .infos .detail { font-size: 0.75em; color: var(--texte-doux); }
.liste-rappels .montant { font-family: var(--police-chiffres); font-weight: 700; color: var(--rouge); font-size: 0.9em; text-align: right; }

/* ==========================================================================
   Cartes KPI compactes avec icône (ligne de 6, façon ChoralDB/BeautyShop)
   ========================================================================== */

.grille-kpi-compacte { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.carte-kpi-compacte {
    background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre);
    padding: 14px 16px; border-top: 3px solid var(--bleu);
}
.carte-kpi-compacte .icone { font-size: 1.3em; margin-bottom: 4px; }
.carte-kpi-compacte strong { display: block; font-family: var(--police-chiffres); font-size: 1.5em; }
.carte-kpi-compacte span { font-size: 0.68em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); font-weight: 700; }
.carte-kpi-compacte--vert  { border-top-color: var(--vert); }
.carte-kpi-compacte--bleu  { border-top-color: var(--bleu); }
.carte-kpi-compacte--ambre { border-top-color: var(--ambre); }
.carte-kpi-compacte--rouge { border-top-color: var(--rouge); }
.carte-kpi-compacte--cyan  { border-top-color: var(--cyan); }

/* ==========================================================================
   Panneaux dépliables (formulaires de saisie repliés par défaut)
   ========================================================================== */

details.pliable {
    background: var(--carte);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    margin-bottom: 16px;
    overflow: hidden;
}
details.pliable summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    color: var(--texte);
}
details.pliable summary::-webkit-details-marker { display: none; }
details.pliable summary .icone-lucide { color: var(--bleu); }
details.pliable summary::after {
    content: '';
    margin-left: auto;
    width: 8px; height: 8px;
    border-right: 2px solid var(--texte-doux);
    border-bottom: 2px solid var(--texte-doux);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
details.pliable[open] summary::after { transform: rotate(-135deg); }
details.pliable summary:hover { background: var(--fond); }
details.pliable .contenu-pliable { padding: 4px 18px 18px; border-top: 1px solid var(--bordure); padding-top: 16px; }
details.pliable form { max-width: none; }

/* ==========================================================================
   Cartes membres (photo, nom, poste, actions voir/modifier/supprimer)
   ========================================================================== */

.grille-membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.carte-membre { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; text-align: center; }
.carte-membre .photo, .carte-membre .avatar-init {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: block;
}
.carte-membre .photo { object-fit: cover; }
.carte-membre .avatar-init {
    display: flex; align-items: center; justify-content: center;
    background: var(--bleu-fond); color: var(--bleu); font-weight: 700; font-size: 1.3em;
}
.carte-membre .nom { font-weight: 700; font-size: 0.9em; }
.carte-membre .poste { font-size: 0.76em; color: var(--texte-doux); margin-top: 2px; }
.carte-membre .vacant { color: var(--texte-tres-doux); font-style: italic; font-size: 0.85em; }
.carte-membre .actions { margin-top: 10px; display: flex; justify-content: center; gap: 10px; }
.carte-membre .actions a, .carte-membre .actions button {
    color: var(--texte-doux); background: none; border: none; cursor: pointer; padding: 2px; display: inline-flex;
}
.carte-membre .actions a:hover, .carte-membre .actions button:hover { color: var(--bleu); }
.carte-membre .actions .danger:hover { color: var(--rouge); }
.carte-membre .actions .icone-lucide { width: 15px; height: 15px; }

.upload-photo { display: flex; align-items: center; gap: 12px; margin-top: 10px; margin-bottom: 6px; }
.upload-photo .apercu {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    background: var(--fond); border: 1px dashed var(--bordure);
}

.ligne-edition-repliee { display: none; }
.ligne-edition-repliee.ouvert { display: table-row; }
.bloc-edition-replie { display: none; }
.bloc-edition-replie.ouvert { display: block; }

/* ==========================================================================
   Filtres
   ========================================================================== */

.filtres { margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.filtres a {
    display: inline-block; padding: 6px 14px; border-radius: 999px; text-decoration: none;
    font-size: 0.85em; color: var(--texte); background: var(--carte); border: 1px solid var(--bordure);
}
.filtres a.actif { background: var(--bleu); color: white; border-color: var(--bleu); }

/* ==========================================================================
   Messages flash
   ========================================================================== */

.flash-container { margin-bottom: 16px; }
.alert {
    padding: 11px 16px; border-radius: var(--rayon-petit); margin-bottom: 8px;
    font-size: 0.9em; border-left: 3px solid transparent;
}
.alert-succes { background: var(--vert-fond); color: var(--vert); border-left-color: var(--vert); }
.alert-erreur { background: var(--rouge-fond); color: var(--rouge); border-left-color: var(--rouge); }

.alerte-identifiants {
    background: #FFF8E1;
    border: 1px dashed var(--ambre);
    color: #7A5200;
    padding: 12px 16px;
    border-radius: var(--rayon-petit);
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; align-items: center; }
    .sidebar-brand { border-bottom: none; border-right: 1px solid var(--sidebar-bordure); padding: 12px 16px; }
    .sidebar-nav { padding: 8px; overflow-x: auto; }
    .sidebar-nav ul { display: flex; gap: 4px; }
    .sidebar-nav .menu-titre { display: none; }
    .sidebar-nav a { white-space: nowrap; }
    .sidebar-user { border-top: none; border-left: 1px solid var(--sidebar-bordure); }
    .sidebar-user .infos { display: none; }
    .content { padding: 18px; }
}
