/* ==========================================================================
   bougie.pro, design system
   Palette : brun cire chaude, ambre et miel, ivoire, fumée. Typo : Fraunces + Inter.
   ========================================================================== */
:root {
  color-scheme: light;
  --plum: #7a3e12;
  --plum-700: #8f4b17;
  --plum-900: #4a2408;
  --rose: #d98a2b;
  --rose-600: #9a5a12;
  --rose-500: #b96f1c;
  --rose-100: #fbeedb;
  --blush: #faf1e4;
  --cream: #fbf7f0;
  --ink: #2a2118;
  --muted: #6f6256;
  --line: #ece2d3;
  --line-strong: #dccbb4;
  --gold: #e0a83a;
  --green: #4a7c59;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(74, 36, 8, 0.06), 0 8px 24px -12px rgba(74, 36, 8, 0.18);
  --shadow-lg: 0 20px 50px -20px rgba(74, 36, 8, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 112px;
  --green-text: #3b6b49;
}
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--plum-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rose-600); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--plum-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.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; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.footer :focus-visible, .banner :focus-visible, .topbar :focus-visible, .btn-primary:focus-visible, .btn-dark:focus-visible { outline-color: #ffe1b3; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(154, 90, 18, 0.6); }
.btn-primary:hover { background: var(--plum-700); color: #fff; }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: var(--plum-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--plum); color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum-700); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--plum); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--plum); position: relative; cursor: pointer; text-decoration: none; flex: none; }
.btn-icon:hover { border-color: var(--rose); color: var(--rose); }
.btn-icon svg { width: 20px; height: 20px; }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 18px; min-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose-600); color: #fff; font-size: 0.75rem; font-weight: 700; display: none; align-items: center; justify-content: center; }
.badge-count.is-on { display: inline-flex; }

/* --- En-tête -------------------------------------------------------------- */
.topbar { background: var(--plum-900); color: #f5e9d6; font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: center; gap: 28px; padding: 7px 0; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px, 3vw, 40px); padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum-900); }
.logo-mark { width: 38px; height: 38px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.logo-text em { font-style: normal; color: var(--rose); font-weight: 500; }
.logo-sub { display: block; font: 500 0.66rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.search { position: relative; }
.search form { display: flex; align-items: center; background: var(--blush); border: 1.5px solid transparent; border-radius: 999px; padding: 2px 4px 2px 18px; transition: border-color 0.15s; }
.search form:focus-within { border-color: var(--rose-600); background: #fff; box-shadow: 0 0 0 3px rgba(217, 138, 43, 0.35); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 0.95rem; padding: 10px 0; min-width: 0; }
.search input:focus { outline: none; }
.search button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search button svg { width: 18px; height: 18px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 70vh; overflow: auto; z-index: 60; }
.search-results.is-open { display: block; }
.search-results a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--blush); }
.search-results img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-results .sr-name { font-size: 0.9rem; font-weight: 500; line-height: 1.3; }
.search-results .sr-cat { font-size: 0.75rem; color: var(--muted); }
.search-results .sr-price { font-weight: 600; color: var(--plum); font-size: 0.9rem; }
.search-results .sr-all { justify-content: center; display: flex; font-weight: 600; color: var(--rose-600); border-top: 1px solid var(--line); margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .label { display: none; }
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: space-between; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 12px 10px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li:focus-within > a { color: var(--rose-600); border-bottom-color: var(--rose); }
.nav-list > li.is-magazine > a, .nav-list > li.is-hub > a { color: var(--plum-700); }
.mega { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: none; z-index: 55; }
.nav-list > li:hover > .mega, .nav-list > li:focus-within > .mega, .nav-list > li.is-open > .mega { display: block; }
.mega ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.mega li { break-inside: avoid; page-break-inside: avoid; -webkit-column-break-inside: avoid; display: block; }
.mega.wide { min-width: 560px; }
.mega.wide ul { columns: 2; column-gap: 24px; }
.mega li a { display: block; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 0.9rem; break-inside: avoid; }
.mega li a:hover { background: var(--blush); color: var(--rose-600); }
.mega .mega-all { display: block; margin-top: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); font-weight: 600; color: var(--plum); text-decoration: none; font-size: 0.9rem; }
.mega .mega-all:hover { color: var(--rose-600); }
.mega-hub { display: none; grid-template-columns: 1fr 1fr; gap: 0 24px; right: 0; left: auto; min-width: 620px; }
.mega-hub.cols-3 { grid-template-columns: repeat(3, 1fr); min-width: 860px; }
.mega-hub.cols-4 { grid-template-columns: repeat(4, 1fr); min-width: 1040px; }
.mega-hub.cols-5 { grid-template-columns: repeat(5, 1fr); min-width: 1200px; font-size: 0.92rem; }
.mega-hub.cols-5 .mega-col ul { columns: 1; }
.nav-list > li:hover > .mega-hub, .nav-list > li:focus-within > .mega-hub, .nav-list > li.is-open > .mega-hub { display: grid; }
.mega-hub ul { columns: 1; }
.mega-hub .mega-all { grid-column: 1 / -1; }
.mega-title { font: 700 0.72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 4px 8px 8px; }
.burger { display: none; }
.mobile-nav { display: none; }

@media (max-width: 640px) {
  .topbar .container { gap: 12px; padding: 6px 0; }
  .topbar span:nth-child(n+2) { display: none; }
  .logo-sub { display: none; }
  .logo-text { font-size: 1.3rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 0px; }
  .header { position: static; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 0; background: rgba(42, 33, 24, 0.5); z-index: 100; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav:not([hidden]) { display: block; }
  .mobile-nav-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow: auto; padding: 16px; box-shadow: var(--shadow-lg); animation: slide-in 0.2s ease; }
  @keyframes slide-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .mobile-nav details { border-bottom: 1px solid var(--line); }
  .mobile-nav summary { padding: 12px 4px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .mobile-nav summary::after { content: '+'; color: var(--muted); font-weight: 400; }
  .mobile-nav details[open] summary::after { content: '-'; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0 0 8px 8px; }
  .mobile-nav ul a { display: block; padding: 8px 4px; text-decoration: none; color: var(--ink); }
  .mobile-nav .mn-link { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--plum); }
  .mobile-nav .mn-close { margin-bottom: 8px; }
}

/* --- Fil d'Ariane ----------------------------------------------------------- */
.breadcrumb { font-size: 0.82rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: '›'; margin: 0 6px 0 2px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose); text-decoration: underline; }

/* --- Sections ----------------------------------------------------------------- */
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 4px 0 0; color: var(--muted); }
.section-head a.more { font-weight: 600; text-decoration: none; color: var(--rose-600); white-space: nowrap; }
.eyebrow { display: inline-block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--rose-600); margin-bottom: 8px; }

