
@font-face { font-family: "Saira Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/polices/saira-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/polices/saira-700.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/polices/hanken-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/polices/hanken-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/polices/hanken-600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/polices/hanken-700.woff2") format("woff2"); }

:root {
  --ink: #0B0B0B;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --accent: #0B0B0B;
  --accent-d: #333333;
  --amber: #C9821B;
  --line: #E4E4E1;
  --muted: #555555;
  --danger: #B23A3A;
  --ok: #1F8A5B;
  --photo: #F0F0EE;
  --radius: 0;
  --radius-s: 0;
  --shadow: none;
  --titre: "Saira Semi Condensed", "Arial Narrow", sans-serif;
  --texte: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chiffres: "Hanken Grotesk", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--texte);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.05; margin: 0; }
p { margin: 0 0 14px; }
.masque {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}

/* ================================================================
   Écrans de compte (connexion, mot de passe, compte) : layout.tsx
   Une carte centrée sous le logo.
   ================================================================ */
body.compte-ecran { display: flex; flex-direction: column; align-items: center; padding: 32px 16px 48px; }
.marque { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.marque img { width: 64px; height: 64px; border-radius: 0; }
body.compte-ecran > main {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--line); border-radius: 0;
  box-shadow: var(--shadow); padding: 28px 22px;
}
body.compte-ecran h1 { font-size: 24px; margin-bottom: 8px; }
.aide { color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 18px 0 6px; }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], select {
  width: 100%; font: inherit; font-size: 16px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--card); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
