/* ══════════════════════════════════════════════════════════════
   RADAR - maquette cliquable, direction B retenue le 25/10/2026
   « Tableau de bord de conformité » : menu noir AVADA, cartes blanches
   arrondies, chiffres en tête, statuts en pastilles avec icône.
   Tout en sans-serif (Geist) ; Instrument Serif seulement pour le logo.
   L'or AVADA est réservé aux accents : bouton principal, élément actif,
   non lu. En texte sur fond clair on prend --or-texte (#8A5A00, AA).
   ══════════════════════════════════════════════════════════════ */

@import url("fonts/fonts.289ba9da8c3f.css");

:root {
    --fond: #F3F4F6; --surface: #FFFFFF; --surface-2: #F1F2F4; --survol: #F8F8F9;
    --filet: #E5E7EB; --filet-fort: #D1D5DB;
    --texte: #111318; --texte-2: #3F4451; --texte-3: #646B79;
    --menu: #111111; --menu-2: #1E1E1E; --menu-texte: #C9C9CC; --menu-actif: #2A2620;
    --or: #C9890A; --or-texte: #8A5A00; --or-fond: #FDF4E2; --or-filet: rgba(201,137,10,.35);
    --noir: #111111; --action: #111318; --action-texte: #FFFFFF; --sur-or: #111111;
    --bleu: #1D4ED8; --bleu-fond: #E8EEFF;
    --ok: #166534; --ok-fond: #E7F7EC;
    --alerte: #B42318; --alerte-fond: #FDECEA;
    --gris-fond: #EEF0F3;
    --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: var(--sans);                       /* l'outil n'a plus de titres à empattements */
    --logo: 'Instrument Serif', Georgia, serif;
    --rayon: 10px; --r: 12px;
    --ombre: 0 1px 2px rgba(17,19,24,.06), 0 2px 8px rgba(17,19,24,.04);
    --ombre-2: 0 12px 40px rgba(17,19,24,.18);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --fond: #0B0C0E; --surface: #15171B; --surface-2: #1F2228; --survol: #1A1C21;
    --filet: #262A31; --filet-fort: #353A43;
    --texte: #ECEDF0; --texte-2: #B9BDC6; --texte-3: #8D93A0;
    --menu: #08090A; --menu-2: #141518; --menu-texte: #A9ABB2; --menu-actif: #2A2417;
    --or: #E5A52B; --or-texte: #F0B848; --or-fond: rgba(229,165,43,.13); --or-filet: rgba(229,165,43,.4);
    --action: #ECEDF0; --action-texte: #0B0C0E;
    --bleu: #7DA2FF; --bleu-fond: rgba(125,162,255,.14);
    --ok: #4ADE80; --ok-fond: rgba(74,222,128,.13);
    --alerte: #F97066; --alerte-fond: rgba(249,112,102,.14);
    --gris-fond: #22252B;
    --ombre: 0 0 0 1px rgba(255,255,255,.03); --ombre-2: 0 12px 40px rgba(0,0,0,.6);
    color-scheme: dark; } }
:root[data-theme="dark"] {
    --fond: #0B0C0E; --surface: #15171B; --surface-2: #1F2228; --survol: #1A1C21;
    --filet: #262A31; --filet-fort: #353A43;
    --texte: #ECEDF0; --texte-2: #B9BDC6; --texte-3: #8D93A0;
    --menu: #08090A; --menu-2: #141518; --menu-texte: #A9ABB2; --menu-actif: #2A2417;
    --or: #E5A52B; --or-texte: #F0B848; --or-fond: rgba(229,165,43,.13); --or-filet: rgba(229,165,43,.4);
    --action: #ECEDF0; --action-texte: #0B0C0E;
    --bleu: #7DA2FF; --bleu-fond: rgba(125,162,255,.14);
    --ok: #4ADE80; --ok-fond: rgba(74,222,128,.13);
    --alerte: #F97066; --alerte-fond: rgba(249,112,102,.14);
    --gris-fond: #22252B;
    --ombre: 0 0 0 1px rgba(255,255,255,.03); --ombre-2: 0 12px 40px rgba(0,0,0,.6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--fond); color: var(--texte); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }

