/* ecompulse — tuiles opaques, clair et sombre (monde visuel repris d'ecomspy, 2026-10-19 ;
   composants propres à ecompulse en fin de feuille, 2026-10-20).
   Inter variable (axe opsz) tient lieu de SF Pro ; licence OFL dans fonts/LICENSE-Inter.txt. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-opsz.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-ext-opsz.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Jetons ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --fond: #f5f5f7; --tuile: #ffffff; --puits: #f5f5f7; --puits-2: #e8e8ed;
  --texte: #1d1d1f; --texte-2: #6e6e73; --texte-3: #86868b;
  --filet: rgba(0, 0, 0, .09); --filet-fort: rgba(0, 0, 0, .16);
  --lien: #0066cc; --bleu: #0071e3; --bleu-survol: #0077ed; --bleu-doux: rgba(0, 113, 227, .09);
  --vert: #248a3d; --vert-fond: rgba(52, 199, 89, .15);
  --orange: #b25000; --orange-fond: rgba(255, 149, 0, .17);
  --rouge: #d70015; --rouge-fond: rgba(255, 59, 48, .12);
  --gris: #6e6e73; --gris-fond: rgba(120, 120, 128, .12);
  --selection: rgba(0, 113, 227, .2); --interrupteur: #34c759;
  --ombre: 0 1px 2px rgba(0, 0, 0, .03), 0 6px 22px rgba(0, 0, 0, .05);
  --ombre-haute: 0 2px 6px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .1);
  --r-tuile: 24px; --r-el: 14px; --r-petit: 10px; --r-pilule: 980px;
  --police: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --sortie: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fond: #000000; --tuile: #1c1c1e; --puits: #2c2c2e; --puits-2: #3a3a3c;
    --texte: #f5f5f7; --texte-2: #a1a1a6; --texte-3: #8d8d93;
    --filet: rgba(255, 255, 255, .1); --filet-fort: rgba(255, 255, 255, .18);
    --lien: #2997ff; --bleu: #0071e3; --bleu-survol: #0a84ff; --bleu-doux: rgba(41, 151, 255, .15);
    --vert: #30d158; --vert-fond: rgba(48, 209, 88, .16);
    --orange: #ff9f0a; --orange-fond: rgba(255, 159, 10, .16);
    --rouge: #ff6961; --rouge-fond: rgba(255, 69, 58, .16);
    --gris: #a1a1a6; --gris-fond: rgba(142, 142, 147, .2);
    --selection: rgba(41, 151, 255, .32); --interrupteur: #30d158;
    --ombre: none; --ombre-haute: 0 16px 40px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #000000; --tuile: #1c1c1e; --puits: #2c2c2e; --puits-2: #3a3a3c;
  --texte: #f5f5f7; --texte-2: #a1a1a6; --texte-3: #8d8d93;
  --filet: rgba(255, 255, 255, .1); --filet-fort: rgba(255, 255, 255, .18);
  --lien: #2997ff; --bleu: #0071e3; --bleu-survol: #0a84ff; --bleu-doux: rgba(41, 151, 255, .15);
  --vert: #30d158; --vert-fond: rgba(48, 209, 88, .16);
  --orange: #ff9f0a; --orange-fond: rgba(255, 159, 10, .16);
  --rouge: #ff6961; --rouge-fond: rgba(255, 69, 58, .16);
  --gris: #a1a1a6; --gris-fond: rgba(142, 142, 147, .2);
  --selection: rgba(41, 151, 255, .32); --interrupteur: #30d158;
  --ombre: none; --ombre-haute: 0 16px 40px rgba(0, 0, 0, .6);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 16px/1.5 var(--police); font-optical-sizing: auto; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: var(--selection); }
:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; border-radius: 6px; }
a { color: var(--lien); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 12px; }
code { font: 13px/1.4 var(--mono); background: var(--puits); padding: 2px 7px; border-radius: 6px; }
strong { font-weight: 600; }
.muted { color: var(--texte-2); }
.petit { font-size: 13px; line-height: 1.45; letter-spacing: -.003em; }
.vide { color: var(--texte-2); }
html { scrollbar-color: var(--filet-fort) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--filet-fort); border-radius: 99px; border: 3px solid var(--fond); }
::-webkit-scrollbar-track { background: transparent; }
.glyphe { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.14em; }

/* ── Barre du haut (opaque) ─────────────────────────────────────────────── */
.contenu { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.barre { position: sticky; top: 0; z-index: 30; background: var(--fond); border-bottom: 1px solid var(--filet); }
.barre .contenu { display: flex; align-items: center; gap: 28px; height: 52px; }
.marque { font-size: 19px; font-weight: 650; letter-spacing: -.025em; color: var(--texte); }
.marque:hover { text-decoration: none; }
.marque span { color: var(--texte-2); font-weight: 500; }
.barre nav { display: flex; gap: 2px; }
.barre nav a { color: var(--texte-2); font-size: 14px; padding: 6px 12px; border-radius: var(--r-pilule); transition: color .2s, background-color .2s; }
.barre nav a:hover { color: var(--texte); text-decoration: none; }
.barre nav a.actif { color: var(--texte); background: var(--gris-fond); }
.barre .droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.barre .droite form { margin: 0; }
.apparence { display: inline-flex; padding: 2px; background: var(--gris-fond); border-radius: var(--r-pilule); }
.apparence button {
  all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 26px; border-radius: var(--r-pilule);
  color: var(--texte-2); font-size: 14px; transition: background-color .2s, color .2s;
}
.apparence button:hover { color: var(--texte); }
.apparence button[aria-pressed="true"] { background: var(--tuile); color: var(--texte); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.apparence button:focus-visible { outline: 2px solid var(--lien); outline-offset: 1px; }
.lien-texte { all: unset; cursor: pointer; color: var(--texte-2); font-size: 14px; }
.lien-texte:hover { color: var(--texte); }
.lien-texte:focus-visible { outline: 2px solid var(--lien); border-radius: 6px; }
main.contenu { padding-top: 36px; padding-bottom: 96px; }
footer.pied { color: var(--texte-2); font-size: 12px; text-align: center; padding: 8px 0 40px; }

/* ── Boutons pilule ─────────────────────────────────────────────────────── */
button, .bouton {
  font: 500 15px/1 var(--police); letter-spacing: -.01em; padding: 10px 18px; min-height: 38px; border-radius: var(--r-pilule);
  border: 0; background: var(--bleu); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background-color .2s, transform .2s var(--sortie); white-space: nowrap;
}
button:hover, .bouton:hover { background: var(--bleu-survol); text-decoration: none; }
button:active, .bouton:active { transform: scale(.97); }
button.secondaire, .bouton.secondaire { background: var(--gris-fond); color: var(--texte); }
button.secondaire:hover, .bouton.secondaire:hover { background: var(--puits-2); }
button.petit-bouton { font-size: 13px; padding: 6px 12px; min-height: 28px; }
button.danger { background: var(--rouge); font-size: 13px; padding: 7px 14px; min-height: 30px; }
button:disabled { opacity: .5; cursor: wait; }

/* ── Formulaires ────────────────────────────────────────────────────────── */
.formulaire { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=url], input[type=password], input[type=number], select {
  font: 400 16px/1.3 var(--police); padding: 11px 15px; border-radius: 12px; border: 1px solid var(--filet-fort);
  background: var(--tuile); color: var(--texte); min-width: 0; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--lien); box-shadow: 0 0 0 4px var(--bleu-doux); }
input::placeholder { color: var(--texte-2); }
input[type=url] { flex: 1 1 360px; }
input[type=checkbox] { accent-color: var(--bleu); width: 17px; height: 17px; }
label.option { display: inline-flex; gap: 7px; align-items: center; color: var(--texte-2); font-size: 15px; }
.actions-ligne { white-space: nowrap; }
details.supprimer { display: inline-block; margin-left: 12px; vertical-align: top; }
details.supprimer summary { cursor: pointer; color: var(--texte-2); font-size: 13px; list-style: none; }
details.supprimer summary::-webkit-details-marker { display: none; }
details.supprimer summary:hover, details.supprimer[open] summary { color: var(--rouge); }
details.supprimer[open] summary { margin-bottom: 6px; }

/* ── Tuiles et grilles ──────────────────────────────────────────────────── */
.carte, .tuile { background: var(--tuile); border-radius: var(--r-tuile); padding: 28px 32px; box-shadow: var(--ombre); min-width: 0; }
.carte + .carte { margin-top: 20px; }
.carte h2 { font-size: 24px; letter-spacing: -.02em; }
.carte h3, .tuile h3 { font-size: 19px; letter-spacing: -.018em; margin-bottom: 14px; }
.tuile h3:has(.st) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tuile > .sous { color: var(--texte-2); font-size: 14px; margin: -8px 0 18px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.bento > * { grid-column: span 12; }
.bento > .l4 { grid-column: span 4; } .bento > .l5 { grid-column: span 5; } .bento > .l6 { grid-column: span 6; }
.bento > .l7 { grid-column: span 7; } .bento > .l8 { grid-column: span 8; }
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grille-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

/* ── Listes groupées (façon Réglages) ───────────────────────────────────── */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--filet); min-width: 0; }
.liste > li:first-child { border-top: 0; padding-top: 0; }
.liste > li:last-child { padding-bottom: 0; }
.liste .cle { color: var(--texte-2); flex: 0 1 auto; min-width: 0; }
.liste .cle .ref { vertical-align: 1px; }
.liste .val { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.liste .val .petit { font-weight: 400; display: block; color: var(--texte-2); }
.liste .val:has(> .st), .liste .val:has(> .etat) { flex: none; }
.liste.empile > li { display: block; }
.liste.empile .cle { display: block; font-size: 13px; margin-bottom: 2px; }
.liste.empile .val { text-align: left; font-weight: 400; }
.puits { background: var(--puits); border-radius: var(--r-el); padding: 18px 20px; }

/* ── Puces, références, états ───────────────────────────────────────────── */
.badge, .puce {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; line-height: 1;
  padding: 6px 11px; border-radius: var(--r-pilule); background: var(--gris-fond); color: var(--texte); margin: 2px 4px 2px 0;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
a.badge:hover, a.puce:hover { background: var(--puits-2); text-decoration: none; }
.badge.accent, .puce.bleue { background: var(--bleu-doux); color: var(--lien); }
.ref {
  display: inline-block; font: 500 11px/1 var(--police); font-variant-numeric: tabular-nums; letter-spacing: 0;
  padding: 2px 1px; margin-left: 4px; color: var(--texte-2); vertical-align: 3px; text-decoration: none;
}
a.ref:hover { color: var(--lien); text-decoration: underline; }
.st, .etat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.st { padding: 4px 10px; border-radius: var(--r-pilule); }
.st.ok { color: var(--vert); background: var(--vert-fond); } .st.partiel, .st.encours { color: var(--lien); background: var(--bleu-doux); }
.st.warn { color: var(--orange); background: var(--orange-fond); } .st.ko { color: var(--rouge); background: var(--rouge-fond); }
.st.off { color: var(--gris); background: var(--gris-fond); }
.etat.ok { color: var(--vert); } .etat.partiel, .etat.encours { color: var(--lien); } .etat.warn { color: var(--orange); }
.etat.ko { color: var(--rouge); } .etat.off { color: var(--gris); }
.etat .glyphe { font-size: 15px; }
.alerte { padding: 14px 18px; border-radius: var(--r-el); background: var(--bleu-doux); color: var(--texte); }
.alerte.warn { background: var(--orange-fond); }
.alerte.ko { background: var(--rouge-fond); }

/* ── Tableaux ───────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 12px; border-top: 1px solid var(--filet); vertical-align: top; }
tr:first-child > th, tr:first-child > td { border-top: 0; }
th { color: var(--texte-2); font-weight: 500; font-size: 13px; }
th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 0; }
.tableau { overflow-x: auto; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* ── Manques (dire ce qui manque) ───────────────────────────────────────── */
.indispo, .manque {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-el);
  background: var(--tuile); color: var(--texte-2); font-size: 15px; box-shadow: var(--ombre); margin-bottom: 20px;
}
.tuile .manque, .tuile .indispo { background: var(--puits); box-shadow: none; margin-bottom: 14px; }
.note { color: var(--texte-2); font-size: 13px; line-height: 1.45; margin: 12px 0 0; }

/* ── Rapport : en-tête ──────────────────────────────────────────────────── */
.tete { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin: 12px 0 28px; }
.tete > div:first-child { flex: 1 1 380px; min-width: 0; }
.tete h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.035em; font-weight: 650; }
.tete .contexte { color: var(--texte-2); font-size: 15px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 2px; }
.tete .contexte .sep { margin: 0 8px; color: var(--texte-3); }
.tete .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: none; }
.tete .actions form { margin: 0; }

