/* Atlas Admin — DA « Givre » de la suite (OG Bank, OG Business, OG Serveur : SAAS/og-bank/public/css/tokens.css) :
   verre dépoli façon Apple, fond à trois halos, tout en gris, un seul bleu d'accent, l'« encre » pour l'action principale.
   Deux thèmes : clair en arrivant (<html data-theme="clair">), sombre au choix sur l'appareil (data-theme="sombre").
   Règle : aucune couleur écrite en dur hors des deux blocs de jetons. Aucun style en ligne (la CSP les refuse). */
:root {
  color-scheme: light;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --bg: #EEF0F3; --text: #0B0C10; --text-2: #3A3C44; --muted: #62646E;
  --ink: #0B0C10; --on-ink: #FFFFFF;
  --glass: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  --glass-line: rgba(255,255,255,.95); --glass-top: #FFFFFF;
  --glass-shade: 0 0 0 .5px rgba(14,18,32,.07), 0 10px 28px -12px rgba(14,18,32,.18);
  --glass-lift: 0 0 0 .5px rgba(14,18,32,.08), 0 22px 44px -18px rgba(14,18,32,.30);
  --glass-sheen: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  --veil: rgba(11,12,16,.06); --veil-2: rgba(11,12,16,.10); --line: rgba(11,12,16,.07);
  --field: rgba(255,255,255,.75); --field-line: rgba(11,12,16,.10);
  --mono-bg: linear-gradient(160deg, #FFFFFF, #E2E4EA); --mono-line: #FFFFFF;
  --accent: #2F54EB; --accent-soft: rgba(47,84,235,.10); --on-accent-soft: #2340C8;
  --ok: #0F7A43; --ok-soft: rgba(15,122,67,.12); --warn: #A8640A; --warn-soft: rgba(168,100,10,.13); --bad: #B4362B; --bad-soft: rgba(180,54,43,.11);
  --backdrop: rgba(11,12,16,.38);
  --amb: radial-gradient(340px 260px at 92% 4%, rgba(130,150,255,.30), transparent 70%),
         radial-gradient(300px 240px at -6% 22%, rgba(255,190,160,.26), transparent 70%),
         radial-gradient(360px 300px at 104% 48%, rgba(150,215,205,.22), transparent 70%);
  --r-card: 22px; --r-big: 28px; --r-btn: 16px; --r-field: 16px;
  --dur: .22s; --ease: cubic-bezier(.2,.8,.2,1);
  --tab-h: 64px;
}
:root[data-theme='sombre'] {
  color-scheme: dark;
  --bg: #08090C; --text: #F3F4F6; --text-2: #D5D7DD; --muted: #9C9EA8;
  --ink: #F3F4F6; --on-ink: #08090C;
  --glass: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  --glass-line: rgba(255,255,255,.09); --glass-top: rgba(255,255,255,.14);
  --glass-shade: 0 14px 34px -14px rgba(0,0,0,.7);
  --glass-lift: 0 24px 50px -16px rgba(0,0,0,.85);
  --glass-sheen: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0));
  --veil: rgba(255,255,255,.08); --veil-2: rgba(255,255,255,.14); --line: rgba(255,255,255,.08);
  --field: rgba(255,255,255,.07); --field-line: rgba(255,255,255,.12);
  --mono-bg: linear-gradient(160deg, #2A2C33, #16171B); --mono-line: rgba(255,255,255,.10);
  --accent: #6E86FF; --accent-soft: rgba(110,134,255,.18); --on-accent-soft: #AEBCFF;
  --ok: #3DD68C; --ok-soft: rgba(61,214,140,.14); --warn: #F0B24A; --warn-soft: rgba(240,178,74,.14); --bad: #FF7A6B; --bad-soft: rgba(255,122,107,.14);
  --backdrop: rgba(4,5,8,.66);
  --amb: radial-gradient(340px 260px at 92% 4%, rgba(90,110,255,.30), transparent 70%),
         radial-gradient(300px 240px at -6% 22%, rgba(255,140,110,.14), transparent 70%),
         radial-gradient(360px 300px at 104% 48%, rgba(80,200,180,.13), transparent 70%);
}

