/* ANSEMOK ROUTE — design system (famille mobilité). Mobile-first, premium, sobre. */

/* ---- Police auto-hébergée (souveraineté : zéro appel à un CDN de polices tiers/US) ----
   Inter en variable woff2 (axe poids 400→800), servi depuis /fonts.
   font-display:swap → le texte s'affiche aussitôt en pile système, puis bascule sur Inter
   dès que le woff2 est chargé (clé sur 3G congolaise : pas de page blanche). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;            /* fichier variable : couvre toute la plage */
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  /* Sous-ensemble latin : ASCII + ponctuation courante (le plus léger, ~48 Ko). */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  /* Latin étendu : accents fr (é è à ç ô…) + diacritiques noms d'Afrique francophone.
     Chargé seulement si un caractère de cette plage apparaît. */
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --indigo-900: #0e1f5b;
  --indigo: #16308c;
  --indigo-600: #2547b5;
  --indigo-100: #e6ebf8;
  --amber: #f59e0b;
  --amber-600: #d97706;
  --orange: #fb7138;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #eef2f9;
  --surface: #ffffff;
  --success: #15a34a;
  --success-bg: #e7f7ee;
  --danger: #dc2626;
  --danger-bg: #fdeaea;
  --warn-bg: #fef4e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .16);
  --maxw: 460px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #dfe6f4 0%, var(--bg) 240px);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---- Console démo (barre du haut) ---- */
