/* Socle de la plateforme Singular Value : charte, coquille et composants partagés par toutes les vues.
   Charte du site (vert sapin, ambre, encre, sauge, menthe ; Figtree servie localement, licence OFL).
   Aucune ressource externe. Les vues n'utilisent que ces jetons : jamais de couleur en dur. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("figtree.woff2") format("woff2");
}

:root {
  /* Marque */
  --vert: #2d5a4a;
  --vert-fonce: #1f4236;
  --ambre: #f2b544;
  --ambre-fonce: #8a5e08;
  --ambre-pale: #fbefd3;
  /* Texte et surfaces */
  --encre: #1d2b26;
  --texte: #46524d;
  --muet: #66756e;
  --trait: #dce4df;
  --trait-fort: #c3d2ca;
  --sauge: #cfe0d8;
  --menthe: #eef3f0;
  --fond: #faf9f5;
  --carte: #ffffff;
  --survol: #f1f5f3;
  /* Bandeau vert (premier écran de chaque vue) */
  --bande: #2d5a4a;
  --bande-2: #234a3c;
  --bande-texte: #ffffff;
  --bande-muet: #cfe0d8;
  --bande-trait: rgba(255, 255, 255, 0.18);
  --bande-carte: rgba(255, 255, 255, 0.08);
  /* Natures des constats (Marge retrouvée) */
  --n-gain: #b57d0a;
  --n-gain-pale: #fbefd3;
  --n-tresorerie: #2f6db0;
  --n-tresorerie-pale: #e3eef9;
  --n-risque: #c04a2e;
  --n-risque-pale: #fae6e0;
  --n-question: #7356b8;
  --n-question-pale: #ece6f8;
  /* Catégories de clients (Risque client) */
  --c-sain: #22a06b;
  --c-sain-pale: #e2f1e9;
  --c-retard: #64748b;
  --c-retard-pale: #e9edf2;
  --c-risque: #e08a1e;
  --c-risque-pale: #fbebd9;
  --c-contentieux: #c2403a;
  --c-contentieux-pale: #fae4e1;
  /* Statuts d'une ligne : du gris (à vérifier) au vert (fait) ; violet pour « à creuser », ambre pour « en cours » */
  --st-a_verifier: #b3beb8;
  --st-confirme: #6f9e8b;
  --st-a_creuser: #8b74c9;
  --st-en_cours: #e0a12e;
  --st-fait: #2d5a4a;
  --st-ecarte: #8d9892;
  /* Mesures */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --barre-h: 3.75rem;
  --page: 82rem;
  --gouttiere: clamp(1.25rem, 4vw, 3.5rem);
  --rayon: 14px;
  --rayon-p: 8px;
  --ombre: 0 1px 2px rgba(29, 43, 38, 0.05), 0 8px 28px rgba(29, 43, 38, 0.06);
  --ombre-forte: 0 2px 6px rgba(29, 43, 38, 0.08), 0 24px 60px rgba(29, 43, 38, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --vert: #86bfa5;
    --vert-fonce: #cfe0d8;
    --ambre-fonce: #e3b35a;
    --ambre-pale: #3a2f14;
    --encre: #e6eeea;
    --texte: #b4c3bc;
    --muet: #8d9e96;
    --trait: #26362f;
    --trait-fort: #374a41;
    --sauge: #2a3f36;
    --menthe: #1a2722;
    --fond: #101814;
    --carte: #16211c;
    --survol: #1c2a24;
    --bande: #1f4236;
    --bande-2: #183328;
    --n-gain: #e3b35a;
    --n-gain-pale: #3a2f14;
    --n-tresorerie: #7fb1e6;
    --n-tresorerie-pale: #172a3f;
    --n-risque: #ee8c72;
    --n-risque-pale: #40201a;
    --n-question: #b29ee6;
    --n-question-pale: #2a2243;
    --c-sain: #6dba92;
    --c-sain-pale: #18312a;
    --c-retard: #94a3b8;
    --c-retard-pale: #232d29;
    --c-risque: #eda054;
    --c-risque-pale: #3b2915;
    --c-contentieux: #ec7b70;
    --c-contentieux-pale: #40201c;
    --st-a_verifier: #5d6b64;
    --st-confirme: #7fb09b;
    --st-a_creuser: #a996e0;
    --st-en_cours: #e3b35a;
    --st-fait: #86bfa5;
    --st-ecarte: #6c7872;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.25);
    --ombre-forte: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barre-h) + var(--menu-h, 0px) + 1.4rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ambre); color: #1d2b26; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.muet { color: var(--muet); }