/* ── Contrôle segmenté collant ──────────────────────────────────────────── */
.segments {
  position: sticky; top: 52px; z-index: 20; margin: 0 -32px 8px; padding: 10px 32px; background: var(--fond);
  display: flex; justify-content: center;
}
.segments .piste {
  position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pilule); background: var(--gris-fond);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segments .piste::-webkit-scrollbar { display: none; }
.segments a {
  position: relative; z-index: 1; color: var(--texte-2); font-size: 14px; font-weight: 500; padding: 7px 16px;
  border-radius: var(--r-pilule); white-space: nowrap; transition: color .25s;
}
.segments a:hover { color: var(--texte); text-decoration: none; }
.segments a[aria-current="true"] { color: var(--texte); }
.segments .curseur {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: var(--r-pilule);
  background: var(--tuile); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04);
  transition: transform .45s var(--sortie), opacity .2s; opacity: 0;
}
.segments.pret .curseur { opacity: 1; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.bloc { margin-top: 88px; scroll-margin-top: 128px; }
section.bloc:first-of-type { margin-top: 16px; }
section.bloc > h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
section.bloc > .chapeau { color: var(--texte-2); font-size: 19px; line-height: 1.42; letter-spacing: -.015em; margin: 10px 0 0; max-width: 62ch; }
section.bloc > .chapeau strong { color: var(--texte); font-weight: 600; }

/* ── Verdict ────────────────────────────────────────────────────────────── */
.verdict { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 40px 44px; }
.verdict h2 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verdict .resume { font-size: 22px; line-height: 1.48; letter-spacing: -.018em; font-weight: 450; margin: 0 0 24px; }
.verdict .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; border-top: 1px solid var(--filet); }
.verdict .duo h3 { font-size: 15px; margin-bottom: 6px; }
.verdict .duo p { color: var(--texte-2); font-size: 15px; margin: 0; }
.verdict .essentiel { border-left: 1px solid var(--filet); padding-left: 40px; min-width: 0; }
.verdict .essentiel h3 { font-size: 15px; color: var(--texte-2); font-weight: 500; margin-bottom: 12px; }
.vitrine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.vitrine img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-el); background: var(--puits); display: block; transition: transform .5s var(--sortie); }
.vitrine:hover img { transform: scale(1.02); }
.verdict .essentiel .val { font-size: 15px; }
.confiance { font-size: 14px; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding: 0 0 0 20px; margin: 0 0 14px; line-height: 1.5; }
.points li:last-child { margin-bottom: 0; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--texte-3); }
.tuile.mise-en-avant { background: var(--bleu-doux); box-shadow: none; }
.tuile.mise-en-avant h3 { color: var(--lien); }
.tuile.mise-en-avant .points li::before { background: var(--lien); }
.attente { display: flex; gap: 10px; align-items: center; color: var(--texte-2); font-size: 14px; margin: 18px 0 0; }

