/* ==================================================================
   La Maison de Snow — feuille de style
   Direction : webzine de décoration. Lin clair, blanc cassé, beige,
   gris perle, touches de chêne et de noyer ; or du logo pour les
   accents, vert sauge réservé à l'action (boutons d'achat).
   Playfair Display pour les titres, Inter pour le texte. Mobile d'abord.
   ================================================================== */

:root {
  /* Lin et papier */
  --paper:    #F6F2EB;   /* lin clair : fond du site */
  --card:     #FFFDF9;   /* blanc cassé : cartes */
  --sand:     #EFE7DB;   /* beige */
  --sand-2:   #E4D8C6;
  --rule:     #E7DFD2;
  --rule-2:   #D5C8B4;
  --pearl:    #C9C5BE;   /* gris perle */

  /* Encre chaude */
  --ink:      #3B342D;
  --ink-2:    #685E54;
  --ink-3:    #978C81;

  /* Bois */
  --green:    #7A5C45;   /* noyer : structure, liens, étiquettes */
  --green-2:  #5E4533;
  --green-pale: #F3ECE2;
  --oak:      #C9A57E;   /* chêne clair */

  /* Action */
  --terra:    #6B8A85;   /* sauge : boutons d'achat */
  --terra-2:  #56736E;
  --terra-pale: #E7EEEC;

  /* Or du logo */
  --gold:     #A88B5C;
  --gold-2:   #8C7148;
  --grey-logo:#8D8984;

  /* Sémantique */
  --ok:       #5E7F62;
  --warn:     #B08440;
  --hot:      #B5543C;
  --hot-pale: #F8E9E3;

  /* Mesures */
  --gut:      16px;
  --r-sm:     6px;
  --r-md:     10px;
  --r-lg:     16px;
  --r-xl:     22px;
  --max:      1180px;
  --shadow:   0 1px 2px rgba(59,52,45,0.05), 0 12px 32px rgba(59,52,45,0.08);
  --shadow-sm: 0 1px 2px rgba(59,52,45,0.06), 0 3px 10px rgba(59,52,45,0.04);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  Inter, "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Alias de compatibilité : conservés pour les styles écrits
     directement dans les gabarits PHP. Ne pas utiliser pour du neuf. */
  --text:     var(--ink);
  --text-2:   var(--ink-2);
  --text-3:   var(--ink-3);
  --amp:      var(--terra);
  --volt:     var(--green);
  --panel:    var(--card);
  --line:     var(--rule);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 6.2vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.8vw, 2.1rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.mono { font-variant-numeric: tabular-nums; }

.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.05rem; }
.prose h2 { margin-block: 2.4rem 0.8rem; }
.prose h3 { margin-block: 1.7rem 0.5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-block: 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.2rem; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; }
.prose th { background: var(--sand); color: var(--green); font-weight: 600; }

/* Étiquette : le marqueur structurant du site ---------------------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.label::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--gold);
  flex: none;
}
.label.plain::before { display: none; }
.label.muted { color: var(--ink-3); }
.label.muted::before { background: var(--pearl); }

.num { font-variant-numeric: tabular-nums; }

/* Illustrations dessinées : elles couvrent toujours leur cadre. Le
   sélecteur est plus précis que « .card-media img » (photos produits,
   affichées entières avec une marge). */
.illus.illus-photo { width: 100%; height: 100%; overflow: hidden; }
.illus.illus-photo img,
.card-media .illus.illus-photo img,
.product-visual .illus.illus-photo img,
.duel-visuel .illus.illus-photo img,
.hero-cadre .illus.illus-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; padding: 0; display: block;
}

/* Dans les cadres 16/9 (à la une, vignettes de guide), une illustration
   dessinée garde ses proportions : on ne coupe pas la tête de Snow. */
.image-une:has(.illus-photo) { aspect-ratio: 36 / 25; max-width: 680px; }
.guide-card-visuel:has(.illus-photo) { aspect-ratio: 36 / 25; }

/* Motif du logo : filet — maison — filet ----------------------------- */

.filet-maison {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  max-width: 260px;
}
.filet-maison::before, .filet-maison::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.7; }
.filet-maison svg { width: 18px; height: 18px; flex: none; }
.filet-maison.centre { margin-inline: auto; }

/* Bandeau de transparence ------------------------------------------ */

