/* ==========================================================================
   Choixora — système de design
   Mobile d'abord · contrastes AA · thème sombre automatique · sans ressource tierce
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght.79db8d0e98af.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.8e433c0592f7.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Polices de repli aux métriques ajustées (largeur moyenne pondérée, hauteurs de ligne) : le remplacement par les
   polices du site ne décale plus la mise en page (CLS). Valeurs calculées à partir des fichiers Inter et Sora. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 106.87%;
  ascent-override: 90.65%;
  descent-override: 22.57%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Arimo");
  size-adjust: 115.5%;
  ascent-override: 83.98%;
  descent-override: 25.11%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --ink-900: #0b1c33;
  --ink-800: #13294b;
  --ink-700: #2b3e5c;
  --ink-600: #4a5b75;
  --ink-500: #5f6f87;
  --ink-400: #8b98ac;
  --ink-300: #b7c0ce;
  --ink-200: #d9dfe7;
  --ink-100: #ebeff4;
  --ink-50: #f5f7fa;
  --brand-800: #065249;
  --brand-700: #08665c;
  --brand-600: #0a7c70;
  --brand-500: #0e9a8b;
  --brand-100: #d5f1ec;
  --brand-50: #ecf8f6;
  --gold-700: #8a5a12;
  --gold-600: #b7791f;
  --gold-500: #e8a33d;
  --gold-100: #fdf0d8;
  --violet-700: #4434b0;
  --violet-600: #5546c8;
  --violet-100: #e9e6fb;
  --red-700: #a3251a;
  --red-100: #fde6e3;
  --amber-800: #7a4a00;
  --amber-100: #fff3d6;
  --blue-700: #1d4f9c;
  --blue-100: #e3edfb;

  --bg: #ffffff;
  --bg-soft: var(--ink-50);
  --bg-muted: var(--ink-100);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: var(--ink-900);
  --text-soft: var(--ink-600);
  --text-faint: var(--ink-500);
  --border: var(--ink-200);
  --border-strong: var(--ink-300);
  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-contrast: #ffffff;
  --link: var(--brand-700);
  --focus: #2563eb;
  --header-bg: var(--ink-900);
  --header-text: #ffffff;
  --well: #ffffff;
  --shadow-sm: 0 1px 2px rgb(11 28 51 / 0.06), 0 1px 3px rgb(11 28 51 / 0.08);
  --shadow-md: 0 4px 10px rgb(11 28 51 / 0.07), 0 2px 4px rgb(11 28 51 / 0.05);
  --shadow-lg: 0 18px 40px rgb(11 28 51 / 0.14);

  --font-display: "Sora", "Sora Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --sticky-top: var(--header-h); /* hauteur occupée par l'en-tête fixe (aucune sur mobile) */
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1424;
    --bg-soft: #0e1a2e;
    --bg-muted: #15233b;
    --surface: #111e33;
    --surface-raised: #16253e;
    --text: #e8eef6;
    --text-soft: #b3c0d2;
    --text-faint: #93a3b8;
    --border: #253652;
    --border-strong: #34496b;
    --primary: #17a594;
    --primary-hover: #2bc0ad;
    --primary-contrast: #04211d;
    --link: #4fd1bf;
    --focus: #7aa7ff;
    --header-bg: #071022;
    --well: #f4f6f9;
    --brand-50: #0d2a2a;
    --brand-100: #12403c;
    --gold-100: #3a2b10;
    --violet-100: #241f4a;
    --red-100: #3b1512;
    --amber-100: #33260b;
    --blue-100: #10264a;
    --gold-700: #f0c06a;
    --violet-700: #b3a9ff;
    --red-700: #ff9b8f;
    --amber-800: #ffcf73;
    --blue-700: #9cc0ff;
    --brand-700: #4fd1bf;
    --brand-800: #7fe3d5;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 18px 40px rgb(0 0 0 / 0.5);
  }
}