/* ── Chiffres (grille à filets, pas de cartes) ──────────────────────────── */
/* Filets à gauche de chaque chiffre ; ceux de la première colonne sont rognés par le clip-path. */
.chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); row-gap: 20px; margin: 0 0 0 -25px; clip-path: inset(0 0 0 25px); }
.chiffres > div { padding: 2px 20px 2px 24px; border-left: 1px solid var(--filet); min-width: 0; }
.chiffres dt { color: var(--texte-2); font-size: 13px; line-height: 1.4; min-height: 2.8em; margin-bottom: 4px; }
.chiffres dd { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chiffres dd.long { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.chiffres dd .petit { display: block; font-size: 13px; font-weight: 400; letter-spacing: -.003em; color: var(--texte-2); margin-top: 4px; }

/* ── Rayon de produits ──────────────────────────────────────────────────── */
.rayon { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.produit { display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--texte); }
.produit .visuel { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-el); background: var(--puits); overflow: hidden; display: grid; place-items: center; }
.produit .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sortie); }
.produit:hover .visuel img { transform: scale(1.035); }
.produit .rang {
  position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: var(--r-pilule);
  background: var(--tuile); color: var(--texte); font-variant-numeric: tabular-nums;
}
.produit .titre { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produit .titre a { color: inherit; }
.produit .prix { font-size: 15px; font-variant-numeric: tabular-nums; margin-top: -6px; }
.produit .prix s { color: var(--texte-2); margin-left: 6px; font-size: 13px; }
.produit .date { color: var(--texte-2); font-size: 13px; margin-top: -8px; }

/* ── Mur de créas ───────────────────────────────────────────────────────── */
.creas { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); margin-top: 24px; }
.crea { display: flex; flex-direction: column; min-width: 0; border-radius: 22px; background: var(--tuile); box-shadow: var(--ombre); overflow: hidden; }
.crea .visuel { position: relative; aspect-ratio: 4 / 5; background: var(--puits); overflow: hidden; }
.crea .visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Aperçus d'annonces Google : rendus à leur format, lisibles. */
.apercus { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; }
.apercu { margin: 0; min-width: 0; }
.apercu img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--filet); }
.apercu figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; font-size: 13px; color: var(--texte-2); }
details.depli-pubs { margin-top: 28px; }
details.depli-pubs > .creas { margin-top: 4px; }
.crea .fantome {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 52px 18px 18px;
  color: var(--texte-2); background: var(--puits-2);
}
.crea .fantome .accroche-grande { color: var(--texte); font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.crea .fantome .raison { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.crea .incrust { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.crea .incrust span {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: var(--r-pilule);
  background: var(--tuile); color: var(--texte); box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.crea .infos { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.crea .duree { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.crea .duree .point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }
.crea.arretee .duree { color: var(--texte-2); }
.crea.arretee .duree .point { background: var(--texte-3); }
.crea .accroche { font-size: 14px; line-height: 1.4; color: var(--texte); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.crea .liens { font-size: 13px; color: var(--texte-2); display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.crea .liens a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ── Graphique de rythme ────────────────────────────────────────────────── */
.barres { display: flex; align-items: flex-end; gap: 5px; height: 132px; padding-top: 8px; }
.barres .b { flex: 1; background: var(--bleu); border-radius: 5px 5px 2px 2px; min-height: 3px; opacity: .85; transition: opacity .2s; }
.barres .b:hover { opacity: 1; }
.barres-legende { display: flex; gap: 5px; font-size: 11px; color: var(--texte-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.barres-legende span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }

/* ── Fabricant ──────────────────────────────────────────────────────────── */
.fabricant .nom { font-size: 34px; line-height: 1.12; letter-spacing: -.03em; font-weight: 650; margin: 0 0 10px; }
.fabricant .ligne-fab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--texte-2); }
.fabricant .explication { font-size: 17px; line-height: 1.5; max-width: 75ch; }
.paires { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--filet); }
.paire { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.paire .mini { width: 72px; height: 72px; border-radius: 12px; background: var(--puits); overflow: hidden; }
.paire .mini img { width: 100%; height: 100%; object-fit: cover; }
.paire .titre-paire { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.paire .titre-paire .fleche { color: var(--texte-2); font-weight: 400; }
.paire p { color: var(--texte-2); font-size: 14px; margin: 0; }
details.depli { margin-top: 20px; border-top: 1px solid var(--filet); padding-top: 16px; }
details.depli > summary { cursor: pointer; color: var(--lien); font-size: 15px; font-weight: 500; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.depli > summary::-webkit-details-marker { display: none; }
details.depli > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--sortie); }
details.depli[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.depli[open] > summary { margin-bottom: 14px; }
.indices p { font-size: 14px; color: var(--texte-2); margin: 0 0 8px; overflow-wrap: anywhere; }
.indices strong { color: var(--texte); }

/* ── Fournisseurs par produit ───────────────────────────────────────────── */
.source { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; }
.source .mini { width: 88px; height: 88px; border-radius: 14px; background: var(--puits); overflow: hidden; }
.source .mini img { width: 100%; height: 100%; object-fit: cover; }
.source h3 { margin-bottom: 4px; }
.source .meta-source { color: var(--texte-2); font-size: 14px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.source .meta-source > * + *::before { content: "·"; margin: 0 8px; }
.marge { margin-top: 14px; padding: 14px 18px; border-radius: var(--r-el); background: var(--puits); font-size: 15px; }
.marge strong { font-size: 17px; }

/* ── Captures et charte ─────────────────────────────────────────────────── */
.captures { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.captures figure { margin: 0; grid-column: span 4; }
.captures figure.large { grid-column: span 8; }
.captures img { width: 100%; display: block; border-radius: var(--r-el); background: var(--puits); box-shadow: 0 0 0 1px var(--filet); aspect-ratio: 16 / 11; object-fit: cover; object-position: top; }
.captures figure.etroite img { aspect-ratio: 7 / 10; }
.captures figcaption { padding: 10px 2px 0; font-size: 13px; color: var(--texte-2); }
.palette { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.couleur { min-width: 0; }
.couleur .pastille { aspect-ratio: 1 / 1; border-radius: var(--r-el); box-shadow: inset 0 0 0 1px var(--filet); }
.couleur div:last-child { padding: 8px 2px 0; font-size: 13px; line-height: 1.35; }
.couleur strong { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* ── Divers ─────────────────────────────────────────────────────────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.titre-ligne { color: var(--texte); font-weight: 500; }
.petit.bloc { display: block; margin-top: 2px; }
.espace-haut { margin-top: 20px; }
.espace-haut-petit { margin: 16px 0 0; }
.raison-fab { margin: -6px 0 16px; }
.corps-source { min-width: 0; }
details.depli-tuile { padding-top: 22px; padding-bottom: 22px; }
details.depli-tuile > summary { cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.depli-tuile > summary::-webkit-details-marker { display: none; }
details.depli-tuile > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.8px solid var(--texte-2); border-bottom: 1.8px solid var(--texte-2); transform: rotate(45deg); transition: transform .3s var(--sortie); }
details.depli-tuile[open] > summary::after { transform: rotate(-135deg); }
details.depli-tuile[open] > summary { margin-bottom: 18px; }
.releve { padding: 16px 0; border-top: 1px solid var(--filet); }
.releve h4 { font-size: 15px; margin-bottom: 10px; }
.fil { margin: 0; padding: 0; }
.fil li { list-style: none; padding: 12px 0; border-top: 1px solid var(--filet); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.fil li:first-child { border-top: 0; }
/* Connexion : le nom en grand, un seul champ opaque, un bouton rond à flèche. */
.connexion { min-height: calc(100vh - 52px - 180px); display: grid; place-items: center; padding: 28px 0 40px; }
.porte { width: 100%; max-width: 1240px; text-align: center; }
.porte > * { max-width: 440px; margin-left: auto; margin-right: auto; }
.marque-grande { font-size: 64px; line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.marque-grande span { color: var(--texte-2); font-weight: 500; }
.porte .chapeau { color: var(--texte-2); font-size: 19px; line-height: 1.42; letter-spacing: -.015em; margin: 16px auto 36px; max-width: 34ch; }
.champ-connexion {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 16px; text-align: left;
  background: var(--tuile); border: 1px solid var(--filet-fort); box-shadow: var(--ombre); transition: border-color .2s, box-shadow .2s;
}
.champ-connexion:focus-within { border-color: var(--lien); box-shadow: 0 0 0 4px var(--bleu-doux); }
.champ-connexion.en-erreur { border-color: var(--rouge); }
.champ-connexion input[type=password] { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 19px; border-radius: 0; }
.champ-connexion input[type=password]:focus { box-shadow: none; outline: none; }
button.rond { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; justify-content: center; font-size: 20px; flex: none; }
.erreur-connexion { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--rouge); font-size: 15px; margin: 14px 0 0; }
.porte .note { margin-top: 22px; }
.porte .manque { text-align: left; }
.faits-bruts td, .faits-bruts th { font-size: 13px; }
.faits-bruts tr:target td { background: var(--bleu-doux); }
.autres { margin-top: 20px; }
.autres .valeur-brute { font-size: 14px; overflow-x: auto; }

/* ── Accueil et suivi ───────────────────────────────────────────────────── */
.lancer { margin: 20px 0 0; }
.lancer h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.035em; font-weight: 650; }
.lancer .chapeau { color: var(--texte-2); font-size: 19px; line-height: 1.42; letter-spacing: -.015em; margin: 12px 0 28px; max-width: 62ch; }
.lancer .chapeau strong { color: var(--texte); font-weight: 600; }
.lancer .alerte { margin: 0 0 18px; }
.champ-analyse {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 24px; border-radius: 20px;
  background: var(--tuile); box-shadow: var(--ombre); border: 1px solid var(--filet); transition: border-color .2s, box-shadow .2s;
}
.champ-analyse:focus-within { border-color: var(--lien); box-shadow: 0 0 0 4px var(--bleu-doux); }
.champ-analyse input[type=url] { flex: 1 1 auto; border: 0; background: transparent; padding: 12px 0; font-size: 20px; letter-spacing: -.015em; border-radius: 0; }
.champ-analyse input[type=url]:focus { box-shadow: none; outline: none; }
.champ-analyse button { min-height: 50px; padding: 0 28px; font-size: 17px; }
.options { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 18px 0 0; }
.interrupteur { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--texte); }
.interrupteur small { display: block; color: var(--texte-2); font-size: 13px; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.piste-int { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--puits-2); transition: background-color .25s; }
.piste-int::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 0 1px rgba(0, 0, 0, .2); transition: transform .3s var(--sortie);
}
.interrupteur input:checked + .piste-int { background: var(--interrupteur); }
.interrupteur input:checked + .piste-int::after { transform: translateX(18px); }
.interrupteur input:focus-visible + .piste-int { outline: 3px solid var(--lien); outline-offset: 2px; }
.lancer .note { margin-top: 16px; }
.lancer + section.bloc { margin-top: 48px; }
.tuile h3.espace-haut { margin-top: 32px; }

.etagere { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); margin-top: 24px; }
.vitrine-boutique {
  display: flex; flex-direction: column; min-width: 0; background: var(--tuile); color: var(--texte); border-radius: var(--r-tuile);
  overflow: hidden; box-shadow: var(--ombre); transition: transform .45s var(--sortie), box-shadow .45s var(--sortie);
}
a.vitrine-boutique:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.vitrine-boutique .ecran { display: block; aspect-ratio: 16 / 10; background: var(--puits); overflow: hidden; border-bottom: 1px solid var(--filet); }
.vitrine-boutique .ecran img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ecran-vide { display: flex; height: 100%; align-items: center; justify-content: center; gap: 8px; color: var(--texte-2); font-size: 14px; }
.infos-boutique { display: flex; flex-direction: column; gap: 3px; padding: 18px 22px 22px; min-width: 0; }
.infos-boutique .nom { font-size: 19px; font-weight: 600; letter-spacing: -.018em; color: var(--texte); overflow-wrap: anywhere; }
.infos-boutique .domaine { color: var(--texte-2); font-size: 14px; overflow-wrap: anywhere; }
.infos-boutique .ligne-etat { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.infos-boutique .ligne-etat .date { color: var(--texte-2); font-size: 13px; }
.infos-boutique form { margin: 14px 0 0; }
.liste.compacte { margin-top: 12px; font-size: 14px; }
.liste.compacte > li { padding: 8px 0; }

.historique > li { align-items: center; }
.historique .val.actions-ligne { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; font-weight: 400; }
.historique .cout { color: var(--texte-2); font-variant-numeric: tabular-nums; font-size: 14px; }
.historique details.supprimer { margin-left: 0; }
.erreur-ligne { color: var(--rouge); }

h3.jour { font-size: 15px; font-weight: 600; color: var(--texte-2); letter-spacing: -.005em; margin: 30px 0 4px; }
h3.jour:first-child { margin-top: 0; }
.fil-evt { list-style: none; margin: 0; padding: 0; }
.fil-evt > li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--filet); }
.fil-evt > li:first-child { border-top: 0; }
.mini-evt { width: 48px; height: 48px; border-radius: 11px; background: var(--puits); overflow: hidden; }
.mini-evt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.corps-evt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.titre-evt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 500; }
.titre-evt .st { font-size: 12px; padding: 3px 9px; }
.meta-evt { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--texte-2); }
.evt-detail { font-variant-numeric: tabular-nums; }
.evt-detail .hausse, .evt-detail .baisse { font-weight: 600; color: var(--texte); }
.heure-evt { font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; }

/* ── Réglages ───────────────────────────────────────────────────────────── */
.bento.reglages { margin-top: 8px; align-items: start; }
.titre-groupe { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 36px 0 12px 4px; }
.colonne-reglages > .titre-groupe:first-of-type, .colonne-laterale > .titre-groupe:first-of-type { margin-top: 20px; }
.tuile.groupe { padding: 10px 28px; }
.tuile.groupe .note, .tuile.groupe .vide { margin: 0 0 14px; }
.reglages-liste > li, .colonne-laterale .liste > li { align-items: center; padding: 14px 0; }
.reglages-liste > li:first-child, .colonne-laterale .liste > li:first-child { padding-top: 14px; }
.reglages-liste > li:last-child, .colonne-laterale .liste > li:last-child { padding-bottom: 14px; }
.reglages-liste .cle { flex: 1 1 auto; }
.reglages-liste .val { flex: none; }
.reglages-liste .petit.bloc { max-width: 52ch; }
.champ-nombre { display: inline-flex; align-items: center; gap: 8px; }
.champ-nombre input[type=number] { width: 112px; padding: 8px 12px; text-align: right; font-variant-numeric: tabular-nums; border-radius: 10px; }
.champ-nombre .unite { color: var(--texte-2); font-size: 14px; min-width: 4.5em; font-weight: 400; text-align: left; }
.segmente { display: inline-flex; padding: 2px; border-radius: var(--r-pilule); background: var(--gris-fond); }
.segmente label { cursor: pointer; }
.segmente input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmente span { display: block; padding: 6px 16px; border-radius: var(--r-pilule); font-size: 14px; font-weight: 500; color: var(--texte-2); transition: background-color .2s, color .2s; }
.segmente input:checked + span { background: var(--tuile); color: var(--texte); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmente input:focus-visible + span { outline: 3px solid var(--lien); outline-offset: 1px; }
.barre-enregistrer {
  position: sticky; bottom: 16px; z-index: 5; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 24px; border-radius: 20px; background: var(--tuile); border: 1px solid var(--filet); box-shadow: var(--ombre-haute);
}
.solde { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-top: 1px solid var(--filet); }
.solde strong { font-size: 26px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.solde.bas strong { color: var(--orange); }


/* ══ ecompulse ════════════════════════════════════════════════════════════
   Composants propres au relay 3 : entrées de l'accueil, attente, confirmation de la fiche,
   barres de frictions avec intervalle de confiance, rapport, radar et mini-courbes, sources,
   jeu d'or. Mêmes jetons, mêmes règles : surfaces opaques, une seule couleur d'action. */
:root { --g1: #636366; --g2: #8e8e93; --g3: #aeaeb2; --g4: #c7c7cc; --g5: #d8d8dc; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --g1: #c7c7cc; --g2: #98989d; --g3: #6c6c70; --g4: #545458; --g5: #48484a; }
}
:root[data-theme="dark"] { --g1: #c7c7cc; --g2: #98989d; --g3: #6c6c70; --g4: #545458; --g5: #48484a; }

/* ── Marque, surtitres, messages ────────────────────────────────────────── */
.marque { display: inline-flex; align-items: center; gap: 7px; }
.marque .pouls { color: var(--lien); font-size: 20px; }
.marque .nom-marque { color: var(--texte); font-weight: 650; }
.marque .nom-marque span { color: var(--texte-2); font-weight: 500; }
.surtitre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; color: var(--texte-2); font-size: 14px; }
.surtitre a { color: inherit; text-decoration: underline; text-decoration-color: var(--filet-fort); }
.alerte { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; }
.alerte > .glyphe { flex: none; margin-top: .22em; }
.alerte.ok { background: var(--vert-fond); } .alerte.ok > .glyphe { color: var(--vert); }
.alerte.warn > .glyphe { color: var(--orange); } .alerte.ko > .glyphe { color: var(--rouge); }
.st.grand { font-size: 15px; padding: 6px 14px; gap: 7px; }
.st.mini { font-size: 12px; padding: 2px 8px; gap: 4px; font-weight: 500; }
.code-pays {
  display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; margin-right: 6px; border-radius: 6px;
  background: var(--puits-2); color: var(--texte); font: 600 11px/1 var(--police); font-variant-numeric: tabular-nums;
}
.pays { display: inline-flex; align-items: center; margin-right: 10px; font-size: 15px; white-space: nowrap; }
.pays-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 2px; margin: 14px 0 0; }
.fleche-pays { color: var(--texte-3); margin: 0 12px 0 0; display: inline-flex; }
.numero { display: inline-block; min-width: 20px; margin-right: 8px; font: 600 11px/1 var(--police); font-variant-numeric: tabular-nums; color: var(--texte-2); }
.sans-visuel { display: grid; place-items: center; width: 100%; height: 100%; color: var(--texte-3); font-size: 30px; background: var(--puits); }
.tuile h4 { font-size: 13px; font-weight: 600; color: var(--texte-2); letter-spacing: -.003em; margin: 22px 0 10px; }
.refs-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.refs-ligne:empty { display: none; }
.cible { animation: e-cible 1.8s var(--sortie); }
@keyframes e-cible { from { background-color: var(--bleu-doux); box-shadow: 0 0 0 6px var(--bleu-doux); } }
.avertissement { display: flex; gap: 8px; align-items: flex-start; }
.avertissement .glyphe { color: var(--orange); margin-top: .15em; flex: none; }
.actions-bas { margin-top: 18px; display: flex; justify-content: flex-end; }
section.bloc > h2 ~ .tuile, section.bloc > h2 ~ .manque { margin-top: 24px; }
textarea {
  font: 400 16px/1.45 var(--police); letter-spacing: -.011em; padding: 11px 15px; border-radius: 12px; border: 1px solid var(--filet-fort);
  background: var(--tuile); color: var(--texte); width: 100%; resize: vertical; min-width: 0; transition: border-color .2s, box-shadow .2s;
}
textarea:focus { outline: none; border-color: var(--lien); box-shadow: 0 0 0 4px var(--bleu-doux); }
textarea::placeholder { color: var(--texte-2); }

/* ── Le pouls (connexion, attente) ──────────────────────────────────────── */
.trace-pouls { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 22px; overflow: visible; }
.trace-pouls path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trace-pouls .pouls-fond { stroke: var(--filet); }
.trace-pouls .pouls-ligne { stroke: var(--lien); stroke-dasharray: 440; stroke-dashoffset: 440; animation: e-trace 2.2s var(--sortie) .2s forwards; }
.trace-pouls.anime .pouls-ligne { stroke-dasharray: 90 520; stroke-dashoffset: 90; animation: e-balaye 2.4s linear infinite; }
@keyframes e-trace { to { stroke-dashoffset: 0; } }
@keyframes e-balaye { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -520; } }
.page-connexion .porte .chapeau { max-width: 38ch; }
.export .segments { top: 0; }
.export main.contenu { padding-top: 48px; }

/* ── Accueil : deux entrées ─────────────────────────────────────────────── */
.entrees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.entree { display: flex; flex-direction: column; gap: 20px; padding: 32px; margin: 0; }
.tete-entree { display: flex; gap: 16px; align-items: flex-start; }
.icone-entree { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bleu-doux); color: var(--lien); font-size: 24px; }
.entree h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 650; }
.sous-entree { color: var(--texte-2); font-size: 15px; margin: 6px 0 0; }
.entree .champ-analyse, .champ-radar { background: var(--puits); box-shadow: none; border: 1px solid transparent; }
.entree .champ-analyse:focus-within, .champ-radar:focus-within { border-color: var(--lien); box-shadow: 0 0 0 4px var(--bleu-doux); background: var(--tuile); }
.champ-analyse input[type=text] { flex: 1 1 auto; border: 0; background: transparent; padding: 12px 0; font-size: 19px; letter-spacing: -.015em; border-radius: 0; min-width: 0; }
.champ-analyse input[type=text]:focus { box-shadow: none; outline: none; }
.champ-radar { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 20px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.champ-radar textarea { flex: 1 1 auto; border: 0; background: transparent; padding: 12px 0; font-size: 19px; letter-spacing: -.015em; resize: none; border-radius: 0; }
.champ-radar textarea:focus { box-shadow: none; }
.champ-radar button { min-height: 50px; padding: 0 24px; font-size: 17px; }
.etapes-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--texte-2); font-size: 13px; }
.etapes-mini li { display: inline-flex; align-items: center; gap: 7px; }
.etapes-mini span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gris-fond); color: var(--texte); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.entree .note { margin-top: auto; }
.vitrine-boutique .ecran-produit { aspect-ratio: 4 / 3; }
.vitrine-boutique .ecran-radar { position: relative; display: flex; align-items: flex-end; padding: 22px; overflow: hidden; }
.ecran-radar .anneaux {
  position: absolute; width: 280px; height: 280px; right: -90px; top: -100px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 27px, var(--filet-fort) 27px 28px);
}
.ecran-radar .anneaux::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--lien); box-shadow: 0 0 0 7px var(--bleu-doux); }
.ecran-radar .requete { position: relative; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--texte); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.infos-boutique .erreur-ligne { margin-top: 6px; }

