/* =========================================================
   Bon Plan Malin — design system
   Pas de Google Fonts (RGPD, notamment en Allemagne) :
   on utilise les polices système.
   ========================================================= */
:root {
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #121212;
  --muted: #62605b;
  --line: rgba(18, 18, 18, .09);
  --brand: #ff5a1f;
  --brand-2: #ff2e7e;
  --brand-3: #7c5cff;
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --amz: #ffc233;
  --amz-ink: #141414;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 16, 8, .04), 0 12px 32px -12px rgba(20, 16, 8, .14);
  --shadow-lg: 0 30px 60px -20px rgba(255, 70, 60, .35);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0f; --bg-2: #121218; --surface: #16161d; --surface-2: #1c1c25;
    --ink: #f4f3f0; --muted: #a3a1ab; --line: rgba(255, 255, 255, .09);
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -20px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0f; --bg-2: #121218; --surface: #16161d; --surface-2: #1c1c25;
  --ink: #f4f3f0; --muted: #a3a1ab; --line: rgba(255, 255, 255, .09);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; font-size: 17px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body:not(.ready) main { min-height: 80vh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 780px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--brand-2); color: #fff; }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
#site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
}
#site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 900; box-shadow: 0 6px 18px -6px var(--brand-2);
  transform: rotate(-6deg); transition: transform .3s;
}
.logo:hover .logo-mark { transform: rotate(6deg) scale(1.05); }
.nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center;
  padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; font: 600 .85rem var(--font); transition: transform .15s;
}
.icon-btn:hover { transform: translateY(-1px); }
.flag { font-size: 1.15rem; line-height: 1; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: inline; }
}
.menu-btn { display: none; }
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2,.8,.2,1), top .3s; }
.burger i:first-child { top: 1px; }
.burger i:last-child { top: 9px; }
.nav-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .burger i:last-child { top: 5px; transform: rotate(-45deg); }
html.no-scroll { overflow: hidden; }

