/* ==================================================================
   Comparateur vélos free-floating — Paris
   Base neutre (zinc froid) + couleurs de marque réservées aux données.
   ================================================================== */

:root {
  --bg: #0b0c0e;
  --surface: #131519;
  --surface-2: #191c21;
  --line: #24272e;
  --line-strong: #343841;
  --text: #f4f5f7;
  --text-2: #a2a9b6;
  --text-3: #6e7684;
  --pos: #43d98b;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.32s var(--ease);

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Dégage la hauteur du bandeau collant lors d'un saut d'ancre. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; margin: 0; }

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

/* Grain fixe et non interactif : aucun repaint pendant le scroll. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------ Bases ----------------------------- */

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
  object-fit: cover;
}

main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 88px);
}

/* ---------------------------- Bandeau ----------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  /* Filet clair en haut : l'arête d'un verre, pas un halo. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(120deg); }

.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--t), background var(--t);
}

.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ------------------------------ Hero ------------------------------ */

/* Hero pleine largeur : les auras couvrent tout l'écran derrière le contenu,
   qui reste, lui, contenu dans .hero__inner. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(52px, 9vw, 116px) var(--gutter) clamp(48px, 7vw, 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Auras de couleur en fond, pleine largeur du hero --- */
.aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Pleine largeur : on ne fond que verticalement (haut discret, bas marqué
     pour se fondre dans « Votre usage »). Aucune coupure latérale. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 68%, transparent);
}

.blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--c), transparent 70%);
  opacity: 0.11;   /* effet très léger */
  filter: blur(78px);
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .blob { opacity: 0.08; }
}

.hero .eyebrow { margin-bottom: 22px; }

.hero__title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(31px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
}

/* Cluster de logos empilés, inline dans le titre, calé sur la casse. */
.hero__logos {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0.16em;
  transform: translateY(-0.06em);
  cursor: pointer;
}

.hero__logos img {
  width: 0.94em;
  height: 0.94em;
  border-radius: 0.26em;
  margin-left: -0.2em;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7);
  /* Repos : léger éventail (desktop). --spread pilote l'écartement au survol. */
  transform: rotate(var(--rot, 0deg));
}

.hero__logos img:first-child { margin-left: 0; }

/* Éventail de repos, desktop uniquement. Le survol/clic (écartement +
   grossissement + réordonnancement) est piloté en JS — voir initLogoPlay. */
@media (min-width: 701px) {
  .hero__logos img:nth-child(1) { --rot: -5deg; }
  .hero__logos img:nth-child(2) { --rot:  5deg; }
  .hero__logos img:nth-child(3) { --rot: -5deg; }
}

/* Cluster de logos autonome (mobile) : masqué en desktop.
   Placé après la base .hero__logos pour la surcharger. */
.hero__logos--stack { display: none; }

.lede {
  margin: 22px auto 0;
  max-width: 52ch;
  color: var(--text-2);
}

/* CTA en pilule, retour tactile physique au clic. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--text);
  color: #0b0c0e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.16s var(--ease), box-shadow var(--t);
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.9); }
.cta:active { transform: translateY(0) scale(0.98); }

/* ---------------------------- Sections ---------------------------- */

.section__head {
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}

.section__head h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 600; }
.section__head p { margin: 0; color: var(--text-3); font-size: 14px; }

/* ---------------------------- Contrôles --------------------------- */

.controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* En demi-colonne, les 4 profils tiennent en 2 × 2. */
.presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preset {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform 0.12s var(--ease);
}

.preset__label { font-weight: 500; }

.preset__meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-3);
  transition: color var(--t);
}

.preset:hover { color: var(--text); border-color: var(--line-strong); }
.preset:active { transform: scale(0.985); }

.preset.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #0b0c0e;
}

.preset.is-active .preset__meta { color: rgba(11, 12, 14, 0.6); }

.sliders {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label { font-size: 13px; color: var(--text-3); }

.field output {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 500;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--text);
  border: none;
  transition: transform 0.18s var(--ease);
}

input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(0.94); }

input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--text); }

.filters-wrap {
  margin: 0;
  padding: 18px 0 0;
  border: none;
  border-top: 1px solid var(--line);
}

.filters-wrap legend { padding: 0; font-size: 13px; color: var(--text-3); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--t), background var(--t), opacity var(--t);
}

