/* Sillon — « Plein jour ». Accent outremer depuis le 08/11/2026 (le jaune est la couleur de Telenet).
   Le téléphone (body.app) s'affiche comme une affiche de course ; le bureau reste calme.
   Polices servies d'ici (OFL), jamais depuis Google : aucune adresse IP de vendeur ne part chez un tiers.
   Icônes : Lucide (ISC). Photos : Unsplash License. Le détail est dans /img/CREDITS.md. */

/* Un élément caché reste caché, quoi que dise son composant (.btn est en inline-flex). */
[hidden] { display: none !important; }

/* ── Polices ─────────────────────────────────────────────────────────── */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/polices/archivo-latin.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: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/polices/archivo-latin-ext.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; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/polices/plexmono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("/polices/plexmono-600-latin.woff2") format("woff2"); }

/* ── Jetons (les anciens noms restent valables) ─────────────────────── */
:root {
  --fond: #F1F2EC; --surface: #FFFFFF; --surface-2: #E6E7E0;
  --encre: #0B0B0C; --doux: #55554F; --trait: #D3D4CC; --trait-fort: #0B0B0C;
  --accent: #3D3DF5; --accent-encre: #FFFFFF; --accent-doux: #E3E3FF; --lien: #0B0B0C; --ico-plus: url("/img/icones/plus-blanc.svg");
  --ok: #00703F; --ok-doux: #DDF3E7;
  --attention: #7A4F00; --attention-doux: #FFF0C7;
  --danger: #B3290A; --danger-doux: #FFE6DC;
  --chaud: #FF4A1C; --pousse: #2E9E5B; --pousse-2: #1F7A44;
  --menthe: #CDF3E1; --lilas: #E2DDFF; --saumon: #FFD9CC; --ciel: #D3ECFF; --fete-fond: #3D3DF5;
  --voile: rgba(11, 11, 12, .55);
  --rayon: 6px; --rayon-rond: 999px; --cadre: 2px; --cadre-fort: 3px;
  --ombre-dure: 4px 4px 0 var(--trait-fort);
  --ombre-douce: 0 1px 2px rgba(11,11,12,.06), 0 8px 24px rgba(11,11,12,.06);
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px;
  --cible: 48px;
  --vite: 120ms; --moyen: 220ms; --fete: 900ms; --ressort: cubic-bezier(.2, 1.6, .4, 1);
  --f-texte: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-affiche: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0B0B0C; --surface: #17171A; --surface-2: #222226;
    --encre: #F1F2EC; --doux: #A7A79E; --trait: #2E2E33; --trait-fort: #F1F2EC;
    --accent: #8C8CFF; --accent-encre: #0B0B0C; --accent-doux: #1C1C4A; --lien: #F1F2EC; --ico-plus: url("/img/icones/plus.svg");
    --ok: #35D48E; --ok-doux: #0F2E20; --attention: #F2B640; --attention-doux: #33260A;
    --danger: #FF7A55; --danger-doux: #3A1A12; --chaud: #FF6A3D; --pousse: #5BE38F; --pousse-2: #3FCB76;
    --menthe: #133A2A; --lilas: #26235A; --saumon: #4A2318; --ciel: #12304A; --fete-fond: #3D3DF5;
    --voile: rgba(0, 0, 0, .65); --ombre-douce: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0B0B0C; --surface: #17171A; --surface-2: #222226;
  --encre: #F1F2EC; --doux: #A7A79E; --trait: #2E2E33; --trait-fort: #F1F2EC;
  --accent: #8C8CFF; --accent-encre: #0B0B0C; --accent-doux: #1C1C4A; --lien: #F1F2EC; --ico-plus: url("/img/icones/plus.svg");
  --ok: #35D48E; --ok-doux: #0F2E20; --attention: #F2B640; --attention-doux: #33260A;
  --danger: #FF7A55; --danger-doux: #3A1A12; --chaud: #FF6A3D; --pousse: #5BE38F; --pousse-2: #3FCB76;
    --menthe: #133A2A; --lilas: #26235A; --saumon: #4A2318; --ciel: #12304A; --fete-fond: #3D3DF5;
  --voile: rgba(0, 0, 0, .65); --ombre-douce: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ── Socle ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--fond); color: var(--encre); font: 15px/1.5 var(--f-texte); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--lien); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--trait-fort); }
h1 { font: 900 2rem/1 var(--f-affiche); font-stretch: 70%; text-transform: uppercase; letter-spacing: .005em; margin: 0 0 var(--e3); text-wrap: balance; }
h2 { font: 800 1.15rem/1.2 var(--f-texte); margin: 0 0 var(--e3); }
.sous { color: var(--doux); margin: 0 0 var(--e5); max-width: 62ch; }
.doux { color: var(--doux); }
.chiffre, td, .tuile { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: var(--accent-encre); }

/* ── La barre ───────────────────────────────────────────────────────── */
.barre { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) var(--e5); background: var(--surface);
  border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
/* Le mot suit le logo : « Sillon », Archivo 700, largeur normale (session logo, 08/11/2026). */
.barre .marque { display: inline-flex; align-items: center; gap: 9px; font: 700 21px/1 var(--f-texte); font-stretch: 100%;
  letter-spacing: -.008em; color: var(--encre); text-decoration: none; }
.barre .marque::before { content: ""; width: 30px; height: 30px; flex: none; background: url("/img/sillon-marque-petite.svg") center / contain no-repeat; }
.barre .agence { color: var(--doux); font: 600 11px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.barre nav { display: flex; gap: 2px; flex-wrap: wrap; }
.barre nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--rayon); color: var(--doux); font-weight: 600; position: relative; }
.barre nav a:hover { color: var(--encre); background: var(--surface-2); }
.barre nav a.ici { color: var(--encre); background: transparent; }
.barre nav a.ici::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 4px; background: var(--accent); border-radius: 2px 2px 0 0; }
.barre .droite { margin-left: auto; display: flex; gap: var(--e2); align-items: center; }

