    /* ============================================================
       1. Jetons de la charte (identiques à l'application mobile)
       ============================================================ */
    :root {
      --fond: #0A0A0B;
      --surface-1: #151517;
      --surface-2: #212124;
      --bordure: #2B2B30;
      --texte: #FFFFFF;
      --texte-2: #A1A1AC;
      --accent: #FF3B2F;
      --accent-doux: rgba(255,59,47,0.12);
      --accent-2: #FF9500;
      --or: #FFC53D;
      --or-doux: rgba(255,197,61,0.12);
      --succes: #2ECC6E;  --succes-doux: rgba(46,204,110,0.12);
      --attention: #FFB020; --attention-doux: rgba(255,176,32,0.12);
      --erreur: #FF453A;  --erreur-doux: rgba(255,69,58,0.12);
      --info: #3B82F6;    --info-doux: rgba(59,130,246,0.12);
      --voile: rgba(0,0,0,0.65);
      --degrade-flamme: linear-gradient(90deg, #FF2D1F, #FF9500);
      --degrade-bouton: linear-gradient(90deg, #D9210F, #FF4527);
      --degrade-braise: linear-gradient(90deg, #FF6A00, #FFC53D);
      --lueur: 0 0 12px rgba(255,59,47,0.45);
      --r-carte: 16px; --r-bouton: 14px; --r-champ: 10px; --r-pastille: 999px;
      --police: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      --duree: 180ms;
      --lat: 260px;
    }

    /* ============================================================
       2. Reset et base
       ============================================================ */
    *, *::before, *::after { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      margin: 0; background: var(--fond); color: var(--texte);
      font-family: var(--police); font-size: 14px; line-height: 1.5;
      -webkit-font-smoothing: antialiased; overflow-x: hidden;
    }
    h1, h2, h3, h4, p { margin: 0; }
    h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
    h2 { font-size: 20px; font-weight: 700; }
    h3 { font-size: 16px; font-weight: 700; }
    a { color: var(--accent-2); text-decoration: none; }
    a:hover { text-decoration: underline; }
    button, input, select, textarea { font: inherit; color: inherit; }
    button { cursor: pointer; background: none; border: 0; padding: 0; }
    button:disabled { cursor: not-allowed; opacity: .5; }
    :focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
    code, .mono { font-family: var(--mono); font-size: 13px; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    ::selection { background: var(--accent-doux); }
    svg.ico { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .tabnum { font-variant-numeric: tabular-nums; }
    .texte-2 { color: var(--texte-2); }
    .petit { font-size: 12px; }
    .gras { font-weight: 600; }

    /* ============================================================
       3. Boutons
       ============================================================ */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      min-height: 40px; padding: 0 16px; border-radius: var(--r-bouton);
      font-weight: 600; font-size: 14px; border: 1px solid transparent;
      transition: background var(--duree), box-shadow var(--duree), border-color var(--duree), transform var(--duree);
      white-space: nowrap; position: relative;
    }
    .btn-principal { background: var(--degrade-bouton); color: #fff; }
    .btn-principal:hover:not(:disabled) { box-shadow: var(--lueur); }
    .btn-secondaire { border-color: var(--bordure); background: var(--surface-1); }
    .btn-secondaire:hover:not(:disabled) { background: var(--surface-2); }
    .btn-fantome { color: var(--texte-2); }
    .btn-fantome:hover:not(:disabled) { color: var(--texte); background: var(--surface-2); }
    .btn-destructif { background: var(--erreur); color: #fff; }
    .btn-destructif:hover:not(:disabled) { background: #ff5c52; }
    .btn-petit { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
    .btn-icone { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 10px; }
    .btn.chargement { color: transparent !important; pointer-events: none; }
    .btn.chargement::after {
      content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
      border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: tourne .8s linear infinite;
    }
    .btn-principal.chargement::after { border-top-color: #fff; }
    .btn-secondaire.chargement::after, .btn-fantome.chargement::after { border-color: var(--bordure); border-top-color: var(--texte); }
    @keyframes tourne { to { transform: rotate(360deg); } }
    .btn[data-desactive-motif] { position: relative; }

    /* ============================================================
       4. Champs
       ============================================================ */
    .champ { display: flex; flex-direction: column; gap: 6px; }
    .champ label, .libelle { font-size: 13px; font-weight: 600; color: var(--texte-2); }
    .champ .aide { font-size: 12px; color: var(--texte-2); }
    .champ .erreur-champ { font-size: 12px; color: var(--erreur); }
    .entree, textarea.entree, select.entree {
      width: 100%; min-height: 42px; padding: 10px 12px; border-radius: var(--r-champ);
      background: var(--surface-2); border: 1px solid var(--bordure); color: var(--texte);
      transition: border-color var(--duree);
    }
    .entree::placeholder { color: #6B6B75; }
    .entree:focus { border-color: var(--accent-2); outline: none; }
    .entree[aria-invalid="true"] { border-color: var(--erreur); }
    textarea.entree { resize: vertical; min-height: 88px; }
    select.entree { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A1A1AC' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
    .entree-mdp { position: relative; }
    .entree-mdp .entree { padding-right: 44px; }
    .entree-mdp .oeil { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
    .compteur { font-size: 12px; color: var(--texte-2); text-align: right; }
    .compteur.depasse { color: var(--erreur); }
    .bascule { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
    .bascule input { position: absolute; opacity: 0; width: 0; height: 0; }
    .bascule .piste { width: 40px; height: 22px; border-radius: 999px; background: var(--bordure); position: relative; transition: background var(--duree); flex: 0 0 auto; }
    .bascule .piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--duree); }
    .bascule input:checked + .piste { background: var(--accent); }
    .bascule input:checked + .piste::after { transform: translateX(18px); }
    .bascule input:focus-visible + .piste { outline: 2px solid var(--accent-2); outline-offset: 2px; }
    .case { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
    .case input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
    .code6 { display: flex; gap: 8px; justify-content: center; }
    .code6 input {
      width: 48px; height: 56px; text-align: center; font-size: 24px; font-weight: 700;
      border-radius: var(--r-champ); background: var(--surface-2); border: 1px solid var(--bordure); color: var(--texte);
      font-variant-numeric: tabular-nums;
    }
    .code6 input:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px var(--accent-doux); }
    .jauge-mdp { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
    .jauge-mdp > div { height: 100%; transition: width var(--duree); background: var(--erreur); }
    .jauge-mdp > div.moyen { background: var(--attention); }
    .jauge-mdp > div.fort { background: var(--succes); }

    /* ============================================================
       5. Pastilles, cartes, panneaux
       ============================================================ */
    .pastille {
      display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pastille);
      font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; border: 1px solid transparent;
    }
    .pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .pastille.sans-point::before { display: none; }
    .p-succes { background: var(--succes-doux); color: var(--succes); }
    .p-attention { background: var(--attention-doux); color: var(--attention); }
    .p-erreur { background: var(--erreur-doux); color: var(--erreur); }
    .p-info { background: var(--info-doux); color: var(--info); }
    .p-or { background: var(--or-doux); color: var(--or); }
    .p-or-contour { background: transparent; color: var(--or); border-color: var(--or); }
    .p-gris { background: var(--surface-2); color: var(--texte-2); }
    .p-accent { background: var(--accent-doux); color: var(--accent); }
    .carte { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: var(--r-carte); padding: 20px; }
    .carte-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
    .carte-titre h3 { display: flex; align-items: center; gap: 8px; }
    .grille { display: grid; gap: 16px; }
    .g-kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
    .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    @media (max-width: 1100px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 767px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
    .kpi { display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color var(--duree); min-height: 118px; }
    .kpi:hover { border-color: #3a3a41; }
    .kpi .kpi-lib { font-size: 13px; color: var(--texte-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .kpi .kpi-val { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
    .kpi .kpi-var { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
    .kpi .kpi-var.bon { color: var(--succes); }
    .kpi .kpi-var.mauvais { color: var(--erreur); }
    .kpi .kpi-var.neutre { color: var(--texte-2); }
    .kpi .spark { width: 100%; height: 28px; margin-top: auto; }
    .kpi .estime { font-size: 11px; color: var(--or); font-weight: 600; }
    .info-i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--bordure); color: var(--texte-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
    .info-i:hover { color: var(--texte); border-color: var(--texte-2); }
    .bandeau { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 13px; }
    .bandeau.erreur { background: var(--erreur-doux); border-color: rgba(255,69,58,.35); color: #ffb3ae; }
    .bandeau.attention { background: var(--attention-doux); border-color: rgba(255,176,32,.35); color: #ffd58a; }
    .bandeau.info { background: var(--info-doux); border-color: rgba(59,130,246,.35); color: #b7cdfa; }
    .bandeau.succes { background: var(--succes-doux); border-color: rgba(46,204,110,.35); color: #b1f0c8; }
    .bandeau .btn { margin-left: auto; }
    .bandeau-maquette { background: var(--or); color: #000; text-align: center; font-weight: 700; padding: 6px 12px; font-size: 13px; }
    .vide { text-align: center; padding: 48px 16px; color: var(--texte-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .vide svg.ico { width: 40px; height: 40px; stroke-width: 1.5; opacity: .5; }
    .squelette { background: linear-gradient(90deg, var(--surface-2) 25%, #2a2a2e 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: brille 1.4s infinite; border-radius: 8px; height: 14px; }
    @keyframes brille { to { background-position: -200% 0; } }
    .progression { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
    .progression > div { height: 100%; background: var(--degrade-flamme); border-radius: 999px; }
    .progression.or > div { background: var(--degrade-braise); }
    .progression.info > div { background: var(--info); }
    .progression.attention > div { background: var(--attention); }
    .progression.erreur > div { background: var(--erreur); }
    .tuile { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
    .tuile .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .tuile .l { font-size: 12px; color: var(--texte-2); }
    .liste-cle-valeur { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 16px; font-size: 14px; }
    .liste-cle-valeur dt { color: var(--texte-2); }
    .liste-cle-valeur dd { margin: 0; overflow-wrap: anywhere; }
    .sep { height: 1px; background: var(--bordure); margin: 16px 0; }
    .ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .ligne.entre { justify-content: space-between; }
    .colonne { display: flex; flex-direction: column; gap: 12px; }
    .copiable { display: inline-flex; align-items: center; gap: 6px; }
    .copiable .btn-icone { width: 28px; height: 28px; min-height: 28px; }

    /* ============================================================
       6. Tableaux
       ============================================================ */
    .tableau-conteneur { overflow: auto; border: 1px solid var(--bordure); border-radius: 12px; background: var(--surface-1); }
    table.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
    table.tableau th, table.tableau td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--bordure); white-space: nowrap; }
    table.tableau.compact th, table.tableau.compact td { padding: 6px 10px; }
    table.tableau th { position: sticky; top: 0; background: var(--surface-1); color: var(--texte-2); font-weight: 600; font-size: 12px; z-index: 1; }
    table.tableau th button { color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 4px; }
    table.tableau th[aria-sort="ascending"] button, table.tableau th[aria-sort="descending"] button { color: var(--texte); }
    table.tableau tbody tr:nth-child(even) { background: rgba(33,33,36,.5); }
    table.tableau tbody tr.cliquable { cursor: pointer; }
    table.tableau tbody tr.cliquable:hover, table.tableau tbody tr.cliquable:focus-within { background: var(--surface-2); }
    table.tableau td.num, table.tableau th.num { text-align: right; font-variant-numeric: tabular-nums; }
    table.tableau tr:last-child td { border-bottom: 0; }
    .tableau-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
    .tableau-barre .entree { min-height: 36px; padding: 6px 10px; width: auto; }
    .tableau-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; flex-wrap: wrap; font-size: 13px; color: var(--texte-2); border-top: 1px solid var(--bordure); }
    .filtres-actifs { display: flex; gap: 6px; flex-wrap: wrap; }
    .filtres-actifs .pastille { cursor: pointer; }
    .cellule-degrade { display: inline-block; min-width: 56px; text-align: center; padding: 2px 6px; border-radius: 6px; }
    @media (max-width: 767px) {
      table.tableau.cartes thead { display: none; }
      table.tableau.cartes, table.tableau.cartes tbody, table.tableau.cartes tr, table.tableau.cartes td { display: block; white-space: normal; }
      table.tableau.cartes tr { border-bottom: 1px solid var(--bordure); padding: 8px 12px; }
      table.tableau.cartes td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
      table.tableau.cartes td::before { content: attr(data-lib); color: var(--texte-2); font-weight: 600; text-align: left; }
      table.tableau.cartes td.num { text-align: right; }
    }

    /* ============================================================
       7. Onglets, menus, tiroirs, modales, toasts
       ============================================================ */
    .onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bordure); margin-bottom: 20px; overflow-x: auto; }
    .onglets [role="tab"] { padding: 10px 14px; color: var(--texte-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
    .onglets [role="tab"][aria-selected="true"] { color: var(--texte); border-bottom-color: var(--accent); }
    .onglets [role="tab"]:hover { color: var(--texte); }
    .menu-flottant { position: absolute; z-index: 40; min-width: 220px; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
    .menu-flottant button, .menu-flottant a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--texte); font-size: 13px; }
    .menu-flottant button:hover:not(:disabled), .menu-flottant a:hover { background: var(--surface-2); text-decoration: none; }
    .menu-flottant button.destructif { color: var(--erreur); }
    .menu-flottant .sep { margin: 6px 0; }
    .voile { position: fixed; inset: 0; background: var(--voile); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
    .modale { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: var(--r-carte); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; animation: apparait var(--duree) ease-out; }
    .modale.large { width: min(760px, 100%); }
    .modale h2 { font-size: 18px; }
    .modale .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
    @keyframes apparait { from { opacity: 0; transform: translateY(8px); } }
    .tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface-1); border-left: 1px solid var(--bordure); z-index: 101; overflow: auto; padding: 24px; animation: glisse var(--duree) ease-out; }
    @keyframes glisse { from { transform: translateX(24px); opacity: 0; } }
    .toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
    .toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--bordure); box-shadow: 0 12px 32px rgba(0,0,0,.5); font-size: 13px; animation: apparait var(--duree) ease-out; }
    .toast .btn-icone { margin-left: auto; width: 28px; height: 28px; min-height: 28px; }
    .toast.succes { border-color: rgba(46,204,110,.4); } .toast.succes svg { color: var(--succes); }
    .toast.erreur { border-color: rgba(255,69,58,.4); } .toast.erreur svg { color: var(--erreur); }
    .toast.attention { border-color: rgba(255,176,32,.4); } .toast.attention svg { color: var(--attention); }
    .toast.info { border-color: rgba(59,130,246,.4); } .toast.info svg { color: var(--info); }
    .palette { width: min(640px, 100%); align-self: flex-start; margin-top: 10vh; padding: 12px; gap: 8px; }
    .palette .entree { min-height: 48px; font-size: 16px; }
    .palette .groupe-titre { font-size: 11px; font-weight: 700; color: var(--texte-2); padding: 8px 10px 4px; }
    .palette .resultat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; width: 100%; text-align: left; }
    .palette .resultat[aria-selected="true"], .palette .resultat:hover { background: var(--surface-2); }
    .palette .resultat .desc { color: var(--texte-2); font-size: 12px; margin-left: auto; }
    .infobulle { position: absolute; z-index: 300; background: var(--surface-2); border: 1px solid var(--bordure); color: var(--texte); padding: 8px 10px; border-radius: 8px; font-size: 12px; max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,.5); line-height: 1.4; pointer-events: none; }
    .codes-secours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; font-family: var(--mono); font-size: 15px; background: var(--surface-2); padding: 16px; border-radius: 12px; }
    .qr { background: #fff; padding: 16px; border-radius: 12px; display: inline-block; line-height: 0; }
    .qr img, .qr svg { width: 208px; height: 208px; image-rendering: pixelated; }

    /* ============================================================
       8. Coquille : pages d'authentification
       ============================================================ */
    .auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
    .auth-carte { width: 420px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
    .auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
    .auth-logo .marque { width: 56px; height: 56px; border-radius: 16px; background: var(--degrade-flamme); display: flex; align-items: center; justify-content: center; box-shadow: var(--lueur); }
    .auth-logo .marque svg { width: 32px; height: 32px; }
    .auth-logo strong { font-size: 18px; font-weight: 800; }
    .auth-logo span { color: var(--texte-2); font-size: 13px; }
    .auth-pied { font-size: 12px; color: var(--texte-2); text-align: center; line-height: 1.5; }
    .auth-carte form { display: flex; flex-direction: column; gap: 16px; }
    .etapes { display: flex; gap: 6px; }
    .etapes span { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); }
    .etapes span.faite { background: var(--degrade-flamme); }

    /* ============================================================
       9. Coquille : application
       ============================================================ */
    .app { display: grid; grid-template-columns: var(--lat) 1fr; min-height: 100vh; transition: grid-template-columns var(--duree); }
    .app.repliee { --lat: 72px; }
    .laterale { background: var(--surface-1); border-right: 1px solid var(--bordure); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden auto; }
    .laterale .logo { display: flex; align-items: center; gap: 12px; padding: 18px 16px; }
    .laterale .logo .marque { width: 40px; height: 40px; border-radius: 12px; background: var(--degrade-flamme); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: var(--lueur); }
    .laterale .logo .marque svg { width: 24px; height: 24px; }
    .laterale .logo strong { font-weight: 800; font-size: 15px; white-space: nowrap; }
    .laterale .logo span { display: block; font-size: 11px; color: var(--texte-2); }
    .laterale nav { padding: 4px 10px 16px; flex: 1; }
    .laterale .groupe { font-size: 11px; font-weight: 700; color: var(--texte-2); padding: 14px 10px 6px; white-space: nowrap; overflow: hidden; }
    .laterale a.entree-nav { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--texte-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
    .laterale a.entree-nav:hover { background: var(--surface-2); color: var(--texte); text-decoration: none; }
    .laterale a.entree-nav.active { background: var(--accent-doux); color: var(--accent); }
    .laterale a.entree-nav .compteur-nav { margin-left: auto; background: var(--erreur); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; }
    .laterale .replier { margin: auto 10px 12px; }
    .app.repliee .laterale .logo strong, .app.repliee .laterale .logo span, .app.repliee .laterale a.entree-nav span:not(.compteur-nav), .app.repliee .laterale .groupe { display: none; }
    .app.repliee .laterale a.entree-nav { justify-content: center; }
    .app.repliee .laterale a.entree-nav .compteur-nav { position: absolute; margin-left: 20px; margin-top: -18px; }
    .principal { min-width: 0; display: flex; flex-direction: column; }
    .superieure { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--bordure); background: var(--fond); position: sticky; top: 0; z-index: 30; }
    .ariane { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texte-2); min-width: 0; overflow: hidden; }
    .ariane a { color: var(--texte-2); }
    .ariane strong { color: var(--texte); font-weight: 600; white-space: nowrap; }
    .recherche-globale { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 10px; padding: 6px 10px; color: var(--texte-2); font-size: 13px; min-width: 200px; }
    .recherche-globale kbd { margin-left: auto; font-family: var(--police); font-size: 11px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
    .badge-env { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; color: #fff; }
    .badge-env.production { background: var(--accent); }
    .badge-env.preproduction { background: var(--accent-2); color: #000; }
    .badge-env.developpement { background: var(--info); }
    .badge-env.maquette { background: var(--or); color: #000; }
    .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--bordure); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
    .avatar.grand { width: 56px; height: 56px; font-size: 20px; }
    .compte-menu { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 10px; }
    .compte-menu:hover { background: var(--surface-1); }
    .compte-menu .nom { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: left; }
    .compte-menu .role { font-size: 11px; color: var(--texte-2); display: block; }
    .cloche { position: relative; }
    .cloche .point { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--erreur); border: 2px solid var(--fond); }
    .contenu { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; flex: 1; display: flex; flex-direction: column; gap: 20px; }
    .page-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    .page-entete .sous-titre { color: var(--texte-2); margin-top: 4px; }
    .page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .periode { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
    .periode button { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--texte-2); }
    .periode button.actif { background: var(--surface-2); color: var(--texte); }
    .periode .entree { min-height: 32px; padding: 4px 8px; width: 140px; }
    .graph-carte .graph-zone { position: relative; height: 260px; }
    .graph-carte .graph-zone.petit { height: 200px; }
    .graph-carte .graph-zone canvas { max-width: 100%; }
    .graph-carte .tableau-conteneur { max-height: 260px; }
    .legende { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--texte-2); }
    .legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
    .sante-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; font-size: 13px; }
    .sante-liste div { display: flex; align-items: center; gap: 8px; }
    .point-etat { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
    .point-etat.ok { background: var(--succes); } .point-etat.degrade { background: var(--attention); } .point-etat.panne { background: var(--erreur); }
    .alerte-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bordure); font-size: 13px; }
    .alerte-item:last-child { border-bottom: 0; }
    .alerte-item .niv { width: 8px; border-radius: 4px; flex: 0 0 auto; }
    .alerte-item .niv.critique { background: var(--erreur); } .alerte-item .niv.attention { background: var(--attention); } .alerte-item .niv.info { background: var(--info); }
    .alerte-item .titre { font-weight: 600; }
    .alerte-item .quand { color: var(--texte-2); font-size: 12px; }
    .service-carte .aptitude { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .apercu-notif { border-radius: 16px; padding: 12px 14px; font-family: -apple-system, system-ui, sans-serif; }
    .apercu-notif.ios { background: rgba(255,255,255,.92); color: #000; }
    .apercu-notif.android { background: #fff; color: #1f1f1f; border: 1px solid #ddd; }
    .apercu-notif .app-nom { font-size: 12px; opacity: .7; display: flex; align-items: center; gap: 6px; }
    .apercu-notif .app-nom i { width: 16px; height: 16px; border-radius: 4px; background: var(--degrade-flamme); display: inline-block; }
    .apercu-notif strong { display: block; font-size: 14px; margin-top: 4px; }
    .apercu-notif p { font-size: 13px; }
    .role-selecteur { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #000; }
    .role-selecteur select { min-height: 26px; padding: 2px 24px 2px 8px; font-size: 12px; width: auto; background-color: #fff; color: #000; border-color: #b9902a; }
    .tab-role td:first-child { color: var(--texte-2); }
    .param-ligne { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bordure); }
    .param-ligne:last-child { border-bottom: 0; }
    .param-ligne .desc { font-size: 12px; color: var(--texte-2); margin-top: 2px; }
    .param-ligne .meta { font-size: 11px; color: var(--texte-2); margin-top: 4px; }
    .param-ligne .val { font-weight: 600; font-variant-numeric: tabular-nums; }
    @media (max-width: 767px) { .param-ligne { grid-template-columns: 1fr; } }
    .cohorte td.cel { padding: 4px 6px; text-align: center; }
    .hors-ligne { background: var(--attention); color: #000; text-align: center; padding: 6px; font-weight: 700; font-size: 13px; }
    .fiche-entete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .fiche-entete .pastilles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
    .fiche-entete .meta { color: var(--texte-2); font-size: 13px; margin-top: 4px; }
    .fiche-entete .page-actions { margin-left: auto; }
    .demasque { font-family: var(--mono); background: var(--attention-doux); color: var(--attention); padding: 2px 6px; border-radius: 6px; }
    .badge-liste { display: flex; flex-wrap: wrap; gap: 8px; }
    .badge-item { display: flex; align-items: center; gap: 8px; background: var(--or-doux); color: var(--or); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; }

    /* ============================================================
       10. Responsive et mouvement
       ============================================================ */
    .bouton-menu { display: none; }
    @media (max-width: 1279px) { .app { --lat: 72px; } .app.deployee { --lat: 260px; } }
    @media (max-width: 767px) {
      .app { grid-template-columns: 1fr; }
      .laterale { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform var(--duree); z-index: 90; --lat: 280px; box-shadow: 0 0 40px rgba(0,0,0,.6); }
      .app.menu-ouvert .laterale { transform: none; }
      .app.repliee .laterale .logo strong, .app.repliee .laterale .logo span, .app.repliee .laterale a.entree-nav span, .app.repliee .laterale .groupe { display: initial; }
      .app.repliee .laterale a.entree-nav { justify-content: flex-start; }
      .laterale .replier { display: none; }
      .bouton-menu { display: inline-flex; }
      .superieure { padding: 10px 12px; }
      .recherche-globale { min-width: 0; padding: 6px 8px; } .recherche-globale span, .recherche-globale kbd { display: none; }
      .compte-menu .nom { display: none; }
      .contenu { padding: 16px 12px; }
      .liste-cle-valeur { grid-template-columns: 1fr; gap: 2px 0; } .liste-cle-valeur dt { margin-top: 8px; }
      .codes-secours { grid-template-columns: 1fr; }
      .tiroir { padding: 16px; }
      .sante-liste { grid-template-columns: 1fr; }
    }
    .voile-menu { display: none; }
    @media (max-width: 767px) { .app.menu-ouvert .voile-menu { display: block; position: fixed; inset: 0; background: var(--voile); z-index: 80; } }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
      .squelette { animation: none; }
    }
    @media print {
      body { background: #fff; color: #000; }
      .laterale, .superieure, .toasts, .bandeau-maquette { display: none !important; }
      .codes-secours { background: #fff; border: 1px solid #000; }
    }