.demobar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; flex-wrap: wrap;
  background: rgba(14, 31, 91, .96);
  backdrop-filter: blur(8px);
  color: #fff;
}
.demobar-brand { font-size: 15px; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.demobar-brand b { font-weight: 800; }
.demobar-op { color: #aab6e0; font-weight: 500; font-size: 13px; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
/* Le logo n'est pas interactif : pas de curseur texte ni de sélection accidentelle. */
.demobar-brand { cursor: default; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* ---- Cadre app (colonne téléphone) ---- */
.app-frame {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 120px;
  min-height: calc(100vh - 52px);
}
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---- Hero vitrine ---- */
.hero {
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-600));
  color: #fff; border-radius: var(--radius); padding: 22px 20px 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 70%);
}
.hero h1 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.hero p { color: #c7d0ef; font-size: 14px; margin-top: 6px; }

/* ---- Cartes ---- */
.card {
  background: var(--surface); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card + .card { margin-top: 12px; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 22px 4px 10px; }

/* ---- Formulaire / recherche ---- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field select, .field input {
  width: 100%; padding: 13px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--indigo-600); box-shadow: 0 0 0 3px var(--indigo-100); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Aide de saisie humaine sous un champ (ex : format du numéro Mobile Money). */
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
/* État d'erreur léger : le champ se teinte, le message apparaît sans bloquer brutalement. */
.field input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.field-hint.is-error { color: var(--danger); font-weight: 600; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 18px; font-size: 15px; font-weight: 700; font-family: inherit;
  border: none; border-radius: var(--radius-sm); cursor: pointer; transition: .15s; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--indigo-600)); color: #fff; box-shadow: 0 6px 16px rgba(22, 48, 140, .3); }
.btn-primary:active { transform: translateY(1px); }
.btn-amber { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #fff; box-shadow: 0 6px 16px rgba(251, 113, 56, .3); }
.btn-ghost { background: #fff; color: var(--indigo); border: 1.5px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Cartes trajet ---- */
.trip-card { display: flex; flex-direction: column; gap: 10px; }
.trip-route { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.trip-route .arrow { color: var(--amber-600); }
.trip-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.trip-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-size: 19px; font-weight: 800; color: var(--indigo); }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge-avail { background: var(--success-bg); color: var(--success); }
.badge-low { background: var(--warn-bg); color: var(--amber-600); }
.badge-type { background: var(--indigo-100); color: var(--indigo); }

/* ---- Plan de sièges ---- */
.seatmap-legend { display: flex; gap: 16px; justify-content: center; margin: 14px 0; font-size: 12px; color: var(--muted); }
.seatmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-box { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.bus { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; box-shadow: var(--shadow); }
.bus-head { text-align: center; font-size: 12px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.seat-row { display: grid; grid-template-columns: 1fr 1fr 28px 1fr 1fr; gap: 8px; margin-bottom: 8px; align-items: center; }
.aisle { text-align: center; color: #cbd5e1; font-size: 11px; }
.seat {
  aspect-ratio: 1; border-radius: 9px; border: 1.5px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; transition: .12s;
  display: flex; align-items: center; justify-content: center;
}
.seat.free:hover { border-color: var(--indigo-600); background: var(--indigo-100); }
/* Siège occupé : contraste lisible (ancien #cbd5e1 sur #f1f5f9 était illisible).
   Fond gris franc + texte gris foncé (≈ 4.5:1) + cadenas pour lever toute ambiguïté. */
.seat.taken {
  background: #d2dae5; color: #4e596f; border-color: #c2ccd9; cursor: not-allowed;
  position: relative; font-size: 0; /* on cache le numéro, on montre le cadenas */
}
.seat.taken::after { content: '🔒'; font-size: 13px; line-height: 1; opacity: .85; }
.seat.selected { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #fff; border-color: var(--amber-600); transform: scale(1.05); }

/* Compteur de places libres (au-dessus du plan) + récap discret. */
.seat-availability {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  margin: 2px 0 10px; font-size: 14px; color: var(--muted);
}
.seat-availability b { font-size: 17px; font-weight: 800; color: var(--success); }
.seat-availability.is-low b { color: var(--amber-600); }
.seat-availability.is-full b { color: var(--danger); }

/* ---- Barre CTA fixe ---- */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.cta-bar .cta-info { flex: 1; min-width: 0; }
.cta-bar .cta-info .l { font-size: 11px; color: var(--muted); }
.cta-bar .cta-info .v { font-size: 16px; font-weight: 800; color: var(--indigo); }
.cta-bar .btn { width: auto; padding: 14px 22px; }

/* ---- E-billet ---- */
.ticket {
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-600)); color: #fff;
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); text-align: center; position: relative;
}
.ticket .op { font-size: 12px; color: #aab6e0; letter-spacing: .5px; }
.ticket .rt { font-size: 21px; font-weight: 800; margin: 4px 0 2px; }
.ticket .qr { background: #fff; padding: 14px; border-radius: 14px; display: inline-block; margin: 16px 0; }
.ticket .qr img { display: block; width: 200px; height: 200px; }
.ticket .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-top: 8px; }
.ticket .grid .l { font-size: 11px; color: #aab6e0; }
.ticket .grid .v { font-size: 15px; font-weight: 700; }
.ticket .code { font-family: ui-monospace, monospace; letter-spacing: 1px; font-size: 13px; color: #c7d0ef; margin-top: 14px; }
.ticket-stub { text-align: center; margin-top: 14px; }

/* ---- Bannière résultat scan ---- */
.scan-result { border-radius: 18px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow); }
.scan-result.ok { background: var(--success-bg); border: 2px solid var(--success); }
.scan-result.ko { background: var(--danger-bg); border: 2px solid var(--danger); }
.scan-result .icon { font-size: 52px; line-height: 1; }
.scan-result .verdict { font-size: 22px; font-weight: 800; margin-top: 8px; }
.scan-result.ok .verdict { color: var(--success); }
.scan-result.ko .verdict { color: var(--danger); }
.scan-result .detail { color: var(--ink); margin-top: 6px; font-size: 14px; }

/* ---- Scan caméra contrôleur ---- */
/* Séparateur « ou saisir le code » entre le bouton caméra et le champ texte. */
.scan-sep { display: flex; align-items: center; gap: 10px; margin: 14px 2px; color: var(--muted); font-size: 12px; }
.scan-sep::before, .scan-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scan-sep span { white-space: nowrap; }
/* Message d'indisponibilité / repli (HTTP non sécurisé, permission refusée…). */
.scan-hint { font-size: 12.5px; line-height: 1.45; margin-top: 12px; }

/* Cadre vidéo : coins arrondis, fond sombre pendant l'init, ratio carré stable. */
.cam-shell {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 360px;
  border-radius: var(--radius); overflow: hidden; background: #0b1020;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
/* html5-qrcode injecte sa <video> ici ; on force le remplissage propre du cadre. */
.cam-reader { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.cam-reader video { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
/* On masque l'UI par défaut de la lib (on fournit notre propre viseur/contrôles). */
.cam-reader img[alt="Info icon"], .cam-reader__dashboard_section_csr, .cam-reader__status_span { display: none !important; }

/* Viseur : carré aux 4 angles ambre, centré, par-dessus la vidéo.
   Les 4 équerres sont peintes en une seule passe via 4 dégradés d'angle (pas de pseudo-élément
   limité à 2 coins) : robuste et net sur tous navigateurs mobiles. */
.cam-viewfinder {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64%; aspect-ratio: 1; pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(11, 16, 32, .42); /* assombrit le pourtour, éclaire la cible */
  --c: var(--amber); --t: 3px; --l: 26px; /* couleur, épaisseur, longueur des équerres */
  background:
    linear-gradient(var(--c), var(--c)) top left,
    linear-gradient(var(--c), var(--c)) top left,
    linear-gradient(var(--c), var(--c)) top right,
    linear-gradient(var(--c), var(--c)) top right,
    linear-gradient(var(--c), var(--c)) bottom left,
    linear-gradient(var(--c), var(--c)) bottom left,
    linear-gradient(var(--c), var(--c)) bottom right,
    linear-gradient(var(--c), var(--c)) bottom right;
  background-repeat: no-repeat;
  background-size:
    var(--l) var(--t), var(--t) var(--l),
    var(--l) var(--t), var(--t) var(--l),
    var(--l) var(--t), var(--t) var(--l),
    var(--l) var(--t), var(--t) var(--l);
}

.cam-hint {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  pointer-events: none;
}

/* ---- KPIs owner ---- */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .val { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.kpi.accent { background: linear-gradient(135deg, var(--indigo), var(--indigo-600)); border: none; color: #fff; }
.kpi.accent .k { color: #c7d0ef; }
.kpi.accent .val { color: #fff; }
.kpi.fraud .val { color: var(--danger); }

/* ---- Listes (manifeste, rows) ---- */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row .seat-pill { width: 38px; height: 38px; border-radius: 10px; background: var(--indigo-100); color: var(--indigo); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.row .who { flex: 1; min-width: 0; }
.row .who .n { font-weight: 700; font-size: 14px; }
.row .who .s { font-size: 12px; color: var(--muted); }

/* ============================================================================
   FRET (colis) — Phase 2. Styles additifs, cohérents avec le design system existant
   (cartes, badges, palette indigo/ambre). Aucune règle existante modifiée.
   ============================================================================ */

/* Hero compacte réutilisée par les écrans fret (envoi / suivi). */
.hero-sm { padding: 18px 20px 20px; margin-top: 0; }
.hero-sm h1 { font-size: 21px; }
.hero-sm p { font-size: 13px; }

/* Bandeau d'accès au fret (accueil voyageur + guichet agence) : carte ambre douce, deux actions. */
.cargo-entry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fde7c8; border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.cargo-entry-text { flex: 1; min-width: 180px; }
.cargo-entry-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.cargo-entry-sub { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.cargo-entry-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cargo-entry-actions .btn { width: auto; padding: 11px 16px; font-size: 14px; }

/* Encadré de devis (recalculé serveur pendant la saisie). État neutre → « prêt » à l'obtention. */
.quote-box {
  margin-top: 12px; border-radius: var(--radius); padding: 16px 18px;
  background: var(--indigo-100); border: 1px solid #d4ddf4; text-align: center;
  transition: .2s;
}
.quote-box.is-ready { background: linear-gradient(135deg, var(--indigo), var(--indigo-600)); border-color: transparent; }
.quote-label { font-size: 12px; font-weight: 600; color: var(--indigo); text-transform: uppercase; letter-spacing: .5px; }
.quote-box.is-ready .quote-label { color: #c7d0ef; }
.quote-value { font-size: 28px; font-weight: 800; color: var(--indigo); margin-top: 2px; }
.quote-box.is-ready .quote-value { color: #fff; }
.quote-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.quote-box.is-ready .quote-sub { color: #c7d0ef; }

/* Bordereau / reçu fret (confirmation client + bordereau agence). Même famille visuelle que l'e-billet. */
.receipt {
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-600)); color: #fff;
  border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow-lg); text-align: center;
}
.receipt .op { font-size: 12px; color: #aab6e0; letter-spacing: .5px; }
.receipt-check {
  width: 56px; height: 56px; margin: 12px auto 6px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.receipt-title { font-size: 21px; font-weight: 800; margin-bottom: 2px; }
.receipt-code {
  font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.35);
  border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; word-break: break-all;
}
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-top: 14px; }
.receipt-grid .l { font-size: 11px; color: #aab6e0; }
.receipt-grid .v { font-size: 15px; font-weight: 700; }
.cargo-receipt-actions { display: grid; gap: 10px; }

/* Badge de statut colis (suivi public + back-office). Couleurs alignées sur la sémantique existante. */
.cargo-status-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.cargo-status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cargo-status-badge.registered { background: var(--indigo-100); color: var(--indigo); }
.cargo-status-badge.in_transit { background: var(--warn-bg); color: var(--amber-600); }
.cargo-status-badge.arrived { background: var(--success-bg); color: var(--success); }
.cargo-status-badge.delivered { background: var(--success-bg); color: var(--success); }

/* Timeline de suivi : 4 étapes (enregistré → en transit → arrivé → livré). */
.cargo-timeline { display: flex; align-items: center; margin: 14px 0 4px; }
.cargo-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.cargo-step .dot {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line); transition: .2s;
}
.cargo-step .lbl { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cargo-step-bar { flex: 1; height: 2px; background: var(--line); margin: 0 2px 16px; min-width: 14px; }
.cargo-step.done .dot { background: var(--success); border-color: var(--success); }
.cargo-step.done .lbl { color: var(--success); }
.cargo-step.current .dot { background: var(--amber); border-color: var(--amber-600); box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.cargo-step.current .lbl { color: var(--amber-600); font-weight: 700; }

/* Pastille colis (lignes de liste back-office), même gabarit que .seat-pill. */
.cargo-pill {
  width: 38px; height: 38px; border-radius: 10px; background: var(--warn-bg); color: var(--amber-600);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}

/* KPI pleine largeur (recette totale owner) + ventilation billets/fret + cartes « la journée ». */
.kpi-wide { grid-column: 1 / -1; }
.kpi-split { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.kpi.accent .kpi-split { color: #dde3f6; }
.kpi.today .val { color: var(--indigo); }

/* ---- Divers ---- */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---- Surface INTERNE : bandeau de session + connexion (ajouts back-office) ---- */
/* Utilitaire générique de masquage (bandeau de session caché tant qu'on n'est pas connecté). */
.is-hidden { display: none !important; }

/* Bandeau de session dans l'en-tête interne : rôle connecté + déconnexion. Reprend les
   codes visuels de la console (pilule translucide sur fond indigo). */
.session-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .1); padding: 4px 4px 4px 14px; border-radius: 999px;
}
.session-role { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.session-logout {
  appearance: none; border: 0; cursor: pointer;
  background: #fff; color: var(--indigo);
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; transition: .15s;
}
.session-logout:hover { background: #eef2f9; }
.session-logout:active { transform: translateY(1px); }

/* Bannière d'erreur de connexion (identifiants refusés, compte bloqué, etc.). */
.login-error {
  margin-top: 14px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: var(--danger);
  font-size: 13px; font-weight: 600; line-height: 1.35;
}