/* --- Hero -------------------------------------------------------------------- */
.hero { background: linear-gradient(135deg, #fff7ea 0%, #fbf3e6 55%, #f4eadb 100%); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px) 0; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--rose-600); }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.hero-badges { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 820px) { .hero .container { grid-template-columns: 1fr; } .hero-media { order: -1; } }

/* --- Grille catégories ------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-grid.cols-3 .cat-tile h3 { font-size: 1.25rem; }
@media (max-width: 860px) { .cat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid.cols-3 { grid-template-columns: 1fr; } }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cat-tile .cat-body { padding: 12px 14px 14px; }
.cat-tile h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cat-tile .cat-count { font-size: 0.8rem; color: var(--muted); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); text-decoration: none; color: var(--plum-900); font-size: 0.85rem; font-weight: 500; }
.chip:hover, .chip.is-active { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip .n { color: var(--muted); font-weight: 400; }
.chip.is-active .n { color: #f5dcb8; }
.chip-term { background: var(--rose-100); border-color: #f1dcbc; }

/* --- Univers, besoins, lexique ---------------------------------------------------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.hub-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.hub-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.hub-tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hub-tile .hub-body { padding: 14px 16px 16px; }
.brand-tile-blank { aspect-ratio: 3 / 2; display: grid; place-items: center; background: linear-gradient(135deg, var(--blush), var(--rose-100)); color: var(--plum); font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; }
.brand-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brand-facts div { margin: 0; }
.brand-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.brand-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 0.95rem; }
.hub-tile .hub-kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--rose-600); }
.hub-tile h3, .hub-tile h2 { margin: 4px 0 6px; font-size: 1.1rem; }
.hub-tile p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.need-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.need-list a { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s ease; }
.need-list a:hover { transform: translateY(-2px); border-color: var(--rose); }
.need-list svg { width: 26px; height: 26px; color: var(--rose-600); flex: none; margin-top: 2px; }
.need-list strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--plum-900); margin-bottom: 4px; }
.need-list span span { font-size: 0.85rem; color: var(--muted); }
.hub-header { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: 18px 0 8px; }
.hub-header .intro { max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.hub-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 820px) { .hub-header { grid-template-columns: 1fr; } .hub-media { order: -1; } }
.hub-prose { max-width: 80ch; }
.hub-links { margin: 18px 0; }
.hub-links-title { display: block; font: 700 0.78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.lexique-list h2 { font-size: 1.4rem; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--rose-600); }
.lexique-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 24px; }
.lexique-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lexique-list li a { font-weight: 600; text-decoration: none; display: block; }
.lexique-list li span { font-size: 0.85rem; color: var(--muted); display: block; }
.safety-note { display: flex; gap: 10px; align-items: flex-start; background: #fff8e8; border: 1px solid #f1dfae; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.88rem; color: #5a4a2a; margin-top: 18px; }
.safety-note svg { width: 20px; height: 20px; flex: none; color: var(--rose-600); margin-top: 2px; }

/* --- Cartes produit ------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--blush); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media a { position: absolute; inset: 0; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; pointer-events: none; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #fff; color: var(--plum); box-shadow: var(--shadow); }
.badge-best { background: var(--gold); color: var(--plum-900); }
.badge-new { background: var(--plum); color: #fff; }
.badge-promo { background: var(--rose-600); color: #fff; }
.badge-choice { background: #1a4d8f; color: #fff; }
.badge-pick { background: #7a1f3d; color: #fff; }
.fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--plum); display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: var(--shadow); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav.is-on { color: var(--rose-600); }
.fav.is-on svg { fill: currentColor; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-title { margin: 0; font: 600 0.98rem/1.35 var(--font-body); color: var(--ink); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--rose-600); }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .star { width: var(--s, 14px); height: var(--s, 14px); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font: 700 1.15rem/1 var(--font-body); color: var(--plum-900); }
.price-old { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: 0.75rem; font-weight: 700; color: var(--rose-600); }
.card-actions { margin-top: 10px; position: relative; z-index: 2; }
.card-actions .btn { width: 100%; }
.card-tagline { font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.is-compact .card-tagline, .card.is-compact .card-actions { display: none; }

/* --- Page catégorie ------------------------------------------------------------ */
.cat-header { padding: 18px 0 8px; }
.cat-header .intro { max-width: 78ch; color: var(--muted); font-size: 1.02rem; }
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters-close { display: none; }
.filters h2 { font: 700 0.95rem/1 var(--font-body); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--plum-900); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.filters legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; padding: 4px 0; cursor: pointer; }
.filters label .n { margin-left: auto; color: var(--muted); font-size: 0.78rem; }
.filters input[type=checkbox], .filters input[type=radio] { accent-color: var(--rose-600); width: 16px; height: 16px; }
.filters .range { display: flex; gap: 8px; align-items: center; }
.filters .range input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 0.88rem; }
.filters-toggle { display: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 0.9rem; }
.toolbar select { padding: 9px 36px 9px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a3e12' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font: inherit; font-size: 0.88rem; appearance: none; }
.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.load-more { display: flex; justify-content: center; margin-top: 24px; }
.cat-seo { max-width: 80ch; margin-top: 40px; }
.cat-seo h2 { font-size: 1.5rem; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 90; border-radius: 0; overflow: auto; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .filters .filters-close { display: flex; margin-top: 12px; }
}

/* --- Fiche produit ------------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: 18px 0 32px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.product-gallery figure { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.product-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-gallery figcaption { font-size: 0.75rem; color: var(--muted); padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); }
.product-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.product-brand { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.product-brand a { color: inherit; text-decoration: none; }
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); margin: 6px 0 14px; flex-wrap: wrap; }
.product-rating strong { color: var(--ink); }
.product-tagline { font-size: 1.08rem; color: var(--muted); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; box-shadow: var(--shadow); }
.buybox .price { font-size: 1.9rem; }
.buybox .price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox .price-note { font-size: 0.75rem; color: var(--muted); margin: 6px 0 14px; }
.buybox .stock { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--green-text); font-weight: 600; margin-bottom: 12px; }
.buybox .stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.buybox .btn-primary { width: 100%; font-size: 1.05rem; padding: 15px; }
.buybox .btn-outline { width: 100%; margin-top: 10px; }
.buybox .secondary { display: flex; gap: 10px; margin-top: 10px; }
.buybox .secondary .btn { flex: 1; }
.reassurance { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.reassurance li { display: flex; gap: 8px; align-items: flex-start; }
.reassurance svg { width: 16px; height: 16px; flex: none; color: var(--green); margin-top: 2px; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.highlights li { background: var(--blush); color: var(--plum-900); font-size: 0.82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.product-nav { position: sticky; top: var(--header-h); background: rgba(251, 247, 240, 0.95); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 20; }
.product-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.product-nav a { display: block; padding: 12px 14px; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.product-nav a:hover, .product-nav a.is-active { color: var(--rose-600); border-bottom-color: var(--rose-600); }
.product-sections { max-width: 80ch; }
.product-sections section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.product-sections h2 { font-size: 1.55rem; }
.product-sections h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose p, .prose li { color: #3d3229; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--rose); background: var(--blush); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--blush); font-weight: 600; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pros-cons > div { border-radius: var(--radius); padding: 18px 20px; }
.pros { background: #eef6ef; border: 1px solid #cfe3d3; }
.cons { background: #fdf3e6; border: 1px solid #f3dcbd; }
.pros-cons h3 { margin: 0 0 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.pros-cons ul { margin: 0; padding: 0; list-style: none; }
.pros-cons li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 0.93rem; }
.pros-cons li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pros li::before { content: '✓'; color: var(--green); }
.cons li::before { content: '!'; color: #b96f1c; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.specs { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.specs th { text-align: left; width: 38%; font-weight: 600; padding: 10px 12px; background: var(--blush); border-bottom: 1px solid #fff; }
.specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--rose-600); font-weight: 400; }
.faq details[open] summary::after { content: '-'; }
.faq .faq-body { padding: 0 18px 16px; color: #3d3229; font-size: 0.95rem; }
.disclosure { font-size: 0.78rem; color: var(--muted); background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product-gallery { position: static; } .product-nav { top: 0; } }

/* --- Magazine ---------------------------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: transform 0.15s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .post-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--rose-600); }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card h3 a { text-decoration: none; color: var(--plum-900); }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.post-card .post-meta { margin-top: auto; font-size: 0.78rem; color: var(--muted); padding-top: 8px; }
.post-card.is-featured { grid-column: span 2; }
.post-card.is-featured img { aspect-ratio: 16 / 8; }
@media (max-width: 700px) { .post-card.is-featured { grid-column: span 1; } }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; padding-top: 12px; }
.article-main { max-width: 76ch; }
.article-main .lead { font-size: 1.15rem; color: var(--muted); }
.article-main .article-hero { border-radius: 20px; overflow: hidden; margin: 20px 0 28px; box-shadow: var(--shadow); }
.article-main .article-hero img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 10px; }
.article-meta .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.article-main h2 { margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-main h3 { margin-top: 1.3em; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 0.88rem; }
.toc h2, .aside-title { font: 700 0.8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { border-left-color: var(--rose); color: var(--rose-600); }
.aside-products { margin-top: 20px; }
.aside-products h2, .aside-products .aside-title { font: 700 0.8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }
.mini-card { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.mini-card img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; }
.mini-card .mc-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.mini-card .mc-price { font-size: 0.85rem; color: var(--plum); font-weight: 700; }
.mini-card:hover { border-color: var(--rose); }
.product-inline { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 1.6em 0; box-shadow: var(--shadow); }
.product-inline img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.product-inline .pi-title { margin: 0 0 4px; font: 600 1rem/1.3 var(--font-body); }
.product-inline .pi-title a { text-decoration: none; color: var(--plum-900); }
.product-inline .pi-meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product-inline .pi-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 700px) { .product-inline { grid-template-columns: 1fr; } .product-inline img { width: 100%; } }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .toc { position: static; } }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--blush); border-radius: var(--radius); padding: 18px 20px; margin: 32px 0; }
.author-box .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font: 700 1.3rem var(--font-display); flex: none; }
.author-box p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.callout { background: var(--blush); border-left: 4px solid var(--rose); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 1.5em 0; }
.callout strong:first-child { color: var(--plum); }

/* --- Panier / favoris ------------------------------------------------------------------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-item img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.cart-item h3 { margin: 0 0 4px; font: 600 1rem/1.3 var(--font-body); }
.cart-item h3 a { text-decoration: none; color: var(--plum-900); }
.cart-item .ci-price { font-weight: 700; color: var(--plum); }
.cart-item .ci-actions { display: flex; flex-direction: column; gap: 8px; }
.cart-item .ci-remove { background: none; border: 0; color: var(--muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.95rem; }
.cart-summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 90px 1fr; } .cart-item .ci-actions { grid-column: 1 / -1; flex-direction: row; } .cart-summary { position: static; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.steps div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps .num { width: 34px; height: 34px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* --- Toast / modale ---------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--plum-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 0.92rem; opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 200; display: flex; gap: 12px; align-items: center; max-width: min(92vw, 520px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffe1b3; font-weight: 600; white-space: nowrap; }
.modal { position: fixed; inset: 0; background: rgba(42, 33, 24, 0.72); backdrop-filter: blur(4px); z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 20px; padding: 32px; max-width: 480px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.modal-box .logo-mark { margin: 0 auto 12px; width: 52px; height: 52px; }
.modal-box h2, .modal-box .h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; color: var(--plum-900); margin: 0 0 8px; }
.modal-box p { color: var(--muted); font-size: 0.95rem; }
.modal-box .actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-box .actions .btn { flex: 1; }
.modal-box .legal { font-size: 0.75rem; margin-top: 16px; color: var(--muted); }

/* --- Bandeau / réassurance ----------------------------------------------------------- */
.reassure { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reassure .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.reassure .container > div { display: flex; gap: 12px; align-items: center; font-size: 0.88rem; }
.reassure .container > div > div { display: block; }
.reassure svg { width: 28px; height: 28px; color: var(--rose-600); flex: none; }
.reassure strong { display: block; color: var(--plum-900); }
.reassure span { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 900px) { .reassure .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .reassure .container { grid-template-columns: 1fr; } }
.banner { background: var(--plum); color: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.banner h2 { color: #fff; }
.banner p { color: #f0dcc4; }
.banner .btn-primary { background: #fff; color: var(--plum); box-shadow: none; }
.banner .btn-primary:hover { background: var(--rose-100); }
.banner img { border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .banner { grid-template-columns: 1fr; } }

/* --- Pied de page ------------------------------------------------------------------------- */
.footer { background: var(--plum-900); color: #dcc9b2; margin-top: 48px; font-size: 0.9rem; }
.footer a { color: #f3e4cf; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.footer h2, .footer h3 { color: #fff; font: 700 0.8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo-sub { color: #b89f82; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0 26px; font-size: 0.78rem; color: #b89f82; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .affiliate { font-size: 0.78rem; color: #b89f82; margin-top: 12px; max-width: 46ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Pages statiques --------------------------------------------------------------------- */
.page { max-width: 78ch; padding: 20px 0 40px; }
.page h2 { margin-top: 1.6em; }
.page-hero { padding: 24px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.notice { background: #fff8e6; border: 1px solid #f1dfae; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; }
.brand-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong); text-decoration: none; font-size: 0.9rem; }
.pagination .is-current { background: var(--plum); color: #fff; border-color: var(--plum); }
.recent { margin-top: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.compare-table { overflow-x: auto; }
.rating-big { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0 20px; }
.rating-big .num { font: 700 2.2rem/1 var(--font-display); color: var(--plum-900); }
.rating-big .txt { font-size: 0.85rem; color: var(--muted); }
.brand-note { font-size: 0.75rem; }
@media print { .header, .footer, .topbar, .buybox .btn, .toast, .modal, .product-nav { display: none !important; } }

/* Cibles tactiles : 44 px minimum quand le pointeur est un doigt. */
@media (pointer: coarse) {
  .card-actions .btn, .fav, .search button, .btn-icon, .pagination a, .pagination span, .filters-toggle { min-height: 44px; }
  .fav { width: 44px; height: 44px; }
  .chip { min-height: 40px; padding: 10px 16px; }
  .cart-item .ci-remove { padding: 12px 10px; min-height: 44px; }
  .breadcrumb li { padding: 6px 0; }
  .mobile-nav ul a, .mega li a { padding: 12px 8px; }
  .product-nav a { padding: 14px 12px; }
  .search-results a { min-height: 56px; }
}

/* Barre d'achat mobile : visible quand la buybox sort de l'ecran. */
.buy-bar { display: none; }
.buy-hint { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; }
.buy-hint svg { width: 14px; height: 14px; flex: none; }
.card-specs { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.78rem; color: var(--muted); }
.card-specs li::before { content: '\2022'; margin-right: 6px; color: var(--rose); }
.card-specs li:first-child::before { content: none; margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.active-filters .chip.is-active { cursor: pointer; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.filters-head .filters-close { display: none; }
@media (max-width: 900px) {
  .buy-bar:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
  .buy-bar .container { display: flex; align-items: center; gap: 12px; }
  .buy-bar .buy-bar-price { display: flex; flex-direction: column; line-height: 1.1; }
  .buy-bar .btn { flex: 1; min-height: 44px; justify-content: center; }
  body.has-buy-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-buy-bar .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .filters-head { position: sticky; top: 0; background: #fff; padding: 8px 0; z-index: 2; }
  .filters-head .filters-close { display: inline-flex; min-width: 44px; min-height: 44px; }
  .filters .filters-apply { position: sticky; bottom: 0; }
}
@media print { .buy-bar { display: none !important; } }

/* Outils (calculateurs) */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tool-title { margin: 0 0 14px; font-size: 1.25rem; }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tool-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.tool-fields input, .tool-fields select { font: inherit; font-weight: 400; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--cream); }
.tool-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tool-out { display: grid; gap: 10px; margin: 0 0 12px; }
.tool-out div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: baseline; }
.tool-out dt { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.tool-out dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--plum-900); }
.tool-list { margin: 0; padding-left: 18px; font-weight: 500; }
.tool-warn { background: var(--rose-100); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.9rem; }
.tool-error { color: #8a2a12; font-weight: 600; }
.tool-aside .table-wrap { overflow-x: auto; }
.tool-aside table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff; }
.tool-aside th, .tool-aside td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform 0.15s ease; }
.tool-card:hover { transform: translateY(-3px); color: var(--ink); }
.tool-card h2 { margin: 0; font-size: 1.2rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tool-card .more { margin-top: auto; font-weight: 600; color: var(--rose-600); }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } .tool-out div { grid-template-columns: 1fr; gap: 2px; } }

.pick-note { display: flex; gap: 10px; align-items: flex-start; background: var(--blush); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0 14px; }
.pick-note p { margin: 0; font-size: 0.92rem; }
.pick-list { display: grid; gap: 14px; }

.value-marks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; }
.value-marks div { display: flex; gap: 6px; align-items: baseline; }
.value-marks dt { font-size: 0.8rem; color: var(--muted); }
.value-marks dd { margin: 0; font-weight: 700; font-size: 0.9rem; color: var(--plum-900); }
.term-link { text-decoration: underline dotted; text-underline-offset: 3px; }
.compare-table { overflow-x: auto; margin: 10px 0; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; min-width: 640px; }
.compare-table caption { text-align: left; font-weight: 600; padding: 0 0 8px; color: var(--muted); font-size: 0.85rem; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--blush); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.compare-table tbody th a { font-weight: 600; }

.method-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.method-strip h2 { margin: 0 0 6px; }
.method-strip p { margin: 0; color: var(--muted); max-width: 70ch; }
.tool-card h3 { margin: 0; font-size: 1.15rem; }
@media (max-width: 760px) { .method-strip { flex-direction: column; align-items: flex-start; } }

.sources { margin: 28px 0 8px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { margin-top: 0; font-size: 1.2rem; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 0.92rem; }