/* ── Attente et avancement ──────────────────────────────────────────────── */
.attente-page { display: grid; place-items: center; min-height: calc(100vh - 52px - 230px); }
.carte-attente { max-width: 640px; width: 100%; text-align: center; padding: 44px 40px 36px; }
.carte-attente .surtitre { justify-content: center; }
.carte-attente h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.03em; font-weight: 650; }
.entree-citee { font-size: 19px; color: var(--texte-2); margin: 12px auto 24px; max-width: 46ch; overflow-wrap: anywhere; }
.etapes-attente { text-align: left; max-width: 500px; margin: 0 auto; padding: 18px 22px 18px 42px; background: var(--puits); border-radius: var(--r-el); color: var(--texte-2); font-size: 15px; }
.etapes-attente li + li { margin-top: 8px; }
.actions-attente { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.tete-produit { display: flex; gap: 24px; align-items: center; min-width: 0; }
.tete-produit > div:last-child { min-width: 0; }
.photo-tete { flex: none; width: 112px; height: 112px; border-radius: 22px; overflow: hidden; background: var(--puits); box-shadow: 0 0 0 1px var(--filet); }
.photo-tete img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tete .surtitre { margin-bottom: 8px; }
.tete h1 { overflow-wrap: anywhere; }
.tete h1.titre-radar { font-size: 44px; line-height: 1.08; }
.jauge { position: relative; display: block; height: 8px; border-radius: 99px; background: var(--puits); }
.jauge > span:first-child { display: block; height: 100%; max-width: 100%; border-radius: 99px; background: var(--bleu); transition: width .6s var(--sortie); }
.jauge .seuil { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--texte-2); border-radius: 2px; }
.jauge.budget { margin: 10px 0 6px; }
.jauge.budget > span.warn { background: var(--orange); } .jauge.budget > span.ko { background: var(--rouge); }
.tuile > .jauge { margin: 0 0 14px; }
.liste.avancement .val { display: flex; align-items: center; gap: 12px; flex: none; }
.compte { color: var(--texte-2); font-size: 13px; font-weight: 400; }
.etapes { list-style: none; margin: 0; padding: 0; }
.etapes li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 24px; }
.etapes li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; border-left: 2px solid var(--filet); }
.etapes li:first-child::before { top: 50%; } .etapes li:last-child::before { bottom: 50%; } .etapes li:only-child::before { display: none; }
.etapes .point { position: absolute; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--texte-3); box-shadow: 0 0 0 3px var(--tuile); }
.etapes .ok .point { background: var(--vert); } .etapes .encours .point, .etapes .partiel .point { background: var(--lien); }
.etapes .ko .point { background: var(--rouge); } .etapes .warn .point { background: var(--orange); }
.etapes .nom-etape { flex: 1; }

