/* Yettii — feuille commune des pages web.
   Règles de YETTII_DESIGN.md : pas d'emoji, pas de dégradé, pas d'ombre portée, pas de liseré
   coloré. La couleur va dans le chiffre ou le mot qui porte le sens. Composants repris de
   Restivo (carte, compteur, pastille d'état, bandeau, fenêtre). */

/* La police de l'appli, la même lettre partout (audit du 2026-11-15). */
@font-face { font-family: "Jakarta"; src: url("/polices/jakarta-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/polices/jakarta-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/polices/jakarta-600.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  /* L'identité Yettii (2026-11-15), la même que l'appli : clair, bleu nuit pour la marque
     et les gestes, vert émeraude seulement pour l'argent reçu et « tout va bien ». */
  --bg: #f8fafc; --card: #ffffff; --raised: #eef2f7; --line: #e2e8f0;
  --text: #1e293b; --muted: #64748b;
  --brand: #0b1f3a; --on-brand: #ffffff; --brand-soft: #e7edf6;
  --green: #059669; --green-bg: #d1fae5; --on-green: #ffffff;
  --red: #dc2626; --red-bg: #fee2e2;
  --amber: #c2410c; --amber-bg: #ffedd5;
  --blue: #1e40af; --blue-bg: #dbeafe;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45;
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
  font-feature-settings: "tnum"; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ── Structure ── */
.top { display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-size: 20px; font-weight: 700; letter-spacing: .2px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 10px; }
/* Le logo : Y blanc sur carré bleu nuit, branche droite verte (une coche). */
.brand::before { content: ""; width: 32px; height: 32px; flex: none; background: no-repeat center/contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='16' fill='%230b1f3a'/%3E%3Cpath d='M19 18 31 34v15' fill='none' stroke='%23fff' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M32.5 31.8 45.5 13.5' fill='none' stroke='%2334d399' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.brand span { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; max-width: 100%; }
.tab { background: transparent; border: 0; color: var(--muted); padding: 8px 12px;
  border-radius: 8px; font-size: 15px; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.spacer { flex: 1; }
.page { max-width: 1080px; margin: 0 auto; padding: 24px 16px 72px; }
.narrow { max-width: 460px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }

/* ── Compteurs cliquables ── */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.counter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-align: left; color: var(--text); cursor: pointer; font: inherit; }
.counter[aria-pressed="true"] { border-color: var(--brand); outline: 1px solid var(--brand); outline-offset: -2px; }
.counter .n { display: block; font-size: 28px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.counter .l { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.counter.plain { cursor: default; }
.n.ok { color: var(--green); } .n.warn { color: var(--amber); } .n.bad { color: var(--red); }

/* ── Boutons et champs ── */
button, .button { font: inherit; }
.btn { background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 16px; font-size: 15px; cursor: pointer; min-height: 42px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand);
  font-weight: 600; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline;
  cursor: pointer; font-size: 14px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit;
  font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.error { color: var(--red); font-size: 14px; margin-top: 12px; min-height: 20px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.actions.end { justify-content: flex-end; }

/* ── Pastilles et bandeaux d'état ── */
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap; }
.badge.ok { color: var(--green); background: var(--green-bg); }
.badge.warn { color: var(--amber); background: var(--amber-bg); }
.badge.bad { color: var(--red); background: var(--red-bg); }
.badge.info { color: var(--blue); background: var(--blue-bg); }
.badge.off { color: var(--muted); background: var(--raised); }
.notice { border-radius: 8px; padding: 12px 14px; font-weight: 600; }
.notice.ok { color: var(--green); background: var(--green-bg); }
.notice.warn { color: var(--amber); background: var(--amber-bg); }
.notice.bad { color: var(--red); background: var(--red-bg); }
.notice p { font-weight: 400; color: var(--text); margin-top: 4px; }

/* ── Tableau (devient une liste de cartes sur téléphone) ── */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); font-weight: 600; padding: 0 12px 10px; }
.table td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--raised); }
.table .name { font-weight: 600; }
.table .right { text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-top: 1px solid var(--line); padding: 14px 0; }
  .table td { border: 0; padding: 3px 0; }
  .table td[data-label]::before { content: attr(data-label) " : "; color: var(--muted); font-size: 13px; }
  .table .right { text-align: left; padding-top: 10px; }
}

/* ── Fenêtre ── */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex;
  align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; z-index: 10; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  width: 100%; max-width: 500px; padding: 22px; }
