/* =========================================================================
   FlashDeal — getflashdeal.com
   L'ardoise de la criée : la halle où les lots partent avant la fermeture.
   ========================================================================= */

/* ---------- Fontes auto-hébergées (variables, sous-ensemble latin) -------- */
@font-face {
  font-family: 'Big Shoulders';
  src: url('/fonts/bigshoulders-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- L'ardoise ---------------------------------------------------- */
:root {
  --slate:        #0D0D0F;
  --slate-warm:   #141416;
  --slate-lit:    #1C1C1F;
  --chalk:        #F4F4F5;
  --chalk-soft:   #A0A0A6;
  --chalk-dust:   rgba(244, 244, 245, 0.13);
  --chalk-heavy:  rgba(244, 244, 245, 0.30);
  --ink:          #378ADD;
  --ink-lit:      #5AA3EC;
  --urg-far:      #639922;
  --urg-near:     #EF9F27;
  --urg-now:      #E24B4A;

  --display: 'Big Shoulders', 'Arial Narrow', system-ui, sans-serif;
  --body:    'Archivo', system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --hall:   1240px;

  /* rythme d'espacement unique de toute la halle */
  --s1: 0.4rem;  --s2: 0.75rem; --s3: 1.25rem;
  --s4: 2rem;    --s5: 3.25rem;  --s6: clamp(3.5rem, 8vw, 6.5rem);

  /* échelle des petits corps : sept pas, un rôle chacun. Toute taille
     litterale hors de cette echelle est une derive, pas une nuance. */
  --t-micro:  0.72rem;  /* micro-mention capitale dans un composant */
  --t-fine:   0.78rem;  /* legende sous une photographie, mentions du pied */
  --t-small:  0.88rem;  /* texte secondaire : nav, notes, liens, cellules */
  --t-label:  0.95rem;  /* la mention d'atelier : .hand, .tag, date du registre */
  --t-fig-sm: 1.05rem;  /* chiffre d'etal reduit */
  --t-sub:    1.15rem;  /* sous-titre de composant, libelle de bouton */
  --t-sub-lg: 1.28rem;  /* le plus grand sous-titre : marque, titre de regle */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--slate);
  /* grain minéral de l'ardoise : la matière, pas un ornement */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Surfaces du navigateur : elles portent aussi le monde -------- */
::selection { background: var(--ink); color: var(--slate); }
:root { caret-color: var(--ink); accent-color: var(--ink); scrollbar-color: var(--chalk-dust) var(--slate); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--slate); }
::-webkit-scrollbar-thumb {
  background: rgba(244, 244, 245, 0.16);
  border: 3px solid var(--slate);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(244, 244, 245, 0.3); }

:focus-visible {
  outline: 2px solid var(--ink-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: var(--chalk);
  text-decoration-color: var(--chalk-heavy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover { color: var(--ink-lit); text-decoration-color: currentColor; }

/* ---------- Trame de la halle ------------------------------------------- */
.hall { width: min(var(--hall), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Le filet de craie : la seule séparation de toute la page. */
.rule {
  border: 0;
  height: 1px;
  background: var(--chalk-dust);
  /* poussière de craie retombée sous le trait */
  box-shadow: 0 1px 0 rgba(244, 244, 245, 0.04), 0 2px 3px -2px rgba(244, 244, 245, 0.06);
}

section { padding-block: var(--s6); }

/* ---------- Typographie -------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7.4vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  text-transform: uppercase;
}
h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }

p { max-width: 68ch; }

.lead { font-size: clamp(1.03rem, 1.5vw, 1.15rem); color: var(--chalk-soft); }
.aside { font-size: var(--t-small); color: var(--chalk-soft); }

/* Mention d'atelier : ce que le crieur annonce avant le lot. */
.hand {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-soft);
}

/* ---------- Icônes dessinées (jamais d'emoji) ---------------------------- */
.ico {
  width: 1.6em; height: 1.6em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ico-lg { width: 2.5rem; height: 2.5rem; stroke-width: 1.4; }

/* ---------- En-tête ------------------------------------------------------ */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--chalk-dust);
}
.masthead .hall {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand:hover { color: var(--chalk); }
.brand:hover .brand-name em { color: var(--ink-lit); }
.brand-name em { transition: color 0.18s ease; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-sub-lg);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--urg-now); }

.hall-nav { display: none; gap: var(--s3); align-items: center; }
.hall-nav a {
  font-size: var(--t-small); font-weight: 500;
  color: var(--chalk-soft);
  text-decoration: none;
}
.hall-nav a:hover { color: var(--chalk); }

.langs { display: flex; align-items: center; gap: 0.1rem; }
.langs a {
  font-family: var(--display);
  font-weight: 700; font-size: var(--t-small); letter-spacing: 0.08em;
  padding: 0.25rem 0.45rem;
  color: var(--chalk-soft);
  text-decoration: none;
}
.langs a[aria-current] { color: var(--chalk); box-shadow: inset 0 -2px 0 var(--urg-now); }
.langs a:hover { color: var(--chalk); }

@media (min-width: 900px) { .hall-nav { display: flex; } }

/* ---------- L'horloge de la criée ---------------------------------------- */
.crier-clock {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--urg-far);
}
.crier-clock svg { width: 30px; height: 30px; flex: none; }
.crier-clock .arc {
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset 0.9s linear, stroke 1.2s linear;
}
.crier-clock .dial { fill: none; stroke: var(--chalk-dust); stroke-width: 3; }
.crier-clock .figure {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-sub);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 1.2s linear;
}
.crier-clock .caption {
  display: none;
  font-size: var(--t-micro); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--chalk-soft);
}
@media (min-width: 700px) { .crier-clock .caption { display: block; } }

