/* ------------------------------------------------------------------
   Techcir — feuille de style unique, quatre palettes.
   La palette active est posée par l'attribut data-theme sur <html>,
   piloté par la variable d'environnement SITE_THEME.
   Aucune couleur n'est écrite en dur plus bas : tout passe par ces jetons.
------------------------------------------------------------------- */


:root,
[data-theme="brand"] {
  /* Palette de marque : bleu Techcir pour l'action, jaune Techcir pour tout ce
     qui signale une économie. Surfaces claires, panneaux bleu nuit. */
  --fg: #0b1020;
  --fg-2: #5c6880;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e2e7f2;
  --panel: #0a1330;
  --on-panel: #ffffff;
  --on-panel-2: #a9b6d4;
  --accent: #1e5bff;
  --accent-2: #1546d8;
  --accent-soft: #e7edff;
  --accent-ink: #12379e;
  --gain: #ffc400;
  --gain-soft: #fff4cf;
  --gain-ink: #7a5600;
  --on-gain: #2a1f00;
  --brand-a: #6e9bff;
  --brand-b: #ffc400;
  --glow-a: rgba(30, 91, 255, 0.55);
  --glow-b: rgba(255, 196, 0, 0.30);
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.05), 0 8px 24px rgba(11, 16, 32, 0.08);
  --shadow-lift: 0 2px 4px rgba(11, 16, 32, 0.06), 0 18px 40px rgba(11, 16, 32, 0.16);
  --shadow-flat: 0 1px 2px rgba(11, 16, 32, 0.06);
  --shadow-accent: 0 10px 24px rgba(30, 91, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.88);
}

[data-theme="iodine"] {
  /* Violet électrique et menthe sur surfaces claires. */
  --fg: #0d0f14;          /* texte principal */
  --fg-2: #626b7b;        /* texte secondaire */
  --bg: #f5f6f8;          /* fond de page */
  --surface: #ffffff;     /* cartes */
  --line: #e6e9ee;        /* filets */
  --panel: #0d0f14;       /* panneaux sombres : héros, pied de page */
  --on-panel: #ffffff;
  --on-panel-2: #b9c0cc;
  --accent: #5b3df5;      /* action */
  --accent-2: #4a2ee0;    /* action survolée */
  --accent-soft: #f0edff;
  --accent-ink: #3a2ea8;
  --gain: #00b589;        /* économie réalisée */
  --gain-soft: #e4faf3;
  --gain-ink: #046a52;
  --on-gain: #04241c;
  --brand-a: #7b61ff;     /* dégradé du monogramme */
  --brand-b: #00d7a0;
  --glow-a: rgba(91, 61, 245, 0.55);
  --glow-b: rgba(0, 181, 137, 0.35);
  --shadow: 0 1px 2px rgba(13, 15, 20, 0.04), 0 8px 24px rgba(13, 15, 20, 0.06);
  --shadow-lift: 0 2px 4px rgba(13, 15, 20, 0.05), 0 18px 40px rgba(13, 15, 20, 0.12);
  --shadow-flat: 0 1px 2px rgba(13, 15, 20, 0.05);
  --shadow-accent: 0 10px 24px rgba(91, 61, 245, 0.28);
  --glass: rgba(255, 255, 255, 0.86);
}

[data-theme="fuchsia"] {
  /* Magenta profond et sarcelle, fond légèrement rosé. */
  --fg: #16101a;
  --fg-2: #6b6070;
  --bg: #f8f5f9;
  --surface: #ffffff;
  --line: #ebe4ee;
  --panel: #17101c;
  --on-panel: #ffffff;
  --on-panel-2: #c6b8ca;
  --accent: #d6156f;
  --accent-2: #b70f5d;
  --accent-soft: #ffebf4;
  --accent-ink: #96003f;
  --gain: #0f9d8b;
  --gain-soft: #e2f7f4;
  --gain-ink: #056055;
  --on-gain: #032420;
  --brand-a: #ff4d9d;
  --brand-b: #ffc24d;
  --glow-a: rgba(214, 21, 111, 0.5);
  --glow-b: rgba(255, 194, 77, 0.28);
  --shadow: 0 1px 2px rgba(22, 16, 26, 0.04), 0 8px 24px rgba(22, 16, 26, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 16, 26, 0.06), 0 18px 40px rgba(22, 16, 26, 0.14);
  --shadow-flat: 0 1px 2px rgba(22, 16, 26, 0.06);
  --shadow-accent: 0 10px 24px rgba(214, 21, 111, 0.26);
  --glass: rgba(255, 255, 255, 0.87);
}