.chip img { width: 20px; height: 20px; border-radius: 5px; }
.chip input { accent-color: var(--brand); margin: 0; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--brand); }
.chip:has(input:not(:checked)) { opacity: 0.45; }

/* ---------------------------- Établi 50/50 ------------------------ */
/* Réglages à gauche, résultat à droite : les deux tiennent côte à côte
   au lieu de s'empiler, ce qui réduit fortement la hauteur totale. */

.workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}

/* ----------------------------- Verdict ---------------------------- */

/* En demi-colonne, le verdict s'empile : carte principale puis récap. */
.verdict {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.verdict__main {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: var(--r-lg);
  background:
    radial-gradient(115% 130% at 0% 0%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 62%),
    var(--surface);
}

.verdict__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
}

.verdict__head h3 { font-size: clamp(19px, 2.1vw, 24px); font-weight: 600; }
.verdict__head h3 span { color: var(--text-2); font-weight: 400; }

.verdict__price {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.amount {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.unit { color: var(--text-3); font-size: 15px; }

.stats {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.stats div { display: flex; flex-direction: column; gap: 3px; }
.stats dt { font-size: 12px; color: var(--text-3); }

.stats dd {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 17px;
  font-weight: 500;
}

.stats .pos { color: var(--pos); }

.callout {
  margin: 16px 0 0;
  padding: 10px 13px;
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
}

/* Replié par défaut : on ouvre le détail par opérateur à la demande. */
.verdict__side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.verdict__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(20px, 2.2vw, 26px);
  border-radius: var(--r-lg);
  cursor: pointer;
  list-style: none;
  transition: background var(--t);
}

.verdict__toggle::-webkit-details-marker { display: none; }
.verdict__toggle:hover { background: var(--surface-2); }
.verdict__side[open] .verdict__toggle { border-radius: var(--r-lg) var(--r-lg) 0 0; }

.verdict__count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-3);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.verdict__chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t);
}

.verdict__side[open] .verdict__chevron { transform: rotate(225deg) translate(-1px, -1px); }

.verdict__panel {
  padding: 0 clamp(20px, 2.2vw, 26px) clamp(16px, 1.8vw, 20px);
  animation: rise 0.35s var(--ease);
}

.best-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.best-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.best-item:last-child { border-bottom: none; }
.best-item__id { display: flex; flex-direction: column; min-width: 0; }

.best-item__op { font-size: 15px; font-weight: 500; }

.best-item__plan {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-item__cost {
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.best-item.is-top .best-item__cost { color: var(--brand); }

.verdict__hint {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

.verdict__hint strong {
  color: var(--text-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
}

.empty {
  grid-column: 1 / -1;
  padding: 56px 28px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

.empty__title { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
.empty__hint { margin: 0; color: var(--text-3); font-size: 14px; }

/* ---------------------------- Classement -------------------------- */

.ranking { list-style: none; margin: 0; padding: 0; }

.rank {
  border-bottom: 1px solid var(--line);
  animation: rise 0.5s var(--ease) backwards;
  animation-delay: calc(var(--i) * 28ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.rank summary {
  display: grid;
  grid-template-columns: 22px 28px minmax(110px, 1.1fr) minmax(50px, 1.5fr) auto 14px;
  align-items: center;
  gap: 14px;
  padding: 13px 10px 13px 4px;
  border-radius: var(--r-sm);
  cursor: pointer;
  list-style: none;
  transition: background var(--t);
}

.rank summary::-webkit-details-marker { display: none; }
.rank summary:hover { background: var(--surface); }

.rank__pos {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-3);
}

.rank.is-best .rank__pos { color: var(--brand); }

.rank__id { display: flex; flex-direction: column; min-width: 0; }
.rank__op { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }

.rank__plan {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank__bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }

.rank__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(var(--s));
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.rank__cost {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  min-width: 78px;
}

.rank__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t);
}

.rank details[open] .rank__chevron { transform: rotate(225deg) translate(-1px, -1px); }

.rank__detail {
  padding: 4px 10px 20px 68px;
  animation: rise 0.35s var(--ease);
}

.calc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }

.calc li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-2);
}

.calc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}

.rank__note { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }

.fineprint {
  margin: 22px 0 0;
  max-width: 72ch;
  font-size: 13px;
  color: var(--text-3);
}

/* -------------------------- Grilles opérateurs -------------------- */

.ops {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.op {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t), transform var(--t);
}

.op:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }

