/* Système de design « Clair ». Mobile d'abord, clair et sombre conçus ensemble.
   - Page blanche, panneaux bleu très pâle, bleu nuit pour le texte, orange réservé à l'action et au
     meilleur prix, vert réservé à l'économie réalisée. Aucun logo, police ou élément graphique d'Amazon.
   - Formes rondes : pilules pour les boutons et les champs, grands rayons pour les panneaux.
   - Police Figtree (licence SIL OFL, voir /fonts/OFL.txt), servie par le site : aucun appel tiers. */
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin-ext.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: light;
  --bg: light-dark(#ffffff, #0c1424);
  --tint: light-dark(#eef3fb, #152039);
  --surface: light-dark(#ffffff, #1b2845);
  --text: light-dark(#13203c, #e9eef8);
  --muted: light-dark(#55617a, #a8b4cb);
  --line: light-dark(#dce3ee, #2e3d5f);
  --edge: light-dark(#8a94aa, #7f8cab); /* contour des champs et des boutons : 3:1 minimum sur le fond */
  --accent: #ff9216;
  --accent-hover: #ffa53a;
  --on-accent: #13203c;
  --win: light-dark(#fff0db, #243152);
  --win-line: light-dark(#ffd9a6, #ff9216);
  --warn-soft: light-dark(#fff0db, #3a2a10);
  --good: light-dark(#0a7652, #55dca2);
  --on-good: light-dark(#ffffff, #06281c);
  --good-soft: light-dark(#e1f5eb, #123b2c);
  --link-line: light-dark(#d46b08, #ff9216);
  --focus: light-dark(#1d4ed8, #9bbcff);
  --shadow: 0 24px 48px -24px light-dark(rgb(19 32 60 / 0.3), rgb(0 0 0 / 0.7));
  --gutter: max(16px, calc((100% - 70rem) / 2));
  font: 16px/1.55 Figtree, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
/* Clair par défaut, quel que soit le réglage de l'appareil ; sombre seulement au choix du visiteur (bouton, /theme.js). */
:root[data-theme='dark'] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
/* Colonne pleine hauteur : le pied de page descend en bas de l'écran sur les pages courtes. */
body { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6.5vw, 2.75rem); margin: 8px 0 16px; }
h2 { font-size: 1.6rem; margin: 56px 0 16px; }
p { margin: 0 0 12px; max-width: 68ch; }
ul, ol { max-width: 68ch; padding-left: 1.2rem; }
li { margin-bottom: 4px; }
.muted, small { color: var(--muted); }
small { font-size: 0.85rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; } /* l'attribut hidden l'emporte sur le display des composants (boutons, bannière) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -4rem; z-index: 100; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 16px; border-radius: 999px; background: var(--surface); }
.skip:focus { top: 8px; }
/* Drapeau rond : repère de chaque boutique. */
.flag { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }

/* Structure */
header.site, main, footer.site { padding-inline: var(--gutter); }
header.site { display: flex; flex-wrap: wrap; align-items: center; min-height: 3.75rem; } /* retour à la ligne : pas de défilement horizontal à 320 px */
main { flex: 1; padding-block: 4px 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 2.75rem; margin-right: auto; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
/* Logo : un anneau de dix points, les dix boutiques ; le point orange est la moins chère. */
.mark circle { fill: currentColor; }
.mark .hit { fill: var(--accent); }
header.site nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { background: var(--tint); }
/* Bouton clair/sombre : l'icône montre le thème vers lequel on bascule (lune en clair, soleil en sombre). */
.theme { width: 2.75rem; padding: 0; border-color: transparent; background: none; }
.theme:hover { border-color: transparent; background: var(--tint); }
.theme .moon { fill: light-dark(currentColor, transparent); }
.theme .sun { fill: light-dark(transparent, currentColor); stroke: light-dark(transparent, currentColor); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 34rem) { /* les deux liens ne tiennent plus à côté du nom : ils passent dessous, le bouton de thème reste en haut à droite */
  header.site nav { order: 1; flex-basis: 100%; margin-left: -14px; }
}
@media (max-width: 26rem) { /* téléphone : l'en-tête se resserre pour loger le bouton */
  .brand { font-size: 1.15rem; }
  header.site nav { margin-left: -6px; }
  header.site nav a { padding-inline: 6px; font-size: 0.95rem; }
  .theme { width: 2.5rem; }
}
/* Sélecteur de langue : globe et nom de la langue, réduit à son code sur téléphone. Menu en <details> : il marche sans script. */
.globe, .chev { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang { position: relative; max-width: none; border: 0; }
.lang > summary { display: inline-flex; gap: 6px; justify-content: flex-start; min-height: 2.75rem; padding: 0 10px; border-radius: 999px; font-weight: 600; }
.lang > summary::after, .lang[open] > summary::after { content: none; }
.lang > summary:hover, .lang[open] > summary { background: var(--tint); }
.lang[open] .chev { rotate: 180deg; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 12rem; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / 0.16); }
.lang li { margin: 0; }
.lang a { display: flex; align-items: center; min-height: 2.75rem; padding-inline: 12px; border-radius: 10px; font-weight: 500; text-decoration: none; }
.lang a:hover { background: var(--tint); }
.lang a[aria-current] { font-weight: 800; }
.lang a[aria-current]::after { content: '✓'; margin-left: auto; padding-left: 12px; }
.lang .code { display: none; }
@media (max-width: 34rem) {
  .lang .full { display: none; }
  .lang .code { display: inline; }
}
/* Proposition de langue, en haut de page : une phrase, un lien, un bouton pour la fermer. */
.suggest { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; padding: 6px var(--gutter); background: var(--tint); font-size: 0.95rem; text-align: center; }
.suggest a, .suggest button { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
footer.site { padding-block: 32px 40px; background: light-dark(#13203c, #070c18); color: #c6d0e2; font-size: 0.85rem; }
footer.site p { max-width: none; }
footer.site a, footer.site button.link { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 4px; color: #fff; }

/* Boutons : 44 px minimum pour le tactile. L'orange désigne l'action principale. */
.btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.2rem; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.btn:hover, button:hover { border-color: var(--text); }
.btn:active, button:active { translate: 0 1px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button[aria-busy] { opacity: 0.7; cursor: progress; }
button.link { min-height: 0; padding: 0; border: 0; border-radius: 4px; background: none; font-weight: 400; text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* Formulaires : libellé visible au-dessus de chaque valeur. */
.field { display: grid; gap: 2px; }
.field > span { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
input, select { min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; }
/* Recherche : une seule carte blanche ; chaque case porte son libellé. */
form.search { display: grid; max-width: 46rem; padding: 6px; border: 1.5px solid var(--edge); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
form.search .field { gap: 0; padding: 8px 16px 6px; border-radius: 18px; }
form.search .field + .field { border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; }
form.search input, form.search select { width: 100%; min-height: 2rem; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; }
form.search input::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
form.search .field:focus-within { outline: 3px solid var(--focus); outline-offset: -3px; }
form.search .btn { margin-top: 6px; min-height: 3.25rem; font-size: 1.05rem; }
form.dest { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 18px 0; }
.lead { font-size: 1.075rem; color: var(--muted); }
.notice { max-width: none; margin-block: 16px; padding: 12px 16px; border-radius: 16px; background: var(--warn-soft); }
.panel { margin-block: 16px; }
sup { line-height: 0; }
.notice ul { margin-bottom: 0; }

/* Accueil : un panneau clair porte le titre, la recherche et un exemple de résultat. */
.hero { display: grid; gap: 24px; padding: 28px 16px 20px; border-radius: 28px; background: var(--tint); }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 9.4vw, 4.1rem); letter-spacing: -0.035em; word-spacing: 0.05em; line-height: 1; margin: 0 0 14px; }
.hero h1 br { display: none; }
.hero .lead { margin-bottom: 20px; }
.proof { list-style: none; display: grid; gap: 6px; max-width: none; margin: 18px 0 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.proof li { position: relative; margin: 0; padding-left: 1.6rem; }
.proof li::before { content: ''; position: absolute; left: 0.15rem; top: 0.3em; width: 0.45rem; height: 0.8rem; border: solid var(--good); border-width: 0 2.5px 2.5px 0; rotate: 40deg; }
.demo { align-self: center; width: 100%; max-width: 26rem; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.demo figcaption { margin-bottom: 10px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.demo ol { list-style: none; display: grid; gap: 4px; max-width: none; margin: 0; padding: 0; }
.demo li { display: grid; grid-template: 'flag where amt' auto 'flag sub amt' auto / auto 1fr auto; align-items: center; column-gap: 12px; margin: 0; padding: 8px 12px; border-radius: 14px; }
.demo .flag { grid-area: flag; width: 2rem; height: 2rem; }
.demo .where { grid-area: where; font-weight: 700; line-height: 1.2; }
.demo .sub { grid-area: sub; font-size: 0.8rem; color: var(--muted); }
.demo .amt { grid-area: amt; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.demo .best { background: var(--win); box-shadow: inset 4px 0 0 var(--accent); }
.demo .best .sub { color: var(--good); font-weight: 700; }
.demo-saving { max-width: none; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 0.9rem; font-weight: 700; text-align: center; }
.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin: 0; padding: 0; }
.stores li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.8rem; font-weight: 600; }

/* Étapes : une vraie séquence, donc numérotée. */
ol.steps { list-style: none; display: grid; gap: 12px; max-width: none; margin: 0; padding: 0; counter-reset: step; }
ol.steps li { counter-increment: step; margin: 0; padding: 20px; border-radius: 20px; background: var(--tint); }
ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 12px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; }

ul.results { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); max-width: none; margin: 16px 0 0; padding: 0; }
/* Toute la carte est cliquable : le lien s'étend à sa surface. */
ul.results li { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-weight: 600; }
ul.results li:hover { border-color: var(--edge); }
ul.results a { text-decoration: none; }
ul.results a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
ul.results a:focus-visible { outline: 0; }
ul.results a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
ul.results li > img { flex: none; width: 4rem; height: 4rem; object-fit: contain; border-radius: 10px; background: #fff; }
ul.results p { margin: 4px 0 0; font-weight: 400; }
/* Images des produits d'un comparatif, côte à côte : bandeau en tête de sa page, en-tête de sa carte dans les listes.
   Bande de proportion fixe, pour que deux cartes voisines aient la même hauteur : deux ou trois images (3:2) s'y partagent
   la largeur, recadrées au centre. */
.tiles { display: flex; gap: 3px; aspect-ratio: 10 / 3; overflow: hidden; }
.tiles img { flex: 1 1 0; width: 0; height: 100%; object-fit: cover; }
ul.cards li { display: block; padding: 0; }
ul.cards .tiles { border-radius: 17px 17px 0 0; }
ul.cards .tiles + div { padding: 14px 16px; }

/* Produits du moment. Fil : une ligne par produit, vignette à gauche, date en tête (accueil et sommaire de la rubrique). */
ul.feed { list-style: none; display: grid; gap: 12px; max-width: 54rem; margin: 20px 0 0; padding: 0; }
ul.feed li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 14px; align-items: center; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
ul.feed li:hover { border-color: var(--edge); }
ul.feed img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
ul.feed a { font-weight: 700; line-height: 1.25; text-decoration: none; }
/* Toute la ligne est cliquable : le lien s'étend à sa surface. */
ul.feed a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }
ul.feed a:focus-visible { outline: 0; }
ul.feed a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
ul.feed p { margin: 0; }
ul.feed .muted { margin-top: 4px; font-size: 0.92rem; }
ul.feed .btn { display: none; }
/* Fiche d'un produit du moment. Grand écran : image en tête du panneau, résumé, faits en pastilles, puis la fiche du produit
   dans chaque boutique. Téléphone (choix du propriétaire sur maquettes, 25 novembre 2026) : l'image devient une vignette à
   côté du titre et les dix boutiques passent avant le résumé, pour tenir dans le premier écran malgré le bandeau des cookies.
   L'ordre du code reste celui de la lecture (titre, résumé, faits, boutiques) : seul l'affichage change, par `order`. */
.moment { max-width: 46rem; margin-inline: auto; }
.moment .sheet { border-radius: 28px; background: var(--tint); }
.moment .sheet .shot { display: block; object-fit: cover; background: #f2f4f8; }
.moment .sheet h1 { margin: 0 0 12px; }
.moment .sheet h2 { margin: 22px 0 0; font-size: 1.1rem; }
.moment .sheet .lead { margin: 0; color: var(--text); }
.moment .sheet .muted { margin: 14px 0 0; font-size: 0.9rem; }
@media (max-width: 719.98px) {
  .moment .sheet { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px 24px; }
  .moment .sheet > * { grid-column: 1 / -1; order: 5; }
  .moment .sheet .kicker { order: 0; margin-bottom: 8px; }
  .moment .sheet .shot { grid-column: 1; order: 1; width: 96px; height: 64px; border-radius: 14px; }
  .moment .sheet h1 { grid-column: 2; order: 2; margin: 0; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; }
  .moment .sheet h2 { order: 3; margin-top: 12px; font-size: 1rem; }
  .moment .sheet .outlets { order: 3; gap: 6px; margin-top: 8px; }
  .moment .sheet .outlets a { min-height: 2.5rem; padding: 3px 10px; border-radius: 14px; font-size: 0.95rem; }
  .moment .sheet .outlets .flag { width: 22px; height: 22px; }
  .moment .sheet .outlets + .muted, .moment .sheet .cta { order: 4; }
  .moment .sheet .lead { margin-top: 18px; }
}
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin: 18px 0 0; padding: 0; }
.facts li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9rem; font-weight: 600; }
.outlets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; margin: 12px 0 0; padding: 0; }
.outlets li { margin: 0; }
.outlets a { display: flex; gap: 10px; align-items: center; height: 100%; min-height: 3.25rem; padding: 6px 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--surface); font-weight: 700; line-height: 1.2; text-decoration: none; }
.outlets a:hover { border-color: var(--text); }
.outlets .home a { border-color: var(--text); border-width: 2px; }
.outlets small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
@media (min-width: 720px) {
  ul.feed li { grid-template-columns: 12rem 1fr auto; gap: 20px; padding: 12px 20px 12px 12px; }
  ul.feed img { aspect-ratio: 3 / 2; }
  ul.feed a { font-size: 1.1rem; }
  ul.feed .btn { display: inline-flex; }
  .moment .sheet { padding: 0 40px 36px; overflow: hidden; }
  .moment .sheet .shot { width: calc(100% + 80px); max-width: none; height: auto; aspect-ratio: 16 / 9; margin: 0 -40px 32px; }
  .outlets { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
}

/* Questions fréquentes */
details { max-width: 48rem; border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 3.25rem; padding-block: 10px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tint); font-weight: 600; }
details[open] > summary::after { content: '−'; }
details > p { color: var(--muted); }
details > p, details > label, details > button { margin-bottom: 16px; }

/* Page produit */
.product { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; }
.product img { flex: none; width: 4.5rem; height: 4.5rem; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; object-fit: contain; }
.product h1 { font-size: clamp(1.3rem, 4.6vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 6px; overflow-wrap: anywhere; }
.product .muted { margin: 0; font-size: 0.85rem; }
.result { display: grid; gap: 20px; }
.summary { margin: 0; padding-left: 14px; border-left: 3px solid var(--accent); font-size: 0.95rem; max-width: 75ch; }

/* Le meilleur prix : la réponse, visible sans défiler, puis son détail ligne à ligne. */
.winner { display: grid; padding: 20px; border: 1.5px solid var(--win-line); border-radius: 26px; background: var(--win); }
.winner h2 { margin: 0 0 12px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.winner .store { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; font-weight: 800; }
.winner .store .flag { width: 2rem; height: 2rem; }
.country { font-size: 0.85em; font-weight: 500; color: var(--muted); }
.winner .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 0; }
.winner .amount { font-size: clamp(3rem, 14vw, 4.25rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.winner .unit { font-weight: 600; color: var(--muted); }
.winner .saving { justify-self: start; margin: 14px 0 0; padding: 6px 14px; border-radius: 14px; background: var(--good-soft); color: var(--good); font-size: 0.95rem; font-weight: 700; }
.winner .btn { margin-top: 16px; min-height: 3.25rem; font-size: 1.05rem; }
.winner dl { order: 1; margin: 16px 0 0; padding: 4px 16px; border-radius: 18px; background: var(--surface); }
.winner dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.winner dl div:last-child { border: 0; }
.winner dt { color: var(--muted); }
.winner dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.winner .total dt, .winner .total dd { color: var(--text); font-weight: 800; }
dt small, td small { font-size: 0.8rem; font-weight: 700; color: var(--good); white-space: nowrap; }
/* Réserve sur un montant (douane non estimée) : gris, le vert reste réservé à ce qui fait économiser. */
td small.note { font-weight: 400; color: var(--muted); }

/* Tableaux */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { padding: 14px 16px; text-align: left; font-size: 0.85rem; color: var(--muted); }
th, td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 16px; text-align: left; }
th:last-child, td:last-child { padding-right: 16px; }
thead th { border-top: 0; background: var(--tint); font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: normal; vertical-align: bottom; }
caption + thead th { border-top: 1px solid var(--line); }
tbody th { font-weight: 700; }
tbody th .flag { margin-right: 10px; vertical-align: -0.4em; }
tbody th .country { margin-left: 4px; }
tr.best { background: var(--win); box-shadow: inset 4px 0 0 var(--accent); }
tr.off td, tr.off .name { color: var(--muted); }
td.total { font-size: 1.05rem; font-weight: 800; }
.plus { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--good); color: var(--on-good); font-size: 0.8rem; font-weight: 700; }
/* Barre d'écart : la part du surcoût de chaque boutique par rapport au plus grand écart du tableau. */
.track { display: block; min-width: 5rem; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.track svg { display: block; }
.track rect { fill: var(--accent); }
td .btn { padding-inline: 1rem; font-size: 0.9rem; }

/* Tableau comparatif sous 1024 px : un bloc compact par boutique (boutique et total, écart et bouton,
   détail en petit), sans défilement horizontal. Les rôles ARIA du HTML conservent la sémantique de tableau. */
@media (max-width: 1023px) {
  table.stack, table.stack caption, table.stack tbody { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  table.stack th, table.stack td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  table.stack tbody th { order: 1; flex: 1 1 50%; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; line-height: 1.25; }
  table.stack tbody th .flag { grid-row: span 2; width: 2rem; height: 2rem; margin: 0; }
  table.stack tbody th .country { margin: 0; }
  table.stack td.total { order: 2; font-size: 1.3rem; }
  table.stack td.delta, table.stack td.status { order: 3; flex: 1 1 calc(100% - 9.5rem); }
  table.stack td.status { color: var(--muted); }
  table.stack .plus::after { content: ' de plus'; }
  table.stack td.action { order: 4; }
  table.stack td[data-label] { order: 5; font-size: 0.8rem; color: var(--muted); }
  table.stack td[data-label]::before { content: attr(data-label) ' '; }
  table.stack td br { display: none; }
  table.stack td small { margin-left: 0.3em; }
}

/* Comparatifs « X ou Y » : la réponse et les boutons vers le comparateur d'abord, puis le tableau,
   puis ce qui change d'une boutique Amazon à l'autre. */
.kicker { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.banner { border-radius: 28px 28px 0 0; }
.answer { display: grid; gap: 20px; padding: 24px 16px; border-radius: 28px; background: var(--tint); }
.banner + .answer { border-radius: 0 0 28px 28px; }
.answer h1 { margin: 0 0 12px; }
.answer .lead { margin: 0; color: var(--text); }
.picks { display: grid; gap: 12px; }
.pick { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.pick h2 { margin: 0; font-size: 1.25rem; }
.pick p { margin: 0; color: var(--muted); }
.pick .models { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.pick .models p { flex-basis: 100%; font-size: 0.85rem; font-weight: 700; }
table.spec th, table.spec td { text-align: left; white-space: normal; vertical-align: top; }
table.spec tbody th { font-weight: 600; color: var(--muted); }
.shops { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); max-width: none; margin: 0; padding: 0; }
.shops li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; align-content: center; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--tint); }
.shops .flag { grid-row: span 2; width: 2rem; height: 2rem; }
.shops strong { line-height: 1.2; }
.shops span { font-size: 0.9rem; color: var(--muted); }
.sources { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 30rem) { /* téléphone : le tableau tient dans l'écran, sans défilement horizontal */
  table.spec { font-size: 0.85rem; }
  table.spec th, table.spec td { padding: 10px 6px; hyphens: auto; overflow-wrap: anywhere; }
  table.spec th:first-child, table.spec td:first-child { padding-left: 12px; }
  table.spec th:last-child, table.spec td:last-child { padding-right: 12px; }
  /* Trois produits : une colonne de trop pour un téléphone. Chaque critère devient un bloc, une ligne par produit. */
  table.wide, table.wide caption, table.wide tbody, table.wide tr, table.wide tbody th, table.wide td { display: block; }
  table.wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.wide tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  table.wide tbody th, table.wide td { padding: 0; border: 0; }
  table.wide td::before { content: attr(data-label) ' : '; font-weight: 700; }
}
@media (min-width: 720px) {
  .answer { padding: 40px; }
  .picks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .banner { border-radius: 36px 36px 0 0; }
  .answer { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 56px; border-radius: 36px; }
  .banner + .answer { border-radius: 0 0 36px 36px; }
  .picks { grid-template-columns: 1fr; }
}

/* Back-office */
dl.kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); margin: 16px 0; }
dl.kpi div { padding: 14px 16px; border-radius: 18px; background: var(--tint); }
dl.kpi dt { font-size: 0.85rem; color: var(--muted); }
dl.kpi dd { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; font-variant-numeric: tabular-nums; }
nav.period { display: flex; flex-wrap: wrap; gap: 8px; }
nav.period a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Bannière de consentement : une barre basse, pour laisser la page visible (choix du propriétaire sur maquettes,
   25 novembre 2026). Refuser et accepter ont exactement le même poids visuel (CNIL). */
.consent { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border: solid var(--edge); border-width: 1.5px 0 0; border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: var(--shadow); font-size: 0.88rem; }
.consent p { margin: 0; line-height: 1.35; }
.consent .custom { margin-top: 6px; }
.consent .custom p { margin: 2px 0 10px; }
.consent label { display: flex; align-items: center; gap: 8px; min-height: 2.75rem; }
.consent input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; accent-color: var(--accent); }
.consent .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.consent .actions .btn { min-height: 2.5rem; padding-block: 4px; }
@media (min-width: 720px) {
  .consent { inset: auto 12px 12px 12px; display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: center; max-width: 46rem; margin: 0 auto; padding: 12px 14px 12px 18px; border-width: 1.5px; border-radius: 22px; }
  .consent > p { grid-area: 1 / 1; }
  .consent .actions { grid-area: 1 / 2; margin: 0; }
  .consent .actions .btn { padding-inline: 18px; }
  .consent .custom { grid-area: 2 / 1 / 3 / 3; }
}

@media (min-width: 720px) {
  ol.steps { grid-template-columns: repeat(3, 1fr); }
  .product img { width: 6.5rem; height: 6.5rem; }
  form.search { grid-template-columns: 1fr auto auto; align-items: center; border-radius: 999px; }
  form.search .field { border-radius: 999px; padding-inline: 22px 8px; }
  form.search .field + .field { border-top: 0; border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; padding-inline: 14px 10px; }
  form.search .btn { margin: 0 0 0 6px; }
  .winner { grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 28px; }
  .winner > * { grid-column: 1; }
  .winner .btn { justify-self: start; padding-inline: 2rem; }
  .winner dl { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0; }
}
@media (min-width: 1100px) {
  .hero { grid-template-columns: 1.35fr 0.65fr; gap: 28px 48px; padding: 56px 56px 32px; border-radius: 36px; }
  .hero h1 br { display: inline; }
  .stores { grid-column: 1 / -1; max-width: 44rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
