/* ==========================================================================
   bidfrance.lol — direction « arcade »
   Un classement payant assumé comme une salle d'arcade : fond violet-nuit,
   grille lumineuse, magenta pour l'action, cyan pour l'argent.
   Feuille unique, aucun framework.
   ========================================================================== */

/* ---------------------------------------------------------------- jetons -- */
:root {
  color-scheme: dark;

  --fond:        #0d1524;
  --fond-2:      #111c30;
  --surface:     #152238;
  --surface-2:   #1b2b45;
  --encre:       #e9eefb;
  --encre-doux:  #a3b4d0;
  --creux:       #6b7d9e;
  --trait:       #223250;
  --trait-fort:  #35486d;

  --argent:      #a9d2ff;   /* les montants, bleu très clair */
  --argent-encre:#08101f;
  --action:      #5b9dff;   /* ce sur quoi on clique pour payer */
  --action-encre:#08101f;
  --alerte:      #ffb37a;

  /* Halos discrets : on éclaire, on ne fait plus flasher. */
  --lueur-a: 0 6px 22px -10px rgba(91, 157, 255, .55);
  --lueur-c: 0 6px 22px -12px rgba(169, 210, 255, .45);

  --titre:  "Bungee", "Impact", sans-serif;
  --texte:  "Chakra Petch", system-ui, sans-serif;
  --chiffre:"Chakra Petch", ui-monospace, monospace;

  --micro: 11px;
  --petit: 12.5px;
  --moyen: 14px;

  --gouttiere: clamp(18px, 3.6vw, 44px);
  --large: 1240px;
  --pas: clamp(32px, 4.6vw, 58px);
}

/* ---------------------------------------------------------------- socle -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

/* Grille d'arcade + deux halos, fixés : l'atmosphère ne défile pas. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.030) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0 60vh, transparent 100vh);
  -webkit-mask-image: linear-gradient(180deg, #000 0 60vh, transparent 100vh);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 680px at 10% -10%, rgba(91, 157, 255, .16), transparent 68%),
    radial-gradient(720px 720px at 96% 10%, rgba(169, 210, 255, .10), transparent 68%);
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--action); color: var(--action-encre); }
:focus-visible { outline: 3px solid var(--argent); outline-offset: 3px; border-radius: 2px; }

.enveloppe { max-width: var(--large); margin: 0 auto; padding-inline: var(--gouttiere); }
.etroit > * { max-width: 70ch; }
.visuellement-masque {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- bandeau -- */
.bandeau {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--trait);
}
.bandeau-in { display: flex; align-items: center; gap: 10px 26px; min-height: 62px; }

.marque {
  font-family: var(--titre);
  font-size: 21px;
  line-height: 1;
  color: var(--action);
  text-shadow: none;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 4px;
}
.marque .tld { color: var(--encre); text-shadow: none; }

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a {
  font-size: var(--petit);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre-doux);
  padding: 10px 13px;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--encre); background: var(--surface); }
.nav a[aria-current] { color: var(--argent); }
.nav .nav-vif {
  background: var(--action); color: var(--action-encre);
  box-shadow: var(--lueur-a);
}
.nav .nav-vif:hover { background: var(--encre); color: var(--fond); }

/* ----------------------------------------------------- bande défilante -- */
.ticker {
  border-bottom: 1px solid var(--trait);
  background: var(--fond-2);
  font-size: var(--petit);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-doux);
}
.ticker-in { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 4vw, 56px); padding: 12px 0; }
.compteur { display: inline-flex; align-items: baseline; gap: 9px; }
.compteur-etiq { color: var(--creux); }
.ticker b { color: var(--argent); font-weight: 700; letter-spacing: .04em; }