.op__head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; }
.op__head h3 { font-size: 18px; font-weight: 600; }

.badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.op__plans { list-style: none; margin: 0; padding: 0; }

.op__plans li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.op__plan { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op__name { font-size: 14px; }
.op__detail { font-size: 12px; color: var(--text-3); }

.op__price {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ------------------------------- FAQ ------------------------------ */

.faq {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  list-style: none;
  cursor: pointer;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
  transition: color var(--t);
}

.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--text); }

.qa summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--t);
}

.qa[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }

.qa__body {
  padding: 0 4px 20px;
  animation: rise 0.35s var(--ease);
}

.qa__body p {
  margin: 0;
  max-width: 72ch;
  color: var(--text-2);
}

.qa__body strong { color: var(--text); font-weight: 500; }

/* ----------------------------- Footer ----------------------------- */

.foot {
  margin-top: clamp(72px, 12vw, 140px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.foot__top,
.foot__bottom {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
}

.foot__note {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  color: var(--text-3);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-content: flex-start;
}

.foot__nav a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t);
}

.foot__nav a:hover { color: var(--text); }

/* Wordmark géant en pleine largeur. Dégradé vertical + fondu latéral :
   présent mais jamais criard sur le fond sombre. */
.foot__wordmark {
  margin: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
  text-align: center;
  line-height: 0.82;
  overflow: hidden;
}

.foot__wordmark span {
  display: block;
  /* Le mot tient entièrement dans la largeur, centré, avec une petite marge
     de chaque côté ; seuls les bords s'estompent, jamais les lettres. */
  font-size: min(16vw, 340px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #2b2f39 0%, #16181d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  user-select: none;
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--text-3);
}

.foot__bottom p { margin: 0; }

.foot__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foot__credit .heart {
  width: 13px;
  height: 13px;
  fill: #F26961;
  animation: beat 1.6s var(--ease) infinite;
}

@keyframes beat {
  0%, 70%, 100% { transform: scale(1); }
  20%           { transform: scale(1.28); }
  40%           { transform: scale(1.06); }
}

.foot__credit a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color var(--t), border-color var(--t);
}

.foot__credit a:hover { color: var(--text); border-color: var(--text); }

/* ------------------------- Accessibilité -------------------------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------- Responsive -------------------------- */

@media (max-width: 900px) {
  /* Trop étroit pour deux colonnes : réglages puis résultat, empilés. */
  .workbench { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
}

@media (max-width: 700px) {
  /* Trois libellés + la marque ne tiennent pas sur une ligne : la page est
     courte, le défilement remplace la navigation par ancres. */
  .nav { display: none; }
  .masthead { padding: 11px var(--gutter); }
  html { scroll-padding-top: 68px; }
}

@media (max-width: 620px) {
  /* Hero centré dans le viewport, avec de l'air en haut et en bas : le bloc
     tient d'un tenant (CTA collé au texte) et « Votre usage » pointe juste
     sous la ligne de flottaison. */
  .hero__inner {
    min-height: 82svh;
    justify-content: center;
    padding-top: clamp(40px, 12vw, 72px);
    padding-bottom: clamp(40px, 12vw, 72px);
  }

  .hero__logos--inline { display: none; }

  /* Logos sous le sur-titre, plus petits, avec le même éventail qu'en desktop. */
  .hero .eyebrow { margin-bottom: 0; }

  .hero__logos--stack {
    display: inline-flex;
    font-size: clamp(46px, 13vw, 58px);
    margin: 16px 0 2px;
    transform: none;
  }

  .hero__logos--stack img:nth-child(1) { --rot: -5deg; }
  .hero__logos--stack img:nth-child(2) { --rot:  5deg; }
  .hero__logos--stack img:nth-child(3) { --rot: -5deg; }

  .hero__title { font-size: clamp(34px, 8.4vw, 44px); max-width: 15ch; margin-top: 10px; }
  .lede { font-size: 16px; margin-top: 18px; }
  .cta { margin-top: 28px; padding: 16px 30px; font-size: 16px; }

  .rank summary {
    grid-template-columns: 20px 26px minmax(0, 1fr) auto 12px;
    gap: 11px;
  }
  .rank__bar { display: none; }
  .rank__detail { padding-left: 20px; }
  .rank__cost { min-width: 0; }
  .stats { gap: 14px; }
}
