/* ==========================================================================
   Robiami — charte 2026  (remplace style.css ; style.css reste sur le serveur
   pour le retour arrière).  Une seule police (Inter, auto-hébergée), un seul
   accent pour les boutons d'achat (jaune signal), le bleu marine et le bleu vif
   du logo comme couleurs de marque.  Contrastes vérifiés WCAG AA.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marque (logo) */
  --navy: #0a2444;          /* titres, pied de page, texte des boutons jaunes */
  --navy-900: #061630;
  --brand: #0079fa;         /* bleu vif : décor uniquement (traits, puces, graphique) */
  /* Interface */
  --primary: #0057d9;       /* liens et boutons bleus : blanc dessus = 6,3:1 */
  --primary-hover: #0a2444;
  --primary-50: #eef4ff;
  --primary-100: #dbe8ff;
  /* Accent unique : bouton d'achat */
  --cta: #ffc53d;           /* jaune signal : texte marine dessus = 9,9:1 */
  --cta-hover: #ffb300;
  --cta-ink: #0a2444;
  /* Neutres */
  --text: #243244;          /* texte courant : 13:1 sur blanc */
  --muted: #566376;         /* texte secondaire : 6,1:1 sur blanc, 5,7:1 sur --bg */
  --line: #e2e7ee;
  --line-strong: #cfd7e3;
  --bg: #f5f7fa;
  --surface: #ffffff;
  /* Sémantique */
  --success: #067647;       /* « vous économisez » : 5,6:1 sur blanc */
  --success-50: #ecfdf3;
  --danger: #b42318;
  --danger-50: #fef3f2;

  /* Typo — échelle 1,25 (tierce majeure), fluide */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-base: 1.0625rem;/* 17 */
  --fs-lg: 1.1875rem;  /* 19 */
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.375rem);
  --fs-h2: clamp(1.45rem, 1.25rem + .9vw, 1.875rem);
  --fs-h1: clamp(1.9rem, 1.5rem + 1.9vw, 2.875rem);

  /* Espacements — base 4 px */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 36, 68, .06);
  --shadow: 0 1px 2px rgba(10, 36, 68, .05), 0 8px 24px rgba(10, 36, 68, .07);
  --shadow-lg: 0 2px 4px rgba(10, 36, 68, .06), 0 18px 40px rgba(10, 36, 68, .12);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--primary);
  --container: 1200px;
  --measure: 68ch;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.03em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--primary-100); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