/* Menu mobile plein écran */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-tools { margin-left: auto; position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; padding: 104px 24px 32px; border: 0; border-radius: 0;
    display: flex; flex-direction: column; gap: 6px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a {
    font-family: var(--font-display); font-size: clamp(1.8rem, 9vw, 2.6rem); font-weight: 800; letter-spacing: -.03em;
    color: var(--ink); padding: 10px 4px; border-radius: 0; background: none !important;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .nav a[aria-current="page"] { color: transparent; background: var(--grad) !important; -webkit-background-clip: text !important; background-clip: text !important; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(2) { transition-delay: .05s; }
  .nav.open a:nth-child(3) { transition-delay: .1s; }
  .nav.open a:nth-child(4) { transition-delay: .15s; }
  .nav.open a:nth-child(5) { transition-delay: .2s; }
}
@media (max-width: 420px) { .logo > span:last-child { font-size: 1rem; } .country-btn .cc { display: none; } }

/* ---------- Panneau pays ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility .35s; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,10,14,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  padding: 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.35);
  transform: translate(-50%, -46%) scale(.96); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
.sheet-grip { display: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-head h3 { margin: 0; font-size: 1.3rem; }
.country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.country-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s;
}
.sheet.open .country-card { animation: rise .45s calc(var(--i) * 35ms) cubic-bezier(.2,.8,.2,1) both; }
.country-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: var(--shadow); }
.country-card.active { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; padding: 13px; }
.cc-flag { font-size: 1.9rem; line-height: 1; }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-text strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-text small { color: var(--muted); font-size: .78rem; }
.cc-check { margin-left: auto; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 900; }
@media (max-width: 600px) {
  .sheet-panel {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 85vh;
    border-radius: 28px 28px 0 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%); opacity: 1;
  }
  .sheet.open .sheet-panel { transform: none; }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
  .country-grid { gap: 8px; }
  .country-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .country-card.active { padding: 11px; }
  .cc-flag { font-size: 1.6rem; }
  .cc-text strong { font-size: .9rem; }
  .cc-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; }
}

/* ---------- Disclosure bar ---------- */
.disclosure {
  font-size: .8rem; color: var(--muted); padding: 8px 16px; text-align: center;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.disclosure a { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: 700 .95rem var(--font); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 28px -10px var(--brand-2); }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { transform: translateY(-2px); }
.btn-amz { background: var(--amz); color: var(--amz-ink); width: 100%; }
.btn-amz:hover { background: #ffb300; transform: translateY(-1px); }

/* ---------- Eyebrow / pills ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; isolation: isolate; }
/* Taches de couleur en dégradé radial : pas de filter: blur (trop lourd pour Safari iOS) */
.blob { position: absolute; border-radius: 50%; opacity: .55; z-index: -1; pointer-events: none; animation: float 14s ease-in-out infinite; will-change: transform; }
.b1 { width: 560px; height: 560px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 70%, transparent), transparent); top: -200px; left: -200px; }
.b2 { width: 520px; height: 520px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 60%, transparent), transparent); top: -40px; right: -180px; animation-delay: -5s; }
.b3 { width: 460px; height: 460px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-3) 55%, transparent), transparent); bottom: -240px; left: 35%; animation-delay: -9s; }
:root[data-theme="dark"] .blob { opacity: .28; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .28; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); padding-top: 24px; } }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 580px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-stats div {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.hero-stats strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-size: 1rem; }
.hero-stats span { font-size: .88rem; font-weight: 600; }
.hero-card { position: relative; }
.hero-card-label {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: .78rem; font-weight: 800;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.hero-card .deal { transform: rotate(1.5deg); box-shadow: var(--shadow-lg); }
.hero-card .deal:hover { transform: rotate(0) translateY(-4px); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.ticker-track span { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.ticker-track span::after { content: "✦"; margin-left: 40px; color: var(--brand); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
/* Espacement vertical via margin : .wrap redéfinit le padding des sections */
#main > section { margin-top: clamp(64px, 9vw, 104px); }
#main > section.hero { margin-top: 0; }
#main > .ticker + section { margin-top: clamp(48px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Bento categories ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; } .bento-tile.wide { grid-column: span 2; } }
.bento-tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px; min-height: 130px;
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none;
  background: var(--tile, var(--surface)); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-tile strong { font-family: var(--font-display); font-size: 1.15rem; color: #141414; }
.bento-tile small { color: rgba(20,20,20,.6); font-weight: 600; }
.bento-emoji { position: absolute; top: 10px; right: 14px; font-size: 3rem; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.bento-tile.wide .bento-emoji { font-size: 4.2rem; }
.bento-all { background: var(--grad); grid-column: span 2; }
.bento-all strong, .bento-all small { color: #fff; }
.bento-tile:hover .bento-emoji { transform: rotate(-10deg) scale(1.15); }

/* Category colors */
.cat-tech    { --tile: linear-gradient(140deg, #d9e7ff, #b9d0ff); }
.cat-maison  { --tile: linear-gradient(140deg, #d9f5df, #b5e8c2); }
.cat-cuisine { --tile: linear-gradient(140deg, #ffe7cc, #ffcf99); }
.cat-beaute  { --tile: linear-gradient(140deg, #ffe0ef, #ffc1dd); }
.cat-sport   { --tile: linear-gradient(140deg, #d5f6f3, #a9ebe4); }
.cat-enfants { --tile: linear-gradient(140deg, #fff4bf, #ffe680); }
.cat-auto    { --tile: linear-gradient(140deg, #e6e6ee, #cfd0dc); }
.cat-animaux { --tile: linear-gradient(140deg, #f2e6da, #e4cdb6); }

/* ---------- Deal cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.deal {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.deal:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.deal-visual { position: relative; aspect-ratio: 16/11; display: grid; place-items: center; background: var(--tile); margin: 8px 8px 0; border-radius: 16px; overflow: hidden; }
.deal-visual img { width: 100%; height: 100%; object-fit: cover; }
.deal-emoji { font-size: 4.2rem; line-height: 1; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.deal:hover .deal-emoji { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.deal-big .deal-emoji { font-size: 6rem; }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: .74rem; font-weight: 800; padding: 5px 11px;
  border-radius: 999px; background: #141414; color: #fff; letter-spacing: .01em;
}
.badge-hot { background: linear-gradient(90deg, #ff3d00, #ff2e7e); }
.badge-flash { background: #7c5cff; }
.badge-cheap { background: #16a34a; }
.badge-gift { background: #e11d48; }
.badge-new { background: #0ea5e9; }
.score {
  position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(#141414 calc(var(--p) * 1%), rgba(20,20,20,.12) 0);
  display: grid; place-items: center;
}
.score span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: #141414; font-weight: 800; font-size: .8rem; }
.deal-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal-body h3 { font-size: 1.12rem; margin: 2px 0 0; }
.deal-big .deal-body h3 { font-size: 1.4rem; }
.deal-body p { color: var(--muted); font-size: .94rem; margin: 0 0 10px; flex: 1; }
.deal-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal-meta time { font-size: .75rem; color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 60px 0; }

/* ---------- Deals page toolbar ---------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-wrap { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search { flex: 1; border: 0; background: none; color: var(--ink); font: 500 1rem var(--font); padding: 14px 0; outline: none; min-width: 0; }
.segmented {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px; flex: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.segmented button {
  position: relative; z-index: 1; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 700 .9rem var(--font); padding: 0 18px; height: 42px; border-radius: 999px; white-space: nowrap; transition: color .25s;
}
.segmented button[aria-checked="true"] { color: var(--bg); }
.seg-thumb {
  position: absolute; top: 4px; left: 4px; height: 42px; border-radius: 999px; background: var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1);
}
@media (max-width: 600px) { .segmented { width: 100%; } .segmented button { flex: 1; padding: 0 10px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font: 600 .9rem var(--font); transition: all .2s;
}
.chip:hover { transform: translateY(-1px); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- How it works ---------- */
.how { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.how-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.how-step { padding: 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.how-step .num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 2rem; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how-step strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.how-step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Post cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-visual { height: 150px; display: grid; place-items: center; background: var(--tile); margin: 8px 8px 0; border-radius: 16px; }
.post-visual span { font-size: 4rem; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.post-card:hover .post-visual span { transform: scale(1.15) rotate(-8deg); }
.post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body .pill { align-self: flex-start; }
.post-body h3 { margin: 0; font-size: 1.2rem; }
.post-body p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.post-body .more { font-weight: 700; font-size: .92rem; color: var(--brand); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  border-radius: 32px; padding: clamp(36px, 6vw, 72px) 24px; background: #141414;
}
.cta::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .9; z-index: -2; }
.cta .blob { opacity: .35; background: radial-gradient(closest-side, #fff, transparent); width: 420px; height: 420px; top: -210px; right: -140px; }
.cta h2 { color: #fff; }
.cta p { opacity: .92; max-width: 560px; margin: 0 auto 24px; }

/* ---------- Page heads & prose ---------- */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.article-hero { position: relative; padding: 32px 0 40px; background: var(--tile); margin-bottom: 8px; }
.article-hero h1 { color: #141414; font-size: clamp(2rem, 5vw, 3.2rem); }
.article-hero .eyebrow { color: rgba(20,20,20,.7); }
.article-hero .byline { color: rgba(20,20,20,.65); margin: 0; font-weight: 600; font-size: .92rem; }
.article-hero .back { display: inline-block; margin-bottom: 20px; color: #141414; font-weight: 700; text-decoration: none; font-size: .92rem; }
.article-emoji { display: block; font-size: 3.6rem; margin-bottom: 10px; }
.read-progress { position: sticky; top: 72px; height: 3px; z-index: 5; margin: 0 -16px; }
.read-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.prose { padding: 16px 0 40px; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose a:not(.btn) { color: var(--brand); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-2); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: 16px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.product-box {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 1.4em 0; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.product-box > div { flex: 1 1 240px; }
.product-box strong { display: block; font-size: 1.05rem; }
.product-box p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.product-box .btn-amz { width: auto; }
.note { font-size: .86rem; color: var(--muted); background: var(--bg-2); border-radius: 14px; padding: 12px 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 1.5em; }
.contact-card .ic { font-size: 2rem; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); }
.contact-card a { font-weight: 700; font-size: 1.1rem; }
.more-title { margin-top: 24px; }

/* ---------- Footer ---------- */
#site-footer { margin-top: 72px; padding: 40px 0 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: .92rem; }
.footer-disclosure { color: var(--muted); background: var(--bg-2); border-radius: 16px; padding: 14px 18px; margin-bottom: 32px; font-size: .86rem; }
.footer-disclosure strong { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.footer-brand p { color: var(--muted); max-width: 280px; }
.footer-grid h4 { font: 800 .74rem var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid div > a:not(.logo) { display: block; padding: 4px 0; text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--brand); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.copy { color: var(--muted); font-size: .8rem; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-card { animation: rise 1s .3s cubic-bezier(.2,.8,.2,1) both; }
.hero-card .reveal { opacity: 1; transform: rotate(1.5deg); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile : cartes produits compactes (format liste) ---------- */
@media (max-width: 600px) {
  .grid { gap: 12px; }
  .deal:not(.deal-big) {
    display: grid; grid-template-columns: 124px minmax(0, 1fr);
    grid-template-areas: "visual meta" "visual title" "visual desc" "btn btn";
    grid-template-rows: auto auto 1fr auto; border-radius: 20px;
  }
  .deal:not(.deal-big) .deal-body { display: contents; }
  .deal:not(.deal-big) .deal-visual {
    grid-area: visual; aspect-ratio: 1; align-self: start; margin: 10px 0 0 10px; border-radius: 14px;
  }
  .deal:not(.deal-big) .deal-emoji { font-size: 3rem; }
  .deal:not(.deal-big) .badge { top: auto; bottom: 6px; left: 5px; right: 5px; text-align: center; font-size: .62rem; padding: 3px 4px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .deal:not(.deal-big) .score { top: 6px; right: 6px; width: 32px; height: 32px; }
  .deal:not(.deal-big) .score span { width: 25px; height: 25px; font-size: .64rem; }
  .deal:not(.deal-big) .deal-meta { grid-area: meta; padding: 12px 12px 0 12px; }
  .deal:not(.deal-big) .deal-meta time { display: none; }
  .deal:not(.deal-big) .pill { font-size: .68rem; padding: 3px 8px; }
  .deal:not(.deal-big) h3 {
    grid-area: title; padding: 6px 12px 0 12px; margin: 0; font-size: 1rem; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .deal:not(.deal-big) .deal-body p {
    grid-area: desc; padding: 4px 12px 0 12px; margin: 0; font-size: .86rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .deal:not(.deal-big) .btn-amz { grid-area: btn; margin: 12px 10px 10px; width: auto; padding: 12px 16px; font-size: .9rem; }

  /* Carte vedette de l'accueil : droite et plus basse */
  .hero-card .deal, .hero-card .reveal { transform: none !important; }
  .deal-big .deal-visual { aspect-ratio: 16 / 9; }
  .deal-big .deal-emoji { font-size: 4.6rem; }

  .posts { gap: 12px; }
  .post-card { flex-direction: row; align-items: stretch; border-radius: 20px; }
  .post-visual { flex: none; width: 96px; height: auto; min-height: 96px; margin: 10px 0 10px 10px; border-radius: 14px; }
  .post-visual span { font-size: 2.6rem; }
  .post-body { padding: 12px 14px; gap: 5px; min-width: 0; }
  .post-body .pill { font-size: .68rem; padding: 3px 8px; }
  .post-body h3 { font-size: 1rem; line-height: 1.25; }
  .post-body p { font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .post-body .more { font-size: .85rem; }
}

/* Écrans tactiles : pas d'effet de survol qui reste « collé » après un toucher */
@media (hover: none) {
  .deal:hover, .post-card:hover, .bento-tile:hover, .chip:hover, .icon-btn:hover,
  .btn:hover, .btn-primary:hover, .btn-ghost:hover, .btn-light:hover, .btn-amz:hover, .country-card:hover { transform: none; }
  .deal:hover, .post-card:hover { box-shadow: var(--shadow); }
  .deal:hover .deal-emoji, .post-card:hover .post-visual span, .bento-tile:hover .bento-emoji { transform: none; }
  .btn:active, .deal:active, .post-card:active, .bento-tile:active { transform: scale(.98); }
}

/* ---------- Mobile : accueil ---------- */
@media (max-width: 600px) {
  .blob { animation: none; }
  .hero { padding: 28px 0 40px; }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .08em; }
  .hero .lead { font-size: 1rem; line-height: 1.55; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; padding: 14px 16px; font-size: .95rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
  .hero-stats div { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 16px; }
  .hero-stats strong { width: 30px; height: 30px; font-size: .9rem; }
  .hero-stats span { font-size: .72rem; line-height: 1.25; }
  .hero-grid { gap: 36px; }
  .ticker { padding: 11px 0; }
  .ticker-track span { font-size: .85rem; }
  #main > section { margin-top: 56px; }
  #main > .ticker + section { margin-top: 40px; }
  .section-head { margin-bottom: 18px; }
  .section-head .btn { padding: 9px 14px; font-size: .85rem; }
  .bento { gap: 10px; }
  .bento-tile { min-height: 104px; padding: 14px; border-radius: 18px; }
  .bento-emoji, .bento-tile.wide .bento-emoji { font-size: 2.3rem; top: 10px; right: 12px; }
  .bento-tile strong { font-size: 1rem; }
  .bento-tile small { font-size: .76rem; }
  .how { padding: 22px 16px; border-radius: 22px; }
  .how-steps { gap: 10px; margin-top: 14px; }
  .how-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px; align-items: start; }
  .how-step .num { grid-row: span 2; font-size: 1.6rem; margin: 0; line-height: 1.1; }
  .how-step strong { margin-bottom: 2px; font-size: 1rem; }
  .how-step p { font-size: .88rem; }
  .section-head { flex-wrap: nowrap; align-items: flex-end; }
  .section-head p { font-size: .92rem; }
  .section-head .btn { flex: none; }
  .cta { border-radius: 24px; padding: 36px 20px; }
}