/* ---------- Premier écran ------------------------------------------------ */
.opening { padding-block: clamp(1.6rem, 3.4vw, 2.75rem) var(--s5); }
.opening .hall { display: grid; gap: var(--s4); }

.opening h1 { margin-bottom: var(--s3); }
.opening .lead { margin-bottom: var(--s3); }

.call { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }

/* ---------- Boutons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800; font-size: var(--t-sub); letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 0; border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.3, 1), background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
/* Encre bleue, lettres à l'ardoise : la plaque émaillée du marché.
   Le texte sombre sur le bleu tient 5,4:1, là où le blanc plafonnait à 3,6:1. */
.btn-ink {
  background: var(--ink); color: var(--slate);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 14px 26px -18px rgba(0, 0, 0, 0.95);
}
.btn-ink:hover { background: var(--ink-lit); color: var(--slate); transform: translateY(-2px); }
.btn-ink:active { transform: translateY(0); }
.btn-chalk {
  background: transparent; color: var(--chalk);
  box-shadow: inset 0 0 0 1px var(--chalk-heavy);
}
.btn-chalk:hover { color: var(--chalk); box-shadow: inset 0 0 0 1px var(--chalk); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* Le bandeau Google Play, en caractères d'affichage de la halle */
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.35rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--chalk);
  box-shadow: inset 0 0 0 1px var(--chalk-heavy);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
  min-height: 48px;
}
.store:hover { color: var(--chalk); box-shadow: inset 0 0 0 1px var(--chalk); transform: translateY(-2px); }
.store .ico { width: 1.5rem; height: 1.5rem; }
.store b {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: var(--t-sub);
  letter-spacing: 0.01em; line-height: 1;
}
.store span {
  display: block;
  font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chalk-soft);
  margin-bottom: 0.18em;
}
.store[aria-disabled] { opacity: 0.5; pointer-events: none; }

.note { color: var(--chalk-soft); font-size: var(--t-small); margin-top: var(--s3); }
.note b { color: var(--chalk); font-weight: 600; }

/* ---------- Le lot vivant du premier écran -------------------------------- */
.lot-live {
  margin-block: var(--s3) var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid var(--chalk-dust);
}
.lot-live .lot { padding-block: var(--s3); }

/* La ligne de lot : la structure de toute la halle. Pas une carte. */
.lot {
  display: grid;
  grid-template-columns: 2.9rem 1fr auto;
  align-items: baseline;
  column-gap: var(--s3);
  row-gap: 0.35rem;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--chalk-dust);
}
.lot:last-child { border-bottom: 0; }

.lot-no {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-fig-sm); color: var(--chalk-soft);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lot-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.02;
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.lot-name .ico { color: var(--chalk-soft); width: 1.35rem; height: 1.35rem; }
.lot-where {
  grid-column: 2;
  font-size: var(--t-small); color: var(--chalk-soft);
  display: flex; align-items: center; gap: 0.35rem 0.6rem; flex-wrap: wrap;
}
.lot-where .ico { width: 0.95rem; height: 0.95rem; }