/* ───── Base ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.42;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: var(--amb); z-index: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.mu { color: var(--muted); } .b { font-weight: 600; } .small { font-size: 13px; } .tiny { font-size: 12px; }
.eb { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.lead { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.svg-ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ───── Le verre ───── */
.glass { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--glass);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shade); }
.glass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: var(--glass-sheen); pointer-events: none; }
.glass > * { position: relative; }
a.glass, button.glass { display: block; text-align: left; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.glass:active, button.glass:active { transform: scale(.985); }
@media (hover: hover) { a.glass:hover, button.glass:hover { box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-lift); transform: translateY(-1px); } }
.carte { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.carte > .sugg + .sugg { margin-top: 0; }

/* ───── La coque : barre flottante (téléphone), rail (ordinateur) ───── */
.shell { position: relative; z-index: 1; display: flex; min-height: 100dvh; }
.main { flex: 1; min-width: 0; }
.view { max-width: 560px; width: 100%; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 16px calc(var(--tab-h) + 48px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; animation: entre .28s var(--ease); }
@keyframes entre { from { opacity: 0; transform: translateY(6px); } }
.side { display: none; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 14px); display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 30px; z-index: 20; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 76px; height: 52px; border-radius: 24px;
  font-size: 10.5px; font-weight: 600; color: var(--muted); transition: background var(--dur), color var(--dur); }
.tabbar a.on { color: var(--text); background: var(--veil-2); }
@media (min-width: 1024px) {
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; margin: 20px 0 20px 20px; padding: 18px 0;
    border-radius: var(--r-big); position: sticky; top: 20px; height: calc(100dvh - 40px); }
  .side .logo { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px; }
  .side a { width: 68px; height: 56px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); transition: background var(--dur), color var(--dur); }
  .side a span { font-size: 10.5px; font-weight: 600; }
  .side a:hover { background: var(--veil); color: var(--text); }
  .side a.on { background: var(--veil-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); }
  .side .ressort { flex: 1; }
  .view { max-width: 1080px; padding: 32px 32px 48px 28px; }
}

/* ───── Pièces ───── */
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--veil); color: var(--text-2); white-space: nowrap; }
.pill--point::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.vert { background: var(--ok-soft); color: var(--ok); }
.pill.orange { background: var(--warn-soft); color: var(--warn); }
.pill.rouge { background: var(--bad-soft); color: var(--bad); }
.pill.bleu { background: var(--accent-soft); color: var(--on-accent-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mono { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 15px; font-weight: 650; background: var(--mono-bg);
  border: 1px solid var(--mono-line); color: var(--text); flex: none; overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mono--l { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; }
.mono--round { border-radius: 50%; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: var(--r-btn); border: 0;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; background: var(--ink); color: var(--on-ink); width: 100%;
  transition: transform var(--dur) var(--ease), opacity var(--dur), background var(--dur); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--sec { background: var(--veil); color: var(--text); }
.btn--ok { background: var(--ok); color: var(--on-ink); }
:root[data-theme='sombre'] .btn--ok { color: #08090C; }
.btn--non { background: var(--bad-soft); color: var(--bad); }
.btn--s { height: 44px; font-size: 14px; border-radius: 14px; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; color: var(--text); background: var(--veil); flex: none; }
.ibtn:active { transform: scale(.94); }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 4px; height: 40px; font-size: 15px; font-weight: 500; color: var(--text-2); margin-left: -4px; align-self: flex-start; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--veil); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; text-align: center; font-size: 13px; font-weight: 600; padding: 9px 12px; border: 0; border-radius: 11px; color: var(--muted);
  background: transparent; transition: background var(--dur), color var(--dur); white-space: nowrap; }
.seg button.on { background: var(--veil-2); color: var(--text); }
:root[data-theme='clair'] .seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(14,18,32,.12); }
.seg .nb { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; font-size: 11px;
  background: var(--bad); color: var(--on-ink); }
.field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: var(--r-field); background: var(--field);
  box-shadow: inset 0 0 0 1px var(--field-line); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; font-weight: 500; outline: none; }
.field input::placeholder, textarea::placeholder { color: var(--muted); }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
textarea { width: 100%; min-height: 88px; resize: vertical; border: 0; border-radius: var(--r-field); padding: 14px 16px; font-size: 16px;
  background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); outline: none; }
textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lab { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 4px 2px 8px; }
.erreur { color: var(--bad); background: var(--bad-soft); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.note { color: var(--text-2); background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.vide { padding: 22px 0 8px; text-align: center; color: var(--muted); font-size: 14px; }
.chargement { padding: 60px 0; text-align: center; color: var(--muted); }
.section-titre { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; }
.sep { height: 1px; background: var(--line); }
.chev { color: var(--muted); }

/* ───── Accueil : les cases ───── */
.hero { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hero__haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero__ici { display: flex; align-items: center; gap: 12px; }
.hero__ici img { width: 44px; height: 44px; border-radius: 13px; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chiffre { border-radius: 16px; background: var(--veil); padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chiffre strong { font-size: 24px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.chiffre span { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.chiffre.alerte strong { color: var(--bad); }
.domaines { display: flex; flex-wrap: wrap; gap: 6px; }
.case, a.case { padding: 16px; min-height: 156px; display: flex; flex-direction: column; gap: 10px; }
.case__ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--on-accent-soft); }
.case__bas { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.case__titre { font-size: 16px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.case__sous { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.bande, a.bande { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.bande .col { flex: 1; }

/* ───── Suggestions ───── */
.sugg { border-radius: 18px; background: var(--veil); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sugg + .sugg { margin-top: 10px; }
.sugg__haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sugg__site { font-size: 13px; font-weight: 600; color: var(--text-2); }
.sugg__titre { font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sugg__action { display: flex; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.sugg__action svg { color: var(--accent); margin-top: 2px; }
.sugg__detail { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sugg__etat { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; }
.sugg__etat svg { margin-top: 1px; }
.sugg__etat.ok svg { color: var(--ok); } .sugg__etat.non svg { color: var(--bad); } .sugg__etat.encours svg { color: var(--warn); }
.sugg form { display: flex; flex-direction: column; gap: 10px; }

/* ───── Listes ───── */
.liste { display: flex; flex-direction: column; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 56px; }
.liste > .ligne + .ligne { border-top: 1px solid var(--line); }
.ligne__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne__nom { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne__sous { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.problemes { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.problemes li { font-size: 12.5px; color: var(--text-2); padding-left: 12px; position: relative; overflow-wrap: anywhere; }
.problemes li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
.rapport { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* ───── Agent ───── */
.agent, a.agent { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.agent__tete { display: flex; gap: 14px; align-items: center; }
.agent__infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bientot { border-radius: var(--r-card); border: 1.5px dashed var(--veil-2); padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13.5px; }
.bientot strong { color: var(--text-2); font-size: 14.5px; }

/* ───── Connexion ───── */
.entree { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.entree form, .entree .glass { width: 100%; max-width: 400px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.entree .logo { width: 56px; height: 56px; border-radius: 16px; }

/* ───── Toast ───── */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%) translateY(20px); padding: 12px 18px;
  border-radius: 16px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 40; max-width: 90vw;
  background: var(--ink); color: var(--on-ink); box-shadow: var(--glass-lift); }
.toast.show { opacity: 1; transform: translateX(-50%); }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* ───── Notifications, coûts de l'API, Recruter un agent (25/10/2026) ───── */
.etat-push { flex-wrap: wrap; gap: 8px; }
.inter { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.inter .col { flex: 1; }
.inter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inter__piste { flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--veil-2); position: relative; transition: background var(--dur); }
.inter__piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--on-ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left var(--dur) var(--ease); }
:root[data-theme='clair'] .inter__piste::after { background: #FFFFFF; }
.inter input:checked + .inter__piste { background: var(--ok); }
.inter input:checked + .inter__piste::after { left: 23px; }
.inter input:focus-visible + .inter__piste { outline: 2px solid var(--accent); outline-offset: 3px; }
.sous-reglages { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: var(--veil); }
.sous-reglages .inter:first-of-type { border-top: 0; }
.sous-reglages.eteint { opacity: .45; }
.sous-reglages .eb { margin-top: 8px; }
.coches { display: flex; flex-wrap: wrap; gap: 8px; }
.coche { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); font-size: 13.5px; cursor: pointer; }
.coche input { width: 18px; height: 18px; accent-color: var(--ok); }
.jauge { height: 8px; border-radius: 99px; background: var(--veil); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.jauge i.orange { background: var(--warn); } .jauge i.rouge { background: var(--bad); }
.recrues { display: grid; gap: 14px; }
.recrue__ligne { display: flex; flex-direction: column; gap: 2px; }
.recrue__btn { width: auto; padding: 0 18px; }
@media (min-width: 900px) { .recrues { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ───── Tracking Web (étape 2) : le tableau de bord de suivi-q7m4.php, dans la DA Givre ───── */
.case__chiffres { font-size: 13.5px; color: var(--text-2); }
.case__chiffres strong { font-size: 18px; font-weight: 650; letter-spacing: -.03em; color: var(--text); }
.tw-etat { flex-wrap: wrap; gap: 8px; }
.tw-etat .col { flex: 1; }
.tw-actu { width: auto; padding: 0 14px; }
#suivi { display: flex; flex-direction: column; gap: 14px; }
.tw-cmd { display: flex; flex-direction: column; gap: 10px; }
.tw-nav { display: flex; align-items: center; gap: 8px; }
.tw-nav .field { flex: 1; height: 44px; }
.tw-nav .field input { text-align: center; }
.tw-nav .ibtn { font-size: 20px; line-height: 1; }
.tw-nav .ibtn:disabled { opacity: .3; cursor: default; }
.tw-rac { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.tw-rac::-webkit-scrollbar { display: none; }
.tw-rac .pill { height: 32px; padding: 0 12px; border: 0; cursor: pointer; font-size: 12.5px; flex: none; }
.tw { display: flex; flex-direction: column; gap: 14px; }
.tw-titre { font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.tw-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tw-tuile { padding: 14px 14px 13px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tw-lib { font-size: 12px; font-weight: 500; color: var(--muted); }
.tw-chiffre { font-size: 26px; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-ecart { align-self: flex-start; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--veil); color: var(--text-2); }
.tw-ecart.hausse { background: var(--ok-soft); color: var(--ok); }
.tw-ecart.baisse { background: var(--bad-soft); color: var(--bad); }
.tw-ecart small { font-weight: 500; opacity: .8; }
.tw-carte { min-width: 0; }
svg.tw-g { display: block; width: 100%; height: auto; overflow: visible; }
svg.tw-g text { font-family: var(--font); font-size: 10.5px; fill: var(--muted); }
svg.tw-g .axe { stroke: var(--veil-2); stroke-width: .8; }
svg.tw-g .grille { stroke: var(--line); stroke-width: 1; }
svg.tw-g .barre { fill: var(--accent); opacity: .9; }
svg.tw-g .barre.attenue { opacity: .35; }
svg.tw-g .point { fill: var(--ok); stroke: var(--bg); stroke-width: 1.5; }
.tw-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.tw-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.tw-leg i.bleu { background: var(--accent); } .tw-leg i.vert { background: var(--ok); border-radius: 50%; }
.tw-barres { list-style: none; margin: 0; padding: 0; }
.tw-barres li { padding: 7px 0; }
.tw-barres .haut { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tw-barres .haut span:last-child { color: var(--muted); white-space: nowrap; }
.tw-barres .piste { height: 6px; border-radius: 99px; background: var(--veil); margin-top: 5px; overflow: hidden; }
.tw-barres .piste i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.tw-barres .piste i.vert { background: var(--ok); }
.tw-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
.tw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tw-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tw-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tw-table th:first-child, .tw-table td:first-child { padding-left: 0; }
.tw-table th:last-child, .tw-table td:last-child { padding-right: 0; }
.tw-table .n { text-align: right; white-space: nowrap; }
.tw-table td.p { font-weight: 600; min-width: 118px; }
.tw-table tr:last-child td { border-bottom: 0; }
.tw-table tr.cliquable { cursor: pointer; }
.tw-table tr.cliquable:hover td { background: var(--veil); }
.tw-table tr.actif td { background: var(--accent-soft); }
.tw-table .fort { color: var(--bad); font-weight: 600; }
.tw-seg-court { align-self: flex-start; }
.tw-chemins { list-style: none; margin: 0; padding: 0; }
.tw-chemins li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tw-chemins li:last-child { border-bottom: 0; }
.tw-chemins .nb { flex: 0 0 28px; font-weight: 650; }
.tw-chemins .suite { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.tw-chemins .pas { background: var(--veil); border-radius: 8px; padding: 2px 8px; font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; }
.tw-chemins .fleche { color: var(--muted); font-size: 12px; }
.tw-details { border-top: 1px solid var(--line); padding: 6px 0; }
.tw-details summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 0; }
.tw-visite { padding: 12px 0; border-top: 1px solid var(--line); }
.tw-visite:first-child { border-top: 0; padding-top: 0; }
.tw-visite .entete { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-bottom: 6px; }
.tw-visite ol { margin: 0; padding: 0 0 0 18px; }
.tw-visite li { padding: 2px 0; font-size: 13.5px; }
.tw-visite .meta { color: var(--muted); font-size: 12px; }
.tw-visite .clics { margin: 2px 0 0; padding: 0; list-style: none; }
.tw-visite .clics li { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.tw-pied { text-align: center; }
.tw-deux { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 760px) {
  .tw-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .tw-cmd { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tw-cmd .seg { width: 280px; }
  .tw-nav { width: 340px; }
  .tw-rac { margin: 0; padding: 0; flex-basis: 100%; }
}
@media (min-width: 1200px) { .tw-tuiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tw-chiffre { font-size: 24px; } }

/* ───── Les colonnes : l'une sous l'autre sur téléphone, côte à côte sur ordinateur ───── */
.bureau, .bureau > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* ───── Ordinateur : les cases s'étalent ───── */
@media (min-width: 1024px) {
  .bureau { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .bureau > div { gap: 18px; }
  .case { min-height: 176px; }
  .h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .view { animation: none; } a.glass, button.glass, .btn { transition: none; } }
