/* =========================================================
   SENKYS — Comparateur de prix loveshop
   Feuille de style partagée
   ========================================================= */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input { font-family: inherit; }

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-alt: #fbf8f2;
  --border: #e3dccf;
  --border-strong: #c9c0ad;
  --ink: #1c1f23;
  --ink-soft: #4b5159;
  --ink-mute: #7a818a;
  --accent: #302b63;
  --accent-soft: #e6e3f1;
  --accent-ink: #413a87;
  --link: #302b63;
  --brass: #b08a4a;
  --brass-soft: #f4ead7;
  --ok: #2f6f4a;
  --ok-soft: #e4f0e9;
  --warn: #a85a18;
  --warn-soft: #fbeede;
  --danger: #a4302a;
  --rose: #b04a6e;
  --rose-soft: #f6e6ec;

  --font-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 32px;
  --text-3xl: 42px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 1px rgba(28, 31, 35, 0.04);
  --shadow-sm: 0 1px 2px rgba(28, 31, 35, 0.05), 0 1px 3px rgba(28, 31, 35, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 31, 35, 0.06), 0 2px 4px rgba(28, 31, 35, 0.04);
  --shadow-lg: 0 10px 30px rgba(28, 31, 35, 0.10), 0 4px 8px rgba(28, 31, 35, 0.05);

  --container: 1180px;
  --container-narrow: 900px;
  --header-h: 72px;

  --t-fast: 120ms ease;
  --t: 180ms ease;
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-10) 0; }
.row { display: flex; align-items: center; }
.muted { color: var(--ink-mute); }
.soft { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }
.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--space-5); gap: var(--space-4);
}
.section-head .section-title { margin-bottom: 0; }
.link-more { font-size: var(--text-sm); font-weight: 600; color: var(--accent); }

/* ---------- 4. HEADER ---------- */
.topbar {
  background: var(--accent);
  color: #fff;
}
.topbar-main .container {
  display: flex; align-items: center; gap: var(--space-6);
  height: var(--header-h);
}
.burger {
  display: flex; flex-direction: column; gap: 4px; padding: var(--space-2);
  color: #fff;
}
.burger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.logo {
  display: flex; align-items: center; gap: 2px;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  color: #fff; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .dot { color: var(--brass); }
.search {
  flex: 1; display: flex; align-items: center;
  background: #fff; border-radius: var(--radius);
  padding: 0 var(--space-2) 0 var(--space-4); height: 44px;
  box-shadow: var(--shadow-sm);
}
.search input {
  flex: 1; border: none; outline: none; font-size: var(--text-base);
  color: var(--ink); background: transparent; height: 100%;
}
.search input::placeholder { color: var(--ink-mute); }
.search-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.header-actions { display: flex; align-items: center; gap: var(--space-5); }
.header-action {
  display: flex; align-items: center; gap: var(--space-2);
  color: #fff; font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
}
.header-action:hover { text-decoration: none; color: var(--brass-soft); }
.header-action svg { stroke: currentColor; }
.header-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.25); }

/* ---------- 5. NAV ---------- */
.mainnav { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.mainnav .container { display: flex; gap: var(--space-2); overflow-x: auto; }
.navlink {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--space-3) var(--space-4) var(--space-2);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.navlink:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent-soft); }
.navlink.active { color: var(--brass); border-bottom-color: var(--brass); }
.navlink svg { stroke: currentColor; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--text-sm);
  padding: 10px var(--space-5); border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-offer { background: var(--ok); color: #fff; padding: 11px var(--space-6); }
.btn-offer:hover { background: #265a3c; }
.btn-block { width: 100%; }
.btn-lg { font-size: var(--text-base); padding: 13px var(--space-8); }

/* ---------- 7. BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 700; line-height: 1;
  padding: 4px 7px; border-radius: var(--radius-sm);
}
.badge-discount { background: var(--brass); color: #fff; }
.badge-best { background: var(--brass-soft); color: var(--warn); border: 1px solid #e8d4ab; }
.badge-rank { background: var(--accent); color: #fff; }
.badge-love { background: var(--rose-soft); color: var(--rose); }
.badge-new { background: var(--ok-soft); color: var(--ok); }
.badge-deal { background: var(--rose); color: #fff; }
.badge-sponsor { background: transparent; color: var(--ink-mute); font-weight: 500; }

/* energy-style tag (discretion / livraison label) */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 6px;
  border-radius: var(--radius-sm); background: var(--ok); color: #fff;
}
.tag-rose { background: var(--rose); }

/* ---------- 8. WISHLIST HEART ---------- */
.wish {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); transition: transform var(--t-fast), color var(--t-fast);
  z-index: 2;
}
.wish:hover { transform: scale(1.08); color: var(--rose); }
.wish svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.wish.on svg { fill: var(--rose); stroke: var(--rose); }

/* ---------- 9. IMAGE PLACEHOLDER ---------- */
.ph {
  position: relative;
  background-color: var(--surface-alt);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 9px,
    rgba(176,138,74,0.10) 9px, rgba(176,138,74,0.10) 10px
  );
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-mute); text-transform: lowercase;
  padding: 3px 7px; background: rgba(255,255,255,0.75); border-radius: 3px;
  text-align: center; max-width: 80%;
}
.ph-tone { background-color: #efe7da; }
.ph-rose {
  background-color: var(--rose-soft);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0, transparent 9px,
    rgba(176,74,110,0.10) 9px, rgba(176,74,110,0.10) 10px);
}

/* ---------- 10. PRODUCT CARD ---------- */
.pcard {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4); display: flex; flex-direction: column;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.pcard:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
/* L'image et le titre reprennent l'encre de la carte… mais PAS les boutons :
   `.pcard a` (0,1,1) l'emportait sur `.btn-primary` (0,1,0), si bien que le
   bouton « Comparer les prix » affichait du texte noir sur fond marine —
   illisible. Le :not() rend aux boutons la couleur qu'ils se donnent. */