/* ---------------------------------------------------------------- hero -- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .82fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
  padding: clamp(40px, 6vw, 78px) 0 var(--pas);
}

.surtitre {
  font-size: var(--petit);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--argent);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.surtitre::after { content: ""; flex: 1; height: 1px; background: var(--trait-fort); }

.hero h1 {
  font-family: var(--titre);
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0 0 26px;
  max-width: 15ch;
  text-wrap: balance;
  text-shadow: none;
}
.hero h1 .surligne { color: var(--action); }
.hero h1 .creux { color: var(--creux); text-shadow: none; }

.chapo {
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  color: var(--encre-doux);
  max-width: 56ch;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.chapo strong { color: var(--encre); font-weight: 700; }

/* Le cartouche de prix : l'écran de la borne. */
.cote {
  display: flex; flex-direction: column;
  border: 1px solid var(--trait-fort);
  background: var(--surface);
  margin: 0;
  box-shadow: 0 24px 60px -44px rgba(0, 0, 0, .8);
}
.cote-titre {
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-doux);
  padding: 12px 20px;
  border-bottom: 1px solid var(--trait);
  background: var(--surface-2);
}
.cote-ligne {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--trait);
}
.cote-ligne:last-child { border-bottom: 0; }
.cote-ligne dt {
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-doux);
  margin: 0;
}
.cote-ligne dd {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.cote-ligne.majeure {
  flex: 2 1 auto; min-height: 132px;
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
  padding: 26px 20px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(0,229,208,.14), transparent 62%), var(--fond-2);
}
.cote-ligne.majeure dd {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: .96;
  color: var(--argent);
  text-shadow: none;
  text-align: left;
}
.dev { font-size: .52em; vertical-align: .34em; margin-left: .06em; opacity: .8; }


/* ------------------------------------------------------------------ podium -- */
/* Un socle dessiné, vu de face : les logos se posent dessus, les noms
   s'inscrivent sur la marche. Le dessin est un SVG à l'échelle, le reste est du
   HTML placé par-dessus en pourcentages, donc solidaire du dessin à toute taille. */
.podium {
  width: 100%;
  align-self: center;
  padding-top: 118px;   /* place pour le logo, la couronne et la bulle */
}
/* La scène épouse le dessin : les repères en pourcentage tombent sur les marches. */
.podium-scene { position: relative; width: 100%; }
.podium-dessin { display: block; width: 100%; height: auto; overflow: visible; }

.socle-sol { stroke: var(--trait-fort); stroke-width: 2; }
.socle-face { fill: var(--surface-2); stroke: var(--trait-fort); stroke-width: 1.5; }
.socle-dessus { fill: var(--surface); stroke: var(--trait-fort); stroke-width: 1.5; }
.socle-1 .socle-face { fill: rgba(91, 157, 255, .20); stroke: var(--action); }
.socle-1 .socle-dessus { fill: rgba(91, 157, 255, .34); stroke: var(--action); }
.socle-rang { font-family: var(--titre); font-size: 24px; fill: var(--action); }

/* Le premier est posé au-dessus de sa marche. */
.gradin {
  position: absolute;
  transform: translateX(-50%);
  display: block; text-align: center;
  width: 62%;          /* la largeur de la marche : le nom tient sur sa face */
  margin-bottom: 3px;
  text-decoration: none; color: inherit;
  transition: transform .18s;
}
/* Le nom et le montant descendent sur la face de la marche. */
.gradin-plaque {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex; flex-direction: column; gap: 2px;
}
.gradin:hover { transform: translateX(-50%) translateY(-3px); }

.gradin-image { display: block; }
.gradin-image img, .gradin-lettre {
  width: 100px; height: 100px; object-fit: contain; margin-inline: auto;
  border: 2px solid var(--action); background: var(--surface-2); padding: 7px;
  box-shadow: 0 6px 22px -10px rgba(91, 157, 255, .8);
}
.gradin-lettre { display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 34px; color: var(--creux); }

.gradin-nom {
  font-family: var(--titre); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.15; text-align: center;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gradin-somme { font-size: clamp(14px, 1.3vw, 17px); font-weight: 700; color: var(--argent); white-space: nowrap; }

.couronne { color: var(--action); filter: none; margin-bottom: 3px; width: 38px; height: 29px; }

/* La flèche part vers la gauche pour ne pas sortir du cadre. */
/* La bulle se pose à gauche du logo : à droite, elle sortait du cadre. */
.gradin-fleche {
  position: absolute; bottom: calc(100% + 6px); right: calc(50% + 12px); left: auto;
  display: flex; align-items: center; gap: 8px;
  color: var(--argent);
  animation: designe 1.6s ease-in-out infinite;
  white-space: nowrap;
}
.gradin-bulle {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.3; text-align: right; white-space: normal;
  background: var(--argent); color: var(--argent-encre); padding: 6px 9px;
  width: 13ch;
  box-shadow: var(--lueur-c);
}
.gradin-bulle b { font-weight: 800; }
@keyframes designe {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-3px, 5px); }
}