/* --- Base ------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sticky-top) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 650; }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem); font-weight: 620; }
h3 { font-size: 1.1rem; font-weight: 620; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
small, .small { font-size: .875rem; }
.muted { color: var(--text-soft); }
.faint { color: var(--text-faint); }
.num, .price, td.num { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }

.visually-hidden {
  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: 12px; top: 12px; z-index: 1000; background: var(--surface); color: var(--text);
  padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; transform: translateY(-200%);
}
.skip-link:focus { transform: none; box-shadow: var(--shadow-lg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* --- Bandeaux -------------------------------------------------------------------------- */
.banner { font-size: .84rem; padding: .4rem 0; text-align: center; line-height: 1.4; }
.banner strong { font-weight: 700; }
.banner--demo {
  background: repeating-linear-gradient(-45deg, #ffe7a8, #ffe7a8 14px, #ffdc85 14px, #ffdc85 28px);
  color: #3d2800; border-bottom: 1px solid #e3b94b;
}
.banner--preview { background: var(--blue-100); color: var(--blue-700); }
.banner--test { background: var(--brand-700); color: #fff; font-size: .75rem; padding: .25rem 0; }
.banner--info { background: var(--brand-50); color: var(--brand-800); }

/* --- En-tête --------------------------------------------------------------------------- */
/* Une seule ligne : logo, recherche (hors accueil, où le grand formulaire la remplace), menu des catégories, favoris
   et comparateur. Le menu des catégories s'ouvre en panneau sous l'en-tête, sur ordinateur comme sur mobile. */
.site-header { background: var(--header-bg); color: var(--header-text); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; color: #fff; text-decoration: none; flex: none; }
.logo-svg { height: 34px; width: auto; display: block; }
.logo-svg .check { stroke: #2bc0ad; }
.header-search { flex: 1; min-width: 0; max-width: 620px; }
.searchbar {
  display: flex; align-items: stretch; background: #fff; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); position: relative;
}
.searchbar input[type="search"] {
  flex: 1; min-width: 0; border: 0; padding: .7rem 1rem .7rem 1.15rem; font: inherit; color: var(--ink-900);
  background: transparent; outline: none;
}
.header-search .searchbar input[type="search"] { padding-top: .58rem; padding-bottom: .58rem; font-size: .95rem; }
.searchbar input::placeholder { color: var(--ink-500); }
.searchbar button {
  border: 0; background: var(--gold-500); color: #2a1a00; font-weight: 700; padding: 0 1.1rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700;
}
.searchbar button:hover { background: #f0b457; }
.searchbar:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.header-actions { display: flex; align-items: center; gap: .15rem; flex: none; margin-left: auto; }
.header-link {
  color: #e6edf6; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .7rem;
  border-radius: var(--radius); font-size: .92rem; font-weight: 500; position: relative; min-height: 44px;
}
.header-link:hover, .header-link[aria-expanded="true"] { background: rgb(255 255 255 / .09); color: #fff; }
.header-link .icon { width: 1.25em; height: 1.25em; }
.header-link--menu .icon-close, .header-link--menu[aria-expanded="true"] .icon-open { display: none; }
.header-link--menu[aria-expanded="true"] .icon-close { display: inline; }
/* Sur petit écran, le libellé reste lisible par les technologies d'assistance (nom accessible du lien). */
.header-link .label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.count-badge {
  position: absolute; top: 3px; right: 1px; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--gold-500); color: #2a1a00; font-size: .7rem; font-weight: 800; line-height: 1.15rem; text-align: center;
}
.count-badge[data-count="0"] { display: none; }

.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); color: var(--text);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-panel[hidden] { display: none; }
.menu-inner { padding: 1.25rem 0 1.4rem; }
.menu-universes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.menu-universe { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 650; font-family: var(--font-display); font-size: .98rem; }
.menu-universe:hover { color: var(--link); }
.icon-tile { width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); flex: none; }
.menu-children { list-style: none; margin: .45rem 0 0 2.7rem; padding: 0; display: grid; gap: .1rem; }
.menu-children a { display: block; padding: .2rem 0; color: var(--text-soft); text-decoration: none; font-size: .92rem; }
.menu-children a:hover { color: var(--link); text-decoration: underline; }
.menu-links { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .4rem; }
.menu-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 550; }
.menu-links a:hover { border-color: var(--border-strong); }
.menu-links .icon { color: var(--text-faint); }

@media (min-width: 960px) {
  .header-link .label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .count-badge { position: static; margin-left: .1rem; }
}
@media (max-width: 719px) {
  :root { --sticky-top: 0px; }
  /* Sur mobile, l'en-tête défile avec la page : tout l'écran reste disponible pour le contenu. */
  .site-header { position: relative; }
  .header-row { flex-wrap: wrap; gap: .25rem .5rem; padding-top: .45rem; padding-bottom: .45rem; min-height: 56px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; padding-bottom: .15rem; }
  .logo-svg { height: 30px; }
  .header-link { padding: .5rem .55rem; }
  .menu-inner { padding-top: .9rem; }
  .menu-universes { gap: .85rem; }
}

/* --- Suggestions de recherche ----------------------------------------------------------- */
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 60;
  list-style: none; margin: 0; padding: .35rem; max-height: 60vh; overflow-y: auto;
}
.suggestions[hidden] { display: none; }
.suggestions li a { display: flex; gap: .75rem; align-items: baseline; padding: .55rem .7rem; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.suggestions li a span.type { font-size: .75rem; color: var(--text-faint); min-width: 5.5rem; text-transform: uppercase; letter-spacing: .04em; }
.suggestions li[aria-selected="true"] a, .suggestions li a:hover { background: var(--bg-muted); }
.search-wrap { position: relative; }

/* --- Boutons ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: var(--radius);
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  line-height: 1.2; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--primary); color: var(--primary-contrast); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text-soft); }
.btn--ghost { background: transparent; color: var(--text-soft); }
.btn--ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn--offer { background: var(--gold-500); color: #2a1a00; }
.btn--offer:hover { background: #f0b457; }
.btn--sm { padding: .42rem .7rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--brand-50); border-color: var(--primary); color: var(--brand-700); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn[aria-pressed="true"] { color: #d1344a; border-color: #f4b8c1; background: #fff1f3; }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
.icon-btn.compare-toggle[aria-pressed="true"] { color: var(--brand-700); border-color: var(--primary); background: var(--brand-50); }
.icon-btn.compare-toggle[aria-pressed="true"] .icon { fill: none; }

/* --- Pastilles et badges ------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .22rem .55rem;
  border-radius: 999px; line-height: 1.3; white-space: nowrap; background: var(--bg-muted); color: var(--text-soft);
}
.badge--cheapest, .badge--cheapest_verified { background: var(--brand-600); color: #fff; }
.badge--lowest_price { background: var(--amber-100); color: var(--amber-800); }
.badge--best_value { background: #8a5a12; color: #fff; }
.badge--best_performance { background: var(--violet-600); color: #fff; }
.badge--alternative { background: var(--bg-muted); color: var(--text); }
.badge--upgrade { background: var(--blue-100); color: var(--blue-700); }
.badge--affiliate { background: var(--bg-muted); color: var(--text-soft); font-weight: 600; }
.badge--demo { background: #ffdc85; color: #3d2800; }
.badge--ok { background: var(--brand-50); color: var(--brand-700); }
.badge--warn { background: var(--amber-100); color: var(--amber-800); }
.badge--danger { background: var(--red-100); color: var(--red-700); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .85rem;
  background: var(--bg-muted); color: var(--text); text-decoration: none; border: 1px solid transparent;
}
a.chip:hover { border-color: var(--border-strong); }
.chip--removable::after { content: "×"; font-weight: 700; color: var(--text-faint); margin-left: .1rem; }
.spec-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.spec-chips li { font-size: .78rem; padding: .15rem .5rem; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border); }

.score {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.1rem; height: 3.1rem;
  border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
  background: var(--bg-muted); color: var(--text);
}
.score small { font-family: var(--font-body); font-size: .6rem; font-weight: 600; letter-spacing: .02em; margin-top: .2rem; opacity: .85; }
.score--high { background: #d8f3ec; color: #075c52; }
.score--mid { background: #fdf0d8; color: #7a4a00; }
.score--low { background: #fde6e3; color: #8f2117; }
.score--na { background: var(--bg-muted); color: var(--text-faint); font-size: .8rem; }
@media (prefers-color-scheme: dark) {
  .score--high { background: #12403c; color: #8ff0e1; }
  .score--mid { background: #3a2b10; color: #ffd27a; }
  .score--low { background: #3b1512; color: #ffb0a6; }
}

/* --- Notices ------------------------------------------------------------------------------- */
.notice {
  display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: .93rem;
}
.notice > .icon { margin-top: .15rem; color: var(--text-soft); }
.notice p:last-child { margin-bottom: 0; }
.notice--info { background: var(--blue-100); border-color: transparent; }
.notice--info > .icon { color: var(--blue-700); }
.notice--warn { background: var(--amber-100); border-color: transparent; }
.notice--warn > .icon { color: var(--amber-800); }
.notice--ok { background: var(--brand-50); border-color: transparent; }
.notice--ok > .icon { color: var(--brand-700); }
.notice--demo { background: #fff4d6; border-color: #e3b94b; color: #3d2800; }

/* --- Fil d'Ariane --------------------------------------------------------------------------- */
.breadcrumbs { font-size: .85rem; color: var(--text-faint); padding-top: 1rem; padding-bottom: .25rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-400); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* --- Accueil ------------------------------------------------------------------------------- */
.hero { background: radial-gradient(1200px 500px at 85% -20%, #0f5d61 0%, transparent 60%), var(--ink-900); color: #fff; padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem); max-width: 20ch; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: #5fe0cd; }
.hero .lead { color: #c9d6e6; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); max-width: 60ch; margin-bottom: 1.6rem; }
.hero-search { max-width: 760px; }
.hero-search .searchbar { box-shadow: var(--shadow-lg); }
.hero-search .searchbar input[type="search"] { padding: 1rem 1.25rem; font-size: 1.05rem; }
.hero-hints { margin-top: 1rem; color: #b6c5d8; font-size: .9rem; }
.hero-hints a { color: #e7f2ff; }
.search-panel { max-width: 880px; }
.search-tabs[hidden] { display: none; }
.search-tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; margin-bottom: .8rem; background: rgb(255 255 255 / .09); border-radius: 999px; }
.search-tabs [role="tab"] { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem 1rem; border: 0; border-radius: 999px; background: transparent; color: #d4e0ee; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.search-tabs [role="tab"]:hover { color: #fff; }
.search-tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--ink-900); }
.search-tabs [role="tab"]:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.search-pane--guided { margin-top: 1.6rem; }
.has-tabs .search-pane--guided { margin-top: 0; }
.guided-title { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.has-tabs .guided-title { display: none; }
.guided-form { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-lg); }
.guided-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.guided-grid .field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.guided-grid label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.guided-grid .input { width: 100%; min-height: 2.75rem; }
.guided-grid .field--submit { grid-column: 1 / -1; }
.guided-grid .field--submit .btn { min-height: 2.75rem; }
.guided-note { margin: .75rem 0 0; font-size: .82rem; color: var(--text-soft); }
@media (min-width: 720px) { .guided-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guided-grid .field--submit { grid-column: auto; } }
@media (max-width: 719px) {
  .search-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
  .search-tabs [role="tab"] { justify-content: center; padding: .4rem .5rem; font-size: .86rem; border-radius: 10px; text-align: center; }
  .search-tabs [role="tab"] .icon { display: none; }
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: .98rem; margin-bottom: 1.1rem; }
  .hero-hints { font-size: .84rem; }
  .hero-trust { margin-top: 1.6rem; }
}
.mobile-filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 1024px) { .mobile-filter-bar { display: none; } }
.hero-trust { display: grid; gap: .75rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 980px; }
.hero-trust div { display: flex; gap: .65rem; align-items: flex-start; color: #d4e0ee; font-size: .92rem; }
.hero-trust .icon { color: #5fe0cd; margin-top: .15rem; }

.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.container.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--text-soft); }

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1.1rem; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-family: var(--font-display); font-weight: 700; margin-bottom: .7rem;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--text-soft); font-size: .94rem; }

.section--tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* Tuiles de rayons (accueil, index des catégories, pages d'univers) */
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease; }
.cat-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cat-tile-link { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; color: var(--text); text-decoration: none; border-radius: inherit; flex: 1; }
.cat-tile-link .icon-tile { width: 2.75rem; height: 2.75rem; border-radius: 12px; }
.cat-tile-link .icon-tile .icon { width: 1.45rem; height: 1.45rem; }
.cat-tile-text { display: flex; flex-direction: column; min-width: 0; }
.cat-tile-name { font-weight: 650; line-height: 1.3; }
.cat-tile-link:hover .cat-tile-name { color: var(--link); }
.cat-tile-count { font-size: .82rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cat-tile-subs { list-style: none; margin: 0; padding: .1rem 1rem .85rem 4.55rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .85rem; }
.cat-tile-subs a { color: var(--text-soft); }
.cat-tile-subs a:hover { color: var(--link); }
.cat-tiles--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .6rem; }
.cat-tiles--compact .cat-tile-link { padding: .65rem .8rem; gap: .65rem; }
.cat-tiles--compact .cat-tile-link .icon-tile { width: 2.3rem; height: 2.3rem; }
.cat-tiles--compact .cat-tile-link .icon-tile .icon { width: 1.25rem; height: 1.25rem; }
.subcategories { margin: 0 0 1.5rem; }

/* Index des catégories : une carte par univers, rayons en liste */
.universe-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }
.universe-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; scroll-margin-top: calc(var(--sticky-top) + 12px); }
.universe-card-head { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; color: var(--text); text-decoration: none; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.universe-card-head:hover .universe-card-name { color: var(--link); }
.universe-card-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.universe-card-name { font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; line-height: 1.25; }
.universe-card-count { font-size: .82rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.universe-card-arrow { color: var(--text-faint); }
.icon-tile--lg { width: 3rem; height: 3rem; border-radius: 14px; }
.icon-tile--lg .icon { width: 1.5rem; height: 1.5rem; }
.universe-card-list { list-style: none; margin: 0; padding: .4rem .5rem .55rem; }
.universe-card-list > li > a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.universe-card-list > li > a:hover { background: var(--bg-soft); }
.universe-card-list > li > a:hover .name { color: var(--link); }
.universe-card-list > li > a .icon { color: var(--brand-700); }
.universe-card-list .name { flex: 1; font-weight: 550; }
.universe-card-list .count { font-size: .82rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.universe-card-subs { list-style: none; margin: -.15rem 0 .3rem 2.45rem; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .9rem; font-size: .86rem; }
.universe-card-subs a { color: var(--text-soft); }
.universe-card-subs a:hover { color: var(--link); }
.upcoming { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.upcoming > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.15rem; font-size: .98rem; }
.upcoming > summary::-webkit-details-marker { display: none; }
.upcoming-chevron { color: var(--text-faint); transition: transform .15s ease; }
.upcoming[open] .upcoming-chevron { transform: rotate(90deg); }
.upcoming > p { margin: 0 1.15rem 1rem; font-size: .92rem; max-width: 80ch; }
.upcoming-grid { display: grid; gap: 1rem 1.5rem; padding: 0 1.15rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.upcoming-group h2 { display: flex; align-items: center; gap: .45rem; font-size: .95rem; margin-bottom: .4rem; color: var(--text-soft); }
.upcoming-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.upcoming-group li { font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; border: 1px dashed var(--border-strong); color: var(--text-soft); }

/* Index des marques */
.brand-section { margin-bottom: 2rem; }
.brand-section h2 { font-size: 1.25rem; }
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.brand-card { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.brand-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.brand-initial { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 650; }
.brand-card:hover .brand-name { color: var(--link); }
.brand-meta { font-size: .8rem; color: var(--text-faint); line-height: 1.35; }
.brand-meta span { display: block; }
.letter-nav { position: sticky; top: var(--sticky-top); z-index: 5; background: var(--bg); padding: .5rem 0; margin-bottom: .5rem; border-bottom: 1px solid var(--border); }
.letter-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.letter-nav a { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .4rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.letter-nav a:hover { background: var(--bg-muted); }
.letter-groups { columns: 5 12rem; column-gap: 1.25rem; margin-top: .75rem; }
.letter-group { break-inside: avoid; padding: .2rem 0 1rem; scroll-margin-top: calc(var(--sticky-top) + 64px); }
.letter-group h3 { font-size: 1.05rem; color: var(--brand-700); margin: 0 0 .35rem; padding-bottom: .25rem; border-bottom: 1px solid var(--border); }
.brand-list { list-style: none; margin: 0; padding: 0; }
.brand-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .16rem 0; font-size: .93rem; }
.brand-list a { color: var(--text); text-decoration: none; }
.brand-list a:hover { color: var(--link); text-decoration: underline; }
.brand-list .faint { font-size: .8rem; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .brand-initial { background: var(--brand-100); color: var(--brand-800); } }

.stats-row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-soft); font-size: .88rem; }

/* --- Mise en page catalogue --------------------------------------------------------------- */
.page-head { padding: .5rem 0 1rem; }
.page-head .tagline { color: var(--text-soft); margin: -.2rem 0 0; max-width: 70ch; }
.catalog-layout { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }

.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .25rem 1rem 1rem; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0 .5rem; }
.filters-head h2 { font-size: 1rem; margin: 0; }
.filter-group { border-top: 1px solid var(--border); padding: .2rem 0; }
.filter-group:first-of-type { border-top: 0; }
.filter-group > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: .7rem 0;
  font-weight: 600; font-size: .93rem;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: rotate(45deg); margin-right: .2rem; transition: transform .15s; }
.filter-group[open] > summary::after { transform: rotate(-135deg); }
.filter-options { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .1rem; max-height: 260px; overflow-y: auto; }
.filter-options label { display: flex; align-items: center; gap: .55rem; padding: .28rem .2rem; border-radius: var(--radius-sm); cursor: pointer; font-size: .92rem; }
.filter-options label:hover { background: var(--bg-soft); }
.filter-options .count { margin-left: auto; color: var(--text-faint); font-size: .8rem; font-variant-numeric: tabular-nums; }
.filter-options .chip .count { color: var(--text-soft); } /* contraste AA sur le fond des pastilles */
.filter-help { font-size: .8rem; color: var(--text-faint); margin: -.2rem 0 .6rem; }
.range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: center; margin-bottom: .7rem; }
.range-inputs input { width: 100%; }
.range-inputs span { color: var(--text-faint); }
input[type="checkbox"], input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); flex: none; }
.input, input[type="number"], input[type="email"], input[type="text"], select.input, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .5rem .6rem; min-height: 2.5rem;
}
.input:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="text"]:focus { border-color: var(--primary); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgb(10 124 112 / .2); }
.filters-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.usage-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.usage-picker a { text-decoration: none; }
.usage-picker a[aria-current="true"] { background: var(--primary); color: var(--primary-contrast); }