.saut { position: absolute; left: -999px; top: 0; background: var(--carte); padding: 0.5rem 1rem; z-index: 100; }
.saut:focus { left: 0.5rem; top: 0.5rem; }
.etat { max-width: var(--page); margin: 4rem auto; padding: 0 var(--gouttiere); color: var(--muet); }

/* ---------- Barre : la marque, l'emplacement (Portefeuille / client), l'auteur et la déconnexion ---------- */
.barre {
  position: sticky; top: 0; z-index: 30;
  height: var(--barre-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--gouttiere);
  background: color-mix(in srgb, var(--carte) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.barre.decollee { border-bottom-color: var(--trait); box-shadow: 0 6px 24px rgba(29, 43, 38, 0.06); }
.marque { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--encre); font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.marque svg { width: 1.9rem; height: 1.9rem; }
@media (max-width: 760px) {
  .barre { gap: 0.75rem; }
  .marque b { display: none; }
}

/* ---------- Mise en page d'une vue ---------- */
.vue { display: block; min-height: calc(100vh - var(--barre-h)); outline: none; }
.dedans { max-width: var(--page); margin-inline: auto; padding-inline: var(--gouttiere); }

/* Bandeau vert : premier écran d'une vue */
.bande {
  position: relative; overflow: hidden;
  color: var(--bande-texte);
  background: radial-gradient(120% 140% at 85% 0%, var(--bande) 0%, var(--bande-2) 70%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}
.bande h1 { color: var(--bande-texte); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.bande h1 em, .bande .accent { font-style: normal; color: var(--ambre); }
.bande .chapo { color: var(--bande-muet); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46rem; margin-top: 1.1rem; }
.bande .sur { color: var(--bande-muet); }

/* Surtitre en petites capitales */
.sur { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muet); }

/* Gros chiffres */
.chiffre { font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--encre); white-space: nowrap; }
.chiffre.xl { font-size: clamp(2.8rem, 6.2vw, 5.2rem); }
.chiffre.l { font-size: clamp(2rem, 3.6vw, 3rem); }
.chiffre.m { font-size: 1.6rem; letter-spacing: -0.02em; }
.bande .chiffre { color: var(--bande-texte); }

/* Sections numérotées */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--trait); }
.section .chapo { max-width: 48rem; font-size: 1.08rem; margin: -0.75rem 0 1.75rem; }

/* Cartes et grilles */
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.5rem; }
.carte.ombre { border-color: transparent; box-shadow: var(--ombre); }
a.carte, button.carte { display: block; width: 100%; text-align: left; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.carte:hover, button.carte:hover { transform: translateY(-2px); box-shadow: var(--ombre); border-color: var(--trait-fort); }
.grille { display: grid; gap: 1.25rem; }
.grille.c2 { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.grille.c3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grille.c4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

/* Boutons, puces de filtre */
.bouton {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  background: var(--vert); color: #fff; transition: transform 0.15s, filter 0.15s, background 0.15s;
}
.bouton:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bouton.ambre { background: var(--ambre); color: #1d2b26; }
.bouton.fantome { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.bande .bouton.fantome { color: var(--bande-texte); box-shadow: inset 0 0 0 1.5px var(--bande-trait); }
.bouton.petit { padding: 0.4rem 0.85rem; font-size: 0.84rem; }
@media (prefers-color-scheme: dark) { .bouton:not(.ambre):not(.fantome) { color: #101814; } }
.puces { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.puce {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--texte); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait-fort);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.puce:hover { background: var(--survol); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--carte); box-shadow: none; }
.puce .n { font-variant-numeric: tabular-nums; opacity: 0.65; font-size: 0.8em; }
.champ {
  font: inherit; color: var(--encre); background: var(--carte); border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--trait-fort); padding: 0.5rem 1rem; min-width: 14rem;
}

/* Pastilles : nature d'un constat, catégorie d'un client */
.pastille {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; color: var(--p, var(--muet)); background: var(--p-pale, var(--menthe));
}
.pastille::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.pastille.nu { background: none; padding-inline: 0; }
.n-gain { --p: var(--n-gain); --p-pale: var(--n-gain-pale); }
.n-tresorerie { --p: var(--n-tresorerie); --p-pale: var(--n-tresorerie-pale); }
.n-risque { --p: var(--n-risque); --p-pale: var(--n-risque-pale); }
.n-question { --p: var(--n-question); --p-pale: var(--n-question-pale); }
.c-sain { --p: var(--c-sain); --p-pale: var(--c-sain-pale); }
.c-retard { --p: var(--c-retard); --p-pale: var(--c-retard-pale); }
.c-risque { --p: var(--c-risque); --p-pale: var(--c-risque-pale); }
.c-contentieux { --p: var(--c-contentieux); --p-pale: var(--c-contentieux-pale); }
.etiquette { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 6px; font-size: 0.74rem; font-weight: 600; color: var(--ambre-fonce); background: var(--ambre-pale); white-space: nowrap; }

/* Tableaux */
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muet); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--trait-fort); white-space: nowrap; }
.table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.table .d { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr[tabindex], .table tbody tr.cliquable { cursor: pointer; }
.table tbody tr[tabindex]:hover, .table tbody tr.cliquable:hover { background: var(--survol); }
.defile { overflow-x: auto; }

/* Fiche : paires libellé / valeur */
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; font-size: 0.92rem; }
.fiche dt { color: var(--muet); }
.fiche dd { color: var(--encre); }

/* Apparition à l'entrée dans l'écran (activée par animer() du socle) */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--delai, 0s); }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Tiroir ---------- */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(16, 24, 20, 0.45); opacity: 0; transition: opacity 0.25s; }
.voile.ouvert { opacity: 1; }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(34rem, 100vw); display: flex; flex-direction: column;
  background: var(--carte); box-shadow: var(--ombre-forte);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tiroir.large { width: min(48rem, 100vw); }