@media (max-width: 900px) { .podium { max-width: 480px; margin-inline: auto; } }
@media (max-width: 480px) {
  .podium { padding-top: 82px; }
  .gradin-fleche { right: calc(50% + 6px); gap: 5px; }
  .gradin-image img, .gradin-lettre { width: 66px; height: 66px; }
  .gradin-nom { font-size: 13px; }
  .gradin-somme { font-size: 13px; }
  .gradin-bulle { width: 11ch; font-size: 9px; }
}

/* -------------------------------------------------------------- actions -- */
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  --fond-btn: var(--encre);
  --texte-btn: var(--fond);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--texte);
  font-size: var(--moyen);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 15px 24px;
  border: 2px solid var(--fond-btn);
  background: var(--fond-btn);
  color: var(--texte-btn);
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s cubic-bezier(.2,.9,.3,1), background .16s, color .16s, box-shadow .16s;
}
.btn:hover { background: transparent; color: var(--fond-btn); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { --fond-btn: var(--action); --texte-btn: var(--action-encre); box-shadow: var(--lueur-a); }
.btn-mise   { --fond-btn: var(--argent); --texte-btn: var(--argent-encre); box-shadow: var(--lueur-c); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--encre-doux); border-color: var(--trait-fort);
  cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-fin {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--petit);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 17px;
  border: 1px solid var(--trait-fort);
  background: transparent;
  color: var(--encre-doux);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, border-color .16s, background .16s;
}
.btn-fin:hover { color: var(--argent); border-color: var(--argent); background: var(--surface); }

/* --------------------------------------------------------- en-tête bloc -- */
.section-titre {
  display: flex; align-items: baseline; gap: 8px 22px; flex-wrap: wrap;
  margin: var(--pas) 0 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--trait-fort);
}
.section-titre h2 {
  font-family: var(--titre);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.1;
  margin: 0;
}
.section-titre p {
  margin: 0 0 0 auto;
  font-size: var(--petit);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-doux);
  text-align: right;
  max-width: 48ch;
}

/* --------------------------------------------------------------- lignes -- */
.ligne {
  position: relative;
  display: grid;
  grid-template-columns: clamp(52px, 6vw, 78px) 52px minmax(0, 1fr) auto;
  gap: 0 clamp(14px, 1.8vw, 24px);
  align-items: start;
  padding: 20px 20px;
  margin-block: 10px;
  border: 1px solid var(--trait);
  background: rgba(255, 255, 255, .028);
  animation: monte .5s cubic-bezier(.2,.8,.3,1) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color .18s, background .18s;
}
@keyframes monte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ligne:hover { border-color: var(--trait-fort); background: rgba(255, 255, 255, .05); }

.ligne-rang {
  font-family: var(--titre);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  color: var(--creux);
  transition: color .2s;
}
.ligne:hover .ligne-rang { color: var(--encre-doux); }

.vignette {
  width: 46px; height: 46px;
  border: 1px solid var(--trait-fort);
  background: var(--surface-2);
  object-fit: contain;
  padding: 4px;
}
.vignette-vide {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--trait-fort);
  background: var(--surface-2);
  font-family: var(--titre);
  font-size: 18px;
  color: var(--creux);
}

.ligne-corps { min-width: 0; }
.ligne-corps h3 {
  font-family: var(--titre);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.16;
  margin: 0 0 7px;
}
.ligne-corps h3 a {
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .34em;
  padding-block: 3px; min-height: 24px;
  transition: color .18s;
}
.ligne-corps h3 a::after {
  content: "\2197";
  font-family: var(--texte);
  font-weight: 700;
  font-size: .62em;
  color: var(--creux);
  transition: color .18s, transform .18s;
}
.ligne-corps h3 a:hover { color: var(--action); }
.ligne-corps h3 a:hover::after { color: var(--action); transform: translate(1px, -2px); }