/* ─── Coquille : menu noir + barre haute ─── */
.coquille { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; background: var(--menu); color: var(--menu-texte); overflow-y: auto; }
.marque { display: block; padding: 2px 10px 18px; text-decoration: none; }
.marque-nom { font-family: var(--logo); font-weight: 400; font-size: 24px; letter-spacing: .12em; color: #F4F3EF; line-height: 1; }
.marque-nom span { color: var(--or); }
.marque-par { display: block; font-size: 11px; color: #8D8D93; margin-top: 4px; }
.org { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--menu-2); margin-bottom: 16px; }
.org .carre { width: 30px; height: 30px; border-radius: 8px; background: var(--or); color: #111; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.org-nom { color: #F4F3EF; font-size: 13px; font-weight: 600; line-height: 1.2; }
.org-offre { font-size: 11px; color: #8D8D93; }
.nav { list-style: none; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; color: var(--menu-texte); }
.nav a:hover { background: var(--menu-2); color: #F4F3EF; }
.nav a[aria-current="page"] { background: var(--menu-actif); color: #F4F3EF; box-shadow: inset 3px 0 0 var(--or); }
.nav a[aria-current="page"] .ico { color: var(--or); }
.nav .compte { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--or); color: #111; }
.nav-titre { padding: 18px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9A9AA1; }
.essai-carte { margin-top: auto; padding: 12px; border-radius: 10px; background: var(--menu-2); font-size: 12px; }
.essai-carte b { color: #F4F3EF; font-size: 13px; display: block; }
.essai-carte .prog { margin: 8px 0 10px; background: #2E2E33; }
.essai-carte .btn { width: 100%; }
.lateral-pied { margin-top: 12px; padding: 12px 10px 0; border-top: 1px solid #26262B; font-size: 12px; }
.lateral-pied .qui { color: #F4F3EF; font-weight: 600; }
.lateral-pied .role { color: #8D8D93; }
.lateral-pied a { color: var(--or); }

.haut { display: flex; align-items: center; gap: 12px; padding: 12px 32px; background: var(--surface); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 20; }
.haut .cherche { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--texte-3); text-decoration: none; }
.haut .droite { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.haut .menu-btn { display: none; }
.icone-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--filet); background: var(--surface); cursor: pointer; color: var(--texte-2); position: relative; }
.icone-btn .pt { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--or-fond); color: var(--or-texte); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

.contenu { min-width: 0; }
.page { max-width: 1240px; margin: 0 auto; padding: 26px 32px 110px; }
.page-etroite { max-width: 940px; }

/* ─── Bandeaux d'état ─── */
.bandeau { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding: 10px 32px; font-size: 13px; background: var(--or-fond); border-bottom: 1px solid var(--or-filet); }
.bandeau strong { font-weight: 600; }
.bandeau-ls { background: var(--menu); color: #F4F3EF; border-bottom: 0; }
.bandeau-ls .btn { background: var(--or); border-color: var(--or); color: #111; }

/* ─── Titres ─── */
.surtitre { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--texte-3); }
h1, .h1 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h2, .h2 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h3, .h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.chapo { margin-top: 4px; color: var(--texte-3); font-size: 14px; max-width: 72ch; }
.chapo strong { color: var(--texte); font-weight: 600; }
.entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 20px; }
.discret { color: var(--texte-3); font-size: 13px; }
.petit { font-size: 13px; }
.lien { color: var(--or-texte); text-decoration: none; font-weight: 500; }
.lien:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Boutons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--filet); background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--survol); }
.btn-p, .btn-or { background: var(--or); color: var(--sur-or); border-color: var(--or); }
.btn-p:hover, .btn-or:hover { background: var(--or); filter: brightness(1.06); }
.btn-l { border-color: transparent; background: transparent; padding: 0 10px; }
.btn-l:hover { background: var(--surface-2); }
.btn-s { min-height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-danger { color: var(--alerte); }
.groupe-btn { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Pastilles ─── */
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.b { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface-2); color: var(--texte-2); border: 0; }
.b-marche { border-radius: 7px; color: var(--texte); }
.b-projet { background: none; outline: 1px dashed var(--filet-fort); outline-offset: -1px; }
.b-nouveau { background: var(--or-fond); color: var(--or-texte); }
.b-vu { background: var(--gris-fond); color: var(--texte-2); }
.b-traiter { background: var(--bleu-fond); color: var(--bleu); }
.b-traite { background: var(--ok-fond); color: var(--ok); }
.b-na { background: var(--gris-fond); color: var(--texte-3); }
.b-alerte { background: var(--alerte-fond); color: var(--alerte); }
.b-avada { background: var(--texte); color: var(--surface); }
.b-dispo { background: var(--surface); color: var(--texte); box-shadow: inset 0 0 0 1px var(--filet-fort); border-radius: 7px; }
.b-dispo .ico { color: var(--or-texte); }
.filtre-dispo { gap: 6px; padding-top: 10px; padding-bottom: 10px; background: var(--survol); }
.filtre-dispo[hidden] { display: none; }
.puce-f { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--filet-fort); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 600; }
.puce-f[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: #111; }
.puce-f[aria-pressed="true"] .ico { color: #111; }
.pf-bloc { padding: 8px 0; border-top: 1px solid var(--filet); }
.pf-bloc:first-of-type { border-top: 0; }
.pf-bloc b { display: inline-flex; align-items: center; gap: 6px; }
.pf-bloc .badges { margin-top: 6px; }
.point { width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex: none; }

/* ─── Cartes ─── */
.carte { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre); }
.carte-c { padding: 18px 20px; }
.carte-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--filet); }
.carte-tete h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.carte-tete .c { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--surface-2); color: var(--texte-2); }
.carte-tete .droite { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.carte-corps { padding: 16px 18px; }
.section { margin-top: 24px; }
.section-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.section-tete p { color: var(--texte-3); font-size: 13px; }
.grille-p { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1280px) { .grille-p { grid-template-columns: minmax(0, 1fr) 290px; } }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.col > * { min-width: 0; }

/* ─── Chiffres de tête : une seule ligne compacte ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre); margin-bottom: 18px; }
.stat { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-left: 1px solid var(--filet); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat > div { min-width: 0; }
.stat-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.k-or { background: var(--or-fond); color: var(--or-texte); } .k-bleu { background: var(--bleu-fond); color: var(--bleu); } .k-vert { background: var(--ok-fond); color: var(--ok); } .k-rouge { background: var(--alerte-fond); color: var(--alerte); } .k-gris { background: var(--surface-2); color: var(--texte-2); }
.stat-v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: 13px; color: var(--texte-3); font-weight: 600; }
.stat-v.rouge { color: var(--alerte); }
.stat-l { font-size: 12px; color: var(--texte-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .prog { width: 90px; margin-top: 5px; }
.prog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--or); border-radius: 3px; }
/* ancien nom, gardé pour les pages qui l'utilisent */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chiffre { padding: 14px 16px; }
.chiffre-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre-l { font-size: 13px; color: var(--texte-2); font-weight: 600; margin-top: 4px; }
.chiffre-d { font-size: 12px; color: var(--texte-3); }

/* ─── Frise des échéances ─── */
.frise { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
.ech { flex: 1 0 220px; display: flex; gap: 12px; align-items: center; padding: 11px 13px; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r); box-shadow: var(--ombre); text-decoration: none; }
.ech:hover { background: var(--survol); }
.jour { flex: none; width: 42px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; text-align: center; line-height: 1; }
.jour b { display: block; font-size: 16px; }
.jour small { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--texte-3); }
.jour.proche { background: var(--alerte-fond); color: var(--alerte); }
.jour.proche small { color: var(--alerte); }
.ech .t { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }

/* ─── Échéances en colonne ─── */
.timeline { list-style: none; }
.timeline li { position: relative; display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.timeline li::before { content: ''; position: absolute; left: 20px; top: 52px; bottom: -8px; width: 2px; background: var(--filet); }
.timeline li:last-child::before { display: none; }
.timeline a { text-decoration: none; min-width: 0; }
.timeline a:hover .t { text-decoration: underline; }
.timeline .t { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }

/* ─── Listes de textes ─── */
.textes, .lignes { list-style: none; container-type: inline-size; }
.texte, .ligne { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--filet); }
.texte:first-child, .ligne:first-child { border-top: 0; }
.texte:hover, .ligne:hover { background: var(--survol); }
.tuile { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--texte-2); }
.nl .tuile { background: var(--or-fond); color: var(--or-texte); }
.texte-titre, .ligne .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; display: block; }
.lu .texte-titre, .ligne.lu .t { font-weight: 500; color: var(--texte-2); }
.texte-titre::after, .ligne .t::after { content: ''; position: absolute; inset: 0; }
.texte-sous, .ligne .sous { grid-column: 2; font-size: 12px; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.texte-actions, .ligne .droite { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.texte .case { grid-row: 1 / span 2; position: relative; z-index: 1; width: 18px; height: 18px; justify-self: center; accent-color: var(--or); }
.vu-btn { opacity: 0; transition: opacity .12s; }
.texte:hover .vu-btn, .vu-btn:focus-visible { opacity: 1; }
.plus { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--filet); background: none; cursor: pointer; font-weight: 600; color: var(--texte-2); border-radius: 0 0 var(--r) var(--r); }
.plus:hover { background: var(--survol); }
/* liste étroite (colonne, mobile) : le titre prend toute la largeur, les pastilles passent dessous */
@container (max-width: 620px) {
    .texte, .ligne { grid-template-columns: 30px minmax(0, 1fr); }
    .texte .tuile { width: 30px; height: 30px; grid-row: 1 / span 3; align-self: start; }
    .texte-titre { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .texte-actions, .ligne .droite { grid-row: auto; grid-column: 2; flex-wrap: wrap; margin-top: 4px; }
    .texte-sous { grid-row: 2; }
    .vu-btn { opacity: 1; }
}

/* ─── Onglets ─── */
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--filet); margin-bottom: 18px; overflow-x: auto; }
.onglets button, .onglets a { padding: 11px 12px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--texte-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.onglets [aria-selected="true"], .onglets [aria-current="page"] { color: var(--texte); border-bottom-color: var(--or); }
.onglets .n { color: var(--texte-3); margin-left: 4px; }
.onglets-p { display: flex; gap: 4px; flex-wrap: wrap; }
.onglets-p button { height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--texte-2); }
.onglets-p button[aria-selected="true"] { background: var(--surface-2); color: var(--texte); font-weight: 600; }

/* ─── Fiche ─── */
.fil-ariane { display: flex; align-items: center; gap: 6px; color: var(--texte-3); font-size: 13px; margin-bottom: 14px; }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { color: var(--texte); }
.entete-fiche { padding: 22px 24px; }
.haut-f { display: flex; gap: 16px; align-items: flex-start; }
.tuile-g { width: 52px; height: 52px; border-radius: 14px; background: var(--or-fond); color: var(--or-texte); display: grid; place-items: center; flex: none; }
.entete-fiche h1 { font-size: 26px; }
.titre-off { margin-top: 6px; color: var(--texte-3); line-height: 1.5; }
.bande { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-top: 1px solid var(--filet); }
.bande > div { padding: 14px 8px 0 0; position: relative; }
.bande .l { font-size: 12px; color: var(--texte-3); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.bande .v { font-size: 15px; font-weight: 700; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bande .v.rouge { color: var(--alerte); }
.choix-dec { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; padding: 0; font: inherit; color: var(--texte-3); }
.choix-dec:hover .st { box-shadow: 0 0 0 2px var(--filet-fort); }
.menu-dec { position: absolute; top: 100%; left: 0; z-index: 10; margin-top: 6px; min-width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--filet); border-radius: 12px; box-shadow: var(--ombre-2); }
.menu-dec[hidden] { display: none; }
.menu-dec button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-weight: 500; text-align: left; }
.menu-dec button:hover { background: var(--survol); }
.menu-dec button.st-traiter .ico { color: var(--bleu); } .menu-dec button.st-traite .ico { color: var(--ok); } .menu-dec button.st-vu .ico, .menu-dec button.st-na .ico { color: var(--texte-3); }
.raison { display: flex; gap: 12px; padding: 16px 18px; border-left: 4px solid var(--or); }
.raison b { display: block; font-size: 13px; }
.raison > div, .passerelle > div, .lien-carte > div { min-width: 0; overflow-wrap: anywhere; }
.onglets-f { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--filet); overflow-x: auto; }
.onglets-f button { padding: 13px 12px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--texte-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.onglets-f button[aria-selected="true"] { color: var(--texte); border-bottom-color: var(--or); }
.lecture { display: grid; gap: 18px; }
.lecture h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.lecture h3 .ico { color: var(--or-texte); }
.lecture p { color: var(--texte-2); line-height: 1.65; max-width: 76ch; }
.lecture details summary { cursor: pointer; color: var(--or-texte); font-weight: 600; font-size: 13px; margin-top: 6px; }
.texte-long { color: var(--texte-2); line-height: 1.7; max-width: 76ch; }
.docs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.docs li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--filet); font-size: 13px; font-weight: 500; }
.docs .ico { color: var(--or-texte); }
dl.off { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; }
dl.off dt { color: var(--texte-3); }
.passerelle { display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.passerelle .btn { margin-left: auto; }

.pourquoi { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--or); background: var(--or-fond); border-radius: 0 10px 10px 0; }