.pcard a:not(.btn) { color: inherit; }
.pcard a:hover { text-decoration: none; }
.pcard-media { position: relative; }
.pcard-media .ph { aspect-ratio: 1 / 1; }
.pcard-badges { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pcard-tags { display: flex; gap: 6px; margin: var(--space-3) 0 6px; flex-wrap: wrap; }
.pcard-title {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-title b { font-weight: 800; }
.pcard-meta { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.pcard-foot { margin-top: auto; }
.pcard-from { font-size: var(--text-xs); color: var(--ink-mute); }
.pcard-price { font-size: var(--text-lg); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.pcard-offers { font-size: var(--text-xs); color: var(--accent); font-weight: 600; }

/* rating stars */
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); color: var(--ink-mute); }
.stars { display: inline-flex; gap: 1px; color: var(--brass); }
.stars svg { fill: currentColor; }
.note-pill {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 2px 6px; border-radius: 4px;
}

/* ---------- 11. CARD GRID / SCROLLER ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory;
}
.scroller > * { scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

/* ---------- 12. PANEL / CARD SHELL ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.panel-flush { padding: 0; overflow: hidden; }

/* ---------- 13. BREADCRUMB ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--ink-mute); padding: var(--space-4) 0;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb .sep { color: var(--border-strong); }

/* ---------- 14. FOOTER ---------- */
.footer { background: var(--accent); color: #cfcbe6; margin-top: var(--space-12); }
.footer-promo {
  background: var(--surface-alt); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer-promo .container {
  display: flex; align-items: center; justify-content: center; gap: var(--space-6);
  padding: var(--space-6) var(--space-5); flex-wrap: wrap;
}
.footer-promo p { font-weight: 700; color: var(--ink); font-size: var(--text-md); }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8);
  padding: var(--space-12) var(--space-5) var(--space-8);
}
.footer .ft-title { display: block; color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.footer ul li { margin-bottom: var(--space-3); }
.footer a { color: #cfcbe6; font-size: var(--text-sm); }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--text-xs); color: #9a96bb; line-height: 1.6;
  padding: var(--space-6) var(--space-5) var(--space-12);
  text-align: center;
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-bottom: var(--space-4); }

/* ---------- 15. NEWSLETTER BAND ---------- */
.newsletter {
  background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: var(--space-8) 0;
}
.newsletter p { font-size: var(--text-md); color: var(--ink); margin-bottom: var(--space-4); font-weight: 600; }
.newsletter form { display: inline-flex; gap: var(--space-2); max-width: 460px; width: 100%; }
.newsletter input {
  flex: 1; padding: 11px var(--space-4); border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-size: var(--text-base); background: #fff;
}

/* ---------- 16. EDITORIAL BANNER ---------- */
.editorial {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 100%; display: flex; align-items: flex-end;
  background: var(--rose-soft);
}
.editorial .ph { position: absolute; inset: 0; border-radius: 0; }
.editorial-body {
  position: relative; z-index: 2; padding: var(--space-6);
  background: linear-gradient(to top, rgba(28,20,28,0.78), rgba(28,20,28,0.05));
  width: 100%; color: #fff;
}
.editorial-body h3 { font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-2); }
.editorial-body p { font-size: var(--text-sm); color: #f0e6ea; margin-bottom: var(--space-4); }

/* ---------- 17. ROUND CATEGORY ---------- */
.circle-cats { display: flex; gap: var(--space-6); overflow-x: auto; padding-bottom: var(--space-2); }
.circle-cat { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); width: 110px; flex: 0 0 auto; }
.circle-cat .ph { width: 92px; height: 92px; border-radius: 50%; }
.circle-cat span { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); text-align: center; }
.circle-cat:hover span { color: var(--accent); }

/* ---------- 18. VALUE PROPS ---------- */
.valueprops { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.vp-icon { color: var(--accent-soft); margin-bottom: var(--space-4); }
.vp-icon svg { stroke: var(--accent); }
.valueprops h3 { font-size: var(--text-base); font-weight: 800; color: var(--ink); margin-bottom: var(--space-3); }
.valueprops p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.6; }

/* ---------- 19. UTIL ---------- */
.hr { height: 1px; background: var(--border); border: 0; margin: var(--space-8) 0; }
.pill {
  display: inline-flex; align-items: center; padding: 7px var(--space-4);
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: var(--text-sm); color: var(--ink-soft); background: var(--surface);
}
.pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .valueprops { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-cards, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .header-action span { display: none; }
}

/* ---------- 20. RECHERCHE — AUTOCOMPLÉTION ---------- */
.search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 60; max-height: 70vh; overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.ss-item { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); color: var(--ink); border-bottom: 1px solid var(--border); }
.ss-item:last-child { border-bottom: none; }
.ss-item:hover { background: var(--surface-alt); text-decoration: none; }
.ss-item img, .ss-item .ss-ph { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; background: var(--surface-alt); border-radius: var(--radius-sm); }
.ss-t { flex: 1; font-size: var(--text-sm); font-weight: 600; line-height: 1.3; color: var(--ink); }
.ss-price { color: var(--brass); font-weight: 800; font-size: var(--text-sm); white-space: nowrap; }

/* ---------- 21. HOMEPAGE — GRID PRODUITS CORRESPONDANTS ---------- */
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.35fr; gap: var(--space-4); }
@media (max-width: 900px) {
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .match-grid .promo-banner { grid-column: 1 / -1; min-height: auto; }
}
@media (max-width: 460px) {
  .match-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}

/* ---------- 23. BADGES DE MENU (sélection, notif) ---------- */
.icon-wrap { position: relative; display: inline-flex; }
.notif-dot {
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #e0245e; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--accent);
  animation: senkys-blink 1.1s ease-in-out infinite;
}
@keyframes senkys-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
.sel-dot {
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--brass); color: #1c1f23; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--accent);
}
.sel-dot[hidden] { display: none; }