.tagline { margin: 0 0 12px; color: var(--encre-doux); font-size: 15px; max-width: 60ch; }

.meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.etiquette {
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--trait-fort);
  color: var(--encre-doux);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.etiquette.fr { border-color: rgba(169,210,255,.55); color: var(--argent); }
.etiquette.hs { border-color: rgba(255,179,122,.6); color: var(--alerte); }
.etiquette.sobre { border-style: dashed; }

/* --------------------------------------------------- jauge d'investissement -- */
.jauge {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  max-width: 820px;
  background: var(--trait);
  border: 1px solid var(--trait);
}
.jauge > div { background: var(--fond-2); padding: 10px 12px; min-width: 0; }
.jauge dt {
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-doux);
  margin: 0 0 4px;
  white-space: nowrap;
}
.jauge dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--encre);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np { color: var(--creux); font-weight: 500; font-size: .9em; }

/* Colonne de droite : le montant, puis le bouton d'achat. */
.ligne-cote {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  justify-content: flex-start; align-self: start;
}
.montant {
  font-family: var(--titre);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1;
  color: var(--argent);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.montant-etiq {
  display: block;
  font-family: var(--texte);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-doux);
  text-shadow: none;
  margin-bottom: 4px;
}

/* Le bouton d'achat : une seule action par ligne, le prix dessus. */
.btn-bid {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-size: var(--petit);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 18px;
  border: 2px solid var(--action);
  background: transparent;
  color: var(--action);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s, transform .14s;
}
.btn-bid b { font-family: var(--titre); font-weight: 400; font-size: 16px; letter-spacing: 0; }
.btn-bid:hover {
  background: var(--action); color: var(--action-encre);
  box-shadow: var(--lueur-a); transform: translateY(-2px);
}
.ligne.tete .btn-bid { background: var(--action); color: var(--action-encre); box-shadow: var(--lueur-a); }
.ligne.tete .btn-bid:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }

/* La tête de classement. */
.ligne.tete {
  border-color: rgba(91,157,255,.55);
  background: linear-gradient(90deg, rgba(91,157,255,.13), rgba(91,157,255,.02) 62%);
  box-shadow: none;
  padding: 26px 20px;
}
.ligne.tete .ligne-rang { color: var(--action); font-size: clamp(32px, 4.4vw, 50px); text-shadow: none; }
.ligne.tete .montant { font-size: clamp(24px, 3vw, 36px); }
.ligne.tete .ligne-corps h3 { font-size: clamp(20px, 2.3vw, 27px); }

/* Part de la recette : la piste reste, la barre arrive avec l'argent. */
.part { grid-column: 1 / -1; height: 3px; margin-top: 16px; background: var(--trait); overflow: hidden; }
.part i {
  display: block; height: 100%; width: var(--part, 0%);
  background: var(--argent); box-shadow: var(--lueur-c);
  animation: pousse .9s cubic-bezier(.2,.8,.3,1) backwards;
  animation-delay: calc(var(--i, 0) * 40ms + 200ms);
}
@keyframes pousse { from { width: 0; } }

/* Détail replié. */
.detail { margin-top: 14px; }
.detail summary {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-doux);
  cursor: pointer; list-style: none;
  padding: 7px 0; width: fit-content; min-height: 24px;
}
.detail summary::-webkit-details-marker { display: none; }
.detail summary::before { content: "+"; font-size: 15px; line-height: 1; color: var(--argent); }
.detail[open] summary::before { content: "\2212"; }
.detail summary:hover { color: var(--encre); }
.detail-corps {
  display: grid; grid-template-columns: minmax(120px, 165px) 1fr;
  margin-top: 8px; border-top: 1px solid var(--trait);
}
.detail-corps dt {
  font-size: var(--micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--encre-doux); padding: 11px 18px 11px 0; border-bottom: 1px solid var(--trait);
}
.detail-corps dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--trait); font-size: 15px; color: var(--encre-doux); }
.detail-corps dd strong { color: var(--encre); font-weight: 700; }
.detail-corps a {
  color: var(--encre-doux); text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 26px; padding-block: 3px;
}
.detail-corps a:hover { color: var(--action); }