.modal h2 { font-size: 19px; margin-bottom: 4px; }
.copybox { display: flex; gap: 8px; margin-top: 12px; }
.copybox input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.list { margin-top: 12px; }
.list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--line); }
.list > div:first-child { border-top: 0; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* ── Le bloc de la marque (comme le premier écran de l'appli) ── */
.hero { background: var(--brand); color: #fff; border-radius: 24px; padding: 24px; }
.hero .brand { color: #fff; }
.hero h1 { font-size: 26px; line-height: 1.25; margin-top: 18px; }
.hero p { color: rgba(255, 255, 255, .72); margin-top: 8px; }
.btn.block { width: 100%; min-height: 52px; font-size: 16px; }

/* Pilotage : l'étiquette d'une Box et ses réglages d'atelier. */
.boxlabel { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px;
  background: #fff; color: #000; border: 1px solid var(--line); border-radius: 12px;
  width: fit-content; margin: 16px auto 8px; }
.boxlabel img { display: block; }
.boxlabel .name { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.modal h3 { font-size: 15px; margin: 20px 0 4px; }
.setting { display: flex; flex-direction: column; gap: 2px; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.setting code { font-family: ui-monospace, Consolas, monospace; font-size: 14px;
  overflow-wrap: anywhere; }
.modal .actions.grave { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ── Yettii Gestion : une colonne pensée pour le téléphone (docs/maquette-gestion/) ── */
body.gestion { padding-bottom: 84px; }
.gtop { display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 560px;
  margin: 0 auto; }
.gpage { max-width: 560px; margin: 0 auto; padding: 4px 16px 24px; }
.gstack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grow2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.iconbtn { width: 44px; height: 44px; flex: none; border: 0; background: transparent;
  color: var(--brand); border-radius: 22px; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 13px; }
.iconbtn.solid { background: var(--brand); color: var(--on-brand); }
.iconbtn.ring { border: 1px solid var(--line); background: var(--card); }
.gestion .btn { gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 600; }
.gestion .btn.sm { min-height: 44px; padding: 6px 14px; border-radius: 22px; }
.gestion .btn.block { width: 100%; }
.gestion .btn.primary.block { min-height: 52px; font-size: 16px; }

.ghead { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.ghead h1 { font-size: 22px; line-height: 1.2; }
.gsection { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--muted);
  margin-top: 8px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.gcard .gsection { margin-top: 0; }
.gcard.gwarn { background: var(--amber-bg); border-color: var(--amber-bg); }
.gcard.gnow { border: 2px solid var(--brand); }
.gcard.gcalm { flex-direction: row; align-items: center; color: var(--green); font-weight: 600; }
.gcard label { margin: 4px 0 0; }
.gbig { font-size: 19px; font-weight: 700; line-height: 1.25; }

.gline { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gline.warn { background: var(--amber-bg); border-color: var(--amber-bg); }
.gcard .gline { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0;
  background: transparent; }
.gcard .gsection + .gline { border-top: 0; }
.gtitle { display: block; font-weight: 700; overflow-wrap: anywhere; }
.gtitle.code, .gchip.code { letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.gsub { display: block; font-size: 13px; color: var(--muted); }
.gline.warn .gsub, .gcard.gwarn .small { color: var(--amber); }
.gcount { width: 40px; height: 40px; flex: none; border-radius: 20px; background: var(--amber);
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gdot { width: 10px; height: 10px; flex: none; border-radius: 5px; background: var(--muted); }
.gdot.ok { background: var(--green); } .gdot.warn { background: var(--amber); }
.gboxes { display: inline-flex; align-items: center; gap: 4px; color: var(--muted);
  font-size: 13px; font-weight: 600; }

.gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gtiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gtile { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; text-align: left; color: var(--text); font: inherit; display: flex;
  flex-direction: column; gap: 2px; }
button.gtile { cursor: pointer; }
.gtile.wide { grid-column: span 2; }
.gtile .n { font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gtile .n small { font-size: 14px; font-weight: 500; color: var(--muted); }
.gtile .n.warn { color: var(--amber); }
.gtile .l { font-size: 13px; color: var(--muted); }

.gchips { display: flex; gap: 8px; flex-wrap: wrap; }
.gchip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; }
.gchip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand);
  color: var(--on-brand); }

.gsteps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.gsteps span { height: 6px; border-radius: 3px; background: var(--line); }
.gsteps span.done { background: var(--green); } .gsteps span.now { background: var(--brand); }
.gdone, .glater { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.glater { color: var(--muted); font-weight: 500; }
.gtick, .gnum { width: 32px; height: 32px; flex: none; border-radius: 16px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; }
.gtick { background: var(--green-bg); color: var(--green); }
.gnum { background: var(--raised); }

.gcopy { display: flex; align-items: center; gap: 8px; padding: 8px 4px 8px 12px;
  border-radius: 10px; background: var(--raised); }
.gcopy.once { background: var(--amber-bg); }
.gcopy code { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 14px;
  overflow-wrap: anywhere; }
.glabel { width: 200px; height: 240px; align-self: center; border: 1px solid var(--line);
  border-radius: 8px; }
.gpay { display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-top: 1px solid var(--line); }
.gpay:first-child { border-top: 0; }
.gestion .actions { margin-top: 4px; }
.gestion .actions.grave { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

.gnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--card);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px 0 10px; }
.gnav button { min-height: 52px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 500; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.gnav button[aria-current="true"] { color: var(--brand); font-weight: 700; }
.gqr { align-self: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.gcontact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gcontact .btn { justify-content: center; }

/* ── Yettii Gestion sur PC (maquette validée le 2026-11-17, docs/maquette-gestion/Pc*.dc.html) :
   menu à gauche, barre en haut avec la recherche, tableaux, fiche du client à droite. ── */
@media (max-width: 1023px) { .only-wide { display: none !important; } }
.gwarntext { color: var(--amber); font-weight: 600; }
.gjournal { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 14px; width: 100%; background: none; border-left: 0;
  border-right: 0; border-bottom: 0; text-align: left; font: inherit; color: var(--text); }
.gjournal.link { text-decoration: none; cursor: pointer; }
.gjournal .gsub { white-space: nowrap; }
.gkpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gkpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--text); }
button.gkpi { cursor: pointer; }
button.gkpi:hover { border-color: var(--muted); }
.gkpi .l { font-size: 13px; font-weight: 600; color: var(--muted); }
.gkpi .n { font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gkpi .note { font-size: 13px; color: var(--muted); }
.gkpi.warn { background: var(--amber-bg); border-color: var(--amber-bg); }
.gkpi.warn .l, .gkpi.warn .n, .gkpi.warn .note { color: var(--amber); }
.gcalm { display: flex; align-items: center; gap: 10px; color: var(--green); font-weight: 600; padding: 8px 0; }
.gtable { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.gtable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gtable th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gtable td { white-space: nowrap; padding: 10px 14px; border-bottom: 1px solid var(--raised); vertical-align: middle; }
.gtable tbody tr:last-child td { border-bottom: 0; }
.gtable tbody tr { cursor: pointer; }
.gtable tbody tr:hover { background: var(--bg); }
.gtable tbody tr.on { background: var(--brand-soft); }
.gtable tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gtable .right { text-align: right; }
.gtable td .gtitle { white-space: normal; }
.gtable .link, .gestion .gjournal.link { color: var(--brand); font-weight: 600; text-decoration: none; cursor: pointer; }
.gtable .link:hover { text-decoration: underline; }

@media (min-width: 1024px) {
  .only-narrow { display: none !important; }
  body.gestion { padding: 0; display: grid; grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: auto 1fr; min-height: 100vh; background: #f1f5f9; }
  body.gestion > .gnav { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--brand);
    border: 0; }
  body.gestion > .gnav[hidden] { display: none !important; }
  .gnav .brand { color: #fff; padding: 4px 10px 22px; }
  .gnav .brand span { color: #94a3b8; }
  .gnav .brand::before { box-shadow: 0 0 0 1px #1e3a5f; }
  .gnav button { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px;
    padding: 0 12px; border-radius: 10px; color: #cbd5e1; font-size: 15px; font-weight: 500; }
  .gnav button:hover { background: #142c4d; color: #fff; }
  .gnav button[aria-current="true"] { background: #1e3a5f; color: #fff; font-weight: 600; }
  .gnav .spacer { flex: 1; }
  body.gestion > .gtop { grid-column: 2; max-width: none; margin: 0; padding: 16px 32px; background: var(--card);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
  .gtop h1 { font-size: 22px; }
  .gtop .btn { min-height: 44px; border-radius: 10px; }
  .gsearch { display: flex; align-items: center; gap: 8px; width: 380px; max-width: 40vw;
    min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
    color: var(--muted); margin: 0; }
  .gsearch input { border: 0; background: transparent; padding: 0; min-height: 0; flex: 1; font: inherit;
    font-size: 14px; color: var(--text); outline: none; }
  body.gestion > .gpage { grid-column: 2; max-width: none; width: 100%; margin: 0; padding: 24px 32px 40px; }
  /* Les écrans qui restent en une colonne (fiche d'une Box, formulaires) : largeur de lecture. */
  .gpage > .gstack:not(.gwide) { max-width: 760px; }
  .gkpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .gkpi { padding: 18px 20px; }
  .gkpi .n { font-size: 28px; }
  .gcols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
  .gcols > .gcard { gap: 8px; }
  .gsplit { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
  .gpanel { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
  .gpanel .gcard { padding: 12px; }
  .gestion .btn.primary.block { min-height: 46px; font-size: 15px; }
}

/* ── Gestion : la porte, le compte connecté, l'environnement d'essai (2026-11-17) ── */
.genv { background: #7c2d12; color: #fff; text-align: center; font-size: 13px; font-weight: 600;
  padding: 6px 12px; position: sticky; top: 0; z-index: 6; }
.gdoor { max-width: 960px; margin: 24px auto; display: grid; gap: 0; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; background: var(--card); }
.gdoorside { background: var(--brand); color: #e2e8f0; padding: 28px 24px; display: flex;
  flex-direction: column; gap: 14px; }
.gdoorside .brand { color: #fff; }
.gdoorside .brand span { color: #94a3b8; }
.gdoortitle { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; }
.gdoorlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gdoorform { padding: 28px 24px; display: flex; flex-direction: column; }
.gdoorform form { display: flex; flex-direction: column; gap: 6px; }
.gdoorform .btn.primary { margin-top: 14px; }
.gdoorh { font-size: 22px; margin-bottom: 8px; }
.gnotice { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.gfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gfact { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.gtable tbody tr.plain { cursor: default; }
.gtable td.wrap { white-space: normal; }
.gwho { margin-top: 10px; padding-top: 14px; border-top: 1px solid #1e3a5f; display: flex;
  flex-direction: column; gap: 8px; }
.gwhoname { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px;
  border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: #fff; }
.gwhoname:hover { background: #142c4d; }
.gwhoname .gtitle { color: #fff; font-size: 14px; }
.gwhoname .gsub { color: #94a3b8; font-size: 12px; overflow-wrap: anywhere; }
.ginitials { width: 36px; height: 36px; flex: none; border-radius: 18px; background: #1e3a5f; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.gwhostate { padding: 0 6px; }
.gout { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid #1e3a5f; background: transparent; color: #e2e8f0; font: inherit; font-size: 14px; cursor: pointer; }
.gout:hover { background: #142c4d; color: #fff; }
@media (min-width: 760px) {
  .gdoor { grid-template-columns: 5fr 6fr; margin: 64px auto; min-height: 460px; }
  .gdoorside { padding: 40px 36px; }
  .gdoorform { padding: 40px 36px; justify-content: center; }
}
@media (min-width: 1024px) {
  body.gestion > .genv { grid-column: 1 / -1; }
  body.gestion:has(.genv:not([hidden])) { grid-template-rows: auto auto 1fr; }
  body.gestion:has(.genv:not([hidden])) > .gnav { grid-row: 2 / span 2; top: 31px; height: calc(100vh - 31px); }
  body.gestion > main.gpage:has(.gdoor) { grid-column: 1 / -1; }
}
.gdoor.plain { max-width: 400px; grid-template-columns: 1fr; min-height: 0; margin: 12vh auto 24px; }
.gdoor.plain .gdoorform { padding: 32px 28px; }
.gdoor.plain .brand { margin-bottom: 20px; }
.gcheck { display: flex; align-items: center; color: var(--text); font-size: 14px; margin: 10px 0 0; cursor: pointer; }
.gcodes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.gcodes code { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: 1px;
  text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.gestion .btn[disabled] { opacity: .45; cursor: not-allowed; }
/* À l'impression des codes de secours : seulement les codes. */
@media print {
  body.gestion * { visibility: hidden; }
  #printable, #printable * { visibility: visible; }
  #printable { position: absolute; left: 0; top: 0; width: 100%; }
}
