/* E-com — DA « Givre » de la suite (reprise d'Atlas Admin, 28/10/2026) : verre dépoli, trois halos, tout en gris, un seul bleu,
   l'encre pour l'action. Aucune couleur en dur hors des jetons, aucun style en ligne (CSP). Le noir des icônes : l'encre #0B0C10. */
: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; }
.actions > :only-child { grid-column: 1 / -1; }
.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__lien { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.sugg__lien:hover { text-decoration: underline; }
.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; } }


/* ───── E-com (28/10/2026) : jaune, jauge, tableaux, preuves, texte à copier, dépôt des exports ───── */
.pill.jaune { background: var(--veil-2); color: var(--text-2); }
.jauge { height: 8px; border-radius: 99px; background: var(--veil); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: 99px; background: var(--ok); width: 0; }
.jauge i.orange { background: var(--warn); } .jauge i.rouge { background: var(--bad); }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
.tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tab 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; }
.tab td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tab th:first-child, .tab td:first-child { padding-left: 0; }
.tab th:last-child, .tab td:last-child { padding-right: 0; }
.tab .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tab td.t { font-weight: 600; min-width: 130px; overflow-wrap: anywhere; }
.tab tr:last-child td { border-bottom: 0; }
.tab .fort { color: var(--bad); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ecart { font-size: 11.5px; font-weight: 600; }
.ecart.hausse { color: var(--ok); } .ecart.baisse { color: var(--bad); }
.preuve { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.preuve div { border-radius: 12px; background: var(--veil); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.preuve strong { font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.preuve span { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.regle { font-size: 12.5px; color: var(--text-2); border-left: 2px solid var(--accent); padding-left: 10px; overflow-wrap: anywhere; }
.regle em { font-style: normal; color: var(--muted); }
.explique { font-size: 13.5px; line-height: 1.5; color: var(--text-2); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }
.explique b { color: var(--on-accent-soft); }
.avert { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; font-weight: 500; overflow-wrap: anywhere; }
.copie { display: flex; flex-direction: column; gap: 8px; }
.copie pre { margin: 0; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 13px/1.5 ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); border-radius: 12px; padding: 10px 12px; color: var(--text); }
.copie .btn { width: auto; align-self: flex-start; padding: 0 16px; }
.tache { border-radius: 18px; background: var(--veil); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tache + .tache { margin-top: 10px; }
.tache.faite { opacity: .6; }
.depot { display: flex; flex-direction: column; gap: 10px; }
.depot input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.depot label.btn { cursor: pointer; }
.depot input[type=file]:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.resultats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.resultats li { font-size: 13px; border-radius: 12px; padding: 8px 12px; background: var(--veil); overflow-wrap: anywhere; }
.resultats li.ok { background: var(--ok-soft); color: var(--ok); } .resultats li.non { background: var(--bad-soft); color: var(--bad); }
.jalons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jalons li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.jalons li:first-child { border-top: 0; }
.jalons li b { flex: 0 0 52px; }
.jalons li.passe { color: var(--muted); }
.cache-copie { position: fixed; opacity: 0; pointer-events: none; }

/* ───── 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; }
@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; }
  .h1 { font-size: 34px; }
}
/* ───── E-com : le sélecteur de boutique, les tableaux Ads (tri, seuils), la période, les réglages ───── */
.boutique { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; }
.boutique img { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.boutique label { flex: 1; min-width: 0; cursor: pointer; }
.boutique select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 650; color: var(--text);
  padding: 0; width: 100%; cursor: pointer; text-overflow: ellipsis; }
.boutique__ico { transform: rotate(90deg); color: var(--muted); pointer-events: none; }
.field select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 500; color: var(--text); outline: none; }
button.pill { border: 0; cursor: pointer; }
a.lien { color: var(--on-accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.btn--auto { width: auto; flex: none; }
.seg .nb.nb--n { background: var(--veil-2); color: var(--text-2); }
.periode-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.periode-ligne b { white-space: nowrap; font-weight: 600; }
.periode { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 10px; }
.periode .btn { grid-column: 1 / -1; }
.periode .lab { margin: 0; }
.reglages { gap: 16px; }
.reglage { display: flex; flex-direction: column; gap: 6px; }
.reglage .lab { margin: 0; }
@media (min-width: 700px) { .reglages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .reglages .btn { grid-column: 1 / -1; } }
.tab th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.tab th[aria-sort='ascending'] button, .tab th[aria-sort='descending'] button { color: var(--text); }
.tab--ads td.t { position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 150px; max-width: 220px; }
.tab--ads tfoot td { border-top: 1px solid var(--veil-2); border-bottom: 0; font-weight: 650; }
.tab td.a-rouge { color: var(--bad); font-weight: 650; background: var(--bad-soft); }
.tab td.a-orange { color: var(--warn); font-weight: 650; background: var(--warn-soft); }
.tab td.t.a-orange, .tab td.t.a-rouge { background: var(--bg); }
.chiffre span .ecart { white-space: nowrap; }
@media (max-width: 420px) { .tabbar a { width: 64px; } .tabbar { gap: 2px; padding: 5px; } }

@media (prefers-reduced-motion: reduce) { .view { animation: none; } a.glass, button.glass, .btn { transition: none; } }