/* ------------------------------------------------- panneau de mise en ligne -- */
/* Le bouton d'achat ouvre le panneau dans la ligne, sans changer de page et sans
   JavaScript, que la politique de sécurité du site interdit : la bascule est une
   case à cocher, chaque choix un bouton d'envoi qui porte sa propre valeur.

   Le bouton vit dans la colonne de droite, sous le prix, et il n'en bouge jamais :
   seul le panneau se déplie, sur sa propre rangée en pleine largeur, sous le
   contenu de la ligne. Rien de ce qui est au-dessus ne se décale, donc la vue
   reste où le visiteur l'a laissée. La case à cocher est posée pile sur le bouton,
   et pas ailleurs dans la carte : quand le clic lui donne le focus, le navigateur
   n'a rien à faire défiler. */
.miser-zone { position: relative; display: inline-flex; }
.bascule {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; pointer-events: none;
}
.miser-bouton {
  /* Les deux libellés occupent la même case : le bouton garde exactement la même
     taille ouvert ou fermé, donc rien ne bouge autour de lui. */
  display: inline-grid; grid-template-areas: "etat"; align-items: center; justify-items: center;
  cursor: pointer;
  font-size: var(--petit); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 20px; border: 2px solid var(--action); color: var(--action);
  transition: background .16s, color .16s, box-shadow .16s, transform .14s;
}
.miser-bouton:hover { background: var(--action); color: var(--action-encre); box-shadow: var(--lueur-a); transform: translateY(-2px); }
.ligne.tete .miser-bouton { background: var(--action); color: var(--action-encre); box-shadow: var(--lueur-a); }
.ligne.tete .miser-bouton:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.bascule:focus-visible + .miser-bouton { outline: 2px solid var(--argent); outline-offset: 3px; }

.miser-ouvrir, .miser-fermer { grid-area: etat; }
.miser-fermer { visibility: hidden; }
.ligne:has(.bascule:checked) .miser-ouvrir { visibility: hidden; }
.ligne:has(.bascule:checked) .miser-fermer { visibility: visible; }

.miser { display: none; grid-column: 1 / -1; }
.ligne:has(.bascule:checked) .miser { display: block; }

/* Sans :has(), le panneau resterait inatteignable : on le laisse alors ouvert,
   et la bascule disparaît. Le versement reste possible, la page est plus longue. */
@supports not selector(:has(*)) {
  .miser { display: block; }
  .miser-zone { display: none; }
}

.miser-corps {
  margin-top: 16px; padding: 22px;
  border: 1px solid var(--trait-fort);
  background: var(--surface);
  animation: deplie .24s ease-out;
}
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

.miser-avis {
  margin: 0 0 18px; padding: 12px 15px;
  border-left: 3px solid var(--argent); background: var(--fond-2);
  font-size: 14.5px; color: var(--encre-doux);
}
.miser-avis strong { color: var(--encre); }
.miser-avis a { color: var(--argent); }

.paliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.palier {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  font-family: var(--texte); text-align: left; cursor: pointer;
  padding: 15px 18px; border: 1px solid var(--trait-fort);
  background: var(--fond-2); color: var(--encre);
  transition: border-color .16s, background .16s, transform .14s;
}
.palier:hover { border-color: var(--argent); background: var(--surface-2); transform: translateY(-2px); }
.palier-titre { font-size: 15.5px; font-weight: 700; }
.palier-prix {
  font-family: var(--titre); font-size: 26px; line-height: 1;
  color: var(--argent); font-variant-numeric: tabular-nums;
}
.palier-sous { font-size: var(--micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-doux); }
.palier-fort { border-color: var(--argent); }
.palier-fort .palier-titre { color: var(--argent); }

/* La somme libre est une tuile comme les autres : le prix, c'est le champ. */
.palier-libre { cursor: default; }
.palier-libre:hover { transform: none; border-color: var(--trait-fort); background: var(--fond-2); }
.palier-champ { display: flex; gap: 8px; width: 100%; align-items: stretch; }
.palier-champ input[type=number] {
  flex: 1 1 90px; min-width: 0;
  font-family: var(--texte); font-weight: 600; font-size: 17px; padding: 9px 12px;
}
.palier-champ .btn { padding: 9px 16px; font-size: var(--micro); white-space: nowrap; }