[data-theme="marine"] {
  /* Bleu nuit, sarcelle et vert de gain : lecture froide et sobre. */
  --fg: #0a1a26;
  --fg-2: #5a6f7d;
  --bg: #f1f5f8;
  --surface: #ffffff;
  --line: #dde7ee;
  --panel: #07182a;
  --on-panel: #ffffff;
  --on-panel-2: #a9bccb;
  --accent: #0e7c86;
  --accent-2: #0a656d;
  --accent-soft: #e3f4f5;
  --accent-ink: #075055;
  --gain: #1f9d55;
  --gain-soft: #e6f6ec;
  --gain-ink: #106033;
  --on-gain: #04220f;
  --brand-a: #2fd8d2;
  --brand-b: #7de1a1;
  --glow-a: rgba(14, 124, 134, 0.55);
  --glow-b: rgba(125, 225, 161, 0.3);
  --shadow: 0 1px 2px rgba(10, 26, 38, 0.05), 0 8px 24px rgba(10, 26, 38, 0.08);
  --shadow-lift: 0 2px 4px rgba(10, 26, 38, 0.06), 0 18px 40px rgba(10, 26, 38, 0.15);
  --shadow-flat: 0 1px 2px rgba(10, 26, 38, 0.06);
  --shadow-accent: 0 10px 24px rgba(14, 124, 134, 0.28);
  --glass: rgba(255, 255, 255, 0.88);
}

[data-theme="noir"] {
  /* Mode sombre intégral : surfaces graphite, accents lumineux. */
  --fg: #edeff3;
  --fg-2: #939bab;
  --bg: #0a0b0e;
  --surface: #14161b;
  --line: #24272f;
  --panel: #171a21;
  --on-panel: #ffffff;
  --on-panel-2: #a4acbb;
  --accent: #5b8bff;
  --accent-2: #4a7aff;
  --accent-soft: rgba(91, 139, 255, 0.16);
  --accent-ink: #a8c2ff;
  --gain: #ffc400;
  --gain-soft: rgba(255, 196, 0, 0.14);
  --gain-ink: #ffd85c;
  --on-gain: #2a1f00;
  --brand-a: #5b8bff;
  --brand-b: #ffc400;
  --glow-a: rgba(30, 91, 255, 0.5);
  --glow-b: rgba(255, 196, 0, 0.24);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.6);
  --shadow-flat: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 24px rgba(124, 108, 255, 0.3);
  --glass: rgba(10, 11, 14, 0.82);
}