.disclosure-bar {
  background: var(--sand);
  color: var(--ink-2);
  font-size: 0.76rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.disclosure-bar .wrap { padding-block: 7px; }
.disclosure-bar a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* En-tête ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-row { display: flex; align-items: center; gap: 12px; min-height: 72px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-medaillon {
  width: 50px; height: 50px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--card), 0 0 0 5px var(--rule-2);
}
.brand-texte { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-l1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.brand-l2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-logo);
  margin-top: 5px;
  white-space: nowrap;
}
/* Ancienne pastille, conservée pour le back-office. */
.brand-mark {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--rule-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle svg { width: 14px; height: 14px; }

.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.site-nav a, .site-nav summary {
  display: block;
  padding: 13px 2px;
  color: var(--ink-2);
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav summary:hover { color: var(--green); text-decoration: none; }
.site-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: "+"; color: var(--gold); font-size: 1.1rem; }
.site-nav details[open] summary::after { content: "−"; }
.nav-sous { list-style: none; margin: 0; padding: 4px 0 8px 14px; }
.nav-sous a { border-bottom: 0; padding: 9px 2px; font-size: 0.94rem; }

@media (min-width: 1000px) {
  /* Logo et menu sur une même ligne, comme sur la maquette. */
  .site-header > .wrap { display: flex; align-items: center; gap: 28px; }
  .site-header .header-row { flex: none; }
  .site-nav { margin-left: auto; }
  .header-row { min-height: 84px; }
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-nav > ul { flex-direction: row; align-items: center; gap: 0; padding: 0; border-top: 0; }
  .site-nav > ul > li + li:not(.nav-recherche)::before {
    content: "";
    display: inline-block;
    width: 1px; height: 14px;
    background: var(--rule-2);
    margin-inline: 16px;
    vertical-align: middle;
  }
  .site-nav > ul > li { display: flex; align-items: center; }
  .site-nav a, .site-nav summary { padding: 6px 0; border-bottom: 0; font-size: 0.92rem; }
  .site-nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--gold); }
  .site-nav summary::after { content: "▾"; font-size: 0.7rem; margin-left: 6px; }
  .site-nav details[open] summary::after { content: "▴"; }
  .nav-cat { position: relative; }
  .nav-sous {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    min-width: 250px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 60;
  }
  .nav-sous a { padding: 9px 12px; border-radius: var(--r-sm); display: flex; gap: 10px; align-items: center; }
  .nav-sous a:hover { background: var(--sand); }
  .nav-sous svg { color: var(--gold); flex: none; }
}

/* Héros d'accueil ---------------------------------------------------- */

.accueil-hero { padding-block: 26px 0; }
.accueil-hero-grid { display: grid; gap: 26px; align-items: center; }
.accueil-hero-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .accueil-hero { padding-block: 44px 0; }
  .accueil-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 54px; }
}
.accueil-hero h1 { margin-block: 14px 16px; max-width: 14ch; }
.accueil-hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-lede { color: var(--ink-2); font-size: 1.12rem; max-width: 50ch; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 820 / 772;
  background: var(--sand);
  box-shadow: var(--shadow);
  border: 8px solid var(--card);
  outline: 1px solid var(--rule);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  left: 14px; top: 14px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--ink);
}
.hero-photo figcaption img { width: 30px; height: 30px; border-radius: 50%; }
.hero-photo figcaption b { font-family: var(--serif); font-weight: 600; }

/* Sélection qui chevauche le héros, comme sur la maquette */
.hero-selection {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  margin-top: 28px;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) { .hero-selection { margin-top: -54px; padding-inline: 5%; } }
.mini-carte {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 10px 12px 10px 10px;
  box-shadow: var(--shadow);
  position: relative;
  color: var(--ink);
}
.mini-carte:hover { text-decoration: none; border-color: var(--rule-2); }
.mini-carte .card-media { aspect-ratio: 1; border: 0; border-radius: var(--r-md); background: var(--sand); }
.mini-carte .card-media img { padding: 6px; }
.mini-carte .mc-fam { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.mini-carte strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.2; margin-block: 2px 6px; }
.mini-carte .mc-cta { font-size: 0.8rem; font-weight: 600; color: var(--terra-2); }

/* Ancien héros (pages intérieures) --------------------------------- */