.miser-note { margin: 12px 0 0; font-size: 13.5px; color: var(--encre-doux); }
.miser-note a { color: var(--argent); }

.miser-pro { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trait); display: flex; flex-direction: column; gap: 12px; }
.miser-pro input[type=text] { font-size: 15px; padding: 12px 14px; }
.miser-case { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--encre-doux); cursor: pointer; }
.miser-case input { width: auto; flex: none; margin-top: 3px; }
.miser-case a { color: var(--argent); }

@media (max-width: 620px) {
  .miser-zone, .miser-bouton { width: 100%; }
  .paliers { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- blocs texte -- */
.bloc { padding: var(--pas) 0; border-top: 1px solid var(--trait); margin-top: var(--pas); }
.bloc:first-child { border-top: 0; margin-top: 0; }
.bloc:last-of-type { padding-bottom: 0; }
.bloc h2 { font-family: var(--titre); font-size: clamp(23px, 3vw, 34px); line-height: 1.12; margin: 0 0 22px; }
.bloc h3, .bloc h2.mineur {
  font-family: var(--titre); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.3; margin: 32px 0 8px;
}
.bloc p, .bloc ol, .bloc ul { max-width: 70ch; color: var(--encre-doux); }
.bloc p strong { color: var(--encre); }
.bloc li { margin-bottom: 10px; }

.marches { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; margin-top: 30px; }
.marche { background: var(--surface); padding: 26px 24px 30px; border: 1px solid var(--trait); }
.marche h3 {
  font-family: var(--texte); font-size: var(--micro); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--action); margin: 0 0 13px;
}
.marche p { margin: 0; font-size: 15px; color: var(--encre-doux); }

/* ---------------------------------------------------------------- fiche -- */
.fil { font-size: var(--petit); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-doux); padding: 30px 0 0; }
.fil a { text-decoration: underline; text-underline-offset: 3px; }
.fil a:hover { color: var(--argent); }

.fiche-entete { padding: 20px 0 30px; }
.fiche-entete h1 { font-family: var(--titre); font-size: clamp(28px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 14px; }
.fiche-entete .tagline { font-size: clamp(16px, 1.6vw, 19px); margin-bottom: 24px; max-width: 52ch; }
.hero .fiche-entete { align-self: center; }

dl.fiches { display: grid; grid-template-columns: minmax(150px, 200px) 1fr; margin: 0; }
dl.fiches dt {
  font-size: var(--micro); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--encre-doux); padding: 17px 22px 17px 0; border-bottom: 1px solid var(--trait);
}
dl.fiches dd { margin: 0; padding: 17px 0; border-bottom: 1px solid var(--trait); font-size: 16px; color: var(--encre-doux); }
dl.fiches dd strong { color: var(--argent); font-weight: 700; }

/* ----------------------------------------------------------- formulaire -- */
form.pave { max-width: 620px; margin-top: 30px; }
.sous-titre-form {
  font-family: var(--titre); font-size: 18px; margin: 40px 0 16px;
  padding-top: 22px; border-top: 1px solid var(--trait); color: var(--argent);
}
.champ { margin-bottom: 24px; }
.champ label {
  display: block; font-size: var(--petit); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--encre-doux); margin-bottom: 9px;
}
.champ .aide { font-size: 14px; color: var(--encre-doux); margin: 9px 0 0; max-width: 58ch; }
.champ .aide a { color: var(--argent); }

input[type=text], input[type=url], input[type=email], input[type=number], select, textarea {
  width: 100%; font-family: var(--texte); font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre);
  transition: border-color .16s, box-shadow .16s;
}
input[type=number] { font-family: var(--titre); font-weight: 400; font-size: 26px; max-width: 230px; }
input::placeholder, textarea::placeholder { color: var(--creux); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--argent); box-shadow: 0 0 0 3px rgba(91,157,255,.28);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3b4d0' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input[type=file] {
  width: 100%; font-size: var(--petit); padding: 13px 15px;
  border: 1px dashed var(--trait-fort); background: var(--surface); color: var(--encre-doux); cursor: pointer;
}
input[type=file]::file-selector-button {
  font-family: var(--texte); font-size: var(--micro); font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin-right: 14px; padding: 9px 14px; border: 1px solid var(--trait-fort);
  background: var(--fond); color: var(--encre); cursor: pointer;
}
.pot-de-miel { position: absolute; left: -9999px; }