/* ---------- 25. DISCLAIMER 18+ (overlay popunder) ---------- */
#senkys-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  background: rgba(28, 20, 40, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#senkys-overlay[hidden] { display: none; }
#senkys-box {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 460px; width: 100%; padding: var(--space-10) var(--space-8);
  text-align: center; box-shadow: var(--shadow-lg);
}
.senkys-dl-badge {
  width: 56px; height: 56px; margin: 0 auto var(--space-4); border-radius: 50%;
  background: var(--rose-soft); color: var(--rose); border: 2px solid var(--rose);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.senkys-dl-badge span { font-size: 13px; }
#senkys-box .senkys-dl-title { display: block; font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
#senkys-box p { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-5); }
.senkys-btns { display: flex; gap: var(--space-3); }
.senkys-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 14px var(--space-4); border-radius: var(--radius); font-weight: 800; font-size: var(--text-sm); }
.senkys-btn-enter { background: var(--accent); color: #fff; }
.senkys-btn-enter:hover { background: var(--accent-ink); }
/* Une fois cliqué, le bouton se verrouille le temps de la redirection : sans
   retour visuel, on croit que rien ne s'est passé et on reclique. */
.senkys-btn-enter:disabled {
  opacity: .62; cursor: default; pointer-events: none;
  background: var(--accent);
}
.senkys-btn-exit { background: var(--surface-alt); color: var(--ink-soft); border: 1px solid var(--border-strong); }
.senkys-btn-exit:hover { text-decoration: none; border-color: var(--ink-mute); }
.senkys-dl-legal { font-size: var(--text-xs); color: var(--ink-mute); margin: var(--space-4) 0 0; }
@media (max-width: 460px) { .senkys-btns { flex-direction: column; } }

/* ---------- 24. TOP 3 DES VENTES (médailles) ---------- */
.pcard-rank { overflow: visible; }
.pcard-rank-1 { outline: 3px solid #d4af37; box-shadow: 0 6px 20px rgba(212,175,55,0.32); }
.pcard-rank-2 { outline: 3px solid #aeb4bd; box-shadow: 0 6px 20px rgba(150,156,166,0.30); }
.pcard-rank-3 { outline: 3px solid #cd7f32; box-shadow: 0 6px 20px rgba(205,127,50,0.30); }
.rank-badge {
  position: absolute; top: -12px; left: -12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; z-index: 4;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.rank-badge-1 { background: linear-gradient(135deg, #f6d365, #d4af37); color: #5a4500; }
.rank-badge-2 { background: linear-gradient(135deg, #eef1f5, #aeb4bd); color: #41454d; }
.rank-badge-3 { background: linear-gradient(135deg, #e8b07e, #cd7f32); color: #fff; }

/* ---------- 22. HEADER & MENU RESPONSIVE ---------- */
.burger { display: none; }
.nav-actions { display: none; } /* visible seulement dans le menu hamburger (voir media query) */
@media (max-width: 980px) {
  .burger { display: flex; }
  .topbar-main .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: var(--space-3); }
  .burger { order: 1; }
  .logo { order: 2; }
  .header-actions { order: 3; margin-left: auto; gap: var(--space-4); }
  .search { order: 4; flex: 1 0 100%; width: 100%; height: 42px; }

  .mainnav { display: none; }
  body.menu-open .mainnav { display: block; }
  .mainnav .container { flex-direction: column; overflow: visible; gap: 0; padding-left: 0; padding-right: 0; }
  .navlink { flex-direction: row; justify-content: flex-start; gap: var(--space-4); width: 100%;
    padding: 14px var(--space-5); border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent; font-size: var(--text-base); }
  .navlink:hover { border-bottom-color: var(--border); }
  .navlink.active { border-bottom-color: var(--border); border-left-color: var(--brass); }

  /* Actions (favori, livecam, rencontre) en bas du menu hamburger */
  .nav-actions { display: block; border-top: 8px solid var(--surface-alt); }
  .nav-actions .icon-wrap { display: inline-flex; }
}

/* ─── Pages éditoriales / légales ─── */
.page { max-width: 760px; }
.page h1 { font-size: var(--text-2xl); line-height: 1.15; margin: 0 0 var(--space-4); }
.page h2 { font-size: var(--text-lg); margin: var(--space-7) 0 var(--space-3); }
.page p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 var(--space-4); }
.page .page-lead { font-size: var(--text-md); color: var(--ink); margin-bottom: var(--space-6); }
.page a { color: var(--brand, #d6336c); text-decoration: underline; }
.page-list { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.page-list li { color: var(--ink-soft); line-height: 1.7; margin-bottom: var(--space-2); }

/* ─── Formulaire de contact ─── */
.contact-form { max-width: 620px; margin-top: var(--space-5); }
.contact-form .field { margin-bottom: var(--space-4); }
.contact-form label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong, #ccc);
  border-radius: var(--radius-sm, 8px);
  font: inherit;
  background: var(--surface, #fff);
  color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--brand, #d6336c); outline-offset: 1px; border-color: var(--brand, #d6336c); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Alertes (flash) ─── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm, 8px); margin-bottom: var(--space-5); font-size: var(--text-sm); line-height: 1.5; }
.alert-ok { background: #e7f6ec; border: 1px solid #9ed8b3; color: #1b6b3a; }
.alert-err { background: #fdecec; border: 1px solid #f0b1b1; color: #a01b1b; }

/* Footer : élément non cliquable (à venir) */
.footer-soon { color: var(--ink-soft); opacity: .6; cursor: default; }

/* « Vouliez-vous dire » / correction de recherche */
.dym { margin: 0 0 var(--space-4); font-size: var(--text-sm); color: var(--ink-soft); }
.dym a { color: var(--accent); font-weight: 700; }
.dym b { color: var(--ink); }

/* Index des marques (/marques) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3); }
.brand-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; font-weight: 600; transition: border-color var(--t-fast), transform var(--t-fast); }
.brand-card:hover { border-color: var(--border-strong); transform: translateY(-1px); text-decoration: none; }
.brand-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-card-ct { flex: 0 0 auto; font-size: var(--text-xs); color: var(--ink-mute); background: var(--surface-alt); border-radius: 999px; padding: 2px 8px; }

/* Index marques : navigation A-Z + sections par lettre */
.az-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-6); position: sticky; top: 0; background: var(--bg, #fff); padding: var(--space-2) 0; z-index: 5; }
.az-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 700; font-size: var(--text-sm); color: var(--ink-soft); }
.az-nav a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.az-group { margin-bottom: var(--space-7); scroll-margin-top: 56px; }
.az-letter { display: block; font-size: var(--text-2xl); font-weight: 800; color: var(--accent); border-bottom: 2px solid var(--border); padding-bottom: var(--space-2); margin-bottom: var(--space-4); }

/* ─── Maillage interne SEO ─── */
.seo a.ilink, .desc a.ilink, .merchant-desc a.ilink { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.seo a.ilink:hover, .desc a.ilink:hover, .merchant-desc a.ilink:hover { border-bottom-color: var(--accent); }
.silo-block { margin: var(--space-4) 0; }
.silo-title { display: block; font-size: var(--text-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: var(--space-3); }
.silo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.silo-chip { display: inline-flex; align-items: center; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.silo-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.silo-all { font-size: var(--text-xs); font-weight: 600; color: var(--accent); margin-left: var(--space-2); }

/* ---------- 26. MODAL NEWSLETTER (inscription Brevo) ---------- */
.nl-overlay {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  background: rgba(28, 20, 40, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: nl-fade 0.18s ease-out;
}
.nl-overlay[hidden] { display: none; }
@keyframes nl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nl-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

.nl-box {
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8) var(--space-6);
  box-shadow: var(--shadow-lg); text-align: center;
  animation: nl-rise 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
  max-height: calc(100vh - 2 * var(--space-5)); overflow-y: auto;
}
/* Filet dégradé accent → laiton, rappel de la charte */
.nl-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--rose) 55%, var(--brass));
}
.nl-close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); background: transparent; border: 0; cursor: pointer;
}
.nl-close:hover { background: var(--surface-alt); color: var(--ink); }

.nl-badge {
  width: 56px; height: 56px; margin: 0 auto var(--space-4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent);
}
.nl-box .nl-title, .nl-box .rt-title { display: block; font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.nl-hl { color: var(--brass); }
.nl-sub { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-5); }

.nl-perks {
  display: flex; flex-direction: column; gap: var(--space-2);
  text-align: left; margin: 0 auto var(--space-6); max-width: 320px;
}
.nl-perks li {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--ink-soft);
}
.nl-perks svg { color: var(--ok); flex: 0 0 auto; }

.nl-field { display: flex; gap: var(--space-2); }
.nl-field input[type="email"] {
  flex: 1; min-width: 0; padding: 13px var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); font-family: inherit; font-size: var(--text-base); color: var(--ink);
}
.nl-field input[type="email"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.nl-submit { flex: 0 0 auto; padding: 13px var(--space-5); font-weight: 800; white-space: nowrap; }
.nl-submit:disabled { opacity: 0.65; cursor: progress; }
/* Honeypot : hors écran plutôt que display:none (certains bots ignorent ce dernier). */
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.nl-msg { margin-top: var(--space-3); font-size: var(--text-sm); font-weight: 600; text-align: left; }
.nl-msg[hidden] { display: none; }
.nl-msg-ok { color: var(--ok); }
.nl-msg-err { color: var(--danger); }
.nl-form-done .nl-field input[type="email"] { opacity: 0.55; }

.nl-legal { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--ink-mute); line-height: 1.55; }
.nl-legal a { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 520px) {
  .nl-box { padding: var(--space-8) var(--space-5) var(--space-5); }
  .nl-field { flex-direction: column; }
  .nl-submit { width: 100%; }
}

/* ---------- 27. MÉGA-MENU (sous-catégories) ---------- */
.navitem { display: block; }
/* Sur desktop l'en-tête ne doit produire aucune boîte (le lien reste l'élément de
   la barre) ; sur mobile il devient la rangée « lien + chevron ». */
.navitem-head { display: contents; }
.navlabel { display: inline-flex; align-items: center; gap: 3px; }
.navchev { opacity: 0.5; transition: transform var(--t-fast); }
.navtoggle { display: none; }

@media (min-width: 981px) {
  /* La barre garde son comportement d'origine (une seule ligne, défilement en
     dernier recours) : on NE touche pas à overflow ni au wrap. Le panneau est en
     `position: fixed`, donc pas rogné par l'overflow du conteneur — c'est ce qui
     permet de garder la nav sur une ligne. Son `top` est posé par megamenu.js. */
  .mainnav { position: relative; }
  .navitem { position: static; }
  /* Respiration réduite quand la place manque, pour faire tenir toutes les rubriques. */
  .mainnav .container { gap: clamp(2px, 0.35vw, 8px); }
  .navitem > .navitem-head > .navlink,
  .navitem > .navlink { padding-left: clamp(7px, 0.8vw, 16px); padding-right: clamp(7px, 0.8vw, 16px); }
  .navlabel { gap: 2px; }
  .navchev { width: 9px; height: 9px; }

  /* Paliers de resserrement posés par megamenu.js quand la barre déborde. */
  .mainnav.nav-tight .container { gap: 0; }
  .mainnav.nav-tight .navitem > .navitem-head > .navlink,
  .mainnav.nav-tight .navitem > .navlink { padding-left: 7px; padding-right: 7px; }
  /* Le chevron n'est retiré qu'au dernier palier : c'est l'indice visuel qui
     signale qu'un panneau va s'ouvrir. */
  .mainnav.nav-compact .navchev { display: none; }
  .mainnav.nav-compact .navlink { font-size: 11px; gap: 4px; }
  .mainnav.nav-compact .navlink > svg:first-child { width: 18px; height: 18px; }
  .navitem.has-mega > .navitem-head > .navlink[aria-expanded="true"] { color: var(--accent); border-bottom-color: var(--accent); }
  .navitem.has-mega > .navitem-head > .navlink[aria-expanded="true"] .navchev { transform: rotate(180deg); opacity: 1; }

  .mega {
    display: block; position: fixed; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 36px rgba(28, 31, 35, 0.13);
    animation: mega-in 0.15s ease-out;
  }
  .mega[hidden] { display: none; }
  @keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* `.mainnav .container` (flex + wrap, pour la barre) attrapait aussi ce
     conteneur : la grille ne s'appliquait pas, les sous-catégories tenaient
     sur une colonne étroite et le rail collait à gauche (constaté 2026-09-30). */
  .mega-inner,
  .mainnav .mega .mega-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) 264px;
    gap: var(--space-8); padding-top: var(--space-6); padding-bottom: var(--space-6);
    align-items: start;
  }
  .mega-cols {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 2px var(--space-4);
  }
  .mega-side {
    display: flex; flex-direction: column; gap: var(--space-3);
    padding-left: var(--space-6); border-left: 1px solid var(--border);
  }
}

.mega-link {
  display: flex; align-items: baseline; gap: var(--space-2);
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.mega-link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.mega-link-name { flex: 1; min-width: 0; }
.mega-link-ct { font-size: var(--text-xs); font-weight: 600; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.mega-link:hover .mega-link-ct { color: var(--accent); }
.mega-link-all { color: var(--accent); font-weight: 800; align-items: center; }
.mega-link-all svg { flex: 0 0 auto; }

/* Lien vers un guide du magazine : discret, en bas de la colonne de droite. */
.mega-guide {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600; line-height: 1.35;
}
.mega-guide svg { flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
.mega-guide small { display: block; margin-bottom: 2px; color: var(--ink-mute); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mega-guide:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* Mise en avant produit : merchandising direct depuis le menu */
.mega-feat {
  display: flex; align-items: center; gap: var(--space-3); position: relative;
  padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-alt);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.mega-feat:hover { border-color: var(--accent); box-shadow: var(--shadow-xs); text-decoration: none; }
.mega-feat img { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
.mega-feat-tag {
  position: absolute; top: -9px; left: var(--space-3);
  background: var(--brass); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
}
.mega-feat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mega-feat-title {
  font-size: var(--text-xs); font-weight: 700; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mega-feat-price { font-size: var(--text-sm); font-weight: 800; color: var(--brass); }
.mega-feat-off { font-style: normal; font-size: var(--text-xs); color: var(--rose); margin-left: 4px; }

.mega-cta {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: var(--text-sm);
  padding: 12px var(--space-4); border-radius: var(--radius); text-align: center;
}
.mega-cta:hover { background: var(--accent-ink); text-decoration: none; }
.mega-deals {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 700; color: var(--rose);
  padding: 9px var(--space-4); border: 1px solid var(--rose-soft); border-radius: var(--radius);
  background: var(--rose-soft);
}
.mega-deals:hover { text-decoration: none; border-color: var(--rose); }

/* ─── Mobile : accordéon sous chaque entrée du menu hamburger ─── */
@media (max-width: 980px) {
  .navchev { display: none; }
  /* Rangée en flex plutôt qu'un bouton en position absolue : la zone tactile du
     chevron suit exactement la hauteur du lien, y compris accordéon ouvert. */
  .navitem-head { display: flex; align-items: stretch; }
  .navitem-head > .navlink { flex: 1; min-width: 0; }
  .navtoggle {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 56px; color: var(--ink-mute); background: none;
    border: 0; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
  }
  .navtoggle[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
  .navtoggle svg { transition: transform var(--t-fast); }
  .navtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .mega { display: block; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
  .mega[hidden] { display: none; }
  .mega-inner,
  .mainnav .mega .mega-inner { display: block; padding: var(--space-3) var(--space-5) var(--space-4); }
  /* 2 colonnes : on voit tout le rayon d'un coup d'œil sans scroller à l'infini. */
  .mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--space-2); }
  .mega-link { padding: 9px 8px; font-size: var(--text-sm); background: var(--surface); border: 1px solid var(--border); }
  .mega-link-all { grid-column: 1 / -1; justify-content: center; border-color: var(--accent); }
  .mega-side { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
  .mega-feat { display: none; } /* sur mobile on privilégie le parcours du rayon */
  .mega-cta { padding: 11px var(--space-4); }
}

/* ─── Panneau « Bons plans » : codes promo + promos par rayon + ticket ─── */
.nav-code-pill {
  display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.5;
  letter-spacing: 0.02em; white-space: nowrap;
}
.md-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.md-head {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 2px;
}
.md-code {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  padding: 8px 10px; border: 1.5px dashed var(--brass); border-radius: var(--radius);
  background: var(--brass-soft); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.md-code:hover { border-style: solid; border-color: var(--accent); background: #fff; text-decoration: none; }
.md-code-val {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 4px;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; text-align: center; line-height: 1.1;
}
.md-code-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.md-code-shop { font-size: var(--text-sm); font-weight: 800; }
.md-code-title { font-size: var(--text-xs); color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-code-left {
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.md-code-left.is-hot { background: var(--rose); color: #fff; }
.md-empty { font-size: var(--text-sm); color: var(--ink-mute); padding: 4px 0 6px; }
.md-rayons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--space-3); }

/* Ticket « code promo du moment » : encoches latérales, pointillé intérieur. */
.md-ticket {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 16px 16px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-ink) 100%); color: #fff;
  box-shadow: 0 10px 24px rgba(48, 43, 99, 0.25);
}
.md-ticket::before, .md-ticket::after {
  content: ''; position: absolute; top: 58%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); transform: translateY(-50%);
}
.md-ticket::before { left: -8px; }
.md-ticket::after { right: -8px; }
.md-ticket-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--brass); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.md-ticket-shop { font-size: var(--text-xs); font-weight: 700; opacity: 0.85; }
.md-ticket-val { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; }
.md-ticket-title { font-size: var(--text-sm); line-height: 1.35; opacity: 0.95; }
.md-ticket-urgency {
  margin: 4px 0 8px; font-size: var(--text-xs); font-weight: 800; color: #ffd9a0;
  border-top: 1px dashed rgba(255, 255, 255, 0.35); padding-top: 8px; width: 100%;
}
.md-ticket .promo-btn { width: 100%; min-width: 0; }
.md-ticket .promo-btn-cta { background: var(--brass); }
.md-ticket .promo-btn-cta::after { border-top-color: #8a6a35; }
.md-ticket .promo-btn:hover .promo-btn-cta { background: #9a7740; }
.md-ticket .promo-btn-code { border-color: #fff; }

@media (min-width: 981px) {
  .mainnav .mega-deals-panel .mega-inner { grid-template-columns: minmax(0, 1fr) 290px; }
  .md-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 980px) {
  .nav-code-pill { font-size: 11px; }
  /* Le ticket passe en tête de l'accordéon : c'est lui qui rapporte. */
  .mainnav .mega-deals-panel .mega-inner { display: flex; flex-direction: column; gap: var(--space-4); }
  .mega-deals-panel .mega-side { order: -1; margin-top: var(--space-2); }
  .md-cols { display: flex; flex-direction: column; gap: var(--space-4); }
  .md-code { background: var(--surface); }
  .md-ticket::before, .md-ticket::after { background: var(--surface-alt); } /* fond beige de l'accordéon */
  .md-rayons .mega-link, .md-col > .mega-link-all { background: var(--surface); border: 1px solid var(--border); }
}

/* ---------- 28. MODAL AIDE ---------- */
.hm-overlay {
  position: fixed; inset: 0; z-index: 9997;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  background: rgba(28, 20, 40, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: nl-fade 0.18s ease-out;
}
.hm-overlay[hidden] { display: none; }

.hm-box {
  position: relative; width: 100%; max-width: 620px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 2 * var(--space-5)); overflow-y: auto;
  animation: nl-rise 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.hm-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--rose) 55%, var(--brass));
}

.hm-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-8) var(--space-8) var(--space-4);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hm-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 4px;
}
.hm-head .hm-title { display: block; font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; }
.hm-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); background: transparent; border: 0;
}
.hm-close:hover { background: var(--surface-alt); color: var(--ink); }

.hm-body { padding: 0 var(--space-8) var(--space-8); }
.hm-lead { font-size: var(--text-sm); line-height: 1.65; color: var(--ink-soft); margin-bottom: var(--space-6); }
.hm-lead strong { color: var(--ink); }

.hm-steps { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.hm-steps li { display: flex; gap: var(--space-4); align-items: flex-start; }
.hm-step-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: var(--text-sm);
}
.hm-steps .hm-step-title { display: block; font-size: var(--text-sm); font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.hm-steps p { font-size: var(--text-sm); line-height: 1.6; color: var(--ink-soft); }

.hm-section {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-6);
}
.hm-h3 {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 800; color: var(--accent);
  margin-bottom: var(--space-4);
}
.hm-tips { display: flex; flex-direction: column; gap: var(--space-3); }
.hm-tips li {
  position: relative; padding-left: var(--space-5);
  font-size: var(--text-sm); line-height: 1.6; color: var(--ink-soft);
}
.hm-tips li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
}
.hm-tips strong { color: var(--ink); }
.hm-tips em {
  font-style: normal; font-family: var(--font-mono); font-size: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; color: var(--accent);
}

.hm-promo {
  background: linear-gradient(135deg, var(--accent) 0%, #413a87 100%);
  color: #fff; border-radius: var(--radius); padding: var(--space-6);
}
.hm-promo .hm-promo-title { display: block; font-size: var(--text-md); font-weight: 800; margin-bottom: var(--space-2); }
.hm-promo p { font-size: var(--text-sm); line-height: 1.6; color: #ded9f2; margin-bottom: var(--space-4); }
.hm-promo strong { color: #fff; }
.hm-promo-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--brass); color: #fff; font-weight: 800; font-size: var(--text-sm);
  padding: 12px var(--space-5); border-radius: var(--radius);
}
.hm-promo-cta:hover { background: #c79a53; text-decoration: none; color: #fff; }

.hm-foot { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--ink-mute); text-align: center; }
.hm-foot a { color: var(--ink-soft); text-decoration: underline; }

/* Cible de l'ancre #newsletter : on la signale en arrivant dessus. */
.footer-promo.is-spotlight {
  animation: hm-spot 2.4s ease-out;
}
@keyframes hm-spot {
  0%, 100% { background: var(--surface-alt); box-shadow: none; }
  15%, 60% { background: var(--brass-soft); box-shadow: inset 0 0 0 2px var(--brass); }
}

@media (max-width: 560px) {
  .hm-overlay { padding: 0; }
  .hm-box { max-width: none; max-height: 100vh; border-radius: 0; }
  .hm-box::before { border-radius: 0; }
  .hm-head { padding: var(--space-6) var(--space-5) var(--space-3); border-radius: 0; }
  .hm-body { padding: 0 var(--space-5) var(--space-6); }
  .hm-promo-cta { width: 100%; justify-content: center; }
}

/* ---------- 29. GRILLE 10 PRODUITS (2 lignes desktop, 6 en mobile) ---------- */
/* .grid-cards : 5 colonnes au-dessus de 1100px → 10 cartes = 2 lignes pleines.
   En dessous elle passe à 3 colonnes (puis 2 à 720px) : on masque les 4 dernières
   pour retomber sur 6, soit 2 lignes de 3 puis 3 lignes de 2. Le seuil DOIT suivre
   celui de .grid-cards (1100px), sinon on obtient une ligne orpheline. */
@media (max-width: 1100px) {
  .grid-10 > *:nth-child(n + 7) { display: none; }
}

/* ---------- 30. CTA RECHERCHE (accueil) ---------- */
.scta {
  background:
    radial-gradient(900px 300px at 12% -20%, rgba(176, 74, 110, 0.22), transparent 60%),
    linear-gradient(135deg, var(--accent) 0%, #241f52 100%);
  color: #fff; padding: var(--space-10) 0;
}
.scta-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8); align-items: center;
}
.scta-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; color: #cfcbe6;
  letter-spacing: 0.02em; margin-bottom: var(--space-3);
}
.scta-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #5ed39a;
  box-shadow: 0 0 0 0 rgba(94, 211, 154, 0.7); animation: scta-beat 2.2s infinite;
}
@keyframes scta-beat {
  0% { box-shadow: 0 0 0 0 rgba(94, 211, 154, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(94, 211, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 211, 154, 0); }
}
.scta-copy .scta-title { display: block;
  font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: var(--space-3);
}
.scta-sub { font-size: var(--text-sm); line-height: 1.65; color: #ded9f2; max-width: 46ch; }

/* Faux champ de recherche : même grammaire visuelle que la vraie barre, pour que
   le geste soit évident. C'est un <button> — il emmène au vrai champ. */
.scta-field {
  width: 100%; display: flex; align-items: center; gap: var(--space-3);
  background: #fff; border: 0; border-radius: var(--radius);
  padding: 0 8px 0 var(--space-4); height: 60px; text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.scta-field:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }
.scta-field:active { transform: translateY(0); }
.scta-loupe { flex: 0 0 auto; color: var(--ink-mute); }
.scta-ph {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px;
  font-size: var(--text-base); color: var(--ink-mute); white-space: nowrap; overflow: hidden;
}
.scta-ph-static { flex: 0 0 auto; }
.scta-ph-rot {
  color: var(--accent); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}
.scta-ph-rot.is-out { opacity: 0; }
.scta-caret {
  flex: 0 0 auto; width: 2px; height: 17px; background: var(--accent);
  animation: scta-blink 1.1s steps(1) infinite; align-self: center;
}
@keyframes scta-blink { 50% { opacity: 0; } }
.scta-go {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--brass); color: #fff;
}
.scta-field:hover .scta-go { background: #c79a53; }

.scta-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4);
}
.scta-chips-label { font-size: var(--text-xs); color: #b9b3d8; font-weight: 600; }
.scta-chip {
  font-size: var(--text-xs); font-weight: 600; color: #fff;
  padding: 6px var(--space-3); border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
}
.scta-chip:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.5); text-decoration: none; color: #fff; }

/* Pulsation de la vraie barre de recherche quand on arrive depuis le CTA. */
.search.is-called { animation: scta-ring 1.3s ease-out 2; }
@keyframes scta-ring {
  0% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(176, 138, 74, 0.85); }
  70% { box-shadow: var(--shadow-sm), 0 0 0 12px rgba(176, 138, 74, 0); }
  100% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(176, 138, 74, 0); }
}

@media (max-width: 900px) {
  .scta { padding: var(--space-8) 0; }
  .scta-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .scta-copy .scta-title { font-size: var(--text-xl); }
  .scta-field { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .scta-pulse, .scta-caret, .search.is-called { animation: none; }
  .scta-field:hover { transform: none; }
}

/* ---------- 31. VOILE DE FOCUS SUR LA RECHERCHE ---------- */
/* Au focus du champ, tout le reste de la page passe derrière un voile sombre :
   le moteur et ses suggestions sont les seuls éléments encore lisibles. */
.search-scrim {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 6, 20, 0.4);
  opacity: 0; transition: opacity 0.18s ease;
}
.search-scrim[hidden] { display: none; }
body.search-focused .search-scrim { opacity: 1; }

/* La barre repasse au-dessus du voile. `.search` est déjà position:relative et
   aucun de ses ancêtres ne crée de contexte d'empilement : le z-index porte donc
   bien au niveau racine, et `.search-suggest` (z-index 60 interne) suit avec. */
body.search-focused .search {
  z-index: 600;
  box-shadow: 0 0 0 3px rgba(176, 138, 74, 0.5), 0 12px 32px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .search-scrim { transition: none; }
}

/* ---------- 32. RECHERCHES POPULAIRES (au focus de la barre) ---------- */
.search-trends[hidden] { display: none; }
.st-head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px var(--space-4) 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-mute); border-bottom: 1px solid var(--border);
}
.st-head svg { color: var(--brass); }
.st-item { gap: var(--space-3); }
.st-ico {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.st-item .ss-t { flex: 1; min-width: 0; font-weight: 600; }
.st-ct { font-size: var(--text-xs); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.st-item:hover .st-ico { background: var(--accent); color: #fff; }

/* ---------- 33. PLAN DU SITE ---------- */
.stm { padding-top: var(--space-3); padding-bottom: var(--space-12); max-width: 1000px; }
.stm-h1 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.stm-lead { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.7; max-width: 70ch; margin-bottom: var(--space-8); }
.stm-lead a { text-decoration: underline; }

.stm-branch { margin-bottom: var(--space-10); }
.stm-h2 {
  display: flex; align-items: baseline; gap: var(--space-3);
  font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em;
  padding-bottom: var(--space-2); margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--accent);
}
.stm-h2 a { color: var(--ink); }
.stm-h2 a:hover { color: var(--accent); text-decoration: none; }
.stm-ct { font-size: var(--text-xs); font-weight: 600; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* Colonnes : l'arborescence reste lisible sans étirer la page en longueur. */
.stm-subs { columns: 3 260px; column-gap: var(--space-8); }
.stm-sub { break-inside: avoid; margin-bottom: var(--space-6); }
.stm-h3 {
  display: flex; align-items: baseline; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 800; color: var(--ink);
  margin-bottom: var(--space-2);
  padding-left: var(--space-3); border-left: 3px solid var(--brass);
}
.stm-h3 a { color: inherit; }
.stm-h3 a:hover { color: var(--accent); text-decoration: none; }

.stm-products { padding-left: var(--space-4); margin-bottom: var(--space-2); }
.stm-products li { margin-bottom: 3px; }
.stm-h4 {
  font-size: var(--text-xs); font-weight: 400; line-height: 1.45;
  position: relative; padding-left: var(--space-3);
}
.stm-h4::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 4px; height: 1px; background: var(--border-strong);
}
.stm-h4 a { color: var(--ink-soft); }
.stm-h4 a:hover { color: var(--accent); }
.stm-products-root { columns: 3 240px; column-gap: var(--space-6); margin-bottom: var(--space-5); }
.stm-products-root li { break-inside: avoid; }

.stm-all {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  color: var(--accent); padding-left: var(--space-4);
}
.stm-all-root { margin-top: var(--space-4); padding-left: 0; }

.stm-links { columns: 3 200px; column-gap: var(--space-6); }
.stm-links li { break-inside: avoid; margin-bottom: 6px; font-size: var(--text-sm); }
.stm-links a { color: var(--ink-soft); }
.stm-links a:hover { color: var(--accent); }

/* Page rubrique : liste exhaustive, dense mais aérée */
.stm-products-full { columns: 3 280px; column-gap: var(--space-8); padding-left: 0; margin-bottom: var(--space-8); }
.stm-products-full li { break-inside: avoid; margin-bottom: 5px; }
.stm-products-full .stm-h4 { font-size: var(--text-sm); }
.stm-back { margin-top: var(--space-6); font-size: var(--text-sm); }
.stm-back a { color: var(--accent); font-weight: 700; }

@media (max-width: 720px) {
  .stm-subs, .stm-products-root, .stm-products-full, .stm-links { columns: 1; }
}

/* ─── Bouton « remonter en haut » ─────────────────────────────────────────────
   Absent de la fiche produit : son CTA collant occupe déjà le bas de l'écran. */
.to-top {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 90;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 6px 20px rgba(28, 20, 40, 0.16);
  cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, background 0.15s, color 0.15s;
}
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--ink); color: var(--surface); }
.to-top:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.to-top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 0.18s ease-out; transform: none; }
}
@media (max-width: 680px) {
  .to-top { right: var(--space-4); bottom: var(--space-4); width: 42px; height: 42px; }
}

/* ─── Modal de retour boutique ───────────────────────────────────────────────
   Reprend entièrement l'habillage de la modal newsletter (.nl-*) ; seuls le
   lien de refus et la hauteur de titre lui sont propres. */
.rt-overlay .nl-box .rt-title { line-height: 1.25; }
.rt-dismiss {
  display: block; width: 100%; margin-top: var(--space-4);
  background: none; border: 0; padding: var(--space-2);
  font-family: inherit; font-size: var(--text-sm); color: var(--ink-mute);
  text-decoration: underline; cursor: pointer;
}
.rt-dismiss:hover { color: var(--ink); }

/* Champ de recherche vide : secousse brève plutôt qu'une navigation inutile. */
.search-nudge { animation: search-nudge .32s ease; }
@keyframes search-nudge {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .search-nudge { animation: none; }
}

/* ---------- QUIZ CADEAU : entrée de menu et bouton flottant ---------- */
/* Couleurs de la charte (rose et laiton), pas un rose vif ajouté pour l'occasion. */
.navlink-hot { color: var(--rose); }
.navlink-hot svg { color: var(--brass); }
.navlink-hot:hover, .navlink-hot.active { color: #8e3858; }

/* 55 : sous le menu mobile (60), la surcouche de recherche (500) et les
   modales (9997+), qui doivent toujours le recouvrir. */
.qfab {
  position: fixed; z-index: 55;
  left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 64px; height: 64px; display: block; text-decoration: none;
}
.qfab-core {
  position: relative; z-index: 2; display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px rgba(48,43,99,.4), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s ease;
  animation: qfab-wiggle 7s ease-in-out 4s infinite;
}
.qfab:hover .qfab-core, .qfab:focus-visible .qfab-core {
  transform: scale(1.08) rotate(-6deg);
  background: var(--accent-ink);
  box-shadow: 0 14px 32px rgba(48,43,99,.5), 0 0 0 4px var(--accent-soft);
}
.qfab:focus-visible { outline: none; }
.qfab-gift { transform: translateY(1px); }
.qfab-q {
  position: absolute; top: -4px; right: -4px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #b08a4a; color: #fff; font-size: 14px; font-weight: 900; line-height: 1;
  border: 2px solid #f7f3ec; box-shadow: 0 3px 8px rgba(0,0,0,.25);
  animation: qfab-bob 2.4s ease-in-out infinite;
}
/* Deux ondes décalées : le bouton « respire » sans clignoter. */
.qfab-ring {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,43,99,.4) 0%, rgba(48,43,99,0) 70%);
  animation: qfab-pulse 2.6s ease-out infinite;
}
.qfab-ring-2 { animation-delay: 1.3s; }
@keyframes qfab-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes qfab-bob { 50% { transform: translateY(-3px) scale(1.06); } }
@keyframes qfab-wiggle {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-14deg) scale(1.06); } 93% { transform: rotate(12deg) scale(1.06); }
  96% { transform: rotate(-6deg); }
}
.qfab-tip {
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translate(-8px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; padding: 10px 14px; border-radius: 14px;
  background: #1c1f23; color: #f7f3ec; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(15,10,31,.35);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.qfab-tip::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 12px; height: 12px;
  background: #1c1f23; transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.qfab:hover .qfab-tip, .qfab:focus-visible .qfab-tip, .qfab.qfab-tip-on .qfab-tip {
  opacity: 1; transform: translate(0, -50%);
}
@media (max-width: 720px) {
  .qfab { width: 56px; height: 56px; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .qfab-gift { width: 26px; height: 26px; }
  .qfab-tip { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .qfab-core, .qfab-q, .qfab-ring { animation: none; }
  .qfab-ring { display: none; }
}


/* Titre + compteur côte à côte : le compteur reste hors du titre (Hn). */
.rb-title { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; min-width: 0; }

/* Accueil : H1 unique et visible, qui porte la requête principale. */
.home-intro { padding: var(--space-8) 0 0; }
.home-intro h1 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); max-width: 32ch; }
.home-intro p { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.6; color: var(--ink-soft); max-width: 70ch; }
.home-intro p b { color: var(--ink); }
@media (max-width: 640px) { .home-intro { padding-top: var(--space-5); } .home-intro h1 { font-size: var(--text-xl); } }