.tiroir.ouvert { transform: none; }
.tiroir-tete { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--trait); }
.tiroir-titre { flex: 1; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muet); }
.tiroir-fermer { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; color: var(--muet); }
.tiroir-fermer:hover { background: var(--survol); color: var(--encre); }
.tiroir-fermer svg { width: 1.1rem; height: 1.1rem; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 1.5rem; overscroll-behavior: contain; }
.tiroir-corps h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.tiroir-corps h4 { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muet); margin: 1.6rem 0 0.5rem; }

/* ---------- Infobulle ---------- */
.bulle {
  position: fixed; z-index: 60; max-width: 20rem; pointer-events: none;
  background: var(--encre); color: var(--carte); font-size: 0.84rem; line-height: 1.4;
  padding: 0.55rem 0.75rem; border-radius: var(--rayon-p); box-shadow: var(--ombre-forte);
}
.bulle b { font-weight: 700; }

/* ---------- Graphiques SVG : conventions communes ---------- */
.graphe { width: 100%; height: auto; overflow: visible; font-family: inherit; }
.graphe text { fill: var(--muet); font-size: 12px; font-variant-numeric: tabular-nums; }
.graphe .axe { stroke: var(--trait); stroke-width: 1; shape-rendering: crispEdges; }
.graphe .repere { stroke: var(--trait-fort); stroke-dasharray: 3 4; }
.legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.85rem; color: var(--texte); }
.legende i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; margin-right: 0.45rem; vertical-align: -0.05rem; background: var(--p, var(--muet)); }

/* Impression : la page se lit sans la coquille */
@media print {
  .barre, .tiroir, .voile, .bulle { display: none !important; }
  .apparait { opacity: 1; transform: none; }
}

/* ---------- Doctrine graphique v2 : papier, encre, données ----------
   Pas de cartes, d'ombres ni de pastilles décoratives : la structure vient du blanc, des filets et de la
   typographie. La couleur est réservée aux données ; l'ambre est le seul accent d'emphase. */