.lot-price {
  grid-row: 1 / span 2;
  grid-column: 3;
  text-align: right;
  align-self: center;
}
.lot-price b {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
/* Le prix précédent, barré d'un trait de craie : c'est une signature du
   monde, pas une note de bas de page — il se lit à côté du prix vif. */
.lot-price s {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(var(--t-fig-sm), 1.9vw, 1.4rem);
  color: var(--chalk-soft);
  text-decoration: none; position: relative;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  margin-top: 0.1em;
}
.lot-price s::after {
  content: '';
  position: absolute; left: -8%; right: -8%; top: 50%;
  height: 2.5px; border-radius: 2px;
  background: var(--chalk-soft);
  transform: rotate(-7deg);
}

/* L'étiquette d'urgence : sa couleur est calculée, jamais choisie à la main. */
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-label); letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  color: var(--urg, var(--urg-far));
  box-shadow: inset 0 0 0 1px currentColor;
  transition: color 1.2s linear;
}
.tag .ico { width: 0.95rem; height: 0.95rem; stroke-width: 2; }
.tag.is-now { animation: pulse 1.9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ---------- La photo d'étal (capture réelle, punaisée sur l'ardoise) ------ */
.stall-photo { position: relative; justify-self: center; width: min(300px, 78vw); }
.stall-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.05),
    0 34px 60px -28px rgba(0, 0, 0, 0.95),
    0 8px 22px -12px rgba(0, 0, 0, 0.8);
  transform: rotate(-1.3deg);
}
.stall-photo figcaption {
  margin-top: var(--s3);
  text-align: center;
  font-size: var(--t-fine); color: var(--chalk-soft);
}

@media (min-width: 950px) {
  .opening .hall { grid-template-columns: 1.12fr 0.88fr; align-items: center; column-gap: var(--s6); }
  .stall-photo { width: 296px; }
}

/* ---------- Les lots du jour (catégories) -------------------------------- */
.board-head { margin-bottom: var(--s4); }
.board-head p { margin-top: var(--s3); }

.slate-list { border-top: 1px solid var(--chalk-dust); padding-top: var(--s2); }
/* Une taxonomie n'a pas d'ordre : ces lignes ne portent pas de numéro. */
.slate-list .lot { grid-template-columns: 1fr; }
.slate-list .lot-where { grid-column: 1; }

/* ---------- Les arguments : lignes appariées, jamais des cartes ---------- */
.pairs { display: grid; gap: var(--s5); }
.pair { display: grid; gap: var(--s4); align-items: center; }
.pair h3 { margin-bottom: var(--s2); display: flex; align-items: center; gap: 0.6rem; }
/* Une seule craie : le trio de couleurs n'est jamais dépensé en décor,
   il ne signifie que le temps restant. */
.pair h3 .ico { color: var(--chalk-soft); }
/* Vue de l'écran, cadrée sur le contenu : la photo d'étal, pas le téléphone entier. */
.pair-shot { justify-self: center; width: min(340px, 80vw); }
.pair-shot img {
  width: 100%; border-radius: 10px;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95), 0 5px 16px -10px rgba(0, 0, 0, 0.8);
}
@media (min-width: 860px) {
  .pair { grid-template-columns: 1fr 340px; column-gap: var(--s6); }
  .pair:nth-child(even) { grid-template-columns: 340px 1fr; }
  .pair:nth-child(even) .pair-shot { order: -1; }
}

/* ---------- Les quatre temps de la vente --------------------------------- */
.tempo { display: grid; gap: 0; border-top: 1px solid var(--chalk-dust); padding-top: var(--s2); }
.beat {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: var(--s3);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--chalk-dust);
}
.beat-no {
  font-family: var(--display); font-weight: 900;
  font-size: 2.3rem; line-height: 0.8;
  color: var(--chalk-soft);
  font-variant-numeric: tabular-nums;
}
.beat h3 { margin-bottom: var(--s2); }
@media (min-width: 860px) {
  .tempo { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); }
  .beat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Les règles : un registre en colonne, pas une seconde grille -- */