/* ── Confirmation de la fiche ───────────────────────────────────────────── */
.formulaire-fiche > .bento { margin-top: 8px; }
.carte-fiche { display: flex; flex-direction: column; gap: 18px; }
.photo-fiche { aspect-ratio: 1 / 1; border-radius: var(--r-el); background: var(--puits); overflow: hidden; }
.photo-fiche img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-fiche .val { overflow-wrap: anywhere; }
.champs { display: grid; gap: 18px; }
.champs.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.champ { min-width: 0; }
.champ > label { display: flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--texte-2); margin-bottom: 6px; }
.champ > input[type=text], .champ > input[type=number] { width: 100%; }
.champ small { display: block; margin-top: 6px; font-size: 12px; color: var(--texte-2); line-height: 1.4; }
.champ-interrupteur { display: flex; align-items: center; padding-top: 18px; }
.champ-nombre input[type=text] { width: 112px; padding: 8px 12px; text-align: right; font-variant-numeric: tabular-nums; border-radius: 10px; }
.champ-nombre.large input[type=text] { width: 140px; padding: 11px 15px; border-radius: 12px; }
.langues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.sous-champ { color: var(--texte-2); font-size: 14px; margin: -8px 0 16px; }
.choix-sources { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.choix { position: relative; display: inline-flex; cursor: pointer; min-width: 0; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix > span {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 14px; background: var(--puits); color: var(--texte);
  box-shadow: inset 0 0 0 1.5px transparent; transition: background-color .2s, box-shadow .2s; min-width: 0;
}
.choix strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.choix small { font-size: 12px; color: var(--texte-2); font-variant-numeric: tabular-nums; line-height: 1.35; }
.choix:hover input:not(:checked):not(:disabled) + span { background: var(--puits-2); }
.choix input:checked + span { background: var(--bleu-doux); box-shadow: inset 0 0 0 1.5px var(--lien); }
.choix input:checked + span strong { color: var(--lien); }
.choix input:focus-visible + span { outline: 3px solid var(--lien); outline-offset: 2px; }
.choix input:disabled + span { opacity: .55; cursor: not-allowed; }
.choix.coupee strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.estimation { max-width: 560px; }

/* ── Rapport : verdict et plan de test ──────────────────────────────────── */
.verdict .points li { margin-bottom: 10px; }
.creas-test { list-style: none; margin: 0; padding: 0; }
.creas-test li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--filet); }
.creas-test li:first-child { border-top: 0; padding-top: 0; }
.hook-test { font-weight: 500; }
.creas-test .puce { flex: none; }