.ouverture { padding-block: clamp(2.5rem, 7vh, 5rem) clamp(1.5rem, 3vh, 2.5rem); }
.phrase { font-size: clamp(1.8rem, 3.3vw, 3.1rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; color: var(--encre); max-width: 27em; text-wrap: balance; }
.phrase b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phrase .accent { color: var(--ambre-fonce); }
.reperes { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin-top: 1.5rem; font-size: 0.95rem; color: var(--muet); }
.reperes b { color: var(--encre); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Une figure : un titre qui énonce le constat, un sous-titre qui dit comment lire, le graphique, une note de source */
.figure { padding-block: clamp(2rem, 5vh, 3.5rem); }
.figure + .figure { border-top: 1px solid var(--trait); }
.figure-titre { font-size: clamp(1.35rem, 2.1vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; max-width: 36em; }
.figure-sous { font-size: 1rem; color: var(--texte); max-width: 46rem; margin-top: 0.4rem; }
.figure-corps { margin-top: 1.5rem; }
.figure-note { font-size: 0.8rem; line-height: 1.5; color: var(--muet); max-width: 56rem; margin-top: 1rem; }
.filet { border: 0; border-top: 1px solid var(--trait); margin: 0; }

/* Sélecteur de lecture d'une figure (mêmes marques, autre arrangement) : texte seul, souligné */
/* Bascule : le filtre ou l'onglet à un seul choix, partout dans l'interface. Un cadre, des segments, le choix en ambre.
   Variante .second (fond gris, choix en blanc) pour un réglage secondaire sous une bascule. */
.bascule, .lectures { display: inline-flex; max-width: 100%; gap: 0.15rem; padding: 0.2rem; border-radius: var(--rayon-p); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait-fort); overflow-x: auto; scrollbar-width: none; }
.bascule::-webkit-scrollbar, .lectures::-webkit-scrollbar { display: none; }
.bascule > button, .lectures > button { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.9rem; border-radius: calc(var(--rayon-p) - 3px); font-size: 0.92rem; font-weight: 700; color: var(--texte); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.bascule > button:hover, .lectures > button:hover { background: var(--survol); }
.bascule > button[aria-pressed="true"], .bascule > button[aria-selected="true"], .lectures > button[aria-pressed="true"], .lectures > button[aria-selected="true"] { background: var(--ambre); color: #1d2b26; }
.bascule > button .n { font-size: 0.85rem; font-weight: 600; color: var(--muet); font-variant-numeric: tabular-nums; }
.bascule > button[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.bascule > button:disabled { opacity: 0.4; cursor: default; }
.bascule.second { border-radius: 999px; background: var(--survol); box-shadow: none; }
.bascule.second > button { border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 500; color: var(--muet); }
.bascule.second > button[aria-pressed="true"] { background: var(--carte); color: var(--encre); font-weight: 700; box-shadow: var(--ombre); }
.bascule-rang { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.bascule-rang > .etq { flex: none; min-width: 4.2rem; font-size: 0.9rem; color: var(--muet); }
.lectures kbd { font: 500 0.7rem var(--mono); color: var(--muet); margin-left: 0.4rem; }

/* Texte de graphique : trois corps au plus par figure */
.graphe .t-fort { fill: var(--encre); font-weight: 700; font-size: 13px; }
.graphe .t-note { fill: var(--muet); font-size: 11px; }
.graphe .contexte { stroke: var(--trait-fort); fill: none; }

/* ---------- Récit en étapes : une idée par écran, on entre dans le détail pas à pas ----------
   .recit occupe exactement la fenêtre (sous la barre) : texte de l'étape, scène, barre des étapes. */
.recit { height: calc(100vh - var(--barre-h)); min-height: 36rem; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.recit-texte { padding-top: clamp(1.5rem, 4vh, 3rem); min-height: 9.5rem; }
.recit-texte .sur { margin-bottom: 0.6rem; }
.recit-texte .phrase { font-size: clamp(1.5rem, 2.6vw, 2.4rem); max-width: 30em; }
.recit-texte .lire { margin-top: 0.6rem; font-size: 1.02rem; color: var(--texte); max-width: 48rem; }
.recit-scene { position: relative; min-height: 0; }
.recit-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.recit-barre { display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; border-top: 1px solid var(--trait); background: var(--fond); }
.recit-pas { flex: 1; display: flex; gap: 0.25rem; min-width: 0; }
.recit-pas li { flex: 1; min-width: 0; }
.recit-pas button { width: 100%; display: flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0.25rem 0.4rem; text-align: left; border-top: 2px solid var(--trait); color: var(--muet); font-size: 0.86rem; transition: color 0.2s, border-color 0.2s; }
.recit-pas button { min-width: 0; }
.recit-pas .recit-nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recit-pas li.fait button { border-top-color: var(--trait-fort); }
.recit-pas button:hover { color: var(--encre); }
.recit-pas button[aria-current="step"] { color: var(--encre); font-weight: 700; border-top-color: var(--ambre); }
.recit-fleche { padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait-fort); white-space: nowrap; }
.recit-fleche.suite { background: var(--encre); color: var(--fond); box-shadow: none; }
.recit-fleche:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 760px) {
  .recit-pas li:has(> [aria-current="step"]) { flex: 4; }
  .recit-pas button { min-height: 2.25rem; }
  .recit-pas button:not([aria-current="step"]) .recit-nom { display: none; }
  .recit { height: auto; min-height: calc(100vh - var(--barre-h)); } .recit-scene { min-height: 22rem; }
}

/* ---------- v3 : gros chiffres en blocs simples, parties nettement distinctes ----------
   On commence par des montants en grand, dans des blocs pleins. Les parties d'une page alternent leurs fonds
   et portent une étiquette de couleur et un grand titre, pour savoir où porter l'œil. */
.blocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.bloc {
  display: grid; align-content: start; gap: 0.4rem; text-align: left; text-decoration: none;
  padding: 1.5rem 1.6rem 1.4rem; border-radius: var(--rayon);
  background: var(--carte); border: 1px solid var(--trait); color: var(--texte);
}
.bloc-sur { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muet); }
.bloc-chiffre { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--encre); white-space: nowrap; }
.bloc-chiffre small { font-size: 0.36em; font-weight: 700; letter-spacing: 0; margin-left: 0.35em; }
.bloc-libelle { font-size: 1.08rem; font-weight: 700; color: var(--encre); margin-top: 0.3rem; }
.bloc-detail { font-size: 0.9rem; color: var(--muet); }
.bloc.m .bloc-chiffre { font-size: clamp(2rem, 3.4vw, 3rem); }
.bloc.vert { background: var(--bande); border-color: transparent; color: var(--bande-muet); }
.bloc.vert .bloc-chiffre, .bloc.vert .bloc-libelle { color: var(--bande-texte); }
.bloc.vert .bloc-sur, .bloc.vert .bloc-detail { color: var(--bande-muet); }
.bloc.ambre { background: var(--ambre); border-color: transparent; color: #3d2f08; }
.bloc.ambre .bloc-chiffre, .bloc.ambre .bloc-libelle { color: #1d2b26; }
.bloc.ambre .bloc-sur, .bloc.ambre .bloc-detail { color: #5a4510; }
.bloc.teinte { background: var(--p-pale); border-color: transparent; }
.bloc.teinte .bloc-chiffre, .bloc.teinte .bloc-sur { color: var(--p); }
a.bloc, button.bloc { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
a.bloc:hover, button.bloc:hover { transform: translateY(-2px); box-shadow: var(--ombre); }

.partie { padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.partie.blanche { background: var(--carte); }
.partie.menthe { background: var(--menthe); }
.partie.verte { background: var(--bande); color: var(--bande-muet); }
.partie.verte h2, .partie.verte h3 { color: var(--bande-texte); }
.partie-tete { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; }
.partie-etiquette, .recit-etiquette {
  justify-self: start; display: inline-block; padding: 0.25rem 0.65rem; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1d2b26; background: var(--ambre);
}
.partie-etiquette.verte, .recit-etiquette.verte { color: #fff; background: var(--bande); }
.partie-tete h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; }
.partie-tete p { font-size: 1.05rem; color: var(--texte); max-width: 44rem; }
.partie.verte .partie-tete p { color: var(--bande-muet); }
/* Zone de graphique détachée du texte : un panneau blanc sur le papier */
.panneau { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.25rem 1.5rem; }

/* ---------- État d'un module (Comptabilité, Paie, Poste clients) ----------
   Une étiquette de texte : .actif (le fichier a été reçu) en vert sur menthe, .inactif (fichier à fournir) en gris,
   au filet pointillé. Sert au portefeuille et aux pages d'un client. */
.etat-module {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 6px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; line-height: 1.5;
}
.etat-module.actif { color: var(--vert-fonce); background: var(--menthe); box-shadow: inset 0 0 0 1px var(--sauge); }
.etat-module.inactif { color: var(--muet); background: transparent; box-shadow: none; outline: 1px dashed var(--trait-fort); outline-offset: -1px; }

/* ======================================================================================================
   Application : connexion, barre, menus, statuts, personnes, panneau d'une ligne, messages
   ====================================================================================================== */

/* ---------- Barre ---------- */
.empl { display: flex; align-items: center; gap: 0.6rem; min-width: 0; font-size: 0.95rem; }
.empl a { color: var(--muet); text-decoration: none; font-weight: 600; }
.empl a:hover, .empl a.actif { color: var(--encre); }
.fil-sep { color: var(--trait-fort); }
.fil-client { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; font-weight: 700; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.fil-client { padding: 0.3rem 0.6rem; margin-left: -0.6rem; border-radius: 8px; }
button.fil-client:hover { background: var(--survol); }
.chevron { display: inline-block; width: 0.45rem; height: 0.45rem; margin-left: 0.15rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.15rem) rotate(45deg); opacity: 0.6; flex: none; }
.moi { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex: none; }
.moi-nom { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.7rem 0.3rem 0.35rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--encre); }
.moi-nom:hover { background: var(--survol); }
.moi-sortir { padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.85rem; color: var(--muet); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.moi-sortir:hover { color: var(--encre); background: var(--survol); }
body.hors-session .empl, body.hors-session .moi { display: none; }
@media (max-width: 760px) {
  .moi-nom span:not(.av) { display: none; }
  .moi-nom { padding: 0.2rem; }
  .moi-sortir { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
  .empl { font-size: 0.88rem; }
  .empl > a:first-child:not(:only-child) { display: none; }
  .empl > a:first-child:not(:only-child) + .fil-sep { display: none; }
}

/* ---------- Connexion et choix du nom ---------- */
.cx-page { min-height: calc(100vh - var(--barre-h)); display: grid; place-items: center; padding: 2rem var(--gouttiere) 4rem;
  background: radial-gradient(90% 70% at 80% 0%, var(--menthe) 0%, transparent 70%), var(--fond); }
.cx { width: min(26rem, 100%); display: grid; gap: 0.6rem; padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
.cx.cx-large { width: min(38rem, 100%); }
.cx-sur { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ambre-fonce); }
.cx h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
.cx-texte { color: var(--texte); margin-bottom: 0.6rem; }
.cx label { margin-top: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--encre); }
.cx input { font: inherit; font-size: 1rem; color: var(--encre); background: var(--fond); border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--trait-fort); padding: 0.75rem 0.9rem; width: 100%; }
.cx input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--vert); }
.cx label.cx-rester { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.2rem; font-weight: 500; color: var(--muet); cursor: pointer; }
.cx .cx-rester input { width: 1.05rem; height: 1.05rem; padding: 0; margin: 0; box-shadow: none; accent-color: var(--vert); cursor: pointer; }
.cx .bouton { justify-content: center; margin-top: 0.6rem; padding-block: 0.85rem; }
.cx .bouton:disabled { opacity: 0.6; cursor: progress; }
.cx-erreur { min-height: 1.3em; font-size: 0.9rem; font-weight: 600; color: var(--n-risque); }
.cx-erreur:empty { min-height: 0; }
.cx-noms { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.5rem; margin-block: 0.4rem 0.8rem; }
.cx-nom { width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; text-align: left; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--trait); transition: box-shadow 0.15s, background 0.15s; }
.cx-nom:hover { background: var(--survol); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.cx-nom.actif { box-shadow: inset 0 0 0 2px var(--vert); }
.cx-nom b { display: block; color: var(--encre); }
.cx-nom small { display: block; font-size: 0.8rem; color: var(--muet); }
.cx-nom .av { width: 2.2rem; height: 2.2rem; font-size: 0.8rem; }
.cx-autre { display: grid; gap: 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--trait); }
.cx-ligne { display: flex; gap: 0.5rem; }
.cx-ligne input { flex: 1; min-width: 0; }
.cx-ligne .bouton { margin: 0; }

/* ---------- Personnes : pastilles d'initiales ---------- */
.av { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: var(--muet); }
.av.vide { background: transparent; color: var(--muet); box-shadow: inset 0 0 0 1.5px dashed var(--trait-fort); outline: 1.5px dashed var(--trait-fort); outline-offset: -1.5px; }
.av-0 { background: #2d5a4a; } .av-1 { background: #3e6c8f; } .av-2 { background: #a5583e; } .av-3 { background: #8a5e08; }
.av-4 { background: #5b4a92; } .av-5 { background: #4d7a66; } .av-6 { background: #6b6f2e; } .av-7 { background: #8c4566; }
.personne { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; padding: 0.25rem 0.6rem 0.25rem 0.25rem; border-radius: 999px; font-size: 0.86rem; color: var(--encre); white-space: nowrap; }
.personne:hover { background: var(--survol); }
.personne > span:not(.av):not(.chevron) { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Statuts ---------- */
.st-a_verifier { --s: var(--st-a_verifier); } .st-confirme { --s: var(--st-confirme); } .st-a_creuser { --s: var(--st-a_creuser); }
.st-en_cours { --s: var(--st-en_cours); } .st-fait { --s: var(--st-fait); } .st-ecarte { --s: var(--st-ecarte); }
.statut { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; font-size: 0.84rem; font-weight: 600; color: var(--encre); }
.statut > i, .p-st > i, .menu .st-a_verifier i { display: inline-block; flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--s); }
.statut.st-a_verifier > i, .p-st.st-a_verifier > i { background: transparent; box-shadow: inset 0 0 0 2px var(--s); }
.statut.st-ecarte { color: var(--muet); }
button.statut { padding: 0.3rem 0.65rem 0.3rem 0.5rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--trait); }
button.statut:hover { background: var(--survol); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.statut.seul { padding: 0; box-shadow: none; }
/* Barre d'avancement par statut */
.barre-st { display: flex; width: 100%; height: 0.7rem; border-radius: 999px; overflow: hidden; background: var(--trait); gap: 2px; }
.barre-st i { display: block; min-width: 3px; background: var(--s); }
.barre-st i.st-a_verifier { background: var(--trait-fort); }
.barre-st.fine { height: 0.4rem; gap: 1px; }
.barre-st.grande { height: 1.1rem; }
.barre-st-bloc { display: grid; gap: 0.7rem; }
.legende-st { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.85rem; color: var(--texte); }
.legende-st li { display: inline-flex; align-items: center; gap: 0.35rem; }
.legende-st li.zero { opacity: 0.45; }
.legende-st i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--s); }
.legende-st i.st-a_verifier { background: transparent; box-shadow: inset 0 0 0 2px var(--s); }
.legende-st b { color: var(--encre); font-weight: 800; }

/* ---------- Menu déroulant ---------- */
.menu { position: fixed; z-index: 70; min-width: 15rem; max-width: min(22rem, calc(100vw - 16px)); max-height: min(26rem, 70vh); overflow-y: auto;
  padding: 0.35rem; background: var(--carte); border-radius: 12px; box-shadow: var(--ombre-forte), 0 0 0 1px var(--trait); }
.menu-titre { padding: 0.45rem 0.7rem 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muet); }
.menu button { width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; text-align: left; border-radius: 8px; font-size: 0.92rem; color: var(--encre); }
.menu button:hover, .menu button:focus-visible { background: var(--survol); outline: none; }
.menu button[aria-checked="true"] { background: var(--menthe); font-weight: 700; }
.menu button > i { flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--s); }
.menu-l { display: grid; min-width: 0; }
.menu-l { flex: 1; }
.menu-n { flex: none; margin-left: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--muet); }
.menu button[aria-checked="true"] { background: var(--ambre-pale); }
.menu-l small { font-size: 0.78rem; font-weight: 400; color: var(--muet); }
.menu kbd, .reu kbd { font: 600 0.72rem var(--mono); min-width: 1.3rem; padding: 0.05rem 0.3rem; text-align: center; border-radius: 4px; color: var(--muet); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.menu-saisie { width: calc(100% - 0.4rem); margin: 0.3rem 0.2rem 0.2rem; font: inherit; font-size: 0.9rem; padding: 0.5rem 0.7rem; border: 0; border-radius: 8px; background: var(--fond); box-shadow: inset 0 0 0 1px var(--trait-fort); color: var(--encre); }

/* ---------- Message bref ---------- */
.message { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 2rem);
  padding: 0.7rem 0.8rem 0.7rem 1.1rem; border-radius: 12px; background: var(--encre); color: var(--carte); font-size: 0.9rem; box-shadow: var(--ombre-forte);
  transform: translate(-50%, 150%); opacity: 0; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; pointer-events: none; }
.message.vu { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.message button { padding: 0.3rem 0.7rem; border-radius: 8px; font-weight: 700; color: var(--ambre); }
.message button:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Case à cocher d'une étape ---------- */
.coche { flex: none; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--trait-fort); background: var(--carte); transition: background 0.15s, box-shadow 0.15s; }
.coche:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--vert); }
.coche span { width: 0.4rem; height: 0.7rem; margin-top: -0.15rem; border-right: 2.5px solid transparent; border-bottom: 2.5px solid transparent; transform: rotate(45deg); }
.coche[aria-pressed="true"] { background: var(--vert); box-shadow: none; }
.coche[aria-pressed="true"] span { border-color: #fff; }
.coche:disabled { cursor: default; opacity: 0.6; }

/* ---------- Panneau d'une ligne (tiroir) ---------- */
.lg { display: grid; gap: 0.8rem; }
.tiroir-corps .lg-titre { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.lg-m { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--p); white-space: nowrap; }
/* En-tête de la fiche : un cadre comme les sections ; titre, repères,
   puis une rangée de cases étiquetées séparées par des filets (montant, fourchette, certitude, échéance). */
.lg-tete { gap: 1rem; }
.lg-tete-t { display: grid; gap: 0.35rem; }
.lg-cases { display: flex; flex-wrap: wrap; margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--trait); }
.lg-case { display: grid; align-content: start; gap: 0.35rem; padding: 0 1.4rem; border-left: 1px solid var(--trait); }
.lg-case:first-child { padding-left: 0; border-left: 0; }
.lg-case dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muet); }
.lg-case dd { margin: 0; display: grid; gap: 0.15rem; font-size: 0.98rem; font-weight: 600; color: var(--encre); }
.lg-case dd small { font-size: 0.8rem; font-weight: 400; color: var(--muet); }
.lg-case.urgent dd { color: var(--n-risque); }
@media (max-width: 40rem) { .lg-case { padding: 0.5rem 0; border-left: 0; flex-basis: 50%; } }
.lg-commandes { display: grid; gap: 0.8rem; }
.fil-saisie .filtre-b { flex: none; max-width: 14rem; align-self: stretch; }
.lg-statuts { justify-self: start; }
.lg-plus { font-size: 0.92rem; line-height: 1.55; color: var(--texte); }
.lg-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.8rem; align-items: start; }
.lg-qui-n { display: inline-flex; align-items: center; gap: 0.45rem; }
.lg-reperes { font-size: 0.85rem; color: var(--muet); }
/* En-tête du tiroir d'une ligne : précédente, rang, suivante, identifiant. */
.lg-nav { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; color: var(--texte); }
.lg-nav-b { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: var(--rayon-p); color: var(--encre); background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.lg-nav-b:hover:not(:disabled) { background: var(--survol); }
.lg-nav-b:disabled { opacity: 0.35; cursor: default; }
.lg-nav-b .chevron { margin: 0; }
.lg-nav-b .chevron.gauche { transform: rotate(135deg) translate(-1px, -1px); }
.lg-nav-b .chevron.droite { transform: rotate(-45deg) translate(-1px, -1px); }
.lg-nav-id { margin-left: 0.6rem; font: 500 0.8rem var(--mono); color: var(--muet); }
.lg-lecture { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--muet); }
.lg-bref { font-size: 1.02rem; line-height: 1.5; color: var(--encre); }
/* Sections de la fiche : un filet au-dessus, un titre ambre en gras ; on repère chaque bloc d'un coup d'œil. */
.tiroir-corps:has(> .lg) { background: var(--fond); }
.lg-sec { display: grid; gap: 0.7rem; padding: 1rem 1.15rem 1.1rem; border-radius: 12px; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait); }
.lg-sec.savoir { background: var(--ambre-pale); box-shadow: none; }
.tiroir-corps .lg-sec h4 { margin: 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ambre-fonce); }
.lg-sec p { font-size: 0.95rem; line-height: 1.55; }
.lg-etapes { display: grid; gap: 0.15rem; }
.lg-etapes li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.45rem 0.5rem; border-radius: 8px; font-size: 0.95rem; line-height: 1.45; color: var(--encre); }
.lg-etapes li.faite > span:last-child { color: var(--muet); text-decoration: line-through; text-decoration-color: var(--trait-fort); }
.lg-fini { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--menthe); font-size: 0.92rem; }
.lg-chiffres { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.lg-chiffres dt { font-size: 0.78rem; color: var(--muet); }
.lg-chiffres dd { font-size: 1.2rem; font-weight: 800; color: var(--encre); }
.lg-evol { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; }
.lg-courbe polyline { fill: none; stroke: var(--ambre-fonce); stroke-width: 2; }
.lg-courbe circle { fill: var(--ambre-fonce); }
.lg-table { font-size: 0.86rem; }
.lg-table td, .lg-table th { padding: 0.45rem 0.6rem; }
.lg-table tfoot td { font-weight: 700; color: var(--encre); border-bottom: 0; border-top: 1.5px solid var(--trait-fort); }
.lg-table tr.marque td { background: var(--ambre-pale); }
.lg-note { font-size: 0.8rem; color: var(--muet); }
.lg-puces { display: grid; gap: 0.45rem; list-style: none; font-size: 0.95rem; line-height: 1.5; color: var(--encre); }
.lg-puces li { position: relative; padding-left: 1.3rem; }
.lg-puces li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ambre); }
ol.fil { display: grid; gap: 0.8rem; }
ol.fil li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.fil-tete { font-size: 0.84rem; }
.fil-tete b { color: var(--encre); }
.fil-texte { font-size: 0.95rem; line-height: 1.5; color: var(--encre); white-space: pre-wrap; overflow-wrap: anywhere; }
.fil-saisie { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; }
.fil-saisie .bouton { align-self: center; }
.fil-saisie textarea { flex: 1 1 12rem; min-width: 0; }
.lg-commandes .fil { padding-top: 0.8rem; border-top: 1px solid var(--trait); }
.fil-saisie textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--encre); background: var(--carte); border: 0; border-radius: var(--rayon-p); box-shadow: inset 0 0 0 1px var(--trait-fort); padding: 0.7rem 0.8rem; resize: vertical; min-height: 2.6rem; field-sizing: content; max-height: 12rem; }
.fil-saisie textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--vert); }
@media (max-width: 560px) {
  .tiroir-corps { padding: 1.1rem; }
}

/* Interrupteur « Ça m'intéresse » et son état */
.int { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.int-etat { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--texte); }
.int-etat i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 3px var(--ambre-pale); }
.int-etat b { color: var(--encre); }
.int-retirer { font-size: 0.82rem; color: var(--muet); text-decoration: underline; text-underline-offset: 3px; }
.int-retirer:hover { color: var(--encre); }

/* Écran étroit : la barre se resserre */
@media (max-width: 480px) {
  :root { --barre-h: 3.25rem; }
  .marque svg { width: 1.6rem; height: 1.6rem; }
}
.menu-st { display: inline-flex; align-items: center; gap: 0.45rem; }
.menu-st i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--s); }
.menu .st-a_verifier .menu-st i { background: transparent; box-shadow: inset 0 0 0 2px var(--s); }