.hero { border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-block: 40px 36px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(126px, 45%), 1fr));
  border-top: 1px solid var(--gold);
  max-width: 660px;
}
.hero-stat { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.hero-stat .v { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1; color: var(--ink); }
.hero-stat .v.amp { color: var(--gold); }
.hero-stat .v.volt { color: var(--green); }
.hero-stat .k { margin-top: 6px; font-size: 0.67rem; }

/* En-tête des pages intérieures -------------------------------------- */

.page-tete { padding-block: 22px 8px; }
.page-tete h1 { margin-block: 10px 14px; max-width: 22ch; }
.page-tete .hero-lede { margin-bottom: 18px; }

/* Boutons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; flex: none; }

.btn-amp { background: var(--terra); color: #FFF; box-shadow: var(--shadow-sm); }
.btn-amp:hover { background: var(--terra-2); color: #FFF; }

.btn-ghost { background: var(--card); border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-pale); color: var(--ink); }

.btn-green, .btn-bois { background: var(--green); color: #FFF; }
.btn-green:hover, .btn-bois:hover { background: var(--green-2); color: #FFF; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 0.84rem; }

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

.section { padding-block: 48px; }
.section + .section { border-top: 1px solid var(--rule); }
.section.sans-filet { border-top: 0; }
.section.beige { background: var(--sand); border-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head h2 { margin-top: 8px; }
.section-head p { color: var(--ink-2); font-size: 0.98rem; max-width: 60ch; margin: 8px 0 0; }
.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  padding-block: 10px;
}
.section-head.centre { justify-content: center; text-align: center; }
.section-head.centre > div { display: flex; flex-direction: column; align-items: center; }
.section-head.centre p { margin-inline: auto; }

/* Familles --------------------------------------------------------- */

.families { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 45%), 1fr)); gap: 14px; }
@media (min-width: 760px) { .families { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.family {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.family:hover { border-color: var(--rule-2); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.family-visuel { aspect-ratio: 4 / 3; background: var(--sand); }
.family-visuel .illus, .family-visuel svg { width: 100%; height: 100%; display: block; }
.family-corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.family-icon { color: var(--gold); }
.family-icon svg { width: 28px; height: 28px; }
.family h3 { font-size: 1.08rem; }
.family p { color: var(--ink-2); font-size: 0.86rem; margin: 0; }
.family .count { margin-top: auto; padding-top: 6px; font-size: 0.66rem; }
@media (max-width: 520px) { .family p { display: none; } }

/* Cartes produit ---------------------------------------------------- */

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--rule-2); transform: translateY(-2px); }

/* La carte entière ouvre la fiche produit ; le bouton d'achat reste
   au-dessus et garde sa propre destination. */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-foot { position: relative; z-index: 2; }
.card:focus-within { box-shadow: var(--shadow); border-color: var(--gold); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: #FBF8F3;
  border-bottom: 1px solid var(--rule);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.card-media .illus { width: 100%; height: 100%; }
.card-media .illus svg { width: 100%; height: 100%; display: block; }

.badge {
  position: absolute;
  top: 11px; left: 11px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hot);
  color: #FFF;
  z-index: 2;
}
.badge-choice {
  background: rgba(255, 253, 249, 0.95);
  color: var(--green);
  border: 1px solid var(--rule-2);
  left: auto; right: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  text-transform: uppercase;
}
.badge-snow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
}
.badge-snow img { width: 20px; height: 20px; border-radius: 50%; }
.card .badge-snow { position: absolute; left: 11px; bottom: 11px; z-index: 2; }

.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-size: 0.64rem; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; line-height: 1.22; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--green); text-decoration: none; }
.card-pitch { color: var(--ink-2); font-size: 0.88rem; margin: 0; }

.spec-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.spec-chip {
  font-size: 0.75rem;
  color: var(--ink-2);
  background: var(--sand);
  border-radius: 999px;
  padding: 3px 10px;
}
.spec-chip b { color: var(--ink); font-weight: 600; }