:root {
  /* Couleurs de marque, identiques sur toutes les palettes :
     « Tech » en bleu, « cir » en jaune. */
  --brand-blue: #1E5BFF;
  --brand-blue-light: #6E9BFF;
  --brand-yellow: #FFC400;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --wrap: 1200px;
  --gap: 18px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.pad { padding-block: 38px; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; color: var(--fg-2); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--panel); color: var(--on-panel); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ en-tête */

.head {
  position: sticky; top: 0; z-index: 50; background: var(--glass);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head__bar { display: flex; align-items: center; gap: 16px; padding-block: 13px; }

.burger { display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.burger span { display: block; width: 16px; height: 2px; background: var(--fg); border-radius: 2px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { border-radius: 10px; display: block; }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -0.035em; }

.find { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; position: relative; }
.find__icon { position: absolute; left: 15px; width: 17px; height: 17px; pointer-events: none; fill: none; stroke: var(--fg-2); stroke-width: 1.8; stroke-linecap: round; }
.find__input {
  flex: 1; width: 100%; font-family: var(--sans); font-size: 14.5px; color: var(--fg);
  padding: 12px 104px 12px 40px; border: 1px solid var(--line);
  background: var(--bg); border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.find__input::placeholder { color: var(--fg-2); }
.find__input:focus { background: var(--surface); border-color: var(--accent); }
.find__go {
  position: absolute; right: 5px; font-weight: 600; font-size: 13.5px; font-family: var(--sans);
  padding: 9px 18px; border: 0; border-radius: 999px; background: var(--panel); color: var(--on-panel); cursor: pointer;
}
.find__go:hover { background: var(--accent); }

.iconbtn {
  position: relative; flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none;
}
.iconbtn svg { width: 19px; height: 19px; fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linejoin: round; }
.iconbtn:hover { border-color: var(--accent); }
.iconbtn__count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-family: var(--mono);
}
.iconbtn__count[hidden] { display: none; }

/* ---------------------------------------------------- menu et méga-menu */

.nav { border-top: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav__in::-webkit-scrollbar { display: none; }
.nav__item { position: relative; }
.nav__cat {
  display: block; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--fg-2);
  white-space: nowrap; padding: 12px 13px; border-bottom: 2px solid transparent;
}
.nav__cat:hover, .nav__item:hover .nav__cat { color: var(--fg); border-bottom-color: var(--accent); }
.nav__cat--home { color: var(--fg); }

.mega {
  position: absolute; top: 100%; left: 0; z-index: 40; min-width: 260px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: 18px; }
.mega__title { margin: 0 0 10px; font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); }
.mega__links { display: grid; gap: 2px; }
.mega__links a { text-decoration: none; font-size: 14px; padding: 7px 9px; border-radius: 8px; }
.mega__links a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.mega__all { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .burger { display: flex; }
  .find { order: 3; flex-basis: 100%; }
  .head__bar { flex-wrap: wrap; }
  .nav { display: none; }
  .nav.is-open { display: block; max-height: 60vh; overflow-y: auto; }
  .nav__in { flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav__cat { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .mega { display: none; }
}

/* -------------------------------------------------------- fil d'Ariane */

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-top: 18px; font-size: 12.5px; color: var(--fg-2); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb i { font-style: normal; opacity: 0.5; }

/* --------------------------------------------------------------- héros */

.hero { padding: 22px 0 4px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 18px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__panel { position: relative; overflow: hidden; background: var(--panel); color: var(--on-panel); border-radius: var(--r-lg); padding: 46px 38px 44px; }
.hero__panel::before { content: ""; position: absolute; inset: -40% 40% 30% -20%; background: radial-gradient(closest-side, var(--glow-a), transparent 70%); pointer-events: none; }
.hero__panel::after { content: ""; position: absolute; inset: 20% -20% -50% 45%; background: radial-gradient(closest-side, var(--glow-b), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; max-width: 620px; }
@media (max-width: 640px) { .hero__panel { padding: 32px 22px 30px; border-radius: var(--r-md); } }

.hero__title { font-size: clamp(32px, 5.4vw, 52px); font-weight: 700; line-height: 1.03; letter-spacing: -0.045em; margin: 0 0 12px; }
.hero .lead { color: var(--on-panel-2); }
.hero .eyebrow { color: var(--brand-a); }
.chips--hero { margin-top: 22px; }
.chips--hero .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--on-panel); }
.chips--hero .chip:hover { background: rgba(255, 255, 255, 0.16); }

.hero__pick {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: var(--surface); border-radius: var(--r-lg); padding: 20px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hero__pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hero__pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--r-sm); background: var(--bg); }
.hero__picktag { display: inline-block; background: var(--gain); color: var(--on-gain); font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hero__picktitle { margin: 10px 0 6px; font-size: 14.5px; line-height: 1.4; }
.hero__pickprice { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.hero__pickprice s { font-size: 13px; font-weight: 400; color: var(--fg-2); margin-left: 8px; }

/* ------------------------------------------------------------ titrage */

.h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 12px; }
.h1--tight { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.025em; line-height: 1.3; }
.h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-ink); margin: 0 0 12px; }
.lead { font-size: 16.5px; color: var(--fg-2); margin: 0; max-width: 56ch; }

.sechead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sechead__all { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.countdown { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-ink); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }
.countdown i { font-style: normal; opacity: 0.75; }
.countdown b { font-family: var(--mono); font-weight: 500; }

/* ---------------------------------------------------------- catégories */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { text-decoration: none; background: var(--surface); border: 1px solid var(--line); padding: 10px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.chip--sm { padding: 7px 14px; font-size: 13px; }

/* ------------------------------------------------- grille et vignettes */

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
@media (max-width: 540px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.tag { background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-flat); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.tag:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tag__link { text-decoration: none; color: inherit; display: block; }
.tag__shot { position: relative; aspect-ratio: 1; background: var(--bg); overflow: hidden; }
.tag__shot img { width: 100%; height: 100%; object-fit: cover; }
.tag__cut { position: absolute; top: 10px; left: 10px; background: var(--gain); color: var(--on-gain); font-family: var(--mono); font-weight: 500; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; }

.heart {
  position: absolute; top: 9px; right: 9px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0;
}
.heart svg { width: 17px; height: 17px; fill: none; stroke: var(--fg-2); stroke-width: 1.8; stroke-linejoin: round; }
.heart:hover svg { stroke: var(--accent); }
.heart.is-on svg { fill: var(--accent); stroke: var(--accent); }
.heart--lg { position: static; width: 54px; height: 54px; flex: none; }
.heart--lg svg { width: 22px; height: 22px; }

.tag__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 0; border-radius: 999px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.16s ease, transform 0.16s ease;
}
@media (hover: hover) { .tag:hover .tag__quick { opacity: 1; transform: none; } }
@media (hover: none) { .tag__quick { display: none; } }

.tag__meta { padding: 13px 14px 15px; }
.tag__title { margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.tag__price { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.tag__was { font-size: 12.5px; font-weight: 400; color: var(--fg-2); margin-left: 6px; }
.tag__sold { display: block; margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--fg-2); }

/* ------------------------------------------------------------- rayons */

.rail { position: relative; }
.rail__track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.rail__track::-webkit-scrollbar { display: none; }
.tag--rail { flex: 0 0 clamp(168px, 44vw, 222px); scroll-snap-align: start; }
.rail__nav {
  position: absolute; top: 38%; z-index: 5; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  box-shadow: var(--shadow); padding: 0;
}
.rail__nav svg { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rail__nav--prev { left: -18px; }
.rail__nav--next { right: -18px; }
.rail__nav:hover { border-color: var(--accent); }
@media (max-width: 1000px) { .rail__nav { display: none; } }

/* ---------------------------------------------------------- garanties */

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust { grid-template-columns: 1fr; } }
.trust__item { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow-flat); }
.trust__icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 999px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust__t { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; }
.trust__b { margin: 0; font-size: 13px; color: var(--fg-2); line-height: 1.4; }

/* ------------------------------------------- listes avec colonne filtres */

.listing { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; gap: 18px; } }

.side { display: grid; gap: 14px; position: sticky; top: 104px; }
@media (max-width: 900px) { .side { position: static; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scrollbar-width: none; } }
.side__box { background: var(--surface); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-flat); }
.side__head { margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); }
.side__list { display: grid; gap: 2px; }
.side__link { text-decoration: none; font-size: 14px; padding: 7px 10px; border-radius: 8px; color: var(--fg); }
.side__link:hover { background: var(--accent-soft); color: var(--accent-ink); }
.side__link.is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* ----------------------------------------------------------- boutons */