/* ── Mise en page ───────────────────────────────────────────────────── */
.page { max-width: 1120px; margin: 0 auto; padding: var(--e6) var(--e5) 72px; }
.page.etroite { max-width: 460px; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: var(--e5); margin-bottom: var(--e4); box-shadow: var(--ombre-douce); }
.grille { display: grid; gap: var(--e4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tuile { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: var(--e4) var(--e5); cursor: pointer;
  transition: transform var(--vite), box-shadow var(--vite), border-color var(--vite); box-shadow: var(--ombre-douce); }
.tuile:hover { border-color: var(--trait-fort); transform: translate(-2px, -2px); box-shadow: var(--ombre-dure); }
.tuile .chiffre { font: 900 2.6rem/1 var(--f-affiche); font-stretch: 66%; margin-top: 4px; }
.rang { display: flex; gap: var(--e2); flex-wrap: wrap; align-items: flex-end; }
.rang > label { flex: 1 1 180px; }
.vide { color: var(--doux); padding: var(--e5) var(--e4); text-align: center; }

/* ── Formulaires ────────────────────────────────────────────────────── */
label { display: block; margin-bottom: var(--e4); font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--doux); }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: 6px; text-transform: none; letter-spacing: 0; }
input, select, textarea, button { font: inherit; }
input, select, textarea { font-family: var(--f-texte); font-size: 15px; font-weight: 500; padding: 10px 12px; border: 2px solid var(--trait); border-radius: var(--rayon);
  background: var(--surface); color: var(--encre); min-height: 46px; transition: border-color var(--vite), box-shadow var(--vite); }
input:hover, select:hover, textarea:hover { border-color: var(--doux); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--trait-fort); box-shadow: 0 0 0 4px var(--accent); }
input::placeholder { color: var(--doux); opacity: .7; }

/* ── Boutons : un seul plein par écran ──────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: var(--cible); border-radius: var(--rayon);
  border: 2px solid var(--trait-fort); background: var(--accent); color: var(--accent-encre); cursor: pointer; font-weight: 800; text-decoration: none;
  box-shadow: 3px 3px 0 var(--trait-fort); transition: transform var(--vite), box-shadow var(--vite), background var(--vite); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--trait-fort); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--trait-fort); }
.btn.second { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.btn.discret { background: transparent; border-color: var(--trait); color: var(--encre); font-weight: 600; box-shadow: none; }
@media (hover: hover) { .btn.discret:hover { border-color: var(--trait-fort); background: var(--surface-2); transform: none; } }
.btn.discret:active { transform: translate(1px, 1px); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

/* ── Tableaux ───────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--doux); }
tr.ouvre { cursor: pointer; transition: background var(--vite); }
tr.ouvre:hover td { background: var(--accent-doux); }
.table-defile { overflow-x: auto; }

/* ── États : toujours une icône et un mot ───────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--rayon-rond); font: 600 11px/1.6 var(--f-mono);
  text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); color: var(--encre); white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--ico, url("/img/icones/clock-3.svg")) center / contain no-repeat; mask: var(--ico, url("/img/icones/clock-3.svg")) center / contain no-repeat; }
.badge:not(.ok):not(.attention):not(.danger)::before { --ico: url("/img/icones/check.svg"); opacity: .55; }
.badge.ok { background: var(--ok-doux); color: var(--ok); --ico: url("/img/icones/check.svg"); }
.badge.attention { background: var(--attention-doux); color: var(--attention); --ico: url("/img/icones/clock-3.svg"); }
.badge.danger { background: var(--danger-doux); color: var(--danger); --ico: url("/img/icones/x.svg"); }

.message { padding: var(--e3) var(--e4); border-radius: var(--rayon); margin-bottom: var(--e4); border: 2px solid; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.message::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 1px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.message.erreur { background: var(--danger-doux); color: var(--danger); border-color: var(--danger); --ico: url("/img/icones/circle-alert.svg"); }
.message.ok { background: var(--ok-doux); color: var(--ok); border-color: var(--ok); --ico: url("/img/icones/check.svg"); }
.message.info { background: var(--attention-doux); color: var(--attention); border-color: var(--attention); --ico: url("/img/icones/clock-3.svg"); }
.message .btn { margin-left: auto; }
.lien-copie { display: flex; gap: var(--e2); margin-top: var(--e2); }
.lien-copie input { flex: 1; font-family: var(--f-mono); font-size: .85rem; }

/* ── Fenêtres : une feuille qui monte sur téléphone ─────────────────── */
dialog { border: 2px solid var(--trait-fort); border-radius: 10px; background: var(--surface); color: var(--encre); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 8px 8px 0 var(--trait-fort); }
dialog::backdrop { background: var(--voile); backdrop-filter: blur(2px); }
dialog[open] { animation: monter var(--moyen) ease-out; }
dialog .tete { padding: var(--e4) var(--e5); border-bottom: 1px solid var(--trait); display: flex; align-items: center; gap: var(--e2); }
dialog .tete h2 { margin: 0; flex: 1; }
dialog .corps { padding: var(--e5); max-height: 70vh; overflow: auto; }
dialog .pied { padding: var(--e3) var(--e5); border-top: 1px solid var(--trait); display: flex; gap: var(--e2); justify-content: flex-end; flex-wrap: wrap; }
@keyframes monter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.historique { list-style: none; padding: 0; margin: 0; }
.historique li { padding: var(--e3) 0 var(--e3) 22px; border-left: 2px solid var(--trait); margin-left: 6px; position: relative; }
.historique li::before { content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--trait-fort); }
.historique li:first-child::before { background: var(--accent); }
/* Une case à cocher : toute la ligne est la cible (48 px au moins), la case ne rétrécit jamais. */
label.case { display: flex; gap: 12px; align-items: center; color: var(--encre); font: 500 15px/1.35 var(--f-texte); text-transform: none; letter-spacing: 0;
  min-height: var(--cible); padding: 8px 10px; margin-left: -10px; margin-right: -10px; border-radius: var(--rayon); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--vite); }