.ledger { display: grid; gap: var(--s4); align-items: start; }
.rules { border-top: 1px solid var(--chalk-dust); padding-top: var(--s2); }
.rule-row {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  column-gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--chalk-dust);
}
.rule-row:last-child { border-bottom: 0; }
.rule-row .ico { color: var(--chalk-soft); width: 1.7rem; height: 1.7rem; margin-top: 0.15rem; }
.rule-row h3 { font-size: var(--t-sub-lg); margin-bottom: 0.3rem; }
.ledger-shot { justify-self: center; width: min(300px, 78vw); }
.ledger-shot img {
  width: 100%; border-radius: 10px;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95), 0 5px 16px -10px rgba(0, 0, 0, 0.8);
}
.ledger-shot figcaption { margin-top: var(--s2); text-align: center; font-size: var(--t-fine); color: var(--chalk-soft); }
@media (min-width: 900px) {
  .ledger { grid-template-columns: 1fr 300px; column-gap: var(--s6); }
}

/* ---------- L'ardoise vide : l'invitation à écrire ----------------------- */
.empty-slate {
  border: 1px dashed var(--chalk-heavy);
  border-radius: 4px;
  padding: var(--s5) var(--s4);
  text-align: center;
}
.empty-slate h2 { margin-bottom: var(--s3); }
.empty-slate p { margin-inline: auto; margin-bottom: var(--s4); }
.empty-slate .call { justify-content: center; }

/* ---------- Le bon de contact -------------------------------------------- */
.docket { max-width: 34rem; }
.docket p { margin-bottom: var(--s4); }
.field { display: grid; gap: 0.35rem; margin-bottom: var(--s3); }
.field label {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-small); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--chalk-soft);
}
.field input, .field textarea {
  font: inherit;
  color: var(--chalk);
  background: rgba(244, 244, 245, 0.035);
  border: 0;
  border-bottom: 1px solid var(--chalk-heavy);
  border-radius: 2px 2px 0 0;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--chalk-soft); }
.field input:hover, .field textarea:hover { background: rgba(244, 244, 245, 0.06); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink-lit);
  background: rgba(55, 138, 221, 0.08);
}
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--urg-now); }