.btn { display: inline-block; text-decoration: none; cursor: pointer; background: var(--accent); color: #fff; border: 1px solid var(--accent); font-family: var(--sans); font-weight: 600; font-size: 14.5px; padding: 12px 24px; border-radius: 999px; transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.btn--ghost { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--panel); color: var(--on-panel); border-color: var(--panel); box-shadow: none; }
.btn--big { padding: 16px 30px; font-size: 15.5px; flex: 1; text-align: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }

/* -------------------------------------------------------- publicités */

.ad { display: block; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 12px; overflow: hidden; }
.ad__label { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-2); margin-bottom: 8px; text-align: center; }
.ad .adsbygoogle { min-height: 250px; width: 100%; }
.ad--wide { margin: 26px auto 0; width: min(100% - 32px, var(--wrap)); }
.ad--grid { grid-column: 1 / -1; }
.ad--grid .adsbygoogle { min-height: 180px; }
.ad--product { margin: 24px 0 0; }
.ad--product .adsbygoogle { min-height: 200px; }

/* ------------------------------------------------------ fiche produit */

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 24px; } }

.shot { position: relative; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface); }
.shot .tag__cut { top: 14px; left: 14px; font-size: 13px; padding: 6px 13px; }
.shot__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.shot__thumb { padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; border-radius: var(--r-sm); overflow: hidden; }
.shot__thumb img { width: 64px; height: 64px; object-fit: cover; }
.shot__thumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.buybox { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 881px) { .buybox { position: sticky; top: 104px; } }
.buybox .eyebrow { color: var(--fg-2); }
.buybox__actions { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 6px; }
.price__now { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.price__was { font-size: 16px; color: var(--fg-2); }
.save { display: inline-block; background: var(--gain-soft); color: var(--gain-ink); font-family: var(--mono); font-size: 12.5px; padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }

.spec { margin: 0; }
.spec__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec__row dt { font-size: 13px; color: var(--fg-2); }
.spec__row dd { margin: 0; font-family: var(--mono); font-size: 13.5px; text-align: right; }

/* -------------------------------------------------------- états vides */

.empty { background: var(--surface); border-radius: var(--r-lg); padding: 52px 24px; text-align: center; box-shadow: var(--shadow); }
.empty[hidden] { display: none; }
.empty__title { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
.empty p { color: var(--fg-2); margin: 0 0 20px; }

/* ------------------------------------------------------- texte légal */

.prose { max-width: 70ch; }
.prose .lead { margin-bottom: 26px; font-size: 17.5px; color: var(--fg); opacity: .92; }
.prose h3 + p { margin-top: 0; }
.prose a { color: var(--accent); }
.prose .small { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.prose p, .prose li { color: var(--fg); opacity: 0.86; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 26px 0 6px; opacity: 1; }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--surface); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }

/* ------------------------------------------------------- pied de page */

.foot { background: var(--panel); color: var(--on-panel-2); margin-top: 52px; padding: 44px 0 26px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__col--brand { max-width: 40ch; }
.brand--foot { margin-bottom: 12px; }
.brand--foot .brand__name { color: var(--on-panel); }
.foot__head { margin: 0 0 12px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-panel); opacity: 0.6; }
.foot__note { margin: 0 0 8px; font-size: 13.5px; }
.foot__disc { font-size: 12.5px; opacity: 0.75; }
.foot__mail a { text-decoration: none; }
.foot__links { display: flex; flex-direction: column; gap: 9px; }
.foot__links a { font-size: 13.5px; text-decoration: none; color: var(--on-panel-2); }
.foot__links a:hover { color: var(--on-panel); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; }

/* --------------------------------------------------------- cookies */

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 400px; background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: var(--r-md); box-shadow: var(--shadow-lift); }
.cookie[hidden] { display: none; }
.cookie__text { margin: 0 0 16px; font-size: 13.5px; color: var(--fg); }
.cookie__row { display: flex; gap: 10px; justify-content: flex-end; }
.cookie .btn { padding: 9px 18px; font-size: 13px; }