label.case > input { flex: none; display: inline-block; width: 26px; height: 26px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
label.case:active { background: var(--accent-doux); }
label.case:has(> input:checked) { background: var(--accent-doux); }
label.case:has(> input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 0; }

/* ── Les états vides illustrés (classes posées par sillon-visuel.js) ── */
.vide.illus { display: flex; flex-direction: column; align-items: center; gap: var(--e3); padding: var(--e6) var(--e4); font-weight: 600; color: var(--encre); }
.vide.illus::before { content: ""; width: 200px; max-width: 70%; aspect-ratio: 4 / 3; background: var(--illus, url("/img/illus/vide-general.svg")) center / contain no-repeat; animation: flotter 4s ease-in-out infinite; }
.vide.illus-ventes { --illus: url("/img/illus/vide-ventes.svg"); }
.vide.illus-equipe { --illus: url("/img/illus/vide-equipe.svg"); }
@keyframes flotter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }


/* Le corps d'un mail reçu (bureau/messagerie.html) : le texte tel qu'il est venu, lisible. */
pre.texte-mail { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 400 15px/1.6 var(--f-texte);
  color: var(--encre); background: var(--surface-2); border-radius: var(--rayon); padding: var(--e4); max-width: 72ch; tab-size: 4; }
pre.texte-mail a { overflow-wrap: anywhere; }