/* ─── Décision (moteur commun) ─── */
.dec-etat { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dec-detail { font-size: 13px; color: var(--texte-2); margin-bottom: 12px; }
.dec-statuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dec-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 10px; border: 1px solid var(--filet); background: var(--surface); cursor: pointer; text-align: left; font-weight: 600; font-size: 13px; line-height: 1.25; color: var(--texte); }
.dec-btn .ico { width: 20px; height: 20px; }
.dec-btn:hover { border-color: var(--filet-fort); background: var(--survol); }
.dec-btn[aria-pressed="true"] { border-color: var(--or); box-shadow: 0 0 0 1px var(--or); background: var(--or-fond); }
.dec-btn.st-vu .ico, .dec-btn.st-na .ico { color: var(--texte-3); } .dec-btn.st-traiter .ico { color: var(--bleu); } .dec-btn.st-traite .ico { color: var(--ok); }
.dec-champs { display: grid; gap: 10px; margin-top: 14px; }
.dec-pied { display: flex; gap: 6px; }
.dec-avada { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 12px; font-size: 13px; }
.dec-avada .btn { margin-top: 8px; }
.lbl { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.inp { width: 100%; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--filet-fort); background: var(--surface); font-size: 13px; }
.puces-j { display: flex; flex-wrap: wrap; gap: 4px; }
.pj { padding: 4px 10px; border-radius: 12px; border: 1px solid var(--filet); background: var(--surface); font-size: 12px; cursor: pointer; }
.pj:hover { border-color: var(--or); }
.essentiel { margin-top: 20px; border-left: 4px solid var(--or); }
.essentiel h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 2px 0 10px; }
.essentiel .prix-e { font-size: 14px; font-weight: 600; color: var(--or-texte); }
.essentiel ul { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.essentiel li { display: flex; gap: 8px; align-items: center; }
.essentiel li .ico { color: var(--or-texte); }
.engagement { border-left: 4px solid var(--or); }
.engagement .surtitre { display: flex; align-items: center; gap: 6px; }
.resiliation { border-color: var(--filet-fort); }
.etapes-resil { padding-left: 20px; display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--texte-2); }
.a-quoi { margin-bottom: 16px; }
.a-quoi .aide-l li b { color: var(--texte); }
.creneaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.jour-c { display: grid; gap: 6px; align-content: start; }
.jour-t { font-size: 12px; font-weight: 700; text-align: center; color: var(--texte-2); }
.creneau { height: 34px; border-radius: 8px; border: 1px solid var(--filet-fort); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; }
.creneau:hover { border-color: var(--or); }
.creneau[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: #111; }
.encart-e { border-left: 4px solid var(--or); }
.encart-e p { font-size: 13px; color: var(--texte-2); margin: 6px 0 12px; }
.encart-e p b { color: var(--texte); }
@media (max-width: 560px) { .creneaux { grid-template-columns: 1fr 1fr; } }
.aide-l { list-style: none; display: grid; gap: 10px; font-size: 13px; color: var(--texte-2); }
.aide-l .st { margin-right: 4px; height: 22px; }
.aide-decider[open] summary .discret { visibility: hidden; }
.reponses-l { list-style: none; display: grid; gap: 10px; }
.reponses-l li { padding: 10px 12px; border: 1px solid var(--filet); border-radius: 10px; }
.reponse-ed { border: 1px solid var(--filet); border-radius: 10px; padding: 10px 12px 12px; margin-bottom: 10px; }
.reponse-ed legend { font-size: 12px; font-weight: 700; padding: 0 4px; color: var(--texte-3); }
.coche-dispo { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--filet-fort); font-size: 12px; font-weight: 600; cursor: pointer; }
.coche-dispo:has(input:checked) { border-color: var(--or); background: var(--or-fond); }
.coche-dispo input { accent-color: var(--or); }
.erreur-champ { color: var(--alerte); font-size: 12px; font-weight: 600; margin-top: -4px; }
.inp[aria-invalid="true"] { border-color: var(--alerte); }
.muet { color: var(--texte-3); }
.st { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-nouveau { background: var(--or-fond); color: var(--or-texte); } .st-vu { background: var(--gris-fond); color: var(--texte-2); } .st-na { background: var(--gris-fond); color: var(--texte-3); }
.st-traiter { background: var(--bleu-fond); color: var(--bleu); } .st-traite { background: var(--ok-fond); color: var(--ok); }
.st-grand { height: 28px; font-size: 13px; padding: 0 11px; }
.dec-btn.st-vu, .dec-btn.st-na, .dec-btn.st-traiter, .dec-btn.st-traite { height: auto; background: var(--surface); color: var(--texte); border-radius: 10px; padding: 12px; font-size: 13px; }
.dec-btn[aria-pressed="true"].st-vu, .dec-btn[aria-pressed="true"].st-na, .dec-btn[aria-pressed="true"].st-traiter, .dec-btn[aria-pressed="true"].st-traite { background: var(--or-fond); }
.activite { list-style: none; display: grid; gap: 14px; }
.activite li { display: flex; gap: 10px; font-size: 13px; }
.activite .avatar { width: 28px; height: 28px; font-size: 11px; }
.activite .st { height: 20px; padding: 0 7px; font-size: 11px; }
.pastille { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--texte-2); }