/* ------------------------------------------------ marque bicolore */

.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -0.035em; }
.brand__name .b1 { color: var(--brand-blue); }
.brand__name .b2 { color: var(--brand-yellow); }
.brand__name--dark .b1 { color: var(--brand-blue-light); }

/* ------------------------------------------- boutons de la vignette */

.tag__actions { display: flex; gap: 7px; margin-top: 11px; }
.tag__actions .btn { flex: 1; text-align: center; }
.btn--sm { padding: 9px 12px; font-size: 12.5px; }
@media (max-width: 400px) { .tag__actions { flex-direction: column; } }

/* --------------------------------------------------- note et verdict */

.scorepill {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: var(--panel); color: var(--on-panel);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 4px 9px; border-radius: 999px;
}
.scorepill i { font-style: normal; opacity: 0.55; font-size: 10px; }
.scorepill--flat { position: static; display: inline-block; background: var(--accent-soft); color: var(--accent-ink); }
.tag__cut + .scorepill { top: 9px; left: auto; right: 52px; }
.verdict {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600;
}
.buybox__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybox__top .scorepill { position: static; }

/* ------------------------------------------------- tableau comparatif */

.cmp { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cmp__lead { margin: -8px 0 16px; }
.cmp__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp__table th {
  text-align: left; padding: 13px 14px; font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.cmp__table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp__table tr:last-child td { border-bottom: 0; }
.cmp__table tr.is-current { background: var(--accent-soft); }
.cmp__badge {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  background: var(--bg); font-family: var(--mono); font-size: 12px; color: var(--fg-2);
}
.cmp__badge.is-best { background: var(--gain); color: var(--on-gain); }
.cmp__prod { display: flex; align-items: center; gap: 11px; min-width: 260px; }
.cmp__prod img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: var(--bg); flex: none; }
.cmp__prod a { text-decoration: none; font-weight: 500; display: block; line-height: 1.35; }
.cmp__prod a:hover { color: var(--accent); }
.cmp__brand { display: block; font-family: var(--mono); font-size: 11px; color: var(--fg-2); margin-top: 3px; }
.cmp__verdict { font-weight: 600; font-size: 13px; white-space: nowrap; }
.cmp__go { display: flex; gap: 6px; white-space: nowrap; }
.cmp__note { margin: 0; padding: 13px 16px; font-size: 12px; color: var(--fg-2); background: var(--bg); }
@media (max-width: 900px) {
  .cmp { overflow-x: auto; }
  .cmp__table { min-width: 820px; }
}

/* ------------------------------------------ points forts / faibles */

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
@media (max-width: 620px) { .pc { grid-template-columns: 1fr; } }
.pc__box { background: var(--surface); border-radius: var(--r-md); padding: 17px; box-shadow: var(--shadow-flat); }
.pc__head { margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); }
.pc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pc__list li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.45; }
.pc__list li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); }
.pc__list--pro li::before { content: "+"; color: var(--gain); font-weight: 700; }
.pc__list--con li::before { content: "−"; color: var(--fg-2); font-weight: 700; }
.pc__none { margin: 0; color: var(--fg-2); }

/* ----------------------------------------------- retours acheteurs */

.rev { background: var(--surface); border-radius: var(--r-md); padding: 17px; box-shadow: var(--shadow-flat); margin-bottom: 22px; }
.rev__top { display: flex; align-items: center; gap: 18px; }
.rev__score { display: flex; align-items: baseline; gap: 3px; }
.rev__num { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.rev__out { font-size: 13px; color: var(--fg-2); }
.rev__meta { flex: 1; min-width: 0; }
.rev__bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-bottom: 7px; }
.rev__bar span { display: block; height: 100%; background: var(--gain); border-radius: 999px; }
.rev__src { margin: 12px 0 0; font-size: 11.5px; color: var(--fg-2); line-height: 1.45; }

.chips--spec { margin: 0 0 14px; }
.chips--spec .chip b { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-2); margin-right: 6px; font-weight: 500; }
.prose--tight p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; }