/* ── Les grilles (bureau) ───────────────────────────────────────────── */
.cols { display: grid; gap: var(--e4); grid-template-columns: minmax(240px, 300px) 1fr; align-items: start; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.liste-grilles button { display: block; width: 100%; text-align: left; margin-bottom: var(--e2); }
.liste-grilles button.ici { border-color: var(--trait-fort); background: var(--accent-doux); }
td input, td select { width: 100%; min-width: 80px; }


/* ── Petits utilitaires (remplacent les style="…" des écrans) ─────────── */
.espace-haut { margin-top: var(--e4); }
.espace-haut-s { margin-top: var(--e2); }
.espace-haut-m { margin-top: var(--e3); }
.espace-bas { margin-bottom: var(--e4); }
.espace-bas-s { margin-bottom: var(--e3); }
.sans-marge { margin: 0; }
.rang.entre { justify-content: space-between; align-items: center; }
.rang.ligne { justify-content: space-between; align-items: center; padding: var(--e2) 0; border-bottom: 1px solid var(--trait); }
.a-droite { text-align: right; }
.normal { font-weight: 400; }
.petit { font-size: .9rem; font-weight: 400; }
.champ-court { max-width: 130px; }
.champ-tres-court { max-width: 110px; }
.champ-fixe { width: 140px; }
.grille.deux { grid-template-columns: 1fr 1fr; }
.grille.large { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tuile.fixe { cursor: default; }
.tuile.fixe:hover { transform: none; box-shadow: var(--ombre-douce); border-color: var(--trait); }

/* ── Les entrées : connexion, activation, installation (<body class="entree">) ── */
body.entree { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); }
body.entree::before { content: ""; grid-row: 1; grid-column: 1; min-height: 100%;
  background: linear-gradient(180deg, rgba(11,11,12,0) 45%, rgba(11,11,12,.75)), url("/img/photo-portes.webp") center / cover no-repeat, #2a2a2e; }
body.entree:not(:has(> .vitrine))::after { content: "La rue, c'est ton terrain.\A Sillon tient le score."; white-space: pre-line; grid-row: 1; grid-column: 1; align-self: end;
  padding: var(--e6) var(--e6) 56px; color: #fff; font: 900 clamp(34px, 4.4vw, 60px)/.95 var(--f-affiche); font-stretch: 64%; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
body.entree > main.page.etroite { grid-column: 2; grid-row: 1; align-self: center; width: 100%; padding: var(--e7) var(--e6); }
/* connexion.html : la vitrine est du vrai texte, la photo est sur elle */
body:has(> .vitrine)::before { content: none; }
.vitrine { grid-row: 1; grid-column: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--e4); padding: var(--e6) var(--e6) 56px; color: #fff; min-height: 100%;
  background: linear-gradient(180deg, rgba(11,11,12,0) 40%, rgba(11,11,12,.8)), url("/img/photo-portes.webp") center / cover no-repeat, #2a2a2e; }
.vitrine .accroche { margin: 0; font: 900 clamp(36px, 4.6vw, 64px)/.93 var(--f-affiche); font-stretch: 64%; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,.35); text-wrap: balance; }
.vitrine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vitrine li { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-radius: var(--rayon-rond); background: rgba(11,11,12,.55); border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.vitrine li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); border-radius: 2px; vertical-align: 1px; }
.vitrine .credit { position: absolute; bottom: 12px; right: 16px; font: 500 10px/1 var(--f-mono); color: rgba(255,255,255,.75); text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

body.entree > main.page.etroite > h1 { display: flex; align-items: center; gap: 12px; font: 700 2.4rem/1 var(--f-texte); font-stretch: 100%; letter-spacing: -.008em; text-transform: none; }
body.entree > main.page.etroite > h1::before { content: ""; width: 48px; height: 48px; flex: none; background: url("/img/sillon-marque.svg") center / contain no-repeat; }
body.entree > main.page.etroite .carte { border: 2px solid var(--trait-fort); box-shadow: 6px 6px 0 var(--trait-fort); padding: var(--e5); }
body.entree > main.page.etroite .carte .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
body.entree > main.page.etroite .carte input { min-height: 52px; font-size: 16px; }
body.entree > main.page.etroite > p.vide:only-child { grid-column: 1 / -1; }
@media (max-width: 860px) {
  body.entree { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  body.entree::before { grid-row: 1; min-height: 132px;
    background: linear-gradient(180deg, rgba(11,11,12,0) 35%, rgba(11,11,12,.75)), url("/img/photo-portes-800.webp") center 40% / cover no-repeat, #2a2a2e; }
  body.entree:not(:has(> .vitrine))::after { grid-row: 1; padding: var(--e4) var(--e5) 30px; font-size: 26px; }
  /* Au téléphone, d'une main et au soleil : la vitrine se fait bandeau, le champ e-mail monte dans la moitié haute. */
  .vitrine { min-height: 0; padding: 40px var(--e5) 34px;
    background: linear-gradient(180deg, rgba(11,11,12,.15) 0%, rgba(11,11,12,.78)), url("/img/photo-portes-800.webp") center 40% / cover no-repeat, #2a2a2e; }
  .vitrine .accroche { font-size: 28px; }
  .vitrine ul, .vitrine .credit { display: none; }
  body.entree > main.page.etroite > h1 { font-size: 1.9rem; margin-bottom: 6px; }
  body.entree > main.page.etroite > h1::before { width: 38px; height: 38px; }
  body.entree > main.page.etroite > .sous { margin-bottom: var(--e4); font-size: 14px; }
  body.entree > main.page.etroite .carte { padding: var(--e4); }
  body.entree > main.page.etroite { grid-column: 1; grid-row: 2; align-self: start; padding: var(--e5) var(--e5) var(--e7); margin-top: -18px;
    background: var(--fond); border-radius: 18px 18px 0 0; position: relative; }
}



/* ═══════════ Le bureau sur téléphone (responsable), demandé par Hakim le 08/11/2026 ═══════════
   La barre tient sur une ligne ; les onglets descendent en barre du bas (icônes, défilable) ;
   les filtres se rangent en deux colonnes ; sur « Ventes », les chiffres passent avant les filtres
   et chaque vente devient une carte. Rien ne change dans le HTML. */
@media (max-width: 720px) {
  body:not(.app):not(.entree):not(.document):has(> .barre) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .barre { flex-wrap: nowrap; gap: var(--e2); padding: 8px var(--e4); }
  .barre .agence { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .barre .droite { gap: 6px; flex: none; }
  .barre .droite > .doux { display: none; }
  .barre .droite .btn { min-height: 44px; width: 44px; padding: 0; font-size: 0; gap: 0; box-shadow: none; }
  .barre .droite .btn::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
  .barre .droite #sortir { --ico: url("/img/icones/log-out.svg"); }
  .barre .droite a[href="/app/"] { --ico: url("/img/icones/smartphone.svg"); }

  .barre nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; scroll-snap-type: x proximity;
    background: var(--surface); border-top: var(--cadre-fort) solid var(--trait-fort); padding: 4px 4px max(8px, env(safe-area-inset-bottom, 0px)); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .barre nav::-webkit-scrollbar { display: none; }
  .barre nav a { flex: 0 0 23%; min-width: 74px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px;
    font: 600 10px/1.1 var(--f-mono); text-transform: uppercase; text-align: center; color: var(--doux); border-radius: 8px; }
  .barre nav a::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico, url("/img/icones/list-checks.svg")) center / contain no-repeat; mask: var(--ico, url("/img/icones/list-checks.svg")) center / contain no-repeat; }
  .barre nav a.ici { color: var(--encre); background: transparent; }
  .barre nav a.ici::after { position: static; display: block; width: 22px; height: 4px; margin-top: 1px; }
  .barre nav a[href$="aujourdhui.html"] { --ico: url("/img/icones/house.svg"); }
  .barre nav a[href$="ventes.html"] { --ico: url("/img/icones/receipt.svg"); }
  .barre nav a[href="/bureau/"] { --ico: url("/img/icones/users-round.svg"); }
  .barre nav a[href$="vendeurs.html"] { --ico: url("/img/icones/user-round.svg"); }
  .barre nav a[href$="offres.html"] { --ico: url("/img/icones/tag.svg"); }
  .barre nav a[href$="grilles.html"] { --ico: url("/img/icones/table-2.svg"); }
  .barre nav a[href$="decomptes.html"] { --ico: url("/img/icones/calculator.svg"); }
  .barre nav a[href$="messagerie.html"] { --ico: url("/img/icones/mail.svg"); }
  .barre nav a[href$="portes.html"] { --ico: url("/img/icones/ban.svg"); }
  .barre nav a[href$="reglages.html"] { --ico: url("/img/icones/settings.svg"); }


  /* Le bouton « Plus » (posé par le dév dans la barre : <button type="button" class="plus" aria-expanded="false">Plus</button>
     en dernier dans <nav>, et data-principal sur les 4 liens principaux). Sans lui, la barre défile. */
  .barre nav:has(> .plus) { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .barre nav:has(> .plus) > a { flex: 1 1 0; min-width: 0; }
  .barre nav:has(> .plus) > a:not([data-principal]) { display: none; }
  .barre nav > .plus { all: unset; box-sizing: border-box; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; cursor: pointer;
    font: 600 10px/1.1 var(--f-mono); text-transform: uppercase; color: var(--doux); border-radius: 8px; }
  .barre nav > .plus::before { content: ""; width: 24px; height: 24px; background: currentColor; -webkit-mask: url("/img/icones/ellipsis.svg") center / contain no-repeat; mask: url("/img/icones/ellipsis.svg") center / contain no-repeat; }
  .barre nav > .plus:has(~ a.ici:not([data-principal])), .barre nav:has(> a.ici:not([data-principal])) > .plus { color: var(--encre); }
  .barre nav.ouvert { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-top: 12px; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.25); }
  .barre nav.ouvert > a:not([data-principal]) { display: flex; }
  .barre nav.ouvert > .plus::before { -webkit-mask-image: url("/img/icones/x.svg"); mask-image: url("/img/icones/x.svg"); }
}
@media (min-width: 721px) { .barre nav > .plus { display: none; } }
@media (max-width: 720px) {
  body:not(.app) .page { padding: var(--e4) var(--e4) var(--e6); }
  body:not(.app) .page > h1 { font-size: 1.7rem; margin-bottom: 6px; }
  body:not(.app) .page > .sous { font-size: 13.5px; margin-bottom: var(--e4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body:not(.app) .carte { padding: var(--e4); }

  /* Les rangées de champs : deux colonnes, rien ne déborde (le champ « mois » d'iOS avait une largeur propre) */
  .rang { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
  .rang > label { min-width: 0; margin-bottom: 0; }
  .rang > .btn { width: 100%; }
  label > input, label > select { min-width: 0; max-width: 100%; }
  input[type="month"], input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; text-align: left; }
  .rang input, .rang select { min-height: 44px; font-size: 15px; padding: 8px 10px; }

  /* Accueil du responsable (« Équipes ») : les équipes d'abord, le formulaire de création ensuite */
  .page:has(> .grille .tuile) { display: flex; flex-direction: column; }
  .page:has(> .grille .tuile) > * { order: 2; }
  .page:has(> .grille .tuile) > h1, .page:has(> .grille .tuile) > .sous, .page:has(> .grille .tuile) > #msg, .page:has(> .grille .tuile) > #resultats { order: 0; }
  .page:has(> .grille .tuile) > .grille { order: 1; margin-bottom: var(--e4); }
  .page > .grille:has(.tuile) { grid-template-columns: 1fr; gap: 10px; }
  .page > .grille .tuile { padding: 10px 12px; border: var(--cadre) solid var(--trait-fort); box-shadow: 3px 3px 0 var(--trait-fort); font-size: 13px; }
  .page > .grille .tuile .chiffre, .page > .grille .tuile > b + b, .page > .grille .tuile big { font-size: 1.9rem; }
  .page > .grille .tuile:nth-child(4n+1) { background: var(--lilas); }
  .page > .grille .tuile:nth-child(4n+2) { background: var(--menthe); }
  .page > .grille .tuile:nth-child(4n+3) { background: var(--saumon); }
  .page > .grille .tuile:nth-child(4n+4) { background: var(--ciel); }

  /* « Ventes » : les chiffres d'abord, en tuiles de couleur, puis les filtres, puis les ventes en cartes */
  .page:has(> #totaux) { display: flex; flex-direction: column; }
  .page:has(> #totaux) > * { order: 3; }
  .page:has(> #totaux) > h1, .page:has(> #totaux) > .sous, .page:has(> #totaux) > #msg { order: 0; }
  .page > #totaux { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: var(--e3); }
  .page > #totaux + .carte, .page:has(> #totaux) > .carte:first-of-type { order: 2; }
  #totaux .tuile { padding: 10px 12px; border: var(--cadre) solid var(--trait-fort); box-shadow: 3px 3px 0 var(--trait-fort); }
  #totaux .tuile .doux { font: 600 10px/1.25 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: inherit; opacity: .75; }
  #totaux .tuile .chiffre { font-size: 34px; }
  #totaux .tuile:nth-child(1) { background: var(--attention-doux); }
  #totaux .tuile:nth-child(2) { background: var(--lilas); }
  #totaux .tuile:nth-child(3) { background: var(--menthe); }
  #totaux .tuile:nth-child(4) { background: var(--saumon); }

  .table-defile:has(#liste) { overflow: visible; }
  .table-defile:has(#liste) table, .table-defile:has(#liste) tbody { display: block; }
  .table-defile:has(#liste) thead { display: none; }
  #liste > tr.ouvre { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1.5px dashed var(--trait); }
  #liste > tr.ouvre > td { display: block; padding: 0; border: 0; min-width: 0; }
  #liste > tr.ouvre > td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 13px; }
  #liste > tr.ouvre > td:nth-child(6) { grid-column: 2; grid-row: 1; justify-self: end; }
  #liste > tr.ouvre > td:nth-child(4) { grid-column: 1 / -1; grid-row: 2; font-weight: 700; }
  #liste > tr.ouvre > td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: 13px; }
  #liste > tr.ouvre > td:nth-child(3) br { display: none; }
  #liste > tr.ouvre > td:nth-child(3) .doux::before { content: " · "; }
  #liste > tr.ouvre > td:nth-child(2) { grid-column: 2; grid-row: 3; justify-self: end; font-size: 13px; color: var(--doux); }
  #liste > tr.ouvre > td:nth-child(7) { grid-column: 1; grid-row: 4; font: 900 20px/1.1 var(--f-affiche); font-stretch: 70%; }
  #liste > tr.ouvre > td:nth-child(8) { grid-column: 2; grid-row: 4; justify-self: end; font: 600 12px/1.6 var(--f-mono); }
  #liste > tr.ouvre > td:nth-child(8)::after { content: " pts"; }
  #liste > tr.ouvre > td:nth-child(5) { display: none; }
  #liste > tr:not(.ouvre) { display: block; }

  /* Les autres tableaux du bureau : défilement dans leur carte, colonnes serrées */
  .table-defile { margin: 0 calc(-1 * var(--e4)); padding: 0 var(--e4); }
  th, td { padding: 10px 8px; }
  dialog .corps { padding: var(--e4); }
}

/* ═══ L'accueil en bento (choisi par Hakim le 08/11/2026, références Gen Z) ═══
   <div class="bento">
     <section class="b b-jour"><span class="b-lab">Ventes du jour</span><div class="b-dossard"><b class="chiffre">2</b><small>/4</small></div><div class="b-segs"><i class="on"></i>…</div></section>
     <section class="b b-serie"><span class="b-ico pousse"></span><span class="b-lab">Série</span><b class="chiffre">6 j</b><small>…</small></section>
     <section class="b b-points">  (lilas)   .b-rang (saumon)   .b-mois (ciel)
     <section class="b b-large">   pleine largeur (palier : .b-ligne, .b-ticks, .b-gros)
     <section class="b b-suite">   pleine largeur, en encre (« À faire »)
   Une icône : <span class="b-ico" style="--ico:url('/img/icones/star.svg')"></span> */
.titre-jour { font-size: 34px; line-height: .92; margin: 6px 0 14px; }
.salut { margin: 0; font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 10px; }
.bento > .b small { display: flex; flex-wrap: wrap; gap: 4px; }
.bento > .b .badge { white-space: normal; max-width: 100%; line-height: 1.3; padding-top: 3px; padding-bottom: 3px; }
/* Avec le bento, le bonjour se fait bandeau : les cartes passent au-dessus du pli */
.app:has(.bento) #bonjour { min-height: 0; padding: 14px 64px 14px var(--e4); font-size: 24px; background-position: center 35%; }
.app:has(.bento) #bonjour::after { top: 50%; transform: translateY(-50%); width: 32px; height: 32px; }
.bento > .b { position: relative; border: var(--cadre) solid var(--trait-fort); border-radius: 14px; padding: 12px 14px; background: var(--surface); color: var(--encre);
  display: flex; flex-direction: column; gap: 2px; min-height: 104px; min-width: 0; box-shadow: 3px 3px 0 var(--trait-fort); }
.bento > .b .chiffre { font: 900 38px/1 var(--f-affiche); font-stretch: 64%; margin-top: 4px; }
.bento > .b .chiffre sup { font-size: .5em; }
.bento > .b small { font-size: 12.5px; font-weight: 600; opacity: .8; margin-top: auto; }
.bento > .b .badge { font-size: 10px; }
.b-lab { font: 600 10.5px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; opacity: .75; }
.b-ico { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; background: currentColor; opacity: .85;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.b-ico.pousse { --ico: url("/img/icones/sprout.svg"); background: var(--pousse-2); opacity: 1; }
.bento > .b-jour { grid-row: span 2; background: var(--accent); color: var(--accent-encre); }
.b-dossard { margin: auto 0 4px; display: flex; align-items: baseline; }
.bento > .b .b-dossard .chiffre { font-size: 104px; line-height: .85; }
.bento > .b .b-dossard small { font: 900 40px/1 var(--f-affiche); font-stretch: 64%; opacity: .6; margin: 0; }
.b-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; width: 100%; }
.b-segs i { height: 10px; border-radius: 3px; background: currentColor; opacity: .3; }
.b-segs i.on { opacity: 1; }
/* Plus de 10 segments (l'agence entière) : une barre continue plutôt que des confettis */
.b-segs:has(> i:nth-child(11)) { gap: 0; border-radius: 4px; overflow: hidden; }
.b-segs:has(> i:nth-child(11)) > i { border-radius: 0; }
.bento > .b:has(> .b-ico) > .b-lab:first-of-type { padding-right: 30px; }
.bento > .b-rang:last-child, .bento > .b-mois:last-child { grid-column: 1 / -1; }
.bento > .b-serie { background: var(--menthe); }
.bento > .b-points { background: var(--lilas); }
.bento > .b-rang { background: var(--saumon); }
.bento > .b-mois { background: var(--ciel); }
.bento:not(:has(> .b-rang)) > .b-mois, .bento:not(:has(> .b-mois)) > .b-rang { grid-column: 1 / -1; }
.bento > .b-large { grid-column: 1 / -1; min-height: 0; }
.b-ligne { display: flex; justify-content: space-between; gap: 8px; }
.b-ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 8px 0 6px; }
.b-ticks i { height: 14px; border: 1.5px solid var(--trait-fort); border-radius: 2px; }
.b-ticks i.on { background: var(--trait-fort); }
/* Plus de 20 cases (objectif d'équipe) : une barre continue */
.b-ticks:has(> i:nth-child(21)) { gap: 0; border: 1.5px solid var(--trait-fort); border-radius: 4px; overflow: hidden; }
.b-ticks:has(> i:nth-child(21)) > i { border: 0; border-radius: 0; height: 14px; }
/* Une tuile du jour seule devant une carte pleine largeur (« Mon équipe » du chef) : en largeur */
.bento > .b-jour:has(+ .b-large) { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
.b-gros { font: 900 22px/1 var(--f-affiche); font-stretch: 70%; text-transform: uppercase; }
.bento > .b-suite { grid-column: 1 / -1; min-height: 0; flex-direction: row; gap: 12px; align-items: center; background: var(--encre); color: var(--fond); padding-right: 48px; }
.b-suite b { display: block; font-size: 16px; line-height: 1.25; }
.b-suite small { display: block; opacity: .75; }
.b-suite .b-ico { top: 50%; transform: translateY(-50%); right: 14px; }
a.b, button.b { text-decoration: none; cursor: pointer; font: inherit; text-align: left; }
a.b:active, button.b:active { transform: translate(3px, 3px); box-shadow: none; }

/* ═══ La fête plein écran (posée par SillonVisuel.fete, dans sillon-visuel.js) ═══ */
.fete-plein { position: fixed; inset: 0; z-index: 70; background: var(--fete-fond); color: #fff; display: flex; flex-direction: column;
  padding: max(64px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); overflow: hidden; animation: monter var(--moyen) var(--ressort); }
.fete-plein .motif { position: absolute; width: 46px; height: 46px; background: #A8A8FF; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; pointer-events: none; }
.fete-plein .eyebrow { position: relative; font: 600 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.fete-plein h1 { position: relative; color: #fff; font-size: clamp(56px, 19vw, 80px); line-height: .86; margin: 12px 0 18px; }
.fete-plein .gain { position: relative; align-self: flex-start; font: 900 54px/1 var(--f-affiche); font-stretch: 64%; background: #fff; color: #0B0B0C;
  border: 3px solid #0B0B0C; box-shadow: 6px 6px 0 #0B0B0C; padding: 10px 16px; border-radius: 10px; }
.fete-plein p { position: relative; font-size: 17px; font-weight: 600; max-width: 30ch; }
.fete-plein .actions { position: relative; margin-top: auto; display: grid; gap: 10px; max-width: 520px; width: 100%; }
.fete-plein .btn { width: 100%; min-height: 60px; font-size: 18px; background: #fff; color: #0B0B0C; border-color: #0B0B0C; }
.fete-plein .btn.discret { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }

/* ═════════════════ Le téléphone (vendeur et chef) ═════════════════ */
.app { font-size: 16px; }
.app .barre { padding: var(--e2) var(--e4); border-bottom: 2px solid var(--trait-fort); flex-wrap: nowrap; }
.app .barre .agence { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.app .barre .droite .btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.app { --barre-bas: calc(80px + env(safe-area-inset-bottom, 0px)); }
.app .page { max-width: 560px; padding: var(--e4) var(--e4) calc(var(--barre-bas) + 72px); }
html:has(body.app) { scroll-padding-bottom: calc(var(--barre-bas) + 96px); }
.app input, .app select { font-size: 16px; min-height: 54px; }

/* le bonjour : une affiche, sur une rue */
.app #bonjour { position: relative; overflow: hidden; margin: 0 0 var(--e4); padding: 86px var(--e4) var(--e4); min-height: 150px; color: #fff; font-size: 40px; line-height: .92;
  border: var(--cadre-fort) solid var(--trait-fort); border-radius: 10px; box-shadow: var(--ombre-dure);
  background: linear-gradient(180deg, rgba(11,11,12,.05) 0%, rgba(11,11,12,.72) 100%), url("/img/photo-vendeuse-rue-700.webp") center 30% / cover no-repeat, #2a2a2e; }
.app #bonjour::after { content: ""; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: url("/img/sillon-marque.svg") center / contain no-repeat; }

/* les onglets deviennent la barre du bas, « Vendre » au milieu */
.app .onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; overflow: visible;
  background: var(--surface); border-top: var(--cadre-fort) solid var(--trait-fort); padding: 6px 6px max(10px, env(safe-area-inset-bottom)); }
.app .onglets button, .app .onglets button.btn, .app .onglets button.btn:hover { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px;
  font: 600 10px/1.15 var(--f-mono); text-transform: uppercase; letter-spacing: 0; color: var(--doux); text-align: center; border-radius: 8px;
  min-width: 0; padding: 0 2px; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.app .onglets button::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.app .onglets button:focus-visible { outline: 3px solid var(--accent); }
.app .onglets button { --ico: url("/img/icones/sprout.svg"); }
.app .onglets [data-o="classement"] { --ico: url("/img/icones/trophy.svg"); }
.app .onglets [data-o="mois"] { --ico: url("/img/icones/wallet.svg"); }
.app .onglets [data-o="vendre"] { --ico: url("/img/icones/plus.svg"); }
/* « + Vendre » au centre quel que soit l'ordre des onglets dans la page */
.app .onglets button.btn[data-o="mois"], .app .onglets button[data-o="mois"] { order: 1; }
.app .onglets button.btn[data-o="ventes"], .app .onglets button[data-o="ventes"] { order: 2; }
.app .onglets button.btn[data-o="vendre"], .app .onglets button[data-o="vendre"] { order: 3; }
.app .onglets button.btn[data-o="equipe"], .app .onglets button[data-o="equipe"] { order: 4; }
.app .onglets button.btn[data-o="classement"], .app .onglets button[data-o="classement"] { order: 5; }
.app .onglets [data-o="ventes"] { --ico: url("/img/icones/list-checks.svg"); }
.app .onglets [data-o="equipe"] { --ico: url("/img/icones/users.svg"); }
.app .onglets button.ici { color: var(--encre); }
.app .onglets button.ici:not([data-o="vendre"])::before { background: var(--encre); }
.app .onglets button.ici:not([data-o="vendre"])::after { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: -1px; }
.app .onglets [data-o="vendre"] { color: var(--encre); }
.app .onglets [data-o="vendre"]::before { width: 58px; height: 58px; margin-top: -30px; border: var(--cadre-fort) solid var(--trait-fort); border-radius: 10px; box-shadow: var(--ombre-dure);
  -webkit-mask: none; mask: none; background: var(--ico-plus) center / 30px no-repeat, var(--accent); transition: transform var(--vite), box-shadow var(--vite); }
.app .onglets [data-o="vendre"]:active::before { transform: translate(4px, 4px); box-shadow: none; }

/* « Mon mois » : la première tuile est le dossard */
.app #vue > .grille { gap: var(--e3); }
.app #vue .tuile { cursor: default; border: var(--cadre) solid var(--trait-fort); box-shadow: none; padding: var(--e3) var(--e4); }
.app #vue .tuile:hover { transform: none; }
.app #vue .tuile .doux { font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .07em; }
.app #vue .tuile .chiffre { font-size: 44px; font-stretch: 66%; }
.app #vue > .grille > .tuile:first-child { grid-column: 1 / -1; position: relative; padding: var(--e5) var(--e5) 0; border-width: var(--cadre-fort); box-shadow: 6px 6px 0 var(--trait-fort); text-align: center;
  background: radial-gradient(circle at 12px 12px, var(--fond) 4px, var(--trait-fort) 5px, var(--trait-fort) 6px, transparent 6.5px),
              radial-gradient(circle at calc(100% - 12px) 12px, var(--fond) 4px, var(--trait-fort) 5px, var(--trait-fort) 6px, transparent 6.5px), var(--surface); }
.app #vue > .grille > .tuile:first-child .chiffre { font-size: clamp(72px, 24vw, 112px); font-stretch: 62%; line-height: .9; padding: 6px 0 14px; }
.app #vue > .grille > .tuile:first-child::after { content: "Ce mois-ci · Sillon"; display: block; margin: 0 calc(-1 * var(--e5)); padding: 8px var(--e5); background: var(--accent); color: var(--accent-encre);
  border-top: var(--cadre-fort) solid var(--trait-fort); font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.app #vue > .grille > .tuile:first-child + .tuile:last-child { grid-column: 1 / -1; }
.app #vue > .grille + p.doux { font-size: 13px; margin-top: var(--e4); padding-left: var(--e3); border-left: 3px solid var(--accent); }

/* « Vendre » : de grands champs, le bouton dans le tiers bas */
.app #fv { border: var(--cadre) solid var(--trait-fort); box-shadow: none; }
.app #fv .btn { width: 100%; min-height: 64px; font: 900 22px/1 var(--f-affiche); font-stretch: 70%; text-transform: uppercase; box-shadow: var(--ombre-dure); margin-top: var(--e2); }
.app #fv select { appearance: none; -webkit-appearance: none; padding-right: 40px; font-weight: 700;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355554F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }


/* Le parcours de vente se resserre pour que « Enregistrer la vente » tienne au-dessus de la barre du bas
   en 390×844, même avec une consigne affichée (retour de l'essai vendeur, 08/11/2026). */
.app:has(#fv) #vue .message { padding: 6px 10px; font-size: 13px; line-height: 1.35; border-width: 1.5px; margin-bottom: var(--e3); gap: 8px; }
.app:has(#fv) #vue .message::before { width: 16px; height: 16px; }
.app:has(#fv) #vue .choix { gap: 8px; margin-bottom: var(--e3); }
.app:has(#fv) #vue .choix button { min-height: var(--cible); padding: 6px 12px; font-size: 15px; box-shadow: 2px 2px 0 var(--trait-fort); }
.app:has(#fv) #vue .etapes { margin-bottom: var(--e2); }
.app #fv { padding: var(--e3) var(--e4); }
.app #fv label { margin-bottom: var(--e3); }
.app #fv input { min-height: 50px; }

/* Dans le parcours de vente, pas de bonjour : les champs passent avant (retour de l'essai vendeur). */
.app:has(#fv) #bonjour, .app:has(.choix) #bonjour { display: none; }

/* La vente en deux taps : des tuiles qu'on touche (SYSTEME.md § 5.2).
   Balisage : <div class="choix"><button type="button" aria-pressed="false">Orange<small>12 ventes ce mois</small></button>…</div>
   La tuile choisie porte aria-pressed="true" (ou .ici). « choix une » = une colonne (les offres). */
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: var(--e4); }
.choix.une { grid-template-columns: 1fr; }
.choix button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 14px;
  border: var(--cadre) solid var(--trait-fort); border-radius: var(--rayon); background: var(--surface); color: var(--encre); font: 800 17px/1.15 var(--f-texte);
  box-shadow: 3px 3px 0 var(--trait-fort); transition: transform var(--vite), box-shadow var(--vite), background var(--vite); -webkit-tap-highlight-color: transparent; }
.choix button small { font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--doux); }
.choix button:active { transform: translate(3px, 3px); box-shadow: none; }
.choix button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choix button[aria-pressed="true"], .choix button.ici { background: var(--accent); color: var(--accent-encre); }
.choix button[aria-pressed="true"] small, .choix button.ici small { color: inherit; opacity: .85; }
.choix.une button { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
.choix.une button small { text-align: right; }
.etapes { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--e4); font: 600 12px/1 var(--f-mono); color: var(--doux); }
.etapes i { display: block; width: 22px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.etapes i.fait { background: var(--accent); }
.etapes .chrono { margin-left: auto; font-variant-numeric: tabular-nums; }

/* « Mes ventes » : un fil, comme un relevé */
.app #vue > .carte { padding: var(--e2) var(--e4); border: var(--cadre) solid var(--trait-fort); box-shadow: none; }
.app #vue > .carte > h2 { padding-top: var(--e3); font: 900 20px/1 var(--f-affiche); font-stretch: 70%; text-transform: uppercase; }
.vente { padding: var(--e3) 0; border-bottom: 1.5px dashed var(--trait); cursor: pointer; transition: background var(--vite); }
.vente:last-child { border-bottom: 0; }
.vente:active { background: var(--accent-doux); }
.vente b { font-weight: 800; }
.vente .doux { font-size: 13px; }
.app .membre { display: flex; justify-content: space-between; align-items: center; gap: var(--e2); padding: var(--e3) 0; border-bottom: 1.5px dashed var(--trait); min-height: 58px; }
.app .membre:last-child { border-bottom: 0; }
.app .membre b { font-weight: 800; }

/* messages : épinglés en haut de l'écran */
/* Le message flotte sous la barre du haut, sans pousser l'écran : le bouton qu'on va retaper ne descend jamais sous la barre du bas.
   (#msg est le conteneur ; S.dire y pose un enfant .message) */
.app #msg { position: fixed; top: calc(62px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  max-width: 536px; margin: 0 auto; z-index: 25; }
.app #msg > .message { cursor: pointer; margin: 0; padding: 10px 12px; font-size: 14px; line-height: 1.35; box-shadow: var(--ombre-dure); border-color: var(--trait-fort); animation: monter var(--moyen) var(--ressort); }
.app #msg > .message.ok { background: var(--accent); color: var(--accent-encre); }

/* la feuille qui monte */
@media (max-width: 640px) {
  .app dialog, dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; border-width: var(--cadre-fort) 0 0; box-shadow: none; max-height: 88vh; }
  .app dialog .pied .btn { flex: 1; min-height: 56px; }
}

/* ── La célébration (posée par sillon-visuel.js) ─────────────────────── */
.sillon-fete { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.sillon-fete i { position: absolute; left: 50%; top: 42%; width: 10px; height: 10px; background: var(--c, var(--accent)); border: 1.5px solid #0B0B0C;
  animation: eclat var(--fete) cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes eclat { 0% { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); opacity: 0; } }
.chiffre.monte { animation: pop 420ms var(--ressort); }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ── Les documents A4 (decompte.html, releve.html) ──────────────────── */
body.document { background: var(--surface-2); }
main.document-a4 { max-width: 210mm; margin: var(--e6) auto; padding: 15mm; background: #fff; color: #0B0B0C; border: 1px solid var(--trait); box-shadow: var(--ombre-douce); }
main.document-a4 .doux { color: #55554F; }
main.document-a4 h1, main.document-a4 h2 { color: #0B0B0C; }
main.document-a4 th, main.document-a4 td { border-color: #D3D4CC; color: #0B0B0C; }
header.document-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--e5); padding-bottom: var(--e4); margin-bottom: var(--e5); border-bottom: 3px solid #0B0B0C; }
header.document-tete > div:first-child { padding-left: 46px; min-height: 36px; background: url("/img/sillon-marque.svg") left top / 36px no-repeat; }
header.document-tete > div:last-child { text-align: right; }
.non-imprime { margin-top: var(--e5); }
@page { size: A4; margin: 15mm; }
@media print {
  body.document, body { background: #fff !important; }
  .barre, .non-imprime, .onglets { display: none !important; }
  main.document-a4 { margin: 0; padding: 0; max-width: none; border: 0; box-shadow: none; }
  .badge { border: 1px solid currentColor; }
  a { text-decoration: none; color: inherit; }
}

/* ── Bureau : calme ─────────────────────────────────────────────────── */
body:not(.app) .page > h1 { font-size: 2.4rem; }
body:not(.app) .grille .tuile b:first-child { font-size: 1.05rem; }

@media (max-width: 640px) {
  .barre { padding: var(--e2) var(--e4); }
  .barre nav a.ici::after { bottom: -2px; }
  .page { padding: var(--e5) var(--e4) 64px; }
  th.masque-mobile, td.masque-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sillon-fete { display: none; }
}