.card-foot {
  border-top: 1px solid var(--rule);
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: #FBF8F3;
}
.card-foot .btn { width: 100%; }
.card-foot .price-block { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price-block { min-width: 0; }
.price { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; color: var(--gold-2); white-space: nowrap; }
.price-was { color: var(--ink-3); text-decoration: line-through; font-size: 0.86rem; margin-left: 7px; font-family: var(--sans); font-weight: 400; }
.price-note { color: var(--ink-3); font-size: 0.72rem; line-height: 1.35; }
.price-ask { color: var(--ink-2); font-size: 0.88rem; }

/* Comparateur ------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table.compare { width: 100%; border-collapse: collapse; font-size: 0.89rem; min-width: 760px; }
table.compare th, table.compare td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  vertical-align: middle;
}
table.compare thead th {
  background: var(--sand);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--rule-2);
  position: sticky;
  top: 0;
}
table.compare tbody tr:nth-child(even) { background: #FCFAF6; }
table.compare tbody tr:hover { background: var(--green-pale); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.name { white-space: normal; min-width: 216px; }
table.compare td.name a { color: var(--ink); font-weight: 600; font-family: var(--serif); font-size: 1.02rem; }
table.compare td.name a:hover { color: var(--green); }
table.compare .sub { display: block; color: var(--gold-2); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.bar {
  display: block;
  position: relative;
  height: 4px;
  background: var(--sand-2);
  border-radius: 2px;
  overflow: hidden;
  min-width: 68px;
  margin-top: 5px;
}
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--oak); border-radius: 2px; }
.bar i.amp { background: var(--terra); }

.best { color: var(--terra-2); font-weight: 700; }

/* Top 3 d'un comparatif (maquette « Best Of ») ----------------------- */

.top3 { margin-block: 26px 34px; }
.top3-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.top3-table th {
  background: var(--sand);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule-2);
}
.top3-table td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.top3-table tr:last-child td { border-bottom: 0; }
.top3-role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); }
.top3-nom { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); display: block; margin-top: 2px; }
.top3-nom:hover { color: var(--green); }
.top3-vignette { width: 78px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--sand); }
.top3-vignette .card-media { aspect-ratio: 1; border: 0; background: transparent; }
.top3-vignette img { padding: 6px; }
.top3-prix { font-family: var(--serif); color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.top3-atout { color: var(--ink-2); font-size: 0.88rem; }

/* Sur mobile, le tableau devient une pile de cartes lisibles. */
@media (max-width: 760px) {
  .top3-table, .top3-table tbody, .top3-table tr, .top3-table td { display: block; width: 100%; }
  .top3-table thead { display: none; }
  .top3-table { border: 0; background: transparent; }
  .top3-table tr {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 4px 14px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 14px;
    margin-bottom: 12px;
  }
  .top3-table td { border: 0; padding: 0; }
  .top3-table td.t-vignette { grid-row: span 3; }
  .top3-table td.t-cta { grid-column: 1 / -1; margin-top: 10px; }
  .top3-table td.t-cta .btn { width: 100%; }
}

/* Avis détaillé (bloc « N°1 » des maquettes) ------------------------- */

.avis {
  display: grid;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 22px;
  margin-block: 22px;
}
@media (min-width: 760px) { .avis { grid-template-columns: 280px 1fr; padding: 26px; } }
.avis-visuel { border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }
.avis-visuel .card-media { border: 0; background: transparent; }
.avis-rang { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.avis h3 { font-size: 1.45rem; margin-block: 2px 8px; }
.avis h3 a { color: var(--ink); }
.avis-texte { color: var(--ink-2); font-size: 0.97rem; }
.avis .pros-cons { margin-block: 14px; }
.avis .pc { padding: 14px 16px; }
.avis-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 14px; }

/* Article déco (maquette « Blog Article ») ----------------------------- */

.article-grille { display: grid; gap: 36px; }
.article-grille > * { min-width: 0; }
@media (min-width: 980px) { .article-grille { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.article-aside { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 980px) { .article-aside > div { position: sticky; top: 110px; } }
.aside-bloc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; }
.aside-bloc h2 { font-size: 1.1rem; margin-bottom: 12px; }
.aside-lien { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding-block: 9px; border-top: 1px solid var(--rule); color: var(--ink); font-size: 0.9rem; line-height: 1.35; }
.aside-lien:first-of-type { border-top: 0; }
.aside-lien:hover { color: var(--green); text-decoration: none; }
.aside-lien .vignette { width: 58px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); }
.aside-lien .vignette svg { width: 100%; height: 100%; }
.aside-lien .vignette .card-media { aspect-ratio: 1; border: 0; }
.aside-lien .vignette img { padding: 4px; }

.selection {
  background: var(--sand);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-block: 28px;
}
.selection-titre { text-align: center; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 14px; }
.selection-grille { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.selection-item { background: var(--card); border-radius: var(--r-md); padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.selection-item .card-media { width: 100%; border: 0; border-radius: var(--r-sm); aspect-ratio: 4/3; background: #FBF8F3; }
.selection-item strong { font-family: var(--serif); font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.selection-item strong a { color: var(--ink); }

.image-une {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sand);
  margin-block: 8px 26px;
}
.image-une img, .image-une svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bons plans -------------------------------------------------------- */

.deal-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--hot);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.deal-strip .label { color: var(--hot); }
.deal-strip .label::before { background: var(--hot); }

.heat { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.heat span { width: 5px; height: 13px; border-radius: 1px; background: var(--sand-2); }
.heat span.on { background: var(--hot); }

/* Fiche produit ----------------------------------------------------- */

.product-top { display: grid; gap: 28px; padding-block: 26px; }
.product-top > * { min-width: 0; }
@media (min-width: 940px) { .product-top { grid-template-columns: 1fr 380px; align-items: start; } }

.product-visual {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-block: 20px;
}
.product-visual img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.product-visual .illus { width: 100%; height: 100%; }
.product-visual .illus svg { width: 100%; height: 100%; display: block; }

.buy-box {
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 940px) { .buy-box { position: sticky; top: 104px; } }
.buy-box-head { padding: 17px 18px 15px; border-bottom: 1px solid var(--rule); background: var(--sand); }
.buy-box-prix { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-top: 6px; color: var(--gold-2); }
.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.offer:last-of-type { border-bottom: 0; }
.offer-merchant { font-weight: 600; font-size: 0.97rem; }
.offer-note { color: var(--ink-3); font-size: 0.77rem; }
.buy-box-foot { padding: 13px 18px; background: #FBF8F3; border-top: 1px solid var(--rule); }
.buy-box-foot p { color: var(--ink-3); font-size: 0.75rem; margin: 0; line-height: 1.55; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec { padding: 14px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec .k { margin-bottom: 5px; font-size: 0.65rem; color: var(--ink-3); }
.spec .v { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.spec .v.calc { color: var(--terra-2); }

.pros-cons { display: grid; gap: 16px; }
@media (min-width: 680px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 20px; }
.pc h3 { font-size: 0.98rem; margin-bottom: 10px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.pc ul { margin: 0; padding-left: 1.1rem; }
.pc li { color: var(--ink-2); font-size: 0.91rem; margin-bottom: 7px; }
.pc.plus { border-top: 3px solid var(--terra); }
.pc.plus h3 { color: var(--terra-2); }
.pc.plus li::marker { color: var(--terra); }
.pc.minus { border-top: 3px solid var(--oak); }
.pc.minus h3 { color: var(--green); }
.pc.minus li::marker { color: var(--oak); }

/* Guides ------------------------------------------------------------ */

.guide-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { border-color: var(--rule-2); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.guide-card-visuel { aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.guide-card-visuel svg, .guide-card-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card-corps { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.guide-card h3 { margin-block: 8px 6px; font-size: 1.2rem; }
.guide-card p { color: var(--ink-2); font-size: 0.9rem; margin: 0; }

.guide-hero { padding-block: 26px 6px; }
.guide-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.guide-meta .label { font-size: 0.66rem; }

.hubs { display: grid; gap: 20px; }
@media (min-width: 760px) { .hubs { grid-template-columns: 1fr 1fr; } }
.hub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.hub:hover { text-decoration: none; border-color: var(--rule-2); box-shadow: var(--shadow); }
.hub h3 { font-size: 1.5rem; }
.hub p { color: var(--ink-2); font-size: 0.95rem; margin: 0; max-width: 42ch; }
.hub .hub-lien { margin-top: 8px; font-weight: 600; color: var(--green); font-size: 0.9rem; }
.hub.choix { background: linear-gradient(135deg, #FFFDF9 0%, #F3ECE2 100%); }
.hub.deco { background: linear-gradient(135deg, #FFFDF9 0%, #E9EFEC 100%); }

.onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.onglets a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 17px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.onglets a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.onglets a[aria-current="true"] { background: var(--green); border-color: var(--green); color: #FFF; }

.toc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-block: 26px;
}
.toc ol, .toc ul { margin: 10px 0 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 5px; }
.toc li::marker { color: var(--gold); font-weight: 600; }
.toc a { color: var(--ink-2); font-size: 0.93rem; }

.callout {
  background: var(--green-pale);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-block: 22px;
}
.callout p { color: var(--ink-2); font-size: 0.93rem; }
.callout .label { display: flex; margin-bottom: 7px; }

/* Rencontrez Snow ------------------------------------------------------- */

.snow-bloc { display: grid; gap: 26px; align-items: center; }
.snow-bloc > * { min-width: 0; }
@media (min-width: 820px) { .snow-bloc { grid-template-columns: 340px 1fr; gap: 50px; } }
.snow-logo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); max-width: 340px; margin-inline: auto; width: 100%; }
.snow-bloc h2 { margin-block: 10px 14px; }
.snow-bloc p { color: var(--ink-2); font-size: 1.04rem; }
.snow-signature { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 1.1rem; }

.portrait-snow { margin: 0 0 26px; }
.portrait-snow img { border-radius: var(--r-xl); width: 100%; box-shadow: var(--shadow); }
.portrait-snow figcaption { color: var(--ink-3); font-size: 0.85rem; margin-top: 8px; text-align: center; font-style: italic; }
@media (min-width: 820px) {
  .portrait-snow.flottant { float: right; width: 44%; margin: 6px 0 20px 32px; }
}

/* Pied de page ------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule-2); background: var(--sand); margin-top: 56px; }
.footer-marque { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 38px; text-align: center; }
.footer-marque img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--card); }
.footer-marque p { color: var(--ink-2); font-size: 0.9rem; max-width: 52ch; margin: 0; }
.footer-grid { display: grid; gap: 28px; padding-block: 32px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid a { color: var(--ink-2); font-size: 0.9rem; display: inline-block; padding-block: 4px; }
.footer-grid a:hover { color: var(--green); }
.footer-legal { border-top: 1px solid var(--rule-2); padding-block: 18px; color: var(--ink-3); font-size: 0.78rem; line-height: 1.65; }

/* Divers ------------------------------------------------------------- */

.empty {
  border: 1px dashed var(--rule-2);
  border-radius: var(--r-lg);
  padding: 30px 22px;
  text-align: center;
  color: var(--ink-3);
  background: var(--card);
}

.breadcrumb { font-size: 0.82rem; color: var(--ink-3); padding-block: 10px 0; }
.breadcrumb a { color: var(--ink-3); display: inline-block; padding-block: 9px; }
.breadcrumb a:hover { color: var(--green); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters a {
  font-size: 0.87rem;
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.filters a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.filters a[aria-current="true"] { background: var(--green); border-color: var(--green); color: #FFF; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Recherche dans la navigation --------------------------------------- */

.nav-recherche { padding-top: 12px; }
.nav-recherche form { display: flex; gap: 6px; align-items: center; }
.nav-recherche input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}
.nav-recherche input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--green-pale); }
.nav-recherche button {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  background: var(--card);
  color: var(--green);
  cursor: pointer;
}
.nav-recherche button:hover { background: var(--green); color: #FFF; border-color: var(--green); }
@media (min-width: 1000px) {
  .nav-recherche { margin-left: 22px; padding-top: 0; }
  .nav-recherche input { width: 140px; }
  .nav-recherche input:focus { width: 200px; transition: width 0.18s ease; }
}

.recherche-grande { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; }
.recherche-grande input {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  font-size: 1.02rem;
  padding: 13px 18px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}
.recherche-grande input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--green-pale); }

/* Rang du produit dans sa famille ------------------------------------ */

.rang {
  display: flex;
  align-items: baseline;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  max-width: 56ch;
}
.rang strong { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.rang span { color: var(--ink-2); font-size: 0.9rem; }

/* Questions fréquentes ------------------------------------------------ */

.faq-liste { display: flex; flex-direction: column; gap: 10px; max-width: 76ch; }
.faq-item { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.faq-item[open] { border-color: var(--rule-2); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 1.3rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--green); }
.faq-reponse { padding: 0 18px 16px; color: var(--ink-2); font-size: 0.95rem; }
.faq-reponse p { margin-bottom: 0.8em; }
.faq-reponse ul { margin: 0 0 0.8em; padding-left: 1.15rem; }
.faq-reponse li { margin-bottom: 0.35em; }
.faq-reponse li::marker { color: var(--gold); }
.faq-reponse strong { color: var(--ink); }

/* Pages face à face ---------------------------------------------------- */

.duel { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .duel { grid-template-columns: 1fr auto 1fr; } }
.duel-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px;
}
.duel-carte.gagnant { border-color: var(--gold); border-width: 2px; padding: 17px; box-shadow: var(--shadow); }
.duel-ruban {
  position: absolute;
  top: -11px; left: 17px;
  background: var(--gold);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.duel-visuel {
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: #FBF8F3;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.duel-visuel img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.duel-visuel .illus { width: 100%; height: 100%; }
.duel-visuel .illus svg { width: 100%; height: 100%; display: block; }
.duel-nom { font-size: 1.18rem; margin: 0; }
.duel-nom a { color: var(--ink); }
.duel-nom a:hover { color: var(--green); text-decoration: none; }
.duel-vs { align-self: center; justify-self: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); }

.verdict {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  max-width: 76ch;
}
.verdict h2 { margin-block: 8px 12px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.verdict p { color: var(--ink-2); font-size: 1.02rem; margin: 0; }

.duels-liens { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 18px; }
.duel-lien {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
}
.duel-lien:hover { border-color: var(--gold); color: var(--green); text-decoration: none; }
.duel-lien svg { color: var(--gold); flex: none; }
.duel-lien em { font-style: normal; color: var(--ink-3); }

/* Filtres des pages catégories ----------------------------------------- */

.panneau-filtres {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  align-items: end;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.filtre { min-width: 0; }
.filtre label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.filtre output { font-size: 0.85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gold-2); }
.filtre input[type="range"] { width: 100%; accent-color: var(--green); cursor: pointer; }
.filtre select {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 11px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
}
.filtre select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--green-pale); }

/* Barre d'achat collante ----------------------------------------------- */

.barre-achat {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule-2);
  box-shadow: 0 -4px 18px rgba(59, 52, 45, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.barre-achat-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 11px; }
.barre-achat-info { display: flex; flex-direction: column; min-width: 0; }
.barre-achat-info strong { font-family: var(--serif); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-achat-info span { color: var(--gold-2); font-size: 0.87rem; font-weight: 600; }
@media (min-width: 940px) { .barre-achat { display: none; } }

/* Bloc de réassurance --------------------------------------------------- */

.reassurance {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.reassurance > div { background: var(--card); padding: 22px; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.reassurance h3 { font-size: 1.08rem; margin-bottom: 7px; }
.reassurance p { color: var(--ink-2); font-size: 0.9rem; margin: 0; }
.reassurance .r-icone { color: var(--gold); margin-bottom: 11px; }

/* ==================================================================
   Lisibilité sur petit écran : aucun texte sous 12 pixels.
   ================================================================== */
@media (max-width: 760px) {
  .label,
  .badge,
  .card-brand,
  .price-note,
  .hero-stat .k,
  .family .count,
  .spec .k,
  .guide-meta .label,
  .spec-chip,
  .mini-carte .mc-fam,
  .top3-role,
  table.compare .sub {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
  .price-note, .spec-chip { letter-spacing: normal; }
  .brand-medaillon { width: 42px; height: 42px; }
  .brand-l1 { font-size: 0.98rem; letter-spacing: 0.1em; }
  .brand-l2 { font-size: 0.75rem; letter-spacing: 0.24em; }
}

/* ==================================================================
   Version 1.1 — mobile repensé
   Grilles en 2 colonnes (3 sur ordinateur), cartes compactes, menu plein
   écran, barre d'onglets en bas, tableaux comparatifs en cartes.
   Ces règles viennent en dernier : elles priment sur celles du dessus.
   ================================================================== */

/* Textes longs / courts selon l'écran --------------------------------- */
.txt-court { display: none; }
@media (max-width: 760px) {
  .txt-long { display: none; }
  .txt-court { display: inline; }
}

/* Grilles : 2 colonnes par défaut, 3 sur grand écran ------------------ */
.guide-list, .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
  .guide-list, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Barre d'onglets --------------------------------------------------- */
.barre-onglets { display: none; }
@media (max-width: 999px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .barre-onglets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule-2);
    box-shadow: 0 -4px 18px rgba(59, 52, 45, 0.07);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .barre-onglets a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 60px;
    padding: 6px 2px;
    color: var(--ink-3);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.1;
  }
  .barre-onglets a:hover { text-decoration: none; color: var(--green); }
  .barre-onglets a[aria-current="page"] { color: var(--green); }
  .barre-onglets a[aria-current="page"] svg { color: var(--gold); }
  .barre-onglets svg { width: 22px; height: 22px; }
  /* La barre d'achat de la fiche produit se pose au-dessus des onglets. */
  .barre-achat { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0; }
}

/* Menu compact et plein écran ---------------------------------------- */
@media (max-width: 999px) {
  /* Un flou d'arrière-plan sur l'en-tête ferait du menu « fixed » un enfant
     prisonnier de l'en-tête : fond plein sur mobile. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FAF7F1; }
  .header-row { min-height: 60px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-medaillon { width: 40px; height: 40px; }
  .nav-toggle { padding: 8px 12px; font-size: 0.82rem; }

  .site-nav.open {
    position: fixed;
    left: 0; right: 0;
    top: var(--haut-menu, 60px);
    bottom: 0;
    z-index: 65;
    background: var(--paper);
    overflow-y: auto;
    padding: 6px var(--gut) calc(90px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule);
  }
  .site-nav > ul { padding-bottom: 0; border-top: 0; }
  .site-nav .nav-recherche { order: -1; padding-block: 10px 6px; }
  .site-nav .nav-recherche input { font-size: 1rem; padding: 11px 16px; }
  .site-nav a, .site-nav summary { padding: 14px 2px; font-size: 1.02rem; }
  .nav-sous {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0 14px;
  }
  .nav-sous a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    font-size: 0.88rem;
    line-height: 1.25;
  }
  .nav-sous svg { color: var(--gold); }
  body.menu-ouvert { overflow: hidden; }
}

@media (max-width: 760px) {
  /* Bandeau d'affiliation sur une seule ligne */
  .disclosure-bar { font-size: 0.72rem; }
  .disclosure-bar .wrap { padding-block: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .brand-medaillon { width: 38px; height: 38px; }
  .brand-l1 { font-size: 0.9rem; letter-spacing: 0.1em; }
  .brand-l2 { font-size: 0.68rem; letter-spacing: 0.22em; margin-top: 3px; }

  /* Sections plus serrées */
  .section { padding-block: 32px; }
  .section-head { margin-bottom: 16px; gap: 8px; }
  .section-head p { font-size: 0.92rem; }
  .section-head a { padding-block: 4px; }

  /* Accueil plus court : la photo d'abord, un seul bouton */
  .accueil-hero { padding-top: 14px; }
  .accueil-hero-grid { gap: 16px; }
  .accueil-hero-grid > figure { order: -1; }
  .hero-photo { aspect-ratio: 4 / 3; border-width: 5px; border-radius: var(--r-lg); }
  .hero-photo img { object-position: 50% 30%; }
  .accueil-hero .label { display: none; }
  .accueil-hero h1 { font-size: 1.85rem; margin-block: 0 8px; max-width: none; }
  .accueil-hero .hero-lede {
    font-size: 0.98rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bouton-secondaire { display: none; }
  .hero-actions .btn { width: 100%; }
  /* Sélection du héros : un bandeau qui défile de côté */
  .hero-selection {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-top: 16px;
    padding: 2px 2px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .hero-selection .mini-carte { flex: 0 0 78%; scroll-snap-align: start; box-shadow: var(--shadow-sm); }

  /* Cartes d'articles compactes */
  .guide-list { gap: 12px; }
  .guide-card-corps { padding: 10px 12px 12px; gap: 2px; }
  .guide-card .label { font-size: 0.62rem; letter-spacing: 0.06em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .guide-card .label::before { display: none; }
  .guide-card h3 { font-size: 0.96rem; margin-block: 4px 0; line-height: 1.25; }
  .guide-card p { display: none; }

  /* Cartes produits compactes */
  .grid-products { gap: 12px; }
  .card { border-radius: var(--r-md); }
  .card:hover { transform: none; }
  .card-media img { padding: 8px; }
  .badge-choice {
    top: 6px; right: 6px;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    max-width: calc(100% - 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card .badge-snow { left: 6px; bottom: 6px; font-size: 0.6rem; padding: 3px 7px 3px 3px; }
  .card .badge-snow img { width: 16px; height: 16px; }
  .card-body { padding: 10px 12px 8px; gap: 3px; }
  .card-brand { font-size: 0.62rem; }
  .card-brand::before { display: none; }
  .card-title { font-size: 0.95rem; line-height: 1.22; }
  .card-pitch, .card .spec-row { display: none; }
  .card-foot { padding: 8px 12px 12px; gap: 8px; }
  .card-foot .price { font-size: 0.95rem; white-space: normal; }
  .card-foot .price-note { display: none; }
  .card-foot .btn { padding: 8px 6px; font-size: 0.76rem; }
  .card-foot .btn svg { display: none; }

  /* Tableau comparatif : une carte par produit */
  .table-scroll:has(.compare-cartes) { border: 0; background: transparent; overflow: visible; border-radius: 0; }
  table.compare-cartes { min-width: 0; display: block; font-size: 0.86rem; }
  table.compare-cartes thead { display: none; }
  table.compare-cartes tbody { display: grid; gap: 10px; }
  table.compare-cartes tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 14px;
    background: var(--card) !important;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 12px 14px;
  }
  table.compare-cartes td { display: block; padding: 5px 0; border: 0 !important; white-space: normal; }
  table.compare-cartes td.name { grid-column: 1 / -1; min-width: 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule) !important; margin-bottom: 4px; }
  table.compare-cartes td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1px;
  }
  table.compare-cartes td.vide { display: none; }
  table.compare-cartes td.t-offre { grid-column: 1 / -1; padding-top: 8px; }
  table.compare-cartes td.t-offre .btn { width: 100%; background: var(--terra); color: #FFF; border-color: var(--terra); }

  /* Tableau des face-à-face : tient dans l'écran */
  table.compare:not(.compare-cartes) { min-width: 0 !important; font-size: 0.82rem; }
  table.compare:not(.compare-cartes) th, table.compare:not(.compare-cartes) td { padding: 10px 8px; white-space: normal; }

  /* Pied de page en deux colonnes */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
}

/* Libellé du bouton du tableau : court sur ordinateur, explicite sur mobile */
table.compare .txt-long { display: none; }
table.compare .txt-court { display: inline; }
@media (max-width: 760px) {
  table.compare-cartes .txt-long { display: inline; }
  table.compare-cartes .txt-court { display: none; }
}

/* Accueil : pas de carte orpheline en bout de grille. Le lien « Tous les
   comparatifs / guides » donne accès au reste. */
@media (max-width: 899px) {
  .accueil-articles .guide-list > .guide-card:nth-child(2n+1):last-child:not(:first-child) { display: none; }
}
@media (min-width: 900px) {
  .accueil-articles .guide-list > .guide-card:nth-child(3n+1):last-child:not(:first-child) { display: none; }
}