.alerte {
  border: 1px solid var(--trait-fort); border-left: 3px solid var(--action);
  background: var(--surface); padding: 17px 21px; margin: 26px 0; font-size: 15.5px; color: var(--encre-doux);
}
.alerte strong { color: var(--encre); }
.alerte.ok { border-left-color: var(--argent); }
.alerte a { color: var(--argent); }
.note {
  border: 1px solid var(--trait); border-left: 3px solid var(--trait-fort);
  background: var(--surface); padding: 17px 21px; margin: 26px 0; font-size: 15.5px; color: var(--encre-doux);
}

/* -------------------------------------------------------------- tableaux -- */
.defilant { overflow-x: auto; margin: 26px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data.large { min-width: 480px; }
table.data th {
  font-size: var(--micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--encre-doux); text-align: left; padding: 0 0 13px 18px; border-bottom: 1px solid var(--trait-fort);
}
table.data td { text-align: left; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--trait); vertical-align: top; color: var(--encre-doux); }
table.data th:first-child, table.data td:first-child { padding-left: 0; }
table.data th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--encre); font-weight: 600; }
table.data tr:hover td { background: var(--surface); }
table.data td a { display: inline-block; padding: 4px 0; color: var(--encre); text-underline-offset: 3px; }
table.data td a:hover { color: var(--action); }

/* ------------------------------------------------------------------ pied -- */
.pied { border-top: 1px solid var(--trait); margin-top: calc(var(--pas) * 1.6); padding: var(--pas) 0; background: var(--fond-2); }
.pied-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 34px; }
.pied h2 {
  font-size: var(--micro); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 15px; color: var(--argent);
}
.pied a { display: block; padding: 6px 0; text-decoration: none; font-size: 15px; color: var(--encre-doux); transition: color .16s; }
.pied a:hover { color: var(--action); }
.pied-bas {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--trait);
  font-size: var(--moyen); color: var(--encre-doux); max-width: 92ch; line-height: 1.7;
}
.pied-bas b { color: var(--encre); font-weight: 700; }

/* --------------------------------------------------------------- 404, 500 -- */
.vide { padding-block: clamp(56px, 10vw, 120px); padding-inline: var(--gouttiere); }
.vide h1 { font-family: var(--titre); font-size: clamp(36px, 8vw, 86px); line-height: 1.06; margin: 0 0 18px; }
.vide h1 .creux { color: var(--creux); }
.vide .chapo { margin-bottom: 32px; }

/* -------------------------------------------------------------- réponses -- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .cote { margin-top: 8px; }
  .section-titre p { flex: 1 0 100%; margin: 12px 0 0; text-align: left; }
}

@media (max-width: 1040px) { .jauge { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .jauge { grid-template-columns: 1fr; } }

@media (max-width: 620px) {
  .ligne { grid-template-columns: 42px 40px minmax(0, 1fr); padding: 18px 14px; }
  .ligne-rang { font-size: 24px; }
  .vignette, .vignette-vide { width: 40px; height: 40px; }
  .ligne-cote {
    grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between;
    width: 100%; padding-top: 16px; gap: 12px;
  }
  .montant-etiq { display: inline; margin: 0 8px 0 0; }
  .bandeau-in { min-height: 0; padding-block: 11px; flex-wrap: wrap; gap: 8px 14px; }
  .nav { margin-left: 0; width: 100%; gap: 4px; }
  .nav a { padding: 9px 10px; font-size: var(--micro); }
  .ticker-in { gap: 8px 20px; font-size: var(--micro); }
  .compteurs-in { gap: 6px 18px; font-size: var(--micro); }
  .compteurs a { margin-left: 0; width: 100%; }
  dl.fiches, .detail-corps { grid-template-columns: 1fr; }
  dl.fiches dt, .detail-corps dt { padding: 15px 0 3px; border-bottom: 0; }
  dl.fiches dd, .detail-corps dd { padding-top: 0; }
  table.data td { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