@media (max-width: 600px) { .container { padding: 0 var(--s4); } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 8px; }
.icon { flex: none; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand img { width: 40px; height: 40px; border-radius: 12px; display: block; }
.brand__texte { display: flex; flex-direction: column; line-height: 1.1; }
.brand__nom { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand__baseline { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: var(--s1); }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--navy);
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--primary-50); color: var(--primary); }
.main-nav a[aria-current="page"], .main-nav a.active { background: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .brand__baseline { display: none; }
  .site-header .container { min-height: 60px; gap: var(--s3); }
  .main-nav a { padding: 8px 10px; }
  .main-nav__jeu .icon { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; margin-top: var(--s2);
  border: 1px solid transparent; border-radius: 10px;
  background: var(--primary); color: #fff;
  font: 600 var(--fs-sm)/1.2 var(--font); text-align: center; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--compact { min-height: 44px; padding: 10px 18px; margin-top: 0; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--primary-50); color: var(--primary); border-color: var(--primary); }
.btn--clair { background: #fff; color: var(--navy); }
.btn--clair:hover { background: var(--primary-50); color: var(--navy); }

/* Bouton d'achat (accent unique) — fiches, grilles, et liens Amazon des articles */
.btn--achat,
.prose a[href*="amazon.fr"][rel*="sponsored"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  background: var(--cta); color: var(--cta-ink);
  border: 1px solid rgba(10, 36, 68, .10); border-radius: 10px;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none;
  box-shadow: 0 1px 0 rgba(10, 36, 68, .08), inset 0 -2px 0 rgba(10, 36, 68, .08);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn--achat:hover,
.prose a[href*="amazon.fr"][rel*="sponsored"]:hover {
  background: var(--cta-hover); color: var(--cta-ink);
  box-shadow: 0 4px 14px rgba(255, 179, 0, .35);
}
.btn--achat { width: 100%; margin-top: var(--s2); }
.btn--desactive, .btn--desactive:hover { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.icon--externe { opacity: .8; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(0, 121, 250, .35), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(0, 121, 250, .18), transparent 60%),
    linear-gradient(180deg, #0a2444 0%, #061630 100%);
  color: #fff;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center;
  padding-top: var(--s8); padding-bottom: var(--s8);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--s4);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; color: #dbe8ff;
}
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.hero h1 { color: #fff; margin: 0 0 var(--s4); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.hero h1 em { font-style: normal; color: #7cc0ff; }
.hero__lead { margin: 0 0 var(--s5); font-size: var(--fs-lg); color: #c9d8ee; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__actions .btn { margin: 0; min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.hero__actions .btn--achat { width: auto; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero__actions .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.hero__preuves { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s5) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: #c9d8ee; }
.hero__preuves li { display: inline-flex; align-items: center; gap: 8px; }
.hero__preuves svg { color: #7cc0ff; }
.hero__visuel img {
  width: 100%; display: block; border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s6); padding-bottom: var(--s6); }
  .hero__visuel { order: -1; }
}
/* L'ancienne bannière plein écran (si un autre gabarit l'utilise encore) */
.hero-banner img { width: 100%; height: auto; display: block; }

/* ---------- Sections / intros ---------- */
.page-intro { margin: var(--s6) 0 var(--s4); max-width: 760px; }
.page-intro h1 { margin: 0 0 var(--s3); }
.page-intro p { margin: 0; color: var(--muted); font-size: var(--fs-lg); }
.section-title { font-size: var(--fs-h2); margin: var(--s7) 0 var(--s4); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin: var(--s7) 0 var(--s4); }
.section-head h2 { margin: 0; font-size: var(--fs-h2); }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { color: var(--primary); font-weight: 600; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* Raccourcis vers les comparatifs (accueil) */
.raccourcis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin: var(--s6) 0 0; }
.raccourci {
  display: flex; flex-direction: column; gap: 6px; padding: var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.raccourci:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.raccourci__icone { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-50); color: var(--primary); }
.raccourci strong { color: var(--navy); font-size: 1.05rem; }
.raccourci span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .raccourcis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .raccourcis { grid-template-columns: 1fr 1fr; gap: var(--s3); } .raccourci { padding: var(--s4); } .raccourci span { display: none; } }

/* ---------- Puces de catégorie (défilement horizontal sur mobile) ---------- */
.category-bar {
  display: flex; gap: var(--s2); margin: var(--s5) 0 var(--s4);
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.category-bar::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .category-bar { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 36px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.chip--active, .chip--active:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Barre recherche / tri ---------- */
.barre-outils {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin: 0 0 var(--s4); padding: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.barre-outils__champ { position: relative; flex: 1 1 280px; }
.barre-outils__loupe { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.barre-outils input[type="search"], .barre-outils select {
  width: 100%; min-height: 44px; font: 500 max(1rem, 16px)/1.2 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.barre-outils input[type="search"] { padding: 10px 14px 10px 42px; }
.barre-outils input[type="search"]::placeholder { color: var(--muted); }
.barre-outils input:focus, .barre-outils select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); background: #fff; }
.barre-outils__tri { display: flex; align-items: center; gap: var(--s2); }
.barre-outils__tri label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.barre-outils select { width: auto; padding: 8px 36px 8px 12px; }
@media (max-width: 600px) { .barre-outils__tri { flex: 1; } .barre-outils select { flex: 1; } .barre-outils .btn { flex: none; } }
.resultat-recherche { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--s4); }
.resultat-recherche a { color: var(--primary); text-decoration: underline; }

/* ---------- Bandeaux & mentions ---------- */
.affiliate-notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 var(--s4); padding: var(--s3) var(--s4);
  background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: var(--text);
}
.affiliate-notice a { color: var(--primary); text-decoration: underline; }
.affiliate-notice--inline { margin: var(--s2) 0 var(--s4); background: transparent; border: 0; padding: 0; font-size: var(--fs-xs); color: var(--muted); }
.bandeau-offre { padding: var(--s3) var(--s4); border-radius: var(--radius-sm); background: #fff8e1; border: 1px solid #ffe08a; color: var(--navy); font-weight: 600; }
.admin-warning { padding: var(--s3) var(--s4); border-radius: var(--radius-sm); background: var(--danger-50); border: 1px solid #fecdca; color: var(--danger); }
.admin-warning a { text-decoration: underline; }

/* ---------- Grille d'offres ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s5); margin: var(--s4) 0 var(--s6); }
.deal-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.deal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.thumb { position: relative; display: block; }
.deal-card .thumb { aspect-ratio: 4 / 3; background: #fff; padding: var(--s4); border-bottom: 1px solid var(--line); }
.deal-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb__fallback { opacity: .35; }
.deal-card .body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; padding: var(--s4); }
.merchant { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.deal-card h2.name, .deal-card .name { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.deal-card .name a { color: var(--navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deal-card .name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }  /* carte entièrement cliquable */
.deal-card .name a:hover { color: var(--primary); }
.deal-card .btn--achat, .deal-card .price-date, .deal-card .temperature { position: relative; z-index: 1; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: var(--s2); }
.price { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.price--barre { text-decoration: line-through; color: var(--muted); }
.economie { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; color: var(--success); background: var(--success-50); padding: 3px 8px; border-radius: 6px; }
.rupture { font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.price-date { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.lien-direct { font-style: italic; }

.badge-remise {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: var(--fs-xs); font-weight: 800; font-variant-numeric: tabular-nums;
}
.badge-remise.badge-remise--ligne { position: static; padding: 3px 9px; }

/* Température (score du bon plan) */
.temperature {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700;
}
.temperature__degres { font-variant-numeric: tabular-nums; }
.temperature__label { font-weight: 600; }
.temperature--faible  { background: #eef2f6; color: #344256; }
.temperature--tiede   { background: var(--primary-50); color: #0b3a80; }
.temperature--chaud   { background: var(--primary); color: #fff; }
.temperature--brulant { background: var(--navy); color: #fff; box-shadow: 0 0 0 2px rgba(0, 121, 250, .35); }

/* Légende */
.legende { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.legende summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.legende__contenu { padding-top: var(--s2); }
.legende__echelle { list-style: none; padding: 0; margin: var(--s3) 0; }
.legende__echelle li { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.legende__note { color: var(--muted); font-size: var(--fs-xs); margin-bottom: 0; }
.pastille { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.pastille--faible  { background: #eef2f6; border: 1px solid var(--line-strong); }
.pastille--tiede   { background: var(--primary-50); border: 1px solid #a8ccf7; }
.pastille--chaud   { background: var(--primary); }
.pastille--brulant { background: var(--navy); box-shadow: 0 0 0 2px rgba(0, 121, 250, .35); }

/* Carte jeu FLIP RUSH (discrète) */
.carte-jeu {
  display: flex; align-items: center; gap: var(--s4); margin: var(--s5) 0 0; padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.carte-jeu__icone { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--primary-50); color: var(--primary); }
.carte-jeu__texte { flex: 1; }
.carte-jeu__texte p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.carte-jeu__texte .carte-jeu__titre { color: var(--navy); font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.carte-jeu__bouton { margin: 0; flex: none; }
@media (max-width: 640px) { .carte-jeu { flex-wrap: wrap; } .carte-jeu__bouton { width: 100%; } }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin: var(--s6) 0; }
.pagination__status { font-size: var(--fs-sm); color: var(--muted); }

/* État vide */
.empty-state { text-align: center; padding: var(--s8) var(--s4); margin: var(--s6) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state__mascot { border-radius: 50%; margin-bottom: var(--s3); }
.empty-state__actions { margin-top: var(--s5); }
.empty-inline { color: var(--muted); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: var(--s5) 0 var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 600; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fiche produit ---------- */
.product-detail {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7);
  padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.product-detail .thumb { align-self: start; position: sticky; top: 96px; padding: var(--s5); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.product-detail .thumb img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.product-detail h1 { margin: 0 0 var(--s3); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.product-detail__description { margin: var(--s4) 0; color: var(--text); max-width: var(--measure); }
.product-detail__description p { margin: 0 0 var(--s3); }
.reperes-prix { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s3); margin: var(--s5) 0; }
.reperes-prix > div { padding: var(--s3) var(--s4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.reperes-prix dt { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 2px; }
.reperes-prix dd { margin: 0; font-weight: 800; color: var(--navy); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.reperes-prix__mini { color: var(--success) !important; }
.offer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4);
  margin-top: var(--s4); padding: var(--s4) var(--s5);
  border: 2px solid var(--navy); border-radius: var(--radius); background: #fff;
}
.offer-row__marchand { font-weight: 800; color: var(--navy); font-size: 1rem; }
.offer-row__prix { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.offer-row .price { font-size: 1.75rem; }
.offer-row .btn--achat { width: auto; margin: 0 0 0 auto; min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.offer-row .price-date { flex-basis: 100%; }
.offer-row--terminee { border-color: var(--line-strong); opacity: .85; }
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s4); border-radius: var(--radius); }
  .product-detail .thumb { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
  .offer-row .btn--achat { width: 100%; margin-left: 0; }
}
.history-chart-wrap { margin: var(--s6) 0; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.history-chart-wrap .section-title { margin-top: 0; }
.history-chart-wrap__aide { color: var(--muted); font-size: var(--fs-sm); margin-top: -8px; }
.history-chart-wrap__canvas { position: relative; }

/* ---------- Liste d'articles ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); margin: var(--s5) 0 var(--s7); }
.blog-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card .body { padding: var(--s4) var(--s5) var(--s5); }
.blog-card__date { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.blog-card h2 { margin: 6px 0 8px; font-size: 1.2rem; }
.blog-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Article : mise en page ---------- */
.article-hero { max-width: 880px; margin: 0 auto var(--s6); text-align: left; }
.article-hero__kicker { display: inline-block; margin-bottom: var(--s3); padding: 4px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
.article-hero h1 { margin: 0 0 var(--s4); }
.article-hero__excerpt { margin: 0 0 var(--s4); font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; }
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.article-hero__meta img { width: 32px; height: 32px; border-radius: 50%; }
.article-hero__meta strong { color: var(--navy); }
.article-body__cover { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); margin: var(--s5) 0 0; box-shadow: var(--shadow); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s7); align-items: start; max-width: 1080px; margin: 0 auto var(--s8); }
.article-layout > .article-body { min-width: 0; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); }
.toc[hidden] { display: none; }
.toc__titre { margin: 0 0 var(--s2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--text); line-height: 1.35; }
.toc li a:hover { color: var(--primary); border-left-color: var(--primary); }
.toc li a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; background: var(--primary-50); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; order: -1; margin-bottom: var(--s5); }
  .toc ol { display: none; }
  .toc.is-open ol { display: block; }
  .toc__titre { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .toc__titre::after { content: "▾"; }
}

/* Corps d'article et pages légales */
.article-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s7) var(--s7); margin: var(--s4) 0 var(--s7); box-shadow: var(--shadow-sm); }
.article-layout > .article-body { margin: 0; }
@media (max-width: 700px) { .article-body { padding: var(--s5) var(--s4); border-radius: var(--radius); } }

.prose, .legal-page { color: var(--text); font-size: var(--fs-base); line-height: 1.7; }
.prose > *, .legal-page > * { max-width: var(--measure); }
.prose > div, .prose > table, .prose > figure, .prose > .pick { max-width: none; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { font-size: var(--fs-h2); margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h3); margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.prose a:not([rel*="sponsored"]) { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not([rel*="sponsored"]):hover { color: var(--navy); text-decoration-thickness: 2px; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--primary); font-weight: 700; }
.prose small { font-size: var(--fs-xs); color: var(--muted); }
.prose em { color: var(--muted); }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: var(--s4) var(--s5); border-left: 4px solid var(--brand); background: var(--primary-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Tableaux : défilement horizontal sur mobile, 1re colonne figée */
.prose .table-scroll, .prose div[style*="overflow"] {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s5) 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); line-height: 1.45; min-width: 720px; }
.prose thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-weight: 700; text-align: left; padding: 12px 14px; white-space: nowrap; font-size: var(--fs-xs); letter-spacing: .03em; text-transform: uppercase; }
.prose tbody th, .prose tbody td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.prose tbody tr:nth-child(even) > * { background: #f9fbfd; }
.prose tbody tr:hover > * { background: var(--primary-50); }
.prose tbody th { font-weight: 700; color: var(--navy); position: sticky; left: 0; background: #fff; z-index: 1; min-width: 160px; box-shadow: 1px 0 0 var(--line); }
.prose tbody th a { color: var(--navy) !important; text-decoration: none !important; }
.prose tbody th a:hover { color: var(--primary) !important; }
.prose table a[href*="amazon.fr"][rel*="sponsored"] { min-height: 38px; padding: 8px 14px; font-size: var(--fs-xs); white-space: nowrap; }
.prose table a[href*="amazon.fr"][rel*="sponsored"]::after { content: none; }

/* Liens Amazon devenus boutons (aucune modification du contenu publié) */
.prose a[href*="amazon.fr"][rel*="sponsored"] { margin: 4px 8px 4px 0; }
.prose a[href*="amazon.fr"][rel*="sponsored"]::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Paragraphe d'achat (bouton + « notre fiche » + source) : en ligne d'actions */
.prose p.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: var(--s4); margin: var(--s4) 0 0; background: var(--bg); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.prose p.cta-line small { flex-basis: 100%; }
@media (max-width: 560px) { .prose p.cta-line a[href*="amazon.fr"] { width: 100%; } }

/* Fiches produit dans l'article (ajoutées par article.js, sinon rendu normal) */
.prose .pick { margin: var(--s5) 0; padding: var(--s5) var(--s5) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.prose .pick > h4 { margin: 0 0 var(--s3); font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.prose .pick > h4::before { content: counter(pick); counter-increment: pick; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--navy); color: #fff; font-size: .95rem; }
.prose { counter-reset: pick; }
.prose .pick > *:last-child { margin-bottom: 0; }
.prose .pick p.verdict { font-size: var(--fs-lg); color: var(--navy); }
.prose .pick p.pour, .prose .pick p.contre, .prose .pick p.limites { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: var(--fs-sm); }
.prose .pick p.pour { background: var(--success-50); }
.prose .pick p.contre, .prose .pick p.limites { background: #fff7ed; }
.prose .pick p.pour strong { color: var(--success); }
.prose .pick p.contre strong, .prose .pick p.limites strong { color: #9a3412; }

/* FAQ : chaque h3 après « Questions fréquentes » devient une carte */
.prose .faq { border: 1px solid var(--line); border-radius: var(--radius); margin: var(--s4) 0; overflow: hidden; max-width: none; }
.prose .faq details { border-top: 1px solid var(--line); }
.prose .faq details:first-child { border-top: 0; }
.prose .faq summary { cursor: pointer; padding: var(--s4) var(--s5); font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.prose .faq summary::-webkit-details-marker { display: none; }
.prose .faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.prose .faq details[open] summary::after { content: "−"; }
.prose .faq details > div { padding: 0 var(--s5) var(--s4); }
.prose .faq details > div p:last-child { margin-bottom: 0; }

/* Mention affiliation en tête d'article */
.prose p.mention-affil { display: block; padding: var(--s3) var(--s4); background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.prose p.mention-affil strong { font-weight: 600; color: var(--text); }

/* Pages légales */
.legal-page { max-width: 860px; margin-left: auto; margin-right: auto; }
.legal-page h1 { margin-top: 0; }
.legal-page h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.legal-page h3 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
.legal-page a { color: var(--primary); text-decoration: underline; }
.legal-page a.btn { color: #fff; text-decoration: none; }
.legal-page__updated { color: var(--muted); font-size: var(--fs-sm); }
.legal-page__highlight { padding: var(--s4); background: var(--primary-50); border-radius: var(--radius-sm); }
.legal-page__todo { color: var(--danger); font-style: italic; }
.contact-social { padding-left: 20px; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: var(--s8); background: var(--navy-900); color: #c3d0e2; font-size: var(--fs-sm); }
.site-footer .container { padding-top: var(--s7); padding-bottom: var(--s5); }
.site-footer a { color: #fff; }
.site-footer__disclosure { margin: 0 0 var(--s6); padding: var(--s4) var(--s5); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); line-height: 1.6; }
.site-footer__disclosure strong { color: #fff; }
.site-footer__disclosure a { text-decoration: underline; }
.site-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6); }
.site-footer__marque { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); color: #fff; font-weight: 800; font-size: 1.2rem; }
.site-footer__marque img { border-radius: 10px; }
.site-footer__col p { margin: 0; max-width: 40ch; }
.site-footer__col h2 { margin: 0 0 var(--s3); color: #fff; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { color: #c3d0e2; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__legal { margin: var(--s6) 0 0; padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); color: #9fb0c8; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #c3d0e2; text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } .site-footer__col:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { max-width: 920px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cookie-banner h2 { color: var(--navy); font-size: 1rem; margin: 0 0 6px; }
.cookie-banner p { margin: 0; font-size: var(--fs-sm); max-width: 62ch; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.cookie-banner__actions .btn { margin-top: 0; min-width: 150px; }

@media print { .site-header, .site-footer, .toc, .cookie-banner { display: none; } .article-body { border: 0; box-shadow: none; } }

/* Ajustements article */
.article-hero h1 { text-wrap: pretty; }
.article-hero .article-body__cover { aspect-ratio: 16 / 7; object-fit: cover; max-height: 460px; }
.main-nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .brand img { width: 34px; height: 34px; }
  .brand__nom { font-size: 1.1rem; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 7px 9px; font-size: .875rem; }
}
.prose p.cta-line { display: block; line-height: 2.1; }
.prose p.cta-line a[href*="amazon.fr"][rel*="sponsored"] { line-height: 1.2; vertical-align: middle; }
.prose p.cta-line small { display: block; line-height: 1.5; margin-top: 6px; }
.affiliate-notice { display: block; }
@media (max-width: 600px) {
  .barre-outils__tri { flex: 1 1 0; min-width: 0; }
  .barre-outils__tri label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .barre-outils select { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .article-layout > .article-body { margin: 0 -6px; padding: var(--s5) var(--s4); }
}
@media (max-width: 600px) { .barre-outils__champ { flex: 1 1 100%; } }
@media (min-width: 1001px) { .article-layout { max-width: 1180px; grid-template-columns: minmax(0, 1fr) 250px; gap: var(--s6); } }
.article-hero { max-width: 1180px; padding-right: 0; }
@media (min-width: 1001px) { .article-hero { padding-right: calc(250px + var(--s6)); } }
.prose .table-scroll table th, .prose .table-scroll table td { min-width: 96px; }

/* Typo française : éviter qu'un « : » ou « ? » parte seul à la ligne (filet de sécurité, en plus des espaces insécables) */
h1, h2, h3, .article-hero h1 { text-wrap: balance; }
p { text-wrap: pretty; }