/* ── Barres horizontales avec intervalle de confiance ───────────────────── */
.frictions > h3 { margin-bottom: 4px; }
.axe { position: relative; height: 16px; margin: 4px 0 0; font-size: 11px; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.axe span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.axe span:first-child { transform: none; } .axe span:last-child { transform: translateX(-100%); }
.barres-h { list-style: none; margin: 0; padding: 0; }
.barres-h > li { border-top: 1px solid var(--filet); scroll-margin-top: 140px; }
.barres-h > li:first-child { border-top: 0; }
.ligne-barre > summary, div.ligne-barre { display: block; padding: 14px 0; }
.ligne-barre > summary { cursor: pointer; list-style: none; }
.ligne-barre > summary::-webkit-details-marker { display: none; }
.ligne-barre > summary:focus-visible { outline-offset: 4px; }
.tete-barre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tete-barre .nom { font-weight: 600; font-size: 15px; min-width: 0; }
.tete-barre .valeur { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.tete-barre .valeur.masquee { color: var(--texte-3); }
.piste-h { position: relative; display: block; height: 10px; margin: 9px 0 9px; border-radius: 99px; background: var(--puits); }
.piste-h .plein { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--bleu); }
.piste-h .ic { position: absolute; top: 50%; height: 0; border-top: 1.5px solid var(--texte); opacity: .6; }
.piste-h .ic::before, .piste-h .ic::after { content: ""; position: absolute; top: -6.5px; height: 11px; border-left: 1.5px solid var(--texte); }
.piste-h .ic::before { left: -.75px; } .piste-h .ic::after { right: -.75px; }
.piste-h.masquee { background: repeating-linear-gradient(-45deg, var(--puits) 0 6px, var(--puits-2) 6px 12px); }
.meta-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.depli-extraits { margin-left: auto; color: var(--lien); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.depli-extraits::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--sortie); }
details.ligne-barre[open] .depli-extraits::after { transform: rotate(-135deg) translate(-2px, -2px); }
.extraits { display: grid; gap: 10px; padding: 0 0 16px; }
.extrait { margin: 0; padding: 12px 16px; border-radius: var(--r-el); background: var(--puits); scroll-margin-top: 140px; }
.extrait p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.extrait footer { display: flex; align-items: center; margin-top: 6px; font-size: 12px; color: var(--texte-2); }
.faibles { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--filet); }
.faibles h4 { margin-top: 0; }
.faibles .puce { font-weight: 400; } .faibles .puce .numero { margin-right: 2px; min-width: 0; }
.barres-h.intentions .plein { opacity: .5; }
.barres-h.intentions .forte .plein { opacity: 1; }
.barres-h.intentions .forte .nom { color: var(--lien); }