.filters-toggle { display: inline-flex; }
@media (max-width: 1023px) {
  .filters {
    position: fixed; inset: 0 0 0 auto; width: min(92vw, 380px); z-index: 80; border-radius: 0; overflow-y: auto;
    transform: translateX(105%); transition: transform .2s ease; box-shadow: var(--shadow-lg); padding-bottom: 5rem;
  }
  .filters.is-open { transform: none; }
  .filters-backdrop { position: fixed; inset: 0; background: rgb(5 12 24 / .5); z-index: 70; }
  .filters-backdrop[hidden] { display: none; }
}
@media (min-width: 1024px) { .filters-toggle, .filters-close { display: none !important; } .filters { position: sticky; top: calc(var(--sticky-top) + 16px); max-height: calc(100vh - var(--sticky-top) - 32px); overflow-y: auto; } }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.toolbar .result-count { font-weight: 600; }
@media (max-width: 1023px) { .toolbar .result-count { display: none; } } /* déjà annoncé par la barre « Filtres » */
.toolbar label { font-size: .9rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: .5rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.interpretation { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; font-size: .9rem; color: var(--text-soft); }
.interpretation .chip--removable { text-decoration: none; color: var(--text); }
.chip--text { background: transparent; border-style: dashed; }
.relaxations { list-style: none; padding: 0; margin: .5rem auto 1rem; max-width: 46ch; text-align: left; }
.relaxations li { padding: .45rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .4rem; background: var(--surface); }

/* --- Vignettes produit --------------------------------------------------------------------- */
.product-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--well); display: grid; place-items: center; padding: .8rem; }
/* Le chargement d'une photo portrait ne doit pas agrandir la case réservée. */
.card-media img { position: absolute; inset: .8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.6rem); max-height: none; object-fit: contain; }
.card-media .placeholder { color: var(--ink-300); }
.card-body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 600; }
.card-title { font-size: .98rem; font-weight: 600; line-height: 1.35; margin: 0; font-family: var(--font-body); letter-spacing: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--link); }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .5rem; padding-top: .5rem; }
.card-price .from { display: block; font-size: .75rem; color: var(--text-faint); }
.card-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.card-price .offers { display: block; font-size: .78rem; color: var(--text-soft); }
.card-price .no-offer { font-size: .85rem; color: var(--text-faint); }
.card-price .shipping-unknown { display: block; font-size: .75rem; color: var(--amber-800); }
.card-variant { margin: .2rem 0 0; font-size: .76rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.card-actions { position: absolute; top: .55rem; right: .55rem; z-index: 2; display: flex; flex-direction: column; gap: .35rem; }
.card .score { position: relative; z-index: 2; }
@media (max-width: 719px) {
  .product-grid { gap: .6rem; }
  .card { flex-direction: row; }
  .card-media { flex: none; width: 104px; aspect-ratio: auto; padding: .55rem; }
  .card-media img { inset: .55rem; width: calc(100% - 1.1rem); height: calc(100% - 1.1rem); }
  .card .card-media .placeholder { width: 40px; height: 40px; }
  .card-body { padding: .7rem 3.15rem .8rem .85rem; gap: .25rem; }
  .card-actions { top: .45rem; right: .45rem; }
  .card-title { font-size: .95rem; }
  .card-price .amount { font-size: 1.12rem; }
  .card .score { min-width: 2.7rem; height: 2.7rem; font-size: 1rem; }
}

/* --- Recommandations ----------------------------------------------------------------------- */
.reco { margin-bottom: 1.75rem; }
.reco-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.reco-head h2 { margin: 0; font-size: 1.25rem; }
.reco-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.reco-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; position: relative; }
.reco-card--cheapest { border-top: 4px solid var(--brand-600); }
.reco-card--best_value { border-top: 4px solid var(--gold-600); }
.reco-card--best_performance { border-top: 4px solid var(--violet-600); }
.reco-top { display: flex; gap: .8rem; align-items: center; }
.reco-top .thumb { width: 72px; height: 72px; flex: none; background: var(--well); border-radius: var(--radius); display: grid; place-items: center; padding: .3rem; }
.reco-top .thumb img { max-height: 100%; width: auto; }
.reco-name { font-weight: 600; line-height: 1.3; }
.reco-name a { color: var(--text); text-decoration: none; }
.reco-name a:hover { color: var(--link); text-decoration: underline; }
.reco-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.reco-price strong { font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.reco-reasons { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--text-soft); display: grid; gap: .25rem; }
.reco-warnings { margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--amber-800); display: grid; gap: .2rem; }
.reco-warnings li::before { content: "⚠ "; }
.reco-card .actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.reco-notes { font-size: .82rem; color: var(--text-faint); margin-top: .7rem; }
details.why > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--link); }
details.why[open] > summary { margin-bottom: .4rem; }