button, .bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 22px; width: 100%; font: inherit; font-family: var(--titre); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--accent); border-radius: 0;
  background: var(--accent); color: #fff; cursor: pointer; text-decoration: none;
  transition: background-color .15s;
}
button:hover, .bouton:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
button.secondaire { background: var(--card); color: var(--ink); border-color: var(--line); }
button.secondaire:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.message { padding: 12px 14px; margin: 16px 0 0; font-size: 14px; border-radius: 0; border: 1px solid; }
.message.erreur { border-color: #E9C9C9; color: var(--danger); background: #FBEFEF; }
.message.ok { border-color: #C6E5D5; color: var(--ok); background: #EEF8F2; }
.liens { margin-top: 20px; font-size: 14px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 500; }

/* ================================================================
   Gabarit boutique et administration : boutique.tsx
   ================================================================ */
body.boutique { display: block; }

/* ---- En-tête : logo, puis Vending et menu du compte. Collé en haut. ---- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.entete-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1320px; margin: 0 auto; padding: 10px 14px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { width: 40px; height: 40px; border-radius: 0; }
.logo span { display: none; color: var(--muted); font-size: 13px; line-height: 1.3; max-width: 22ch; }
.actions { display: flex; align-items: center; gap: 8px; }
.icone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-width: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 0; background: var(--card);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer;
}
.icone:hover { border-color: var(--ink); color: var(--ink); }
.icone svg { width: 18px; height: 18px; flex: 0 0 auto; }
.icone .libelle { display: none; }

/* Menu du compte : <details>, sans JavaScript. */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--ink); }
.menu-liste {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 220px; padding: 6px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow);
}
.menu-liste a, .menu-liste button {
  display: block; width: 100%; margin: 0; padding: 11px 12px; border: 0; border-radius: 0;
  background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer;
}
.menu-liste a:hover, .menu-liste button:hover { background: var(--paper); color: var(--ink); }
.menu-liste form { margin: 0; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.menu-liste .qui { padding: 8px 12px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }

main.page { max-width: 1320px; margin: 0 auto; padding: 16px 14px 56px; }

/* ---- Sports : pastilles, défilement horizontal au doigt ---- */
.defilant {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px;
}
.defilant::-webkit-scrollbar { display: none; }
.u-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 0;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: border-color .15s;
}
.u-btn:hover { border-color: var(--ink); color: var(--ink); }
.u-btn[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Recherche ---- */
.recherche { position: relative; margin: 12px 0 10px; }
.recherche svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.recherche input[type="search"] { padding: 12px 104px 12px 14px; border-radius: 0; background: var(--card); }
.recherche svg ~ input[type="search"] { padding-left: 40px; }
.recherche button {
  position: absolute; right: 5px; top: 5px; bottom: 5px; width: auto; margin: 0;
  padding: 0 14px; font-size: 14px; border-radius: 0;
}

/* ---- Boutique : sports et recherche sur une seule ligne (05/11/2026) ----
   Téléphone : les boutons de sport, puis le champ pleine largeur dessous, loupe à droite. */
.ligne-sports { display: flex; flex-direction: column; gap: 10px; margin: 0 0 10px; }
.ligne-sports .defilant { min-width: 0; }
.recherche-ligne { display: flex; align-items: stretch; gap: 6px; margin: 0; min-width: 0; }
.recherche-ligne input[type="search"] { flex: 1 1 auto; min-width: 0; width: 100%; margin: 0; padding: 9px 14px; font-size: 14px; border-radius: 0; background: var(--card); }
.recherche-ligne button {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; margin: 0; padding: 0; border-radius: 0;
}
.recherche-ligne button svg { width: 18px; height: 18px; }

/* ---- Familles : puces ---- */
.familles { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.t-btn {
  flex: 0 0 auto; padding: 6px 12px; border: 1px solid transparent; border-radius: 0;
  color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.t-btn:hover { color: var(--ink); background: var(--card); }
.t-btn[aria-current="page"] { color: var(--accent); background: var(--card); border-color: var(--line); font-weight: 600; }

.compteur { color: var(--muted); font-size: 13px; margin: 14px 0 12px; }
.compteur strong { color: var(--ink); font-weight: 600; }
body.boutique .message { margin: 14px 0 0; }

/* ---- Grille de cartes : 2 colonnes au téléphone ---- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.product:hover { border-color: var(--accent); color: var(--ink); }
.thumb {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: 0; background: var(--photo);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--titre); font-weight: 700; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
}
.p-name { font-weight: 600; font-size: 13px; line-height: 1.25; padding: 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-ref { font-size: 11.5px; color: var(--muted); padding: 0 2px; }
.badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.new-badge, .oos-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 7px; border-radius: 0; color: #fff;
}
.new-badge { background: var(--amber); }
.oos-badge { background: var(--danger); margin-left: auto; }
.product.oos .thumb { filter: grayscale(60%); opacity: .7; }

/* Prix : TTC en avant, HT dessous, en chiffres à chasse fixe. */
.prix { margin: auto 0 0; padding: 4px 2px 0; }
.prix .ttc { display: block; font-family: var(--chiffres); font-weight: 600; font-size: 15px; }
.prix .des { font-family: var(--texte); font-size: 12px; font-weight: 500; color: var(--muted); }
.prix .ht { display: block; font-family: var(--chiffres); font-size: 11.5px; color: var(--muted); }
.prix.absent { font-size: 12px; color: var(--muted); }

.vide {
  background: var(--card); border: 1px solid var(--line); border-radius: 0;
  box-shadow: var(--shadow); padding: 32px 22px; text-align: center; max-width: 520px; margin: 24px auto;
}
.vide h1 { font-size: 22px; margin-bottom: 10px; }
.vide .bouton { width: auto; margin-top: 8px; }

/* ================================================================
   Fiche produit
   ================================================================ */
.fil { margin: 0 0 12px; font-size: 14px; }
.fil a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; }
.fil a:hover { color: var(--ink); }
.fil svg { width: 16px; height: 16px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

/* Galerie : bande à faire glisser au doigt, une photo par écran. Les
   vignettes sont des ancres vers chaque photo (aucun script). */
.galerie { min-width: 0; }
.bande {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; border-radius: 0; background: var(--photo); scroll-behavior: smooth;
}
.bande::-webkit-scrollbar { display: none; }
.vue { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.vue img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.vue .ph { border-radius: 0; font-size: 56px; }
.vignettes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.vignettes a { flex: 0 0 56px; height: 56px; border: 1px solid var(--line); border-radius: 0; background: var(--photo); overflow: hidden; }
.vignettes a:hover { border-color: var(--accent); }
.vignettes img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.nb-photos { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.infos { min-width: 0; }
.d-name { font-size: 24px; margin: 0 0 4px; }
.d-sub { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 0; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.badge.nouveau { background: var(--amber); border-color: var(--amber); color: #fff; }

/* Bloc prix de la fiche. */
.achat { background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 16px; }
.achat .prix { padding: 0; margin: 0; }
.achat .prix .ttc { font-size: 26px; font-weight: 600; }
.achat .prix .ht { font-size: 14px; margin-top: 2px; }
.achat .aide { margin: 8px 0 0; font-size: 13px; }

.bloc { margin-top: 22px; }
.bloc > h2 { font-family: var(--texte); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }

/* Variantes : une ligne par taille, grip ou jauge. */
.variantes { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.variante { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 14px; }
.variante + .variante { border-top: 1px solid var(--line); }
.variante .valeur { font-weight: 600; font-size: 14px; }
.variante .sku { grid-column: 1; font-family: var(--chiffres); font-size: 11.5px; color: var(--muted); }
.variante .tarif { grid-row: 1; grid-column: 2; text-align: right; font-family: var(--chiffres); font-weight: 600; font-size: 14px; }
.variante .tarif small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.variante .dispo { grid-column: 2; text-align: right; font-size: 12px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.variante .dispo::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.variante.epuise .valeur, .variante.epuise .tarif { color: var(--muted); }
.variante.epuise .dispo { color: var(--danger); }
.stock-seul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 2px 0; font-size: 13px; }
.stock-seul .dispo { font-weight: 600; color: var(--ok); }
.stock-seul .dispo::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.stock-seul.epuise .dispo { color: var(--danger); }
.stock-seul .sku { font-family: var(--chiffres); font-size: 12px; color: var(--muted); }

.d-specs { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; gap: 10px 18px; }
.d-specs dt { font-size: 13px; }
.d-specs dd { font-size: 13px; font-weight: 600; }

.d-desc { font-size: 14.5px; line-height: 1.65; max-width: 70ch; }
.d-desc h3, .d-desc h4 { font-family: var(--titre); font-weight: 700; font-size: 15px; letter-spacing: -.01em; margin: 18px 0 6px; }
.d-desc > :first-child { margin-top: 0; }
.d-desc p { margin: 0 0 12px; }
.d-desc ul, .d-desc ol { margin: 0 0 12px; padding-left: 0; list-style: none; }
.d-desc li { position: relative; padding: 4px 0 4px 18px; }
.d-desc li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.d-desc table { border-collapse: collapse; width: 100%; font-size: 13px; }
.d-desc td, .d-desc th { border-bottom: 1px solid var(--line); padding: 6px 12px 6px 0; text-align: left; }

/* ================================================================
   Administration : admin.tsx (même gabarit que la boutique)
   ================================================================ */
.titre-admin { font-size: 26px; margin: 4px 0 6px; }
.bandeau-maintenance { margin: 0; padding: 8px 16px; background: #FFF4D6; color: #6B4E00; border-bottom: 1px solid #EBD79A; font-size: 14px; text-align: center; }
.bandeau-maintenance a { color: inherit; font-weight: 600; }
body.maintenance { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 32px 20px; text-align: center; }
body.maintenance main { max-width: 460px; }
body.maintenance h1 { font-size: 28px; margin: 18px 0 10px; }
body.maintenance .texte-maintenance { font-size: 17px; line-height: 1.5; margin: 0 0 22px; white-space: pre-line; }
body.maintenance .signature-maintenance { color: var(--muted); font-size: 14px; margin: 0; }
.filtres-admin { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; }
.filtres-admin input[type="search"] { flex: 1 1 220px; min-width: 0; }
.filtres-admin select { flex: 0 1 180px; }
.filtres-admin label.case { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; }
.filtres-admin label.case input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
table.catalogue-admin { min-width: 760px; }
table.catalogue-admin .coche { width: 36px; text-align: center; }
table.catalogue-admin .coche input { width: 18px; height: 18px; accent-color: var(--accent); }
.barre-lot { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 14px; }
.filtres-admin button, .barre-lot button { width: auto; min-width: 120px; padding-left: 22px; padding-right: 22px; }
.compteur-lot { font-size: 14px; color: var(--muted); }
button.secondaire { width: auto; margin-top: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
button.secondaire:disabled { opacity: .5; cursor: not-allowed; }
.barre-lot label { font-size: 14px; font-weight: 600; margin: 0; }
.barre-lot select { flex: 0 1 280px; }
.pagination { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 22px 0 8px; font-size: 14px; }
.photos-admin { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 8px 0 0; }
.photos-admin li { position: relative; }
.photos-admin img { display: block; border: 1px solid var(--line); border-radius: 0; object-fit: cover; background: var(--card); }
.photos-admin .etiquette { position: absolute; left: 4px; bottom: 4px; }
.reglages textarea, form.droits textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; margin: 6px 0 4px; }
.reglages { display: grid; gap: 18px; margin-top: 16px; }
.grille-coef { display: grid; grid-template-columns: 1fr 110px; gap: 8px 12px; align-items: center; }
.grille-coef label { margin: 0; font-weight: 500; font-size: 14px; }
.grille-coef input { text-align: right; font-family: var(--chiffres); }
.defile.interne { box-shadow: none; margin-top: 10px; }
table.paliers { min-width: 0; }
table.paliers th[scope="row"] { width: 52px; font-size: 13px; background: none; color: var(--muted); }
table.paliers input { width: 100%; text-align: right; font-family: var(--chiffres); }
.reglages textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; margin: 6px 0 14px; }
.reglages-journal { margin-top: 28px; }
.reglages-journal h2 { font-size: 17px; }
.outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.outils .compteur { margin: 0; }
.defile { overflow-x: auto; margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); }
table.comptes { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.comptes th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAF7; }
table.comptes td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.comptes tr:last-child td { border-bottom: 0; }
table.comptes td a { font-weight: 600; text-decoration: none; }
table.comptes .nombre { text-align: right; font-family: var(--chiffres); }
table.comptes .date, .journal .date { font-family: var(--chiffres); font-size: 12px; white-space: nowrap; }
table.comptes tr.suspendu td { color: var(--muted); }
.sous-ligne { display: block; color: var(--muted); font-size: 13px; }
.etiquette { display: inline-block; margin: 6px 6px 0 0; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 0; background: var(--ink); color: #fff; }
.etiquette.discrete { background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
/* Catalogue (administration), refonte étape 1 : pastilles d'état et de marge.
   Toujours accompagnées d'un libellé en texte : la couleur seule ne suffit pas. */
.pastille { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px 2px 8px; font-size: 12px; font-weight: 600; line-height: 1.4; border: 1px solid; border-radius: 0; white-space: nowrap; }
.pastille.vert, .pastille.marge-vert { background: #EEF8F2; border-color: #C6E5D5; color: #14633F; }
.pastille.bleu { background: #EAF0FB; border-color: #C5D4F0; color: #1F4E9C; }
.pastille.gris { background: var(--photo); border-color: var(--line); color: var(--muted); }
.pastille.orange, .pastille.marge-orange { background: #FDF1E3; border-color: #F0D3A8; color: #8A4B00; }
.pastille.barre { background: var(--photo); border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.pastille.violet { background: #F2ECFA; border-color: #D9C9EE; color: #5B2F91; }
.pastille.marge-rouge { background: #FBEFEF; border-color: #E9C9C9; color: #8E2A2A; }
.legende { margin-top: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); }
.legende h2 { font-size: 15px; margin-bottom: 8px; }
.legende ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.legende .aide { margin: 0; font-size: 13px; }
.etats { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.etats .sous-ligne { display: inline; margin-left: 6px; }
/* Onglets par sport et sections par type. */
.onglets { margin-top: 14px; border-bottom: 1px solid var(--line); }
.onglets ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; }
.onglets a { display: block; padding: 10px 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.onglets a[aria-current="page"] { background: var(--card); border-color: var(--line); border-bottom: 1px solid var(--card); color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.nb { font-family: var(--chiffres); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
details.section-type { margin-top: 14px; }
details.section-type > summary, details.rubriques > summary { cursor: pointer; font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: 16px; padding: 6px 0; }
details.rubriques { margin-top: 14px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); }
details.rubriques > summary { font-size: 15px; }
details.rubriques form { margin: 0; }
details.rubriques button.secondaire { margin-top: 0; }
th.coche-vide { width: 36px; }
.vignette-cellule { width: 60px; padding-right: 0; }
.vignette { display: block; width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--line); background: var(--photo); }
.vignette.vide { background: var(--photo) repeating-linear-gradient(45deg, transparent 0 6px, #E4E4E1 6px 7px); }
.admin-compte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 16px; }
form.droits, .infos-compte { background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 20px 18px 22px; }
form.droits h2, .infos-compte h2 { font-size: 17px; margin: 0 0 6px; }
.infos-compte h2:not(:first-child) { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
form.droits fieldset { border: 0; padding: 0; margin: 20px 0 0; }
form.droits legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 6px; }
form.droits .aide { margin: 4px 0 6px; font-size: 13px; }
form.droits label.case { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-weight: 500; font-size: 15px; }
form.droits label.case input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.journal { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.journal li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.journal li:last-child { border-bottom: 0; }

/* ================================================================
   Panier : mini-panier de l'en-tête, ajout depuis la fiche, page du panier
   (boutique.tsx, panier.tsx)
   ================================================================ */
.icone.panier { position: relative; }
.pastille {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0; background: var(--accent); color: #fff;
  font-family: var(--chiffres); font-size: 11px; font-weight: 600; line-height: 1;
}
.icone .libelle.total { font-family: var(--chiffres); font-weight: 600; }

/* Ajout au panier : quantité + bouton sur une ligne. */
.ajout { display: flex; align-items: stretch; gap: 8px; margin: 12px 0 0; }
.ajout input[type="number"] { flex: 0 0 84px; width: 84px; text-align: center; }
.ajout button { flex: 1 1 auto; margin: 0; width: auto; padding: 11px 14px; }
.variante .ajout { grid-column: 1 / -1; margin-top: 10px; }
.achat .ajout { margin-top: 14px; }
input[type="number"] {
  font: inherit; font-size: 16px; font-family: var(--chiffres);
  padding: 11px 8px; border: 1px solid var(--line); border-radius: 0;
  background: var(--card); color: var(--ink);
}
input[type="number"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
button.lien {
  background: none; border: 0; padding: 6px 4px; margin: 0; width: auto;
  color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: underline; cursor: pointer;
}
button.lien:hover { background: none; color: var(--danger); }

body.boutique .fil + .message { margin: 0 0 14px; }
.titre-page { font-size: 26px; margin: 4px 0 8px; }
.lignes-panier { list-style: none; margin: 16px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.lp {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  padding: 14px;
}
.lp + .lp { border-top: 1px solid var(--line); }
.lp-photo { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 0; background: var(--photo); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lp-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lp-photo .ph { font-size: 18px; border-radius: 0; width: 100%; height: 100%; }
.lp-infos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-nom { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.lp-nom:hover { color: var(--accent); }
.lp-option { font-size: 13px; }
.lp-ref { font-family: var(--chiffres); font-size: 11.5px; color: var(--muted); }
.lp-cond { font-size: 12px; color: var(--muted); }
.lp-alerte { font-size: 12.5px; font-weight: 600; color: var(--danger); margin-top: 4px; }
.lp.bloquee { background: #FBF4F4; }
.lp.bloquee .lp-nom { color: var(--muted); }
.lp-prix { grid-column: 2; margin: 0; font-family: var(--chiffres); font-size: 13px; font-weight: 600; }
.lp-prix small { display: block; font-family: var(--texte); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.lp-qte { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lp-qte label { margin: 0; }
.lp-qte input[type="number"] { flex: 0 0 76px; width: 76px; text-align: center; padding: 8px 6px; }
.lp-qte button.secondaire { margin: 0; width: auto; padding: 9px 12px; font-size: 13px; }
.lp-total { grid-column: 1 / -1; margin: 6px 0 0; text-align: right; font-family: var(--chiffres); font-weight: 600; font-size: 15px; }
.lp-prix:empty, .lp-total:empty { display: none; }

.totaux-bloc { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 16px; }
.totaux { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0; font-size: 14px; }
.totaux dt { color: var(--muted); }
.totaux dd { text-align: right; padding-left: 16px; font-family: var(--chiffres); font-weight: 500; }
.totaux .grand { color: var(--ink); font-weight: 700; font-size: 17px; padding-top: 10px; border-top: 1px solid var(--line); }
.totaux dd.grand { font-weight: 700; }
.totaux-bloc .aide { margin: 12px 0 0; font-size: 12.5px; }

/* Page du panier. Grand écran (1200 px et plus) : lignes à gauche, récapitulatif
   collant à droite. En dessous : récapitulatif sous les lignes, et une barre
   fixe en bas avec le total et le bouton (voir les @media plus bas). */
.panier-grille { display: block; }
.panier-grille.avec-barre { padding-bottom: 88px; }
.lp { scroll-margin-top: 96px; }
.resume .totaux-bloc { margin-top: 16px; }
.resume > .liens { margin-top: 16px; }
.passer-commande { display: none; }
.barre-commande {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(21,32,28,.08);
}
.barre-total { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.barre-total span { font-size: 12px; color: var(--muted); }
.barre-total strong { font-family: var(--chiffres); font-size: 18px; font-weight: 600; }
.barre-commande .bouton { margin: 0; width: auto; flex: 1 1 auto; max-width: 320px; }
/* Avec le script du panier (panier-js.ts), la quantité s'enregistre à la saisie :
   le bouton « Mettre à jour » n'a plus lieu d'être. Sans script, il reste. */
.js .lp-qte button.secondaire { display: none; }
.lp-qte.enregistrement input { opacity: .55; }

/* ================================================================
   Commande : formulaire, récapitulatif, bon de commande (commande.tsx)
   ================================================================ */
.passer-commande { margin: 16px 0 0; }
.passer-commande .bouton { margin-top: 0; }
.bloc-commande { margin-top: 22px; }
.bloc-commande > h2, .formulaire > h2 { font-size: 18px; margin: 0 0 10px; }
.recap { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.recap li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; }
.recap li + li { border-top: 1px solid var(--line); }
.recap-nom { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 14px; }
.recap-nom .lp-option { font-weight: 400; }
.recap-qte { font-family: var(--chiffres); font-size: 13px; color: var(--muted); }
.recap-total { text-align: right; font-family: var(--chiffres); font-weight: 600; font-size: 14px; }
.formulaire { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 18px 16px 22px; }
.champs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.champ label { margin-top: 14px; }
.champ .facultatif { font-weight: 400; color: var(--muted); }
.champ input[type="tel"], .champ textarea {
  width: 100%; font: inherit; font-size: 16px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--card); color: var(--ink);
}
.champ textarea { resize: vertical; min-height: 84px; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.champ.invalide input, .champ.invalide textarea { border-color: var(--danger); }
.case-cgv { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-weight: 400; font-size: 14px; line-height: 1.45; }
.case-cgv input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.acceptation-cgv { margin: 8px 0 0; }
.erreur-champ { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.formulaire > .aide { margin: 16px 0 0; }
.meta-commande { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.statut { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 0; background: var(--ink); color: #fff; }
.statut-nouvelle { background: var(--amber); }
.statut-validee { background: var(--ok); }
.statut-annulee { background: var(--danger); }
.adresse { display: flex; flex-direction: column; gap: 2px; font-style: normal; font-size: 14px; }
.note-commande strong { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.note-commande { margin: 8px 0 0; padding: 10px 12px; background: var(--paper); border-radius: 0; font-size: 14px; white-space: pre-line; }
.aide-champ { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
.champ input[readonly] { background: var(--paper); color: var(--muted); }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.onglets a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--ink); font-size: 14px; text-decoration: none; }
.onglets a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.onglets .n { font-family: var(--chiffres); font-size: 12px; opacity: .8; }
.action-commande { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; max-width: 520px; }
.action-commande label { font-size: 13px; font-weight: 600; }
.action-commande textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; font: inherit; resize: vertical; min-height: 84px; background: var(--card); color: var(--ink); }
.action-commande textarea[aria-invalid="true"] { border-color: var(--danger); }
.action-commande button { width: auto; align-self: flex-start; }
.action-commande .aide { margin: 0; }
table.mes-commandes td.nombre, table.mes-commandes th.nombre { text-align: right; }

/* ================================================================
   Tablette (680 px et plus)
   ================================================================ */
@media (min-width: 680px) {
  body { font-size: 15px; }
  .entete-in { padding: 12px 24px; }
  .logo img { width: 48px; height: 48px; }
  .logo span { display: block; }
  .icone .libelle { display: inline; }
  main.page { padding: 24px 24px 64px; }
  .defilant { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .u-btn { padding: 10px 18px; font-size: 15px; }
  .recherche { max-width: 560px; }
  .ligne-sports { flex-direction: row; align-items: stretch; gap: 12px; }
  .ligne-sports .defilant { flex: 0 1 auto; }
  .recherche-ligne { flex: 1 1 240px; min-width: 200px; max-width: 520px; }
  .recherche-ligne input[type="search"] { padding: 10px 14px; font-size: 15px; }
  .recherche-ligne button { width: 46px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .product { padding: 14px; gap: 8px; border-radius: 0; }
  .product:hover { transform: translateY(-2px); }
  .thumb { aspect-ratio: auto; height: 160px; border-radius: 0; }
  .p-name { font-size: 14px; }
  .p-ref { font-size: 12px; }
  .badges { top: 20px; left: 20px; right: 20px; }
  .prix .ttc { font-size: 16px; }
  .prix .ht { font-size: 12px; }
  .admin-compte { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .titre-admin { font-size: 30px; }
  .reglages { grid-template-columns: 1fr 1fr; align-items: start; }
  .titre-page { font-size: 30px; }
  .lp { grid-template-columns: 80px minmax(0, 1fr) 150px 250px 130px; gap: 12px 16px; align-items: center; padding: 16px 18px; }
  .lp-photo { grid-row: auto; width: 80px; height: 80px; }
  .lp-prix, .lp-total:empty, .lp-prix:empty { display: block; }
  .lp-prix { grid-column: auto; }
  .lp-qte { grid-column: auto; margin-top: 0; flex-wrap: wrap; justify-content: flex-end; }
  .lp-total { grid-column: auto; margin: 0; font-size: 16px; }
  .totaux-bloc { margin-left: auto; max-width: 420px; }
  /* « Confirmer la commande » : même largeur et même côté que le bloc des totaux. */
  .formulaire > button[type="submit"] { display: flex; margin-left: auto; max-width: 420px; }
  .barre-commande { padding-left: 24px; padding-right: 24px; }
  /* Ajout au panier : bouton de taille normale, aligné sous le prix pour une variante. */
  .ajout { justify-content: flex-start; }
  .ajout button { flex: 0 0 auto; padding: 11px 26px; }
  .variante .ajout { justify-content: flex-end; }
  .champs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formulaire { padding: 22px 24px 26px; }
  .recap li { grid-template-columns: minmax(0, 1fr) 160px 130px; align-items: baseline; }
  .recap-nom { grid-column: auto; }
  .recap-qte { text-align: right; }
}

/* ================================================================
   Ordinateur (1000 px et plus) : fiche en deux colonnes, galerie
   collée pendant la lecture de la colonne d'informations.
   ================================================================ */
@media (min-width: 1000px) {
  main.page { padding: 28px 40px 72px; }
  .entete-in { padding: 12px 40px; }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .galerie { position: sticky; top: 96px; }
  .vignettes a { flex-basis: 64px; height: 64px; }
  .d-name { font-size: 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* Panier en deux colonnes : le récapitulatif reste à l'écran pendant le défilement. */
@media (min-width: 1200px) {
  .panier-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .panier-grille.avec-barre { padding-bottom: 0; }
  .resume { position: sticky; top: 96px; margin-top: 16px; }
  .resume .totaux-bloc { margin: 0; max-width: none; }
  .passer-commande { display: block; margin: 12px 0 0; }
  .barre-commande { display: none; }
  .panier-grille .lp { grid-template-columns: 72px minmax(0, 1fr) 100px 170px 124px; gap: 8px 12px; padding: 14px 16px; }
  .panier-grille .lp-total { white-space: nowrap; }
  .panier-grille .lp-photo { width: 72px; height: 72px; }
}

.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.chiffres > div { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.chiffres > div.alerte { border-color: #E9C9C9; background: #FBEFEF; }
.chiffres dt { font-size: 13px; color: var(--muted); }
.chiffres dd { margin: 4px 0 0; font-size: 26px; font-weight: 700; }
.bloc-photos { margin-top: 28px; }
.bloc-photos h2 { font-size: 18px; margin: 0 0 6px; }
.bloc-photos textarea { width: 100%; font: 14px/1.4 var(--mono, monospace); padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; margin: 6px 0 10px; }
.resultats-photos { list-style: none; padding: 0; margin: 12px 0; font-size: 14px; }
.resultats-photos li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.resultats-photos li.ok .etiquette { background: #EEF8F2; color: var(--ok); }
.resultats-photos li.ko .etiquette { background: #FBEFEF; color: var(--danger); }
.photos-gestion { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photos-gestion li { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 12px; }
.photos-gestion li.masquee img { opacity: .45; }
.photos-gestion img { display: block; width: 100%; height: 160px; object-fit: contain; background: #fff; border-radius: 0; }
.actions-photo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.actions-photo button { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; }
.actions-photo select { max-width: 100%; }
@media (min-width: 720px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (hover: none) { .product:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
form.suppression { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
form.suppression input { width: 100%; margin: 6px 0 10px; }
button.danger { background: var(--danger); border-color: var(--danger); }
button.danger:hover { background: #8C2323; border-color: #8C2323; }
/* ================================================================
   Administration : menu latéral et boutons compacts
   ================================================================ */
.admin-cadre { display: block; }
.admin-nav { background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 14px; display: flex; gap: 4px 18px; overflow-x: auto; white-space: nowrap; }
.admin-groupe ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.admin-groupe-titre { display: none; margin: 0 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.admin-nav a { display: block; padding: 8px 12px; border-radius: 0; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.admin-nav a:hover { background: var(--paper); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
/* Boutons d'administration : taille normale d'un outil, pas d'un appel à l'action. */
.admin-cadre button, .admin-cadre .bouton { width: auto; margin-top: 0; padding: 7px 14px; font-size: 13px; }
.admin-cadre .formulaire > button[type="submit"], .admin-cadre form > button[type="submit"] { margin-left: 0; max-width: none; }
.admin-cadre .filtres-admin button, .admin-cadre .barre-lot button { min-width: 0; padding: 7px 14px; }
.admin-cadre button.secondaire { margin-top: 0; }
/* Le contenu part du menu, à gauche : sans margin: 0, la marge automatique de main.page le
   réduisait à la largeur de son contenu et le centrait dans la colonne. */
.admin-cadre main.page { max-width: none; margin: 0; min-width: 0; }
body.en-admin .entete-in { max-width: none; }
form.droits .champ { margin: 0; }
form.droits > button { margin-top: 16px; }
.outils .recherche { flex: 0 1 440px; min-width: 260px; }
form.droits input[type="date"] { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 0; background: var(--card); }
@media (min-width: 900px) {
  .admin-cadre { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .admin-nav { position: sticky; top: 64px; flex-direction: column; gap: 18px; overflow: visible; white-space: normal; border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100vh - 64px); padding: 22px 14px; }
  .admin-groupe ul { flex-direction: column; }
  .admin-groupe-titre { display: block; }
}

/* Ordinateur : fiches d'administration en deux colonnes (formulaire large, journal à côté),
   champs du formulaire sur deux colonnes. Sous 1000 px : une colonne, comme sur téléphone. */
@media (min-width: 1000px) {
  .admin-cadre .admin-compte { grid-template-columns: minmax(0, 780px) minmax(280px, 380px); gap: 28px; }
  form.droits.en-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; align-items: start; }
  form.droits.en-grille .champ-large, form.droits.en-grille > button, form.droits.en-grille > input[type="hidden"] { grid-column: 1 / -1; }
  form.droits.en-grille > button { justify-self: start; margin-top: 10px; }
  form.droits.en-grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  form.droits.en-grille.trois .champ-2 { grid-column: span 2; }
  form.droits.en-grille.quatre { grid-template-columns: 170px 110px minmax(0, 1fr) 110px; align-items: end; }
  form.droits.en-grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  form.droits.en-grille > p { grid-column: 1 / -1; margin: 6px 0 0; }
  main.page > form.droits:not(.en-grille) { max-width: 760px; }
}
/* Titres de section d'une page d'administration : de l'air au-dessus, rapprochés de leur bloc. */
.admin-cadre main.page > h2 { margin: 30px 0 10px; font-size: 18px; }


/* Outils occasionnels : repliés tant qu'on n'y est pas. */
.admin-rares summary { cursor: pointer; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); list-style: none; }
.admin-rares summary::-webkit-details-marker { display: none; }
.admin-rares summary::before { content: '+ '; }
.admin-rares[open] summary::before { content: '- '; }
.admin-rares ul { display: flex; }
@media (min-width: 900px) { .admin-rares { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; } }

/* ---- Espace Vending (26/10/2026) ---- */
.titre-page { font-size: 28px; margin: 8px 0 6px; }
.outils-admin { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 12px 0; padding: 10px 14px; border: 1px solid var(--line); background: var(--photo); font-size: 14px; }
.outils-admin a { font-weight: 600; }
.bandeau-demo { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--amber); background: #FFF7E8; font-size: 14px; }
.filtres-vending { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 16px 0 8px; }
.filtres-vending label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filtres-vending select { min-width: 200px; padding: 8px 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); }
.periodes { display: flex; gap: 0; margin: 12px 0 4px; }
.periodes a { padding: 8px 16px; border: 1px solid var(--line); margin-right: -1px; color: var(--ink); text-decoration: none; font-family: var(--titre); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.periodes a[aria-current=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.indicateur { border: 1px solid var(--line); padding: 14px 16px; background: var(--paper); }
.ind-titre { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--titre); }
.ind-valeur { margin: 4px 0; font-size: 30px; font-family: var(--chiffres); font-weight: 600; }
.ecart { font-size: 13px; color: var(--muted); }
.ecart.haut { color: var(--ok); }
.ecart.bas { color: var(--danger); }
.graphe { width: 100%; height: auto; display: block; }
.graphe .barre { fill: #8FAAD0; }
.graphe .barre-max { fill: #3F6AA8; }
.graphe .barre:hover { fill: var(--amber); }
.graphe .grille { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.graphe .axe { stroke: #B9B9B4; stroke-width: 1; }
.graphe .moyenne { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 6 4; }
.graphe .etiquette-moyenne { font: 600 11px var(--texte); fill: #8A5A0F; }
.graphe .etiquette-axe { font: 11px var(--texte); fill: var(--muted); }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.deux-colonnes table.comptes { min-width: 0; }
.filtres-vending button { width: auto; padding: 9px 22px; }
.titre-page ~ h2, .deux-colonnes h2 { margin-top: 32px; }


/* ---- Spires du distributeur (26/10/2026) ---- */
.sp-machine { border: 1px solid var(--ink); background: var(--soft); padding: 14px; margin: 12px 0 24px; overflow-x: auto; }
.sp-plateau { display: grid; grid-template-columns: 84px repeat(8, minmax(0, 1fr)); gap: 6px; padding: 10px 0; border-bottom: 2px solid var(--ink); min-width: 640px; }
.sp-plateau:last-child { border-bottom: 0; }
.sp-plateau-nom { font-family: var(--titre); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-size: 13px; align-self: center; }
.sp-plateau-nom small { display: block; font-family: var(--texte); text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 11.5px; }
.sp-machine .sp-spire { width: 100%; height: 100px; text-align: left; justify-self: stretch; align-self: start; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 7px 6px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; font-size: 12px; line-height: 1.25; }
.sp-machine .sp-spire:hover { border-color: var(--ink); }
.sp-spire:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.sp-machine .sp-spire.sp-vide { border-style: dashed; background: transparent; color: var(--muted); }
.sp-num { font-family: var(--titre); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.sp-corps { display: flex; flex-direction: column; }
.sp-prod { font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.sp-spire.sp-vide .sp-prod { font-weight: 400; }
.sp-prix { color: var(--muted); margin-top: 2px; }
a.bouton.secondaire, .bouton.secondaire { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
a.bouton.secondaire:hover, .bouton.secondaire:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.actions-spire { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
@media (max-width: 720px) {
  .sp-machine { padding: 8px; }
  .sp-plateau { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; min-width: 0; }
  .sp-plateau-nom { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .sp-plateau-nom small { display: inline; }
}


/* ---- configurateur Vending ---- */
.cf-barre { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0 16px; }
.cf-barre label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cf-barre input, .cf-barre select { min-width: 0; }
.cf-barre .cf-titre { width: 260px; max-width: 100%; }
.cf-barre select { max-width: 340px; }
.cf-barre .cf-court { width: 90px; }
.cf-etat { font-size: 13px; color: var(--muted); margin: 0 0 8px; min-height: 20px; }
.cf-etat.sale { color: var(--danger); font-weight: 600; }
.cf-etat.propre { color: var(--ok); }
.cf-atelier { display: grid; grid-template-columns: minmax(0, 660px) 300px; justify-content: start; gap: 20px; align-items: start; }
@media (max-width: 960px) { .cf-atelier { grid-template-columns: minmax(0, 1fr); } }
.cf-plan { background: #fff; border: 1px solid var(--line); padding: 12px; overflow-x: auto; }
.cf-bloc { margin: 0 0 12px; }
.cf-bloc-tete { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 4px; font-size: 12px; }
.cf-bloc-tete strong { font-family: var(--titre); text-transform: uppercase; letter-spacing: .04em; }
.cf-bloc-tete input[type=text], .cf-bloc-tete input[type=number] { padding: 3px 6px; font-size: 12px; }
.cf-bloc-tete input.cf-depart { width: 64px; }
.cf-bloc-tete input.cf-libelle { width: 220px; max-width: 100%; }
.cf-petit, button.cf-petit { min-height: 0; width: auto; padding: 3px 8px; font-size: 11px; line-height: 1.2; border: 1px solid var(--ink); background: #fff; color: var(--ink); text-transform: uppercase; font-family: var(--titre); letter-spacing: .04em; cursor: pointer; }
.cf-petit:hover { background: var(--ink); color: #fff; }
.cf-petit:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); }
.cf-grille { display: grid; gap: 3px; min-width: 560px; }
.cf-cell, button.cf-cell, button.cf-cell:hover { border: 2px solid var(--line); min-height: 78px; width: auto; padding: 5px 6px; font-family: var(--texte); font-size: 12px; font-weight: 400; line-height: 1.25; text-align: left; text-transform: none; letter-spacing: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; background: #fff; color: var(--ink); cursor: pointer; border-radius: 0; box-shadow: none; }
.cf-cell:hover { outline: 2px solid var(--ink); }
.cf-cell.choisie { outline: 3px solid var(--ink); outline-offset: 1px; }
.cf-cell .cf-sel { font-size: 10px; font-family: var(--chiffres); opacity: .75; }
.cf-cell .cf-nom { font-weight: 700; overflow-wrap: anywhere; }
.cf-cell .cf-prix { font-family: var(--chiffres); }
.cf-cell .cf-meta { font-size: 10px; opacity: .8; }
.cf-cell.cf-vide, button.cf-cell.cf-vide, button.cf-cell.cf-vide:hover { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f1f0ea 6px, #f1f0ea 12px); border-style: dashed; border-color: #b9b7ad; color: var(--muted); }
.cf-reste { grid-column: span 1; background: #fbefef; border: 1px dashed var(--danger); }
.cf-section { background: var(--ink); color: #fff; font-family: var(--titre); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; font-weight: 700; }
.cf-paroi { border-top: 4px solid #9b988c; border-bottom: 1px solid #9b988c; text-align: center; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 3px 0; }
.cf-ajouts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cf-panneau { background: #fff; border: 1px solid var(--line); padding: 14px; position: sticky; top: 12px; }
.cf-panneau h2 { margin: 0 0 8px; font-size: 16px; }
.cf-panneau label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 3px; }
.cf-panneau input, .cf-panneau select { width: 100%; min-width: 0; }
.cf-panneau .cf-rang { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cf-pastilles { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-pastille, button.cf-pastille { width: 26px; height: 26px; min-height: 0; border: 2px solid; padding: 0; cursor: pointer; border-radius: 0; }
.cf-pastille.choisie { outline: 3px solid var(--ink); outline-offset: 1px; }
.cf-commentaires { width: 100%; min-height: 90px; margin-top: 4px; }
.cf-lecture .cf-cell { cursor: default; }
.cf-lecture .cf-cell:hover { outline: 0; }
.cf-n2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cf-n3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cf-n4 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.cf-n5 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.cf-n6 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cf-n7 { grid-template-columns: repeat(14, minmax(0, 1fr)); }
.cf-n8 { grid-template-columns: repeat(16, minmax(0, 1fr)); }
.cf-n9 { grid-template-columns: repeat(18, minmax(0, 1fr)); }
.cf-n10 { grid-template-columns: repeat(20, minmax(0, 1fr)); }
.cf-n11 { grid-template-columns: repeat(22, minmax(0, 1fr)); }
.cf-n12 { grid-template-columns: repeat(24, minmax(0, 1fr)); }
.cf-s1 { grid-column: span 1; }
.cf-s2 { grid-column: span 2; }
.cf-s3 { grid-column: span 3; }
.cf-s4 { grid-column: span 4; }
.cf-s5 { grid-column: span 5; }
.cf-s6 { grid-column: span 6; }
.cf-s7 { grid-column: span 7; }
.cf-s8 { grid-column: span 8; }
.cf-s9 { grid-column: span 9; }
.cf-s10 { grid-column: span 10; }
.cf-s11 { grid-column: span 11; }
.cf-s12 { grid-column: span 12; }
.cf-s13 { grid-column: span 13; }
.cf-s14 { grid-column: span 14; }
.cf-s15 { grid-column: span 15; }
.cf-s16 { grid-column: span 16; }
.cf-s17 { grid-column: span 17; }
.cf-s18 { grid-column: span 18; }
.cf-s19 { grid-column: span 19; }
.cf-s20 { grid-column: span 20; }
.cf-s21 { grid-column: span 21; }
.cf-s22 { grid-column: span 22; }
.cf-s23 { grid-column: span 23; }
.cf-s24 { grid-column: span 24; }
.cf-cell.cf-k-amber, .cf-cell.cf-k-amber:hover, .cf-pastille.cf-k-amber, .cf-pastille.cf-k-amber:hover { background: #fbe3a1; border-color: #8a6410; color: var(--ink); }
.cf-cell.cf-k-purple, .cf-cell.cf-k-purple:hover, .cf-pastille.cf-k-purple, .cf-pastille.cf-k-purple:hover { background: #e0d4f6; border-color: #5a3d99; color: var(--ink); }
.cf-cell.cf-k-coral, .cf-cell.cf-k-coral:hover, .cf-pastille.cf-k-coral, .cf-pastille.cf-k-coral:hover { background: #fbcdc1; border-color: #9a3a26; color: var(--ink); }
.cf-cell.cf-k-gray, .cf-cell.cf-k-gray:hover, .cf-pastille.cf-k-gray, .cf-pastille.cf-k-gray:hover { background: #e2e2e2; border-color: #555555; color: var(--ink); }
.cf-cell.cf-k-green, .cf-cell.cf-k-green:hover, .cf-pastille.cf-k-green, .cf-pastille.cf-k-green:hover { background: #cdebd1; border-color: #2d6b3a; color: var(--ink); }
.cf-cell.cf-k-teal, .cf-cell.cf-k-teal:hover, .cf-pastille.cf-k-teal, .cf-pastille.cf-k-teal:hover { background: #c2e7e4; border-color: #1f6b66; color: var(--ink); }
.cf-cell.cf-k-red, .cf-cell.cf-k-red:hover, .cf-pastille.cf-k-red, .cf-pastille.cf-k-red:hover { background: #f6c2c2; border-color: #9a2a2a; color: var(--ink); }
.cf-cell.cf-k-blue, .cf-cell.cf-k-blue:hover, .cf-pastille.cf-k-blue, .cf-pastille.cf-k-blue:hover { background: #c8dcf6; border-color: #2a5a9a; color: var(--ink); }
.cf-cell.cf-k-pink, .cf-cell.cf-k-pink:hover, .cf-pastille.cf-k-pink, .cf-pastille.cf-k-pink:hover { background: #f8d0e2; border-color: #9a2a62; color: var(--ink); }

/* ---- accueil ---- */
.ac-heros { padding: 48px 0 32px; max-width: 760px; }
.ac-sur { font-family: var(--titre); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.ac-heros h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 16px; }
.ac-heros h1 span { color: var(--muted); }
.ac-texte { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.ac-univers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 8px 0 40px; }
.ac-univers-tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ac-univers-tuile:hover { border-color: var(--ink); }
.ac-univers-tuile svg { width: 48px; height: 48px; margin-bottom: 8px; }
.ac-univers-tuile b { font-family: var(--titre); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; }
.ac-univers-tuile small { color: var(--muted); font-size: 13px; }
.ac-pied { border-top: 1px solid var(--line); padding: 20px 0 8px; font-size: 13px; color: var(--muted); }
.ac-pied nav { margin-bottom: 8px; }
.ac-pied a { color: var(--muted); }
/* ---- bibliothèque ---- */
.liste-produits { margin: 12px 0 24px; }
.ligne-produit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 6px; align-items: center; margin: 0 0 6px; }
.ligne-produit input, .ligne-produit select { width: 100%; min-width: 0; }
.ligne-entete { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .ligne-entete { display: none; } .ligne-produit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 10px; border-bottom: 1px solid var(--line); } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cache { display: none !important; }
/* ---- page de validation client ---- */
body.compte-ecran > main.val-page { max-width: 980px; padding: 24px 20px 40px; }
.val-page h1 { font-family: var(--titre); text-transform: uppercase; margin: 0 0 4px; }
.val-signature { background: #fff; border: 1px solid var(--line); padding: 16px; margin-top: 24px; max-width: 560px; }
.val-signature canvas { display: block; width: 100%; max-width: 520px; height: 160px; border: 1px dashed var(--ink); background: #fff; touch-action: none; cursor: crosshair; }
.val-signature label { display: block; font-weight: 600; margin: 12px 0 4px; }
.val-signature input[type=text] { width: 100%; max-width: 520px; }
.val-signature .cf-rang { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.val-ok { border: 1px solid #C6E5D5; background: #EEF8F2; color: var(--ok); padding: 14px; margin-top: 20px; }
.val-commentaires { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: 12px; }
.val-accord { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.liens-liste { list-style: none; padding: 0; margin: 0; }
.liens-liste li { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.lien-secret { font-family: var(--chiffres); word-break: break-all; background: #fff; border: 2px solid var(--ink); padding: 12px; margin: 10px 0; font-size: 14px; }

/* ---- codes clés ---- */
.cles-onglets { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 8px; border-bottom: 1px solid var(--line); }
.cles-onglets a { padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent; }
.cles-onglets a:hover { background: var(--paper); }
.cles-onglets a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.cles-pastille { display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid; }
.cles-ok { color: var(--ok); border-color: #C6E5D5; background: #EEF8F2; }
.cles-seuil { color: #8A5A00; border-color: #F0D9A8; background: #FFF7E8; }
.cles-rupture { color: var(--danger); border-color: #E9C9C9; background: #FBEFEF; }
.cles-nombre { font-family: var(--chiffres); font-size: 16px; }
.cles-gros { font-family: var(--titre); font-size: 28px; margin: 4px 0 8px; }
.cles-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.cles-carte { background: #fff; border: 1px solid var(--line); padding: 14px; }
.cles-carte h2 { margin: 0 0 4px; font-size: 16px; }
.cles-ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cles-ligne label { font-size: 12px; font-weight: 600; color: var(--muted); }
.cles-ligne input[type=text] { width: 90px; min-width: 0; }
.cles-ligne select { max-width: 220px; min-width: 0; }
.cles-resultat { background: #fff; border: 1px solid var(--line); padding: 14px; margin: 16px 0; }
.cles-resultat h2 { margin: 0 0 4px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cles-case { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-right: 8px; }

.cles-champ-recherche { position: relative; }
.cles-champ-recherche input[type="search"] { width: 100%; }
.cles-case { margin-top: 6px; }
table.cles-machines td:nth-child(3), table.cles-machines td:nth-child(4) { white-space: nowrap; }
table.cles-machines .cles-ligne { flex-wrap: nowrap; }
table.cles-machines .cles-ligne select { width: 220px; max-width: 220px; }
table.cles-machines button { white-space: nowrap; }
table.cles-machines select, table.cles-machines .cles-ligne { margin: 0; }

/* ---- carte des codes clés ---- */
.cles-carte-zone { width: 100%; height: 520px; border: 1px solid var(--line); background: var(--photo); margin: 12px 0; }
.cles-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 8px 0 16px; padding: 0; font-size: 13px; }
.cles-legende li { display: flex; align-items: center; gap: 6px; }
.cles-point-couleur { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.cles-legende a { color: var(--ink); text-decoration: none; }
.cles-legende a[aria-current="true"] { font-weight: 700; text-decoration: underline; }
.cles-c0 { background: #1F77B4; }
.cles-c1 { background: #E8710A; }
.cles-c2 { background: #2CA02C; }
.cles-c3 { background: #D62728; }
.cles-c4 { background: #9467BD; }
.cles-c5 { background: #8C564B; }
.cles-c6 { background: #E377C2; }
.cles-c7 { background: #17BECF; }
.cles-c8 { background: #BCBD22; }
.cles-c9 { background: #7F7F7F; }
.cles-c10 { background: #005F73; }
.cles-c11 { background: #AE2012; }
.cles-c12 { background: #6A994E; }
.cles-c13 { background: #7B2CBF; }
.cles-c14 { background: #CA6702; }
.cles-c15 { background: #0A9396; }

/* ---- statistiques ---- */
.stats-periode { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin: 12px 0 4px; }
.stats-periode form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.stats-periode label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.stats-periode input[type=date] { padding: 7px 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); }
.stats-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.stats-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 8px 28px; }
.jauge { width: 100%; min-width: 80px; height: 10px; appearance: none; -webkit-appearance: none; border: 0; background: var(--photo); display: block; }
.jauge::-webkit-progress-bar { background: var(--photo); }
.jauge::-webkit-progress-value { background: #8FAAD0; }
.jauge::-moz-progress-bar { background: #8FAAD0; }
.jauge.marge::-webkit-progress-value { background: #5FAE87; }
.jauge.marge::-moz-progress-bar { background: #5FAE87; }
.graphe .barre-marge { fill: #5FAE87; }
.graphe .barre-ca { fill: #8FAAD0; }
.stats-legende { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.stats-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: #8FAAD0; }
.stats-legende span.l-marge::before { background: #5FAE87; }
table.comptes td.barre-cellule { width: 40%; min-width: 110px; }
.stats-grille h2 { margin-top: 28px; }
.stats-periode .periodes { flex-wrap: wrap; row-gap: 6px; }
.stats-periode .periodes a { margin-bottom: 0; }
@media (max-width: 599px) { table.comptes td.barre-cellule { display: none; } }
/* ---- cloche et tableau de bord ---- */
.cloche > summary { position: relative; }
.pastille.urgent { background: #B3261E; }
.cloche .menu-liste { min-width: 280px; }
.cloche-vide { padding: 10px 12px; font-size: 14px; color: var(--muted); }
ul.a-traiter { list-style: none; margin: 0; padding: 0; }
ul.a-traiter li a { display: flex; gap: 10px; align-items: baseline; }
ul.a-traiter .nb { min-width: 28px; font-family: var(--chiffres); font-weight: 700; }
ul.a-traiter li.urgent .nb { color: #B3261E; }
section > ul.a-traiter { border: 1px solid var(--line); background: var(--card); max-width: 640px; }
section > ul.a-traiter li + li { border-top: 1px solid var(--line); }
section > ul.a-traiter li a { padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
section > ul.a-traiter li a:hover { background: var(--paper); }
ul.liste-simple { list-style: none; margin: 0; padding: 0; }
ul.liste-simple li { padding: 8px 0; border-bottom: 1px solid var(--line); }
pre.contenu-brut { max-width: 100%; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); background: var(--photo); font-size: 13px; white-space: pre-wrap; word-break: break-all; }
code { word-break: break-all; }