/* ── Intentions, polarité, usages ───────────────────────────────────────── */
.grand-chiffre { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--filet); }
.grand-chiffre .valeur { font-size: 56px; line-height: 1; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.grand-chiffre .libelle { color: var(--texte-2); font-size: 15px; }
.barre-empilee { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; background: var(--puits); margin: 4px 0 14px; }
.barre-empilee .seg { display: block; height: 100%; min-width: 3px; }
.pol-pos { background: var(--vert); } .pol-neutre { background: var(--g3); } .pol-mixte { background: var(--orange); } .pol-neg { background: var(--rouge); }
.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende strong { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.pastille-legende { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.usages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; }
.usages li { display: flex; align-items: baseline; gap: 4px; padding: 11px 0; border-top: 1px solid var(--filet); scroll-margin-top: 140px; }
.usages .nom-usage { min-width: 0; }
.usages strong { margin-left: auto; font-variant-numeric: tabular-nums; padding-left: 12px; }

/* ── Angles, objections, offre, page produit ────────────────────────────── */
.grille-cartes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 24px; }
.grille-cartes > .tuile { display: flex; flex-direction: column; gap: 12px; }
.grille-cartes > .tuile h3 { margin: 0; line-height: 1.3; }
.grille-cartes > .tuile p { margin: 0; }
.angle .puce { align-self: flex-start; margin: 0; }
.hook { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.grille-cartes .refs-ligne { margin-top: auto; }
.objections { list-style: none; margin: 0; padding: 0; }
.objections > li { display: grid; grid-template-columns: minmax(0, 5fr) 28px minmax(0, 7fr); gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--filet); }
.objections > li:first-child { border-top: 0; padding-top: 0; } .objections > li:last-child { padding-bottom: 0; }
.objection .puce { margin: 0; }
.objection p { margin: 10px 0 0; color: var(--texte-2); }
.fleche-objection { color: var(--texte-3); font-size: 20px; padding-top: 34px; }
.texte-reponse { font-weight: 500; font-size: 17px; letter-spacing: -.012em; margin: 0 0 6px; }
.reponse .refs-ligne { margin-top: 8px; }
.offre .resume { font-size: 22px; line-height: 1.45; font-weight: 450; letter-spacing: -.018em; margin: 0 0 22px; }
.offre .duo, .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; border-top: 1px solid var(--filet); }
.offre .duo h3 { font-size: 15px; margin-bottom: 6px; }
.offre .duo p { margin: 0; }
.maquette { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; counter-reset: sec; }
.maquette > li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--filet); }
.maquette > li:first-child { border-top: 0; padding-top: 4px; }
.section-nom { color: var(--texte-2); font-size: 13px; font-weight: 600; counter-increment: sec; padding-top: 3px; }
.section-nom::before { content: counter(sec) "  "; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.section-contenu p { margin: 0 0 6px; }
.maquette > li:first-child .section-contenu p:first-child { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.022em; }

/* ── Vidéos ─────────────────────────────────────────────────────────────── */
.creas.videos .visuel { aspect-ratio: 3 / 4; }
.crea .visuel > .sans-visuel { position: absolute; inset: 0; }
.crea.video .duree { font-size: 19px; letter-spacing: -.015em; gap: 6px; align-items: baseline; }
.crea.video .duree .muted { font-size: 13px; font-weight: 400; letter-spacing: -.003em; }
.puces-video { display: flex; flex-wrap: wrap; gap: 0; }
.crea .etat { font-size: 13px; }
.frise { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--puits); overflow: hidden; margin: 4px 0; }
.frise span { position: absolute; top: 0; bottom: 0; background: var(--bleu); border-right: 2px solid var(--tuile); }
.frise span:nth-child(even) { background: var(--g3); }
.crea .liens .glyphe { font-size: 12px; }
.quartiles td { vertical-align: middle; }
.quartiles .puce { margin: 2px 4px 2px 0; }
.produit .visuel > .sans-visuel { font-size: 34px; }
.note-etoiles { margin-left: 8px; color: var(--texte-2); font-size: 13px; }