/* piège à robots : hors écran, jamais atteignable au clavier */
.decoy { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

.verdict { min-height: 1.5em; font-size: var(--t-small); margin-top: var(--s3); }
.verdict.ok  { color: #8ec24d; }
.verdict.err { color: var(--urg-now); }

/* ---------- Pied de halle ------------------------------------------------ */
.footer { border-top: 1px solid var(--chalk-dust); padding-block: var(--s5) var(--s4); }
.footer .hall { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer a { font-size: var(--t-small); color: var(--chalk-soft); text-decoration: none; }
.footer a:hover { color: var(--chalk); text-decoration: underline; }
.footer .fine { width: 100%; font-size: var(--t-fine); color: var(--chalk-soft); max-width: none; }

/* ---------- Le seul moment animé : la craie qui écrit -------------------- */
.chalked {
  /* La boîte du masque est la boîte de bordure : sans cette marge intérieure,
     elle tranche l'encre des accents qui dépasse au-dessus de la première
     ligne, et « EMPÊCHÉ » s'affiche « EMPECHE ». */
  padding-block-start: 0.16em;
  margin-block-start: -0.16em;
  -webkit-mask-image: linear-gradient(95deg, #000 0 35%, rgba(0, 0, 0, 0.4) 48%, transparent 62%);
          mask-image: linear-gradient(95deg, #000 0 35%, rgba(0, 0, 0, 0.4) 48%, transparent 62%);
  -webkit-mask-size: 290% 100%;
          mask-size: 290% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  animation: chalk-write 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
@keyframes chalk-write {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* Le filet de craie se trace sous chaque lot, une seule fois. */
.drawn { --draw: 0; }
.drawn.inked { --draw: 1; }
.slate-list .lot, .tempo .beat {
  border-bottom-color: transparent;
  background-image: linear-gradient(var(--chalk-dust), var(--chalk-dust));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: calc(var(--draw, 1) * 100%) 1px;
  transition: background-size 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Au doigt : cibles tactiles et boutons pleine largeur -------- */
@media (max-width: 620px) {
  .call { flex-direction: column; align-items: stretch; }
  .call .btn, .call .store { width: 100%; }

  .langs a { padding: 0.7rem 0.6rem; }
  .footer nav { gap: 0.15rem var(--s3); }
  .footer nav a { padding-block: 0.55rem; display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chalked { animation: none; -webkit-mask-image: none; mask-image: none; }
  .drawn { --draw: 1; }
  .tag.is-now { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================================
   Le registre — les pages de texte tenues derrière le comptoir.
   Même ardoise, même craie, même filets. Mais rien n'expire dans un texte
   de loi : pas d'horloge de criée, pas de photographie, et aucune couleur
   du temps. Le registre se lit, il ne s'annonce pas.
   ========================================================================= */
.register { padding-block: var(--s5) var(--s6); }

/* La halle fait 1240 px : c'est la largeur d'un étal, pas celle d'un texte.
   Le registre se tient sur sa propre colonne, et ses filets courent juste
   au-delà de la mesure — la ligne réglée d'un cahier, pas un trait perdu. */
.register .hall { width: min(46rem, 100% - 2 * var(--gutter)); }

/* Le titre d'un document ne crie pas comme celui de la halle. */
.register h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin-bottom: var(--s2); }

/* Date de tenue du registre : la mention d'atelier, en tête du document. */
.register .updated {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-sub);
  letter-spacing: 0.01em;
  color: var(--chalk-soft);
  max-width: none;
  margin-bottom: var(--s4);
}

/* Chaque article s'ouvre sur un filet, comme un lot sur l'ardoise. */
.register h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--chalk-dust);
}
.register h3 { font-size: var(--t-sub); margin-top: var(--s4); }

.register p, .register ul, .register ol { margin-top: var(--s3); }
.register ul, .register ol { max-width: 68ch; padding-left: 1.4rem; }
.register li { margin-top: var(--s1); padding-left: 0.35rem; }
.register li::marker { color: var(--chalk-heavy); }
.register strong { color: var(--chalk); font-weight: 600; }

/* Le tableau : des lignes d'ardoise, pas une grille. */
.table-scroll { margin-top: var(--s3); overflow-x: auto; }
.register table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: var(--t-small); }
.register th, .register td {
  text-align: left;
  vertical-align: top;
  padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: 1px solid var(--chalk-dust);
}
.register th {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  white-space: nowrap;
}
.register td { color: var(--chalk-soft); }
.register td:first-child { color: var(--chalk); }

/* Le bon de suppression, posé au milieu du registre. */
.register .docket { margin-top: var(--s4); }

@media (max-width: 620px) {
  .register table { min-width: 0; }
  .register table, .register tbody, .register tr, .register td { display: block; width: 100%; }
  /* La ligne d'en-tete disparait : chaque cellule porte deja son nom. */
  .register tr:first-child { display: none; }
  .register tr {
    padding-block: var(--s3);
    border-bottom: 1px solid var(--chalk-dust);
  }
  .register tr:last-child { border-bottom: 0; }
  .register td { border: 0; padding: 0 0 var(--s2); }
  .register td:last-child { padding-bottom: 0; }
  .register td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: var(--t-micro);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--chalk-soft);
    margin-bottom: 0.1rem;
  }
}

/* =========================================================================
   Le comptoir — accusés de réception : rien à lire, une seule chose à faire.
   ========================================================================= */
.counter {
  min-height: 74vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--s3);
  padding-block: var(--s6);
  padding-inline: var(--gutter);
}
.counter h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
.counter p { max-width: 38ch; color: var(--chalk-soft); }
.counter .ico-xl {
  width: 3.2rem; height: 3.2rem;
  color: var(--chalk-soft);
  /* Le trait des icones est fige en pixels ecran : a cette taille il faut le
     laisser grandir avec le dessin, sinon il ne reste qu'un cheveu. */
  vector-effect: none;
  stroke-width: 1.5;
}
.counter .docket {
  width: min(28rem, 100%);
  text-align: left;
  margin-top: var(--s2);
  padding: var(--s4);
  background: var(--slate-warm);
  border: 1px solid var(--chalk-dust);
  border-radius: 4px;
}
.counter .docket p { max-width: none; }
.counter form[hidden], .counter div[hidden] { display: none; }

/* Le tampon : le verdict du comptoir, icone en tete de ligne. */
.stamp { display: flex; align-items: flex-start; gap: 0.6rem; }
.stamp .ico { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; color: var(--chalk-soft); }
.counter .docket .aside { margin-top: var(--s2); }

/* Le champ de mot de passe porte son œil à droite. */
.peek { position: relative; }
.peek input { padding-right: 2.9rem; }
.peek button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: none;
  border: 0;
  color: var(--chalk-soft);
  cursor: pointer;
}
.peek button:hover { color: var(--chalk); }
.peek button .ico { width: 1.25rem; height: 1.25rem; }