/* ─── Formulaires ─── */
label.champ { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
label.champ .aide { font-weight: 400; color: var(--texte-3); }
.saisie, select.saisie, textarea.saisie { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--filet-fort); background: var(--surface); font-size: 14px; }
textarea.saisie { min-height: 84px; resize: vertical; line-height: 1.5; }
.saisie:focus { outline: 2px solid var(--or); outline-offset: 0; border-color: transparent; }
.champs { display: grid; gap: 14px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coche { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.coche input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--or); flex: none; }
.propositions { display: flex; flex-wrap: wrap; gap: 6px; }
.propositions button { padding: 4px 10px; border-radius: 14px; border: 1px solid var(--filet-fort); background: var(--surface); font-size: 12px; cursor: pointer; }

/* ─── Historique ─── */
.historique { list-style: none; position: relative; }
.historique li { position: relative; padding: 0 0 14px 20px; font-size: 13px; }
.historique li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--or); }
.historique li::after { content: ''; position: absolute; left: 6px; top: 17px; bottom: 0; width: 1px; background: var(--filet-fort); }
.historique li:last-child::after { display: none; }
.historique .quand { color: var(--texte-3); }

/* ─── Tableaux ─── */
.tableau-cadre { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-size: 12px; font-weight: 600; color: var(--texte-3); padding: 11px 16px; border-bottom: 1px solid var(--filet); white-space: nowrap; background: var(--survol); }
.tableau td { padding: 12px 16px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover td { background: var(--survol); }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau a.t { text-decoration: none; font-weight: 600; }
.tableau a.t:hover { text-decoration: underline; }

/* ─── Filtres, actions en lot ─── */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filtres select.saisie { max-width: 100%; width: auto; min-height: 36px; font-size: 13px; padding: 6px 30px 6px 10px; }
.recherche { flex: 1 1 260px; }
.barre-lot { position: sticky; bottom: 16px; z-index: 5; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--menu); color: #F4F3EF; box-shadow: var(--ombre-2); }
.barre-lot[hidden] { display: none; }
.barre-lot .btn { background: transparent; color: inherit; border-color: #3A3A40; }

/* ─── Vide ─── */
.vide { padding: 40px 24px; text-align: center; }
.vide .h2 { font-size: 17px; margin-bottom: 4px; }
.vide p { color: var(--texte-3); max-width: 46ch; margin: 0 auto; }

/* ─── Fenêtre, message ─── */
.voile { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modale { width: 100%; max-width: 520px; background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: var(--ombre-2); }
.modale h2 { font-size: 20px; margin-bottom: 6px; }
.modale-pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: 72px; z-index: 60; transform: translateX(-50%); padding: 11px 15px; border-radius: 12px; background: var(--menu); color: #F4F3EF; font-size: 13px; box-shadow: var(--ombre-2); max-width: calc(100vw - 32px); }
.msg-note { font-size: 13px; color: var(--texte-2); padding: 11px 14px; border-radius: 10px; background: var(--surface-2); }
.msg-alerte { font-size: 13px; padding: 11px 14px; border-radius: 10px; background: var(--alerte-fond); color: var(--texte); border-left: 3px solid var(--alerte); }

/* ─── Barre de la maquette (hors produit) ─── */
.maquette { position: fixed; right: 12px; bottom: 12px; z-index: 40; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; max-width: calc(100vw - 24px); padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--filet-fort); background: var(--surface); font-size: 12px; color: var(--texte-3); box-shadow: var(--ombre); }
.maquette b { font-weight: 600; color: var(--texte); }
.maquette [hidden] { display: none !important; }
.maquette select { border: 1px solid var(--filet); border-radius: 4px; background: var(--surface); padding: 2px 4px; font-size: 12px; }
.maquette a { color: var(--texte-2); }

/* ─── Divers ─── */
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.liste-def { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 14px; }
.liste-def dt { color: var(--texte-3); }
.separe { border: 0; border-top: 1px solid var(--filet); margin: 20px 0; }
.sieges { display: flex; gap: 6px; margin: 12px 0 6px; }
.siege { flex: 1; height: 10px; border-radius: 5px; background: var(--surface-2); }
.siege.pris { background: var(--or); }
.siege.attente { background: repeating-linear-gradient(45deg, var(--or) 0 3px, var(--or-fond) 3px 6px); }
.logo-apercu { width: 180px; height: 72px; border: 1px dashed var(--filet-fort); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; letter-spacing: .06em; background: var(--surface); }
.version { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--filet); font-size: 14px; align-items: center; }
.version:first-child { border-top: 0; }
.version .v { width: 36px; height: 36px; border-radius: 10px; background: var(--or-fond); color: var(--or-texte); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.mini-courbe { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 12px; }
.mini-courbe div { flex: 1; background: var(--surface-2); border-radius: 6px 6px 2px 2px; }
.mini-courbe div.der { background: var(--or); }
.mini-courbe-l { display: flex; gap: 6px; font-size: 11px; color: var(--texte-3); margin-top: 4px; }
.mini-courbe-l span { flex: 1; text-align: center; }
.repartition { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); margin: 8px 0 6px; gap: 2px; }
.repartition div:nth-child(1) { background: var(--or); }
.repartition div:nth-child(2) { background: var(--bleu); }
.repartition div:nth-child(3) { background: var(--filet-fort); }
.anneau { position: relative; width: 52px; height: 52px; flex: none; }
.anneau svg { transform: rotate(-90deg); }
.anneau b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.empile { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; margin: 4px 0 14px; }
.empile i { display: block; height: 100%; }
.legende { list-style: none; display: grid; gap: 8px; font-size: 13px; }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende .carre { width: 10px; height: 10px; border-radius: 3px; }
.legende b { margin-left: auto; font-variant-numeric: tabular-nums; }
.lien-carte { display: flex; align-items: center; gap: 10px; padding: 14px 18px; text-decoration: none; }
.lien-carte:hover { background: var(--survol); }
.lien-carte b { display: block; }
.lien-carte > .ico:last-child { margin-left: auto; color: var(--texte-3); }

/* ─── Sommaire (index) ─── */
.sommaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; list-style: none; }
.sommaire a { display: flex; gap: 12px; height: 100%; padding: 16px; text-decoration: none; }
.sommaire a:hover { border-color: var(--or); }
.sommaire .n { width: 34px; height: 34px; border-radius: 10px; background: var(--or-fond); color: var(--or-texte); display: grid; place-items: center; flex: none; }
.sommaire b { display: block; font-weight: 600; }
.sommaire span.d { font-size: 13px; color: var(--texte-3); }

/* ─── Mobile ─── */
@media (max-width: 960px) { .grille-p { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1180px) {
    .stat-ico { display: none; }
    .stat { padding: 12px 14px; }
}
@media (max-width: 860px) {
    .coquille { grid-template-columns: 1fr; }
    .lateral { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
    .menu-ouvert .lateral { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
    .haut { padding: 10px 16px; }
    .haut .menu-btn { display: grid; }
    .haut .cherche span { display: none; }
    .page { padding: 20px 16px 110px; }
    .bandeau { padding: 10px 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--filet); }
    .stat { padding: 12px; gap: 10px; }
    .texte, .ligne { grid-template-columns: 30px minmax(0, 1fr); padding: 12px 14px; }
    .tuile { width: 30px; height: 30px; }
    .texte-actions, .ligne .droite { grid-row: auto; grid-column: 2; flex-wrap: wrap; }
    .deux, .grille-2, .grille-3 { grid-template-columns: 1fr; }
    .bande { grid-template-columns: 1fr 1fr; }
    .haut-f .tuile-g { display: none; }
    .liste-def { grid-template-columns: 1fr; gap: 2px; }
    .liste-def dd { margin-bottom: 8px; }
    .maquette { left: 8px; right: 8px; bottom: 8px; }
}