/* ── Marge ──────────────────────────────────────────────────────────────── */
.marge-barre { height: 22px; border-radius: 8px; margin: 6px 0 14px; }
.poste-achat { background: var(--g1); } .poste-port { background: var(--g2); } .poste-droits { background: var(--g3); }
.poste-frais_paiement { background: var(--g4); } .poste-retours { background: var(--g5); } .poste-marge { background: var(--vert); }
.scenario .chiffres { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Drapeaux ───────────────────────────────────────────────────────────── */
.drapeaux .titre-ligne .glyphe, .puce.drapeau .glyphe { color: var(--orange); }
.drapeaux .titre-ligne { display: inline-flex; gap: 8px; align-items: baseline; }
.explication-drapeau { color: var(--texte); margin: 4px 0 2px; }

/* ── Radar : candidats et mini-courbes ──────────────────────────────────── */
.candidats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin-top: 24px; }
.candidat { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; background: var(--tuile); border-radius: var(--r-tuile); box-shadow: var(--ombre); scroll-margin-top: 80px; }
.haut-candidat { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
.photo-candidat { position: relative; width: 88px; height: 88px; border-radius: var(--r-el); background: var(--puits); overflow: hidden; }
.photo-candidat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-candidat .rang {
  position: absolute; z-index: 1; top: 6px; left: 6px; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: var(--r-pilule);
  background: var(--tuile); color: var(--texte); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-variant-numeric: tabular-nums;
}
.titre-candidat h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.018em; margin: 0 0 4px; overflow-wrap: anywhere; }
.noms-autres { color: var(--texte-2); font-size: 13px; margin: 0 0 10px; }
.ligne-fenetre { margin: 0; }
.courbes { display: grid; }
.courbe-pays { display: grid; grid-template-columns: 32px minmax(0, 1fr) 54px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--filet); }
.courbe-pays:first-child { border-top: 0; padding-top: 0; }
.courbe-pays .code-pays { margin: 0; }
.courbe { display: block; width: 100%; height: 34px; overflow: visible; }
.courbe .ligne { fill: none; stroke: var(--g2); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.courbe .aire { fill: var(--gris-fond); }
.courbe-pays.hausse .ligne { stroke: var(--lien); }
.courbe-pays.hausse .aire { fill: var(--bleu-doux); }
.croissance { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.croissance.baisse { color: var(--texte-2); }
.candidat .liste.compacte { margin: 0; }
.candidat .liste.compacte .val { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 0; }
.candidat .liste.compacte .pays { margin-right: 4px; }
.drapeaux-candidat { margin: 0; }
.details-candidat { margin-top: 0; padding-top: 12px; }
.details-candidat .val .puce { font-weight: 400; }
.pied-candidat { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--filet); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pied-candidat form { margin: 0; }

/* ── Sources ────────────────────────────────────────────────────────────── */
.action-tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.sources-liste > li, .sources-liste > li:first-child, .sources-liste > li:last-child { display: block; padding: 0; scroll-margin-top: 80px; }
.ligne-source { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 22px; align-items: center; padding: 16px 0; margin: 0; }
.ligne-source .cle { color: var(--texte-2); min-width: 0; }
.ligne-source .decision { color: var(--texte-3); }
.sante { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.reglages-source { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.reglages-source .champ-nombre input[type=number] { width: 84px; }
.reglages-source .champ-nombre .unite { min-width: 0; }

/* ── Jeu d'or ───────────────────────────────────────────────────────────── */
.jeu-or { align-items: start; }
.annotation fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.annotation legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.annotation legend .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
.commentaire-or { margin: 0 0 26px; padding: 24px 28px; border-radius: var(--r-el); background: var(--puits); font-size: 21px; line-height: 1.45; font-weight: 450; letter-spacing: -.018em; overflow-wrap: anywhere; }
.choix-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choix-grille .choix { display: flex; }
.choix-grille .choix > span { width: 100%; padding: 10px 14px; }
.choix-grille small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.segmente.grand span { padding: 8px 20px; font-size: 15px; }
.annotation .barre-enregistrer { justify-content: flex-end; padding-left: 10px; }
.actions-jeu { display: grid; gap: 10px; margin-top: 16px; }
.actions-jeu form { margin: 0; }
.actions-jeu button { width: 100%; justify-content: center; }
.liste.progression .cle { color: var(--texte); font-variant-numeric: tabular-nums; }
.jauge-val { flex: 0 0 110px; }
.barres-f1 { list-style: none; margin: 0; padding: 0; }
.barres-f1 li { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 44px 60px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--filet); }
.barres-f1 li:first-child { border-top: 0; }
.barres-f1 .nom { font-size: 14px; }
.barres-f1 .piste-h { margin: 0; }
.barres-f1 .seuil { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--texte-2); border-radius: 2px; }
.barres-f1 .valeur { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.barres-f1 .support { text-align: right; }
.barres-f1 .insuffisant .plein { background: var(--orange); }
.barres-f1 .insuffisant .valeur { color: var(--orange); }
.barres-f1 .non-jugeable .plein { background: var(--g3); }
.colonne-laterale .tuile.groupe > .solde:first-child { border-top: 0; padding-top: 18px; }
.barres-f1 .non-jugeable .valeur { color: var(--texte-2); }
.chiffres.une-colonne { grid-template-columns: 1fr; }

/* ── ecompulse sur petits écrans ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .entrees { grid-template-columns: 1fr; }
  .ligne-source { grid-template-columns: minmax(0, 1fr) auto; }
  .ligne-source .sante { grid-column: 1; grid-row: 2; }
  .reglages-source { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 720px) {
  .marque .pouls { font-size: 18px; }
  .entree { padding: 24px 20px; }
  .entree h2 { font-size: 24px; }
  .icone-entree { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
  .champ-analyse input[type=text] { flex-basis: 100%; padding: 10px 12px; font-size: 17px; }
  .champ-radar { flex-wrap: wrap; padding: 8px; }
  .champ-radar textarea { flex-basis: 100%; padding: 10px 12px; font-size: 17px; }
  .champ-radar button { flex: 1 1 100%; justify-content: center; }
  .tete-produit { gap: 16px; align-items: flex-start; }
  .photo-tete { width: 72px; height: 72px; border-radius: 16px; }
  .tete h1.titre-radar { font-size: 30px; }
  .carte-attente { padding: 32px 20px 28px; }
  .carte-attente h1 { font-size: 28px; }
  .champs.deux { grid-template-columns: 1fr; }
  .langues { grid-template-columns: 1fr; }
  .champ-interrupteur { padding-top: 0; }
  .objections > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .objections p { overflow-wrap: anywhere; }
  .fleche-objection { display: none; }
  .offre .duo, .duo { grid-template-columns: 1fr; }
  .maquette > li { grid-template-columns: 1fr; gap: 6px; }
  .grand-chiffre .valeur { font-size: 44px; }
  .candidats { grid-template-columns: 1fr; }
  .candidat { padding: 20px; }
  .ligne-source { grid-template-columns: 1fr; gap: 12px; }
  .ligne-source .sante, .reglages-source { grid-column: auto; grid-row: auto; }
  .reglages-source { justify-content: flex-start; flex-wrap: wrap; }
  .commentaire-or { font-size: 18px; padding: 18px 20px; }
  .choix-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barres-f1 li { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 12px; }
  .barres-f1 .piste-h { grid-column: 1 / -1; grid-row: 2; }
  .barres-f1 .support { display: none; }
  .meta-barre { gap: 2px 10px; }
  .usages { grid-template-columns: 1fr; }
  .scenario .chiffres { grid-template-columns: 1fr 1fr; }
}
@media print {
  :root:not([data-theme="light"]), :root[data-theme="light"] { --g1: #636366; --g2: #8e8e93; --g3: #aeaeb2; --g4: #c7c7cc; --g5: #d8d8dc; }
  .candidat, .grille-cartes > .tuile { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  .trace-pouls .pouls-ligne, .trace-pouls.anime .pouls-ligne { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .cible { animation: none; }
}


/* ── Petits écrans ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .verdict { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .verdict .essentiel { border-left: 0; padding-left: 0; border-top: 1px solid var(--filet); padding-top: 24px; }
  .bento > .l4, .bento > .l5, .bento > .l6, .bento > .l7, .bento > .l8 { grid-column: span 12; }
  .captures figure.large { grid-column: span 7; } .captures figure.etroite { grid-column: span 5; }
}
@media (max-width: 720px) {
  .contenu { padding: 0 16px; }
  .barre .contenu { gap: 12px; height: auto; min-height: 52px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .barre nav a { padding: 6px 9px; }
  .segments { margin: 0 -16px 8px; padding: 8px 16px; top: 0; position: relative; }
  .tete h1 { font-size: 38px; }
  .tete .actions { flex: 1 1 100%; }
  section.bloc { margin-top: 64px; }
  section.bloc > h2 { font-size: 30px; }
  section.bloc > .chapeau { font-size: 17px; }
  .carte, .tuile { padding: 22px 20px; border-radius: 22px; }
  .verdict { padding: 24px 20px; }
  .verdict .resume { font-size: 18px; }
  .verdict .duo { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .rayon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .creas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .crea { border-radius: 18px; }
  .crea .infos { padding: 12px; }
  .captures figure, .captures figure.large { grid-column: span 12; }
  .source { grid-template-columns: 1fr; }
  .grille-2 { grid-template-columns: 1fr; }
  .fabricant .nom { font-size: 26px; }
  .lancer h1 { font-size: 38px; }
  .marque-grande { font-size: 48px; }
  .porte .chapeau { font-size: 17px; margin-bottom: 28px; }
  .lancer .chapeau { font-size: 17px; }
  .champ-analyse { flex-wrap: wrap; padding: 8px; }
  .champ-analyse input[type=url] { flex-basis: 100%; padding: 10px 12px; font-size: 17px; }
  .champ-analyse button { flex: 1 1 100%; justify-content: center; }
  .etagere { grid-template-columns: 1fr; }
  .fil-evt > li { grid-template-columns: 40px minmax(0, 1fr); }
  .mini-evt { width: 40px; height: 40px; }
  .heure-evt { grid-column: 2; }
  .historique > li { flex-wrap: wrap; }
  .historique .val.actions-ligne { justify-content: flex-start; }
  .tuile.groupe { padding: 6px 20px; }
  .reglages-liste > li { flex-wrap: wrap; gap: 10px; }
  .barre-enregistrer { bottom: 8px; padding-left: 16px; }
}

/* ── Impression et PDF : toujours en clair ──────────────────────────────── */
@media print {
  /* Spécificité (0,2,0) partout : l'emporte, par l'ordre, sur les deux blocs du thème sombre. */
  :root:not([data-theme="light"]), :root[data-theme="light"] {
    color-scheme: light;
    --fond: #ffffff; --tuile: #ffffff; --puits: #f5f5f7; --puits-2: #e8e8ed;
    --texte: #1d1d1f; --texte-2: #6e6e73; --texte-3: #86868b;
    --filet: rgba(0, 0, 0, .12); --filet-fort: rgba(0, 0, 0, .16);
    --lien: #0066cc; --bleu: #0071e3; --bleu-survol: #0077ed; --bleu-doux: rgba(0, 113, 227, .09);
    --vert: #248a3d; --vert-fond: rgba(52, 199, 89, .15);
    --orange: #b25000; --orange-fond: rgba(255, 149, 0, .17);
    --rouge: #d70015; --rouge-fond: rgba(255, 59, 48, .12);
    --gris: #6e6e73; --gris-fond: rgba(120, 120, 128, .12);
    --ombre: none; --ombre-haute: none;
  }
  html { scroll-behavior: auto; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .barre, .actions, .segments, form, .apparence { display: none !important; }
  /* Une grande tuile (verdict, frictions) peut se couper : sinon elle saute entière à la page suivante et
     laisse une page presque vide (PDF de recette du 2026-10-21). Les petits éléments, eux, restent entiers. */
  .carte, .tuile { box-shadow: 0 0 0 1px var(--filet); break-inside: auto; }
  .crea, .produit, .paire, li, tr, .grand-chiffre, .objections > li, .candidat, .ligne-source, figure { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  section.bloc { margin-top: 40px; break-before: auto; }
  .tete h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Bouton « Relancer » à côté de l'export (formulaire sur une ligne). */
form.en-ligne { display: inline; margin: 0; }

/* Mobile : un tableau large défile dans sa tuile au lieu d'élargir la page (recette du 2026-10-21). */
.tableau { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