/* --- Fiche produit ------------------------------------------------------------------------- */
.product-hero { display: grid; gap: 1.5rem; padding: .5rem 0 1.5rem; }
@media (min-width: 900px) { .product-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.gallery { background: var(--well); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: grid; gap: .75rem; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumbs button { width: 64px; height: 64px; padding: .25rem; border-radius: var(--radius); border: 1px solid var(--ink-200); background: #fff; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--brand-100); }
.gallery-credit { font-size: .75rem; color: var(--ink-500); }
.product-title h1 { margin-bottom: .35rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--text-soft); margin-bottom: 1rem; }
.product-meta code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: var(--bg-muted); padding: .05rem .35rem; border-radius: 4px; }
.best-offer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.15rem; box-shadow: var(--shadow-sm); }
.best-offer .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 700; }
.best-offer .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.best-offer .detail { font-size: .9rem; color: var(--text-soft); margin: .25rem 0 .9rem; }
.best-offer .amount small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--text-soft); }
.best-offer .detail--note { display: flex; gap: .45rem; align-items: flex-start; background: var(--amber-100); color: var(--text); border-radius: var(--radius-sm); padding: .55rem .7rem; }
.best-offer .detail--note .icon { flex: none; margin-top: .15rem; color: var(--amber-800); }
.title-variant { display: block; margin-top: .3rem; font-family: var(--font-body); font-size: .92rem; font-weight: 500; letter-spacing: 0; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.homonym-list { margin: .5rem 0 0; padding-left: 1.2rem; }
.homonym-list li { margin-bottom: .3rem; }
.best-offer .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.key-facts li { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .7rem; }
.key-facts span { display: block; font-size: .75rem; color: var(--text-faint); }
.key-facts strong { font-size: .95rem; }

.tabs-nav { position: sticky; top: var(--sticky-top); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tabs-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tabs-nav a { display: block; padding: .8rem .9rem; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs-nav a:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.product-section { padding: 0 0 2.5rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.15rem; }

.offers-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.offers-filter button { font: inherit; font-size: .88rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.offers-filter button[aria-pressed="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
@media (prefers-color-scheme: dark) { .offers-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); } }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.offer {
  display: grid; gap: .5rem 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: .9rem 1rem; grid-template-columns: 1fr auto;
}
.offer.is-best { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.offer-merchant { font-weight: 700; }
.offer-merchant small { font-weight: 500; color: var(--text-faint); }
.offer-info { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; color: var(--text-soft); grid-column: 1 / -1; }
.offer-price { text-align: right; }
.offer-price strong { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; display: block; }
.offer-price small { color: var(--text-soft); }
.offer-cta { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (min-width: 760px) {
  .offer { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto; }
  .offer-info { grid-column: auto; }
  .offer-cta { grid-column: auto; }
}
.offer-hidden { display: none !important; }
.disclosure { font-size: .82rem; color: var(--text-faint); margin-top: .75rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table caption { text-align: left; font-family: var(--font-display); font-weight: 620; font-size: 1rem; padding: .9rem 0 .5rem; }
.spec-table th, .spec-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.spec-table th { width: 45%; color: var(--text-soft); font-weight: 500; }
.spec-table td.missing { color: var(--text-faint); font-style: italic; }
.spec-source { display: block; font-size: .75rem; color: var(--text-faint); }
.spec-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr; } }

.proscons { display: grid; gap: 1rem; }
@media (min-width: 760px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.proscons li { display: flex; gap: .55rem; font-size: .93rem; }
.proscons .pros li::before { content: "+"; font-weight: 800; color: var(--brand-600); width: 1rem; flex: none; }
.proscons .cons li::before { content: "−"; font-weight: 800; color: var(--red-700); width: 1rem; flex: none; }

.score-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.score-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; font-size: .9rem; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); }
.bar--10 span { width: 10%; } .bar--20 span { width: 20%; } .bar--30 span { width: 30%; } .bar--40 span { width: 40%; }
.bar--50 span { width: 50%; } .bar--60 span { width: 60%; } .bar--70 span { width: 70%; } .bar--80 span { width: 80%; }
.bar--90 span { width: 90%; } .bar--100 span { width: 100%; } .bar--0 span { width: 3%; }

.price-chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-label { fill: var(--text-faint); font-size: 12px; font-family: var(--font-body); }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-area { fill: var(--brand-100); opacity: .55; }
.chart-min { fill: var(--gold-500); stroke: var(--surface); stroke-width: 2; }
.chart-last { fill: var(--primary); stroke: var(--surface); stroke-width: 2; }

.alt-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.alt-kind { font-size: .78rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }

.provenance { font-size: .88rem; color: var(--text-soft); }
.provenance ul { padding-left: 1.1rem; }

/* --- Comparateur ---------------------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare-table { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; font-size: .92rem; }
.compare-table th, .compare-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; min-width: 170px; }
.compare-table thead th { background: var(--bg-soft); vertical-align: bottom; }
.compare-table tbody th { position: sticky; left: 0; background: var(--surface); color: var(--text-soft); font-weight: 500; min-width: 150px; z-index: 1; }
.compare-table .group-row th { background: var(--bg-soft); color: var(--text); font-weight: 700; font-family: var(--font-display); }
.compare-table td.best { background: var(--brand-50); font-weight: 600; }
.compare-table td.best::after { content: " ✓"; color: var(--brand-600); }
.compare-table td.missing { color: var(--text-faint); font-style: italic; }
.compare-only-diff .row-same { display: none; }
.compare-head { display: grid; gap: .4rem; }
.compare-head img { width: 96px; height: 96px; object-fit: contain; background: var(--well); border-radius: var(--radius); padding: .3rem; }

.compare-tray {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; background: var(--ink-900); color: #fff;
  border-radius: 999px; padding: .45rem .5rem .45rem 1.1rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-lg);
  font-size: .92rem; max-width: calc(100vw - 24px);
}
.compare-tray[hidden] { display: none; }
.compare-tray .btn { border-radius: 999px; }
.compare-tray button.clear { background: none; border: 0; color: #b9c7d8; cursor: pointer; font: inherit; font-size: .85rem; }
.compare-tray .tray-label { white-space: nowrap; }
@media (max-width: 480px) { .compare-tray .tray-text { display: none; } .compare-tray { gap: .5rem; padding-left: .9rem; } }

.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .65rem 1rem; box-shadow: var(--shadow-lg); z-index: 90; font-size: .92rem;
}
.toast[hidden] { display: none; }

/* --- États vides, chargement -------------------------------------------------------------- */
.empty {
  text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1rem; background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty .icon-tile { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: .8rem; }
.empty h2 { font-size: 1.2rem; }
.empty p { color: var(--text-soft); max-width: 58ch; margin-left: auto; margin-right: auto; }
.skeleton { background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-soft) 37%, var(--bg-muted) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--radius-lg); }
.skeleton-card { height: 320px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.is-loading { position: relative; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 55%, transparent); border-radius: var(--radius-lg);
  backdrop-filter: blur(1px);
}
.spinner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 2rem 0 0; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; }
.pagination [aria-current="page"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* --- Contenus éditoriaux ------------------------------------------------------------------- */
.prose { max-width: 75ch; font-size: 1.02rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose .todo { background: var(--amber-100); color: var(--amber-800); padding: .05rem .35rem; border-radius: 4px; font-weight: 600; }
.page-layout { display: grid; gap: 2rem; padding-bottom: 3rem; }
.page-layout > * { min-width: 0; }
.merchant-table { min-width: 0; table-layout: fixed; }
.merchant-table th, .merchant-table td, .merchant-table tbody th { min-width: 0; }
.merchant-table thead th:nth-child(1) { width: 38%; }
.merchant-table thead th:nth-child(2) { width: 24%; }
.merchant-table thead th:nth-child(3) { width: 38%; }
@media (min-width: 1024px) { .page-layout--aside { grid-template-columns: minmax(0, 1fr) 300px; } }
.aside-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; font-size: .92rem; position: sticky; top: calc(var(--sticky-top) + 16px); }
.faq details { border-bottom: 1px solid var(--border); padding: .2rem 0; }
.faq summary { cursor: pointer; padding: .8rem 0; font-weight: 600; }
.faq details p { color: var(--text-soft); }
.guide-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; text-decoration: none; color: var(--text); display: block; }
.guide-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.guide-card h3 { margin-bottom: .3rem; }
.guide-card p { color: var(--text-soft); margin: 0; font-size: .93rem; }

/* --- Formulaires ---------------------------------------------------------------------------- */
.form-row { display: grid; gap: .35rem; margin-bottom: .9rem; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-soft); }
.form-error { color: var(--red-700); font-size: .88rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Pied de page --------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: #c3d0e0; padding: 2rem 0 1.25rem; margin-top: auto; font-size: .88rem; }
.site-footer a { color: #e2ebf5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h2 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-brand p { max-width: 40ch; color: #a9b9cc; }
.footer-brand .logo-svg { height: 32px; margin-bottom: .75rem; }
.footer-promise { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; }
.footer-promise .icon { color: #5fe0cd; margin-top: .15rem; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 1.75rem; padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; color: #8fa2b8; font-size: .85rem; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.footer-legal a { color: #b9c7d8; }
.footer-contact { display: block; width: fit-content; font-size: .85rem; }
.footer-notes { color: #a9b9cc; font-size: .75rem; margin-top: 1.5rem; }
.footer-notes p { margin: .3rem 0; }
.footer-notes a { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { margin-top: 1rem; }
}

/* --- Erreurs --------------------------------------------------------------------------------- */
.error-page { text-align: center; padding: clamp(3rem, 10vw, 6rem) 1rem; }
.error-page .code { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 700; color: var(--brand-600); line-height: 1; margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .filters, .compare-tray, .card-actions, .tabs-nav, .banner { display: none !important; }
  body { color: #000; background: #fff; }
}
.mt-1 { margin-top: .9rem; } .mt-2 { margin-top: 1.5rem; } .mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.error-page .cluster { justify-content: center; }

.ranking-disclosure { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; color: var(--text-soft); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .75rem; margin: 0 0 1rem; }
.ranking-disclosure .icon { margin-top: .1rem; flex: none; color: var(--text-faint); }
.gallery--empty .gallery-main { aspect-ratio: auto; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--ink-300); }
.gallery--empty .gallery-main .icon { width: 96px; height: 96px; stroke-width: 1.2; }
.card-media .placeholder { width: 64px; height: 64px; stroke-width: 1.2; }


/* Recherche externe Amazon : toujours distincte des offres/prix vérifiés. */
.amazon-search { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.amazon-search-link { position: relative; z-index: 2; max-width: 100%; white-space: normal; text-align: center; }
.amazon-search-note { font-size: .75rem; line-height: 1.45; color: var(--text-soft); margin: .4rem 0 0; }
.amazon-search--compact { margin-top: .5rem; padding-top: .6rem; }
.card .amazon-search-link { padding: .45rem .6rem; font-size: .78rem; }
.amazon-search--browse { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.amazon-search--browse h2 { font-size: 1.1rem; }
.amazon-compare-row .amazon-search { border: 0; margin: 0; padding: 0; }
.amazon-matches { padding: 1.1rem; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.amazon-matches-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; }
.amazon-matches h2 { font-size: 1.1rem; margin: 0; }
.amazon-model-list { list-style: none; padding: 0; margin: 0; }
.amazon-model-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.amazon-model-list li > div { min-width: 0; display: grid; gap: .25rem; }
.amazon-model-name { font-weight: 600; overflow-wrap: anywhere; }
.amazon-model-list .btn { flex-shrink: 0; }
.amazon-more summary { cursor: pointer; padding: .7rem 0; font-size: .9rem; }
@media (max-width: 480px) { .amazon-model-list li { align-items: flex-start; flex-direction: column; } }

/* Espace partenaire distinct des recommandations, sans ressource tierce. */
.home-partner { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem; margin-top: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.home-partner > img { width: 132px; height: 132px; object-fit: contain; flex-shrink: 0; border-radius: .6rem; }
.home-partner__copy { flex: 1; min-width: 0; }
.home-partner__label { display: inline-block; margin-bottom: .35rem; color: var(--text); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.home-partner h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 .35rem; }
.home-partner p { margin: .25rem 0; }
.home-partner .home-partner__disclosure { font-size: .78rem; }
.home-partner > .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .home-partner { width: calc(100% - 2rem); flex-wrap: wrap; gap: 1rem; padding: 1rem; }
  .home-partner > img { width: 80px; height: 100px; }
  .home-partner__copy { flex-basis: calc(100% - 100px); }
  .home-partner > .btn { width: 100%; }
}

/* Parcours courts depuis Google et les profils sociaux. */
.selection-intro { max-width: 880px; }
.selection-intro h1 { font-size: clamp(1.65rem, 3.3vw, 2.7rem); }
.selection-criteria { margin: .8rem 0 1rem; }
.selection-budgets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; font-size: .9rem; }
.selection-budgets a { padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.selection-question { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.selection-question summary { cursor: pointer; font-weight: 600; }
.selection-question p { margin-top: .6rem; }
#offres { scroll-margin-top: 100px; }
.link-hub { max-width: 760px; }
.link-hub__cards { display: grid; gap: .8rem; margin: 1.5rem 0; }
.link-hub__cards .guide-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.link-hub__cards h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.link-hub__cards p { margin: 0; }
.link-hub__cards .icon { flex-shrink: 0; }
.link-hub__search { margin: 1.6rem 0; }
.link-hub__search label { display: block; margin-bottom: .5rem; }
.link-hub__form-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.link-hub__form-row input[type="search"] { flex: 1 1 240px; min-width: 0; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.link-hub__form-row button { min-height: 44px; }
.guide-entry { padding: .8rem 1rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.3rem; }
@media (max-width: 480px) {
  .selection-intro .cluster > .btn { width: 100%; }
  .link-hub__form-row button { width: 100%; justify-content: center; }
}
