/* ============================================================
 * IPTV SMARTERS PRO France — Design System
 * SaaS-premium, conversion-oriented, RGPD-aware, < 25kb gzipped.
 * ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --blue:        #2563EB;
  --blue-dark:   #1E40AF;
  --blue-darker: #0F172A;
  --blue-50:     #EFF6FF;
  --blue-100:    #DBEAFE;
  --red:         #B91C1C;
  --red-light:   #FEE2E2;
  --white:       #FFFFFF;
  --bg:          #F8FAFC;
  --fg:          #0F172A;
  --fg-muted:    #475569;
  --fg-soft:     #64748B;
  --border:      #E2E8F0;
  --border-strong:#CBD5E1;
  --whatsapp:    #008069;
  --whatsapp-d:  #075E54;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow:      0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:   0 24px 48px -16px rgba(15,23,42,.12), 0 8px 16px -8px rgba(15,23,42,.08);
  --shadow-blue: 0 12px 28px -10px rgba(37,99,235,.45);

  --font-display:'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --t-fast:      .2s cubic-bezier(.4,0,.2,1);
  --t-base:      .28s cubic-bezier(.4,0,.2,1);
  --t-slow:      .5s cubic-bezier(.4,0,.2,1);

  --max:         1180px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; overscroll-behavior-x: none; }
body { overflow-x: clip; overscroll-behavior-x: none; }
body  { margin: 0; font-family: var(--font-body); color: var(--fg); background: var(--bg);
        line-height: 1.6; -webkit-font-smoothing: antialiased; }
img,svg,video { display: block; max-width: 100%; height: auto; }
a   { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-dark); }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em; color: var(--fg); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.2em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p  { margin: 0 0 1em; color: var(--fg-muted); }
ul,ol { padding-left: 1.25em; color: var(--fg-muted); }
li { margin-bottom: .3em; }
strong { color: var(--fg); font-weight: 700; }
code { background: var(--blue-50); color: var(--blue-darker); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-blue { background: linear-gradient(180deg, var(--blue-darker) 0%, var(--blue-dark) 100%); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-blue p { color: rgba(255,255,255,.82); }
.section-soft { background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  z-index: 100; transition: width var(--t-fast);
}

/* ---------- Glass nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.nav.scrolled { background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; transition: transform var(--t-fast); }
.nav-logo:hover { transform: scale(1.03); }
.nav-logo img { width: auto; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--fg-muted); font-weight: 500; font-size: 14.5px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform var(--t-fast); }
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { padding: 9px 18px; font-size: 13.5px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border-strong); background: #fff; border-radius: 12px; place-items: center; align-items: center; justify-content: center; transition: border-color var(--t-fast); }
.burger:hover { border-color: var(--blue); }
.burger svg { width: 22px; height: 22px; color: var(--fg); }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer[data-open="true"] { pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(15,23,42,.55); opacity: 0; transition: opacity var(--t-base); }
.drawer[data-open="true"] .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 88%; max-width: 360px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head strong { font-family: var(--font-display); font-size: 16px; }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; display: inline-grid; place-items: center; }
.drawer-nav { padding: 12px; overflow-y: auto; flex: 1; }
.drawer-nav a { display: block; padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--fg); border-radius: 12px; }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--blue-50); color: var(--blue-dark); }
.drawer-nav .btn { margin: 12px 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       padding: 13px 22px; font-weight: 600; font-size: 14.5px; line-height: 1;
       border-radius: 12px; border: 1px solid transparent; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 12px 28px -10px rgba(37,211,102,.5); }
.btn-whatsapp:hover { background: var(--whatsapp-d); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 100px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 80% 0%, rgba(37,99,235,.15) 0%, transparent 60%),
  radial-gradient(50% 60% at 15% 100%, rgba(37,99,235,.08) 0%, transparent 60%);
  z-index: 0; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; z-index: 1; }
@media (max-width: 900px) { .hero { padding: 56px 0 72px; } .hero-inner { grid-template-columns: 1fr; gap: 36px; } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
        background: var(--blue-50); color: var(--blue-dark); border: 1px solid var(--blue-100); border-radius: 999px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
.chip-red { background: var(--red-light); color: var(--red); border-color: rgba(185,28,28,.18); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 10px; }
.hero h1 .kw { color: var(--blue); }
.hero-subtitle { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: var(--blue-darker); margin: 0 0 22px; max-width: 60ch; line-height: 1.3; }
.hero p.lede { font-size: clamp(15.5px, 1.6vw, 17.5px); color: var(--fg-muted); max-width: 60ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 32px; padding-top: 14px; border-top: 1px solid var(--border); }
.hero-stat .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--blue-darker); }
.hero-stat .l { font-size: 13px; color: var(--fg-soft); }
.hero-art { position: relative; aspect-ratio: 5/4; }
.hero-art-card { position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
                 background: linear-gradient(135deg, #1e3a8a 0%, var(--blue) 100%);
                 box-shadow: var(--shadow-lg); }
.hero-art-card::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 30% 25%, rgba(255,255,255,.18) 0%, transparent 55%); }
.hero-art-card .device-grid { position: absolute; inset: 30px; display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.hero-art-card .dev { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; backdrop-filter: blur(8px); padding: 14px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.hero-art-card .dev-1 { grid-row: span 2; justify-content: flex-end; }
.hero-art-card .dev-label { font-size: 10.5px; opacity: .7; text-transform: uppercase; letter-spacing: .12em; }
.hero-art-card .dev-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.hero-art-card .dev-sub { font-size: 12.5px; opacity: .8; }
.hero-art-card .live-badge { position: absolute; top: 24px; left: 24px; background: rgba(255,255,255,.95); color: var(--red); font-weight: 800; font-size: 11px; padding: 6px 10px; border-radius: 999px; letter-spacing: .12em; display: inline-flex; align-items: center; gap: 6px; }
.hero-art-card .live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.hero-art-card .chan-chip { position: absolute; bottom: 22px; right: 22px; background: #fff; color: var(--blue-dark); font-weight: 700; font-size: 12.5px; padding: 8px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Hero — centered variant with background image + dark overlay ---------- */

/* Hero image URLs via custom properties — swap in :root to change the pictures. */
:root {
  --hero-bg-1: url("/assets/img/hero-bg-2.webp");
  --hero-bg-2: url("/assets/img/hero-bg-3.png");
  --hero-overlay: rgba(0, 0, 0, 0.35);
}

.hero.hero--centered {
  padding: 120px 0 130px;
  isolation: isolate; /* contains the overlay/bg stacking */
}
@media (max-width: 900px) {
  .hero.hero--centered { padding: 84px 0 96px; }
}

/* Kill the original soft radial overlay on the centered variant */
.hero.hero--centered::before { content: none; }

/* Slider container — sits behind the dark overlay; clips slides at edges */
.hero.hero--centered .hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0F172A; /* fallback while images load */
}

/* Each slide covers the section; transform-translateX animated for left slide */
.hero.hero--centered .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: hero-slide-x 14s cubic-bezier(.77, 0, .175, 1) infinite;
  will-change: transform;
}
.hero.hero--centered .hero-slide-1 {
  background-image: var(--hero-bg-1);
  animation-delay: 0s;
}
.hero.hero--centered .hero-slide-2 {
  background-image: var(--hero-bg-2);
  animation-delay: -7s; /* half-cycle offset → continuous left scroll */
}

/* Carousel timeline (14s loop):
   0–6s    : visible at center           (0% → 43%)
   6–7s    : slides off to the LEFT      (43% → 50%)
   7s      : teleport off-screen RIGHT   (50% → 50.01%)
   7–13s   : waiting off-screen right    (50.01% → 93%)
   13–14s  : slides in from the RIGHT    (93% → 100%, back to translateX(0))
*/
@keyframes hero-slide-x {
  0%     { transform: translateX(0); }
  43%    { transform: translateX(0); }
  50%    { transform: translateX(-100%); }
  50.01% { transform: translateX(100%); }
  93%    { transform: translateX(100%); }
  100%   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--centered .hero-slide { animation: none; transform: translateX(0); }
  .hero.hero--centered .hero-slide-2 { transform: translateX(100%); }
}

/* Dark overlay for legibility */
.hero.hero--centered .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  /* Subtle bottom gradient so stats line stays readable even on bright spots */
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.65) 100%);
}

/* Centered layout — collapse the grid to a single centered column,
   hide the visual art card (kept in markup so /a-propos etc. can reuse). */
.hero.hero--centered .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  z-index: 2;
}
.hero.hero--centered .hero-inner > .reveal {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero.hero--centered .hero-art { display: none; }

/* Text legibility on dark background */
.hero.hero--centered .chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero.hero--centered .chip-dot { background: #fff; }
.hero.hero--centered h1 {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero.hero--centered h1 .kw {
  /* On dark bg: keep pure white, retain the subtle blue glow as accent */
  color: #fff;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.45);
}
.hero.hero--centered .hero-subtitle {
  color: #DBEAFE;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero.hero--centered p.lede {
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
/* Bold keywords in the hero description -> pure white for accent */
.hero.hero--centered p.lede strong {
  color: #fff;
  font-weight: 700;
}

/* CTA row centered */
.hero.hero--centered .hero-cta { justify-content: center; }

/* Stats row centered, with no top border (the overlay handles separation) */
.hero.hero--centered .hero-stats {
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  margin-top: 8px;
}
.hero.hero--centered .hero-stat { text-align: center; }
.hero.hero--centered .hero-stat .v {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero.hero--centered .hero-stat .l { color: rgba(255, 255, 255, 0.78); }

/* Secondary CTA visibility on dark bg */
.hero.hero--centered .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero.hero--centered .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Respect reduced motion — nothing to disable here, but be explicit */
@media (prefers-reduced-motion: reduce) {
  .hero.hero--centered .hero-bg,
  .hero.hero--centered .hero-overlay { transition: none; }
}

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-top: 0; font-size: 17.5px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ============================================================
   PRICING — Premium SaaS redesign v2
   Each plan owns its visual identity via a LARGE gradient top
   (price + savings displayed directly on the gradient, white text).
   White body below holds features + proof + CTA.
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr; /* 12-mo is wider */
  gap: 18px;
  align-items: stretch;
  padding: 36px 0 18px; /* room for floating badge + glow */
  position: relative;
}
@media (max-width: 1180px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pricing-grid { grid-template-columns: 1fr; gap: 22px; } }

/* --- The card --- */
.plan {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform .4s cubic-bezier(.22,.61,.36,1),
    box-shadow .4s cubic-bezier(.22,.61,.36,1);
  isolation: isolate; /* so per-plan colored glow stays contained */
}

/* Colored glow underneath each card (premium SaaS effect) */
.plan::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  z-index: -1;
  opacity: .35;
  filter: blur(16px);
  transition: opacity .4s, filter .4s;
}
.plan-3mo::before  { background: linear-gradient(135deg, #38BDF8, #2563EB); }
.plan-6mo::before  { background: linear-gradient(135deg, #8B5CF6, #2563EB); }
.plan-12mo::before { background: linear-gradient(135deg, #1E3A8A, #3B82F6, #60A5FA); opacity: .65; filter: blur(24px); }
.plan-24mo::before { background: linear-gradient(135deg, #F59E0B, #1E40AF); }

.plan:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
}
.plan:hover::before { opacity: .85; filter: blur(28px); }
.plan:hover .plan-cta { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.55); }

/* =========================================================
   PLAN TOP — Large gradient header (~45% of card)
   Holds: plan name + savings pill + BIG price + period + strike
   ========================================================= */
.plan-header {
  position: relative;
  padding: 22px 22px 24px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* no min-height — height follows content */
}

/* Per-plan gradient identity */
.plan-3mo  .plan-header { background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #2563EB 100%); }
.plan-6mo  .plan-header { background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 45%, #3B82F6 100%); }
.plan-12mo .plan-header { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%); }
.plan-24mo .plan-header { background: linear-gradient(135deg, #F59E0B 0%, #D97706 45%, #1E40AF 100%); }

/* Decorative shimmer over the gradient */
.plan-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.plan-header::after {
  content: "";
  position: absolute;
  inset: -50% -50% auto auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

/* Top row inside header: plan name + icon chip */
.plan-header-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.92);
}
.plan-header-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Savings pill — colorful, prominent, on the gradient */
.plan-savings-pill {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,.95);
  color: #1E3A8A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.18);
  white-space: nowrap;
}
.plan-3mo  .plan-savings-pill { color: #0369A1; }
.plan-6mo  .plan-savings-pill { color: #5B21B6; }
.plan-12mo .plan-savings-pill {
  background: linear-gradient(135deg, #fff 0%, #DBEAFE 100%);
  color: #1E3A8A;
  box-shadow: 0 6px 18px -3px rgba(255,255,255,.4);
}
.plan-24mo .plan-savings-pill { color: #92400E; }

/* Price block ON the gradient */
.plan-price-block {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 3.8rem);
  color: #fff;
  line-height: .95;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0,0,0,.15);
  animation: priceIn .8s cubic-bezier(.22,.61,.36,1) both;
}
.plan-price .cur {
  font-size: 0.52em;
  vertical-align: top;
  color: rgba(255,255,255,.85);
  margin-right: 4px;
  font-weight: 800;
}
.plan-period {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-top: 8px;
  font-weight: 500;
}
.plan-mo {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 11.5px;
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.plan-strike {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,.5);
  font-weight: 500;
}
.plan-savings-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  color: #FEF3C7;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.plan-12mo .plan-savings-line { color: #FBBF24; }

/* =========================================================
   PLAN BODY — white, holds features + proof + CTA
   ========================================================= */
.plan-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
  gap: 12px;
  background: #fff;
}

/* Feature groups (categorized cards) — flex:1 absorbs grid stretch */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1; /* expands so CTA stays at bottom without a forced gap */
}
.feature-group {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
  transition: background .2s, transform .2s;
}
.plan:hover .feature-group { background: #EFF6FF; }
.plan-12mo:hover .feature-group { background: #DBEAFE; }
.feature-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px -2px rgba(40, 107, 222, 0.35);
}
.plan-3mo  .feature-icon { background: linear-gradient(135deg, #38BDF8, #2563EB); }
.plan-6mo  .feature-icon { background: linear-gradient(135deg, #8B5CF6, #2563EB); }
.plan-12mo .feature-icon { background: linear-gradient(135deg, #1E3A8A, #3B82F6); }
.plan-24mo .feature-icon { background: linear-gradient(135deg, #F59E0B, #D97706); }

.feature-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.feature-label { font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: #0F172A; }
.feature-value { font-size: 12px; color: #475569; line-height: 1.4; }

/* Micro social proof */
.plan-proof {
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  color: #1E3A8A;
  border: 1px dashed rgba(37, 99, 235, .35);
}
.plan-proof::before {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.plan-24mo .plan-proof {
  background: linear-gradient(135deg, #FEF3C7 0%, #FEF9E7 100%);
  color: #92400E;
  border-color: rgba(245, 158, 11, .35);
}
.plan-24mo .plan-proof::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392400E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

/* CTA — sits naturally after plan-features (which has flex:1) */
.plan-cta {
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  padding: 13px 20px;
  transition: background .25s, transform .25s, box-shadow .25s;
  margin-top: 4px;
}
.plan-3mo  .plan-cta.btn-secondary { background: #fff; color: #0369A1; border: 2px solid #0EA5E9; }
.plan-3mo  .plan-cta.btn-secondary:hover { background: linear-gradient(135deg, #38BDF8, #2563EB); color: #fff; border-color: transparent; }
.plan-6mo  .plan-cta.btn-secondary { background: #fff; color: #5B21B6; border: 2px solid #8B5CF6; }
.plan-6mo  .plan-cta.btn-secondary:hover { background: linear-gradient(135deg, #8B5CF6, #2563EB); color: #fff; border-color: transparent; }
.plan-24mo .plan-cta.btn-secondary { background: #fff; color: #92400E; border: 2px solid #F59E0B; }
.plan-24mo .plan-cta.btn-secondary:hover { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; border-color: transparent; }
.plan-12mo .plan-cta.btn-primary {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.55);
}
.plan-12mo .plan-cta.btn-primary:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #60A5FA 100%);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.7);
}

/* =========================================================
   POPULAR (12-month) — dramatic standout
   ========================================================= */
.plan.popular {
  transform: translateY(-18px) scale(1.04);
  z-index: 2;
}
/* 12mo header — no forced min-height; standout comes from outer transform + glow + animated border */
.plan.popular::before {
  opacity: .75;
  filter: blur(28px);
  inset: -4px;
}

/* Animated rotating border ring for 12mo */
.plan.popular::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: conic-gradient(from 0deg, #1E3A8A, #2563EB, #60A5FA, #3B82F6, #1E3A8A);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.plan.popular:hover {
  transform: translateY(-24px) scale(1.05);
  box-shadow: 0 50px 90px -25px rgba(37, 99, 235, 0.6);
}

/* Floating "Recommandé" badge — above the card */
.plan-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .16em;
  padding: 9px 20px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.7), 0 0 0 4px rgba(255,255,255,.5);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  z-index: 5;
  animation: floatY 3s ease-in-out infinite;
}
.plan-recommended::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255, .8);
  animation: pulseDot 1.8s infinite;
}

/* =========================================================
   TRUST BAR — below the pricing grid
   ========================================================= */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 42px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-bar { grid-template-columns: 1fr; } }
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  transition: transform .2s;
}
.trust-item:hover { transform: translateY(-2px); }
.trust-item-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(255,255,255,.30);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.trust-item:hover .trust-item-icon { animation: trustPulse 1.4s ease-in-out infinite; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes borderSpin {
  to { transform: rotate(360deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  50%      { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}
@keyframes priceIn {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trustPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .plan.popular::after { animation: none; }
  .plan-recommended { animation: none; transform: translateX(-50%); }
  .plan-recommended::before { animation: none; }
  .plan-price { animation: none; }
  .trust-item:hover .trust-item-icon { animation: none; }
}

/* ============================================================
   PRICING — Unified design tweak
   1. Section #tarifs background -> lighter radial gradient
   2. Apply the 12-month card palette to all 4 cards
      (12-mo card keeps its structural standout: bigger scale,
       animated conic border, floating "Recommandé" badge, glow)
   ============================================================ */

/* 1) Lighter radial gradient background for the tarifs section */
.section.section-blue#tarifs {
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 0%,
      #60A5FA 0%,
      #3B82F6 30%,
      #2563EB 60%,
      #1E3A8A 100%
    );
}

/* 2) Uniform card palette — every plan inherits the 12-month colors */

/* Header gradient (top portion of every card) */
.section.section-blue#tarifs .plan-3mo  .plan-header,
.section.section-blue#tarifs .plan-6mo  .plan-header,
.section.section-blue#tarifs .plan-24mo .plan-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
}

/* Colored glow underneath the card */
.section.section-blue#tarifs .plan-3mo::before,
.section.section-blue#tarifs .plan-6mo::before,
.section.section-blue#tarifs .plan-24mo::before {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6, #60A5FA);
}

/* Feature-icon mini badges inside the white body */
.section.section-blue#tarifs .plan-3mo  .feature-icon,
.section.section-blue#tarifs .plan-6mo  .feature-icon,
.section.section-blue#tarifs .plan-24mo .feature-icon {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
}

/* Savings pill — same blue text on white as the 12-month */
.section.section-blue#tarifs .plan-3mo  .plan-savings-pill,
.section.section-blue#tarifs .plan-6mo  .plan-savings-pill,
.section.section-blue#tarifs .plan-24mo .plan-savings-pill {
  background: linear-gradient(135deg, #fff 0%, #DBEAFE 100%);
  color: #1E3A8A;
}

/* 24-month "proof" callout: switch from amber to the blue palette */
.section.section-blue#tarifs .plan-24mo .plan-proof {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  color: #1E3A8A;
  border-color: rgba(37, 99, 235, .35);
}
.section.section-blue#tarifs .plan-24mo .plan-proof::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

/* CTAs on 3-, 6-, 24-month cards: solid gradient blue (same as 12-mo primary) */
.section.section-blue#tarifs .plan-3mo  .plan-cta.btn-secondary,
.section.section-blue#tarifs .plan-6mo  .plan-cta.btn-secondary,
.section.section-blue#tarifs .plan-24mo .plan-cta.btn-secondary {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.55);
}
.section.section-blue#tarifs .plan-3mo  .plan-cta.btn-secondary:hover,
.section.section-blue#tarifs .plan-6mo  .plan-cta.btn-secondary:hover,
.section.section-blue#tarifs .plan-24mo .plan-cta.btn-secondary:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #60A5FA 100%);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.7);
  border: none;
}

/* ============================================================
   PRICING — 12-month card final tweaks
   1. Add an orange border around the 49 € card
   2. Fix the "Recommandé" badge that was half-clipped by the
      card's overflow: hidden
   ============================================================ */

.section.section-blue#tarifs .plan.popular {
  /* 1) Red border */
  border: 3px solid #EF4444;
  /* 2) Let the floating "Recommandé" badge show fully above the card */
  overflow: visible;
}

/* Now that overflow:hidden is gone, give the inner header and body
   their own border-radius so the gradient header and white body
   keep their rounded corners. (24px outer radius - 3px border = 21px inner) */
.section.section-blue#tarifs .plan.popular .plan-header {
  border-radius: 21px 21px 0 0;
}
.section.section-blue#tarifs .plan.popular .plan-body {
  border-radius: 0 0 21px 21px;
}

/* Lift the badge slightly more so it sits clearly above the orange border */
.section.section-blue#tarifs .plan.popular .plan-recommended {
  top: -18px;
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-q { list-style: none; padding: 18px 22px 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--fg); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 22px; color: var(--blue); flex-shrink: 0; transition: transform var(--t-fast); }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding: 0 22px 18px; color: var(--fg-muted); font-size: 14.5px; line-height: 1.65; }
.faq-a p { margin-bottom: .6em; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Back to top ---------- */
.totop { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; box-shadow: var(--shadow); color: var(--blue); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--t-fast), transform var(--t-fast); z-index: 40; }
.totop.in { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover { background: var(--blue); color: #fff; }

/* ---------- WhatsApp floating button ---------- */
.wa-float { position: fixed; left: 22px; bottom: 22px; padding: 12px 18px; border-radius: 999px; background: var(--whatsapp); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 12px 28px -10px rgba(37,211,102,.55); z-index: 40; transition: transform var(--t-fast); }
.wa-float:hover { background: var(--whatsapp-d); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* ---------- Footer ---------- */
footer { background: var(--blue-darker); color: rgba(255,255,255,.78); padding: 60px 0 28px; }
footer h3 { color: #fff; font-size: 15px; font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
footer p, footer li { color: rgba(255,255,255,.7); font-size: 14px; }
footer a { color: rgba(255,255,255,.78); }
footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand img { height: 36px; margin-bottom: 14px; filter: brightness(1.05); }
.footer-brand p { font-size: 13.5px; max-width: 36ch; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-pay { display: flex; gap: 8px; margin-top: 12px; }
.footer-pay span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.78); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-legal a { color: inherit; opacity: .82; text-decoration: none; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }


/* ---------- Prose (article body) ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { color: var(--fg); }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; margin-bottom: .55em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: .4em; }
.prose p { color: var(--fg-muted); margin-bottom: 1em; }
.prose ul, .prose ol { color: var(--fg-muted); padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(37,99,235,.35); }
.prose a:hover { color: var(--blue-dark); text-decoration-color: var(--blue-dark); }
.prose strong { color: var(--fg); }
.prose blockquote { border-left: 3px solid var(--blue); padding: 6px 16px; color: var(--fg-muted); font-style: italic; margin: 18px 0; background: var(--blue-50); border-radius: 0 8px 8px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg); font-family: var(--font-display); font-weight: 700; color: var(--fg); }

/* ---------- Cover (article hero) ---------- */
.article-cover { padding: 60px 0 32px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--fg-soft); font-size: 13px; align-items: center; margin-bottom: 16px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.article-cover h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.article-cover .lede { font-size: 17.5px; color: var(--fg-muted); max-width: 60ch; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--fg-soft); padding: 18px 0; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- Article card (in tutoriels.html) ---------- */
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.article-card-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-darker), var(--blue)); position: relative; overflow: hidden; }
.article-card-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 50%, rgba(255,255,255,.15) 0%, transparent 55%); }
.article-card-thumb .num { position: absolute; bottom: 14px; left: 18px; color: rgba(255,255,255,.85); font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; }
.article-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 18px; margin: 0 0 10px; color: var(--fg); }
.article-card p { font-size: 14px; color: var(--fg-muted); margin-bottom: 14px; flex: 1; }
.article-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-soft); }
.article-card-foot .read { color: var(--blue); font-weight: 600; }

/* ---------- Compat strip (devices) ---------- */
.compat { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; padding: 24px 0; }
.compat .badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; color: var(--fg); font-weight: 500; }
.compat .badge svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-muted { color: var(--fg-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 12px; color: var(--blue); margin-bottom: 12px; }

/* ---------- Section heading center ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--fg-muted); }

/* ---------- Cookie banner ---------- */
#cookie-banner { position: fixed; inset-inline: 12px; bottom: 12px; max-width: 440px; margin-inline-start: auto; z-index: 80; }
@media (min-width: 600px) { #cookie-banner { right: 16px; bottom: 16px; left: auto; } }
#cookie-banner .cb-inner { position: relative; display: flex; gap: 14px; padding: 18px 18px 16px; background: rgba(255,255,255,.97); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.18); backdrop-filter: blur(8px); }
#cookie-banner .cb-icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-dark); border-radius: 10px; }
#cookie-banner .cb-body { flex: 1; min-width: 0; }
#cookie-banner h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--fg); margin: 0 0 6px; }
#cookie-banner p { font-size: 13px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 12px; }
#cookie-banner .cb-actions { display: flex; gap: 8px; }
#cookie-banner .cb-actions .btn { padding: 9px 14px; font-size: 13px; flex: 1; border-radius: 10px; }
#cookie-banner .cb-close { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--fg-soft); }
#cookie-banner .cb-close:hover { background: var(--blue-50); color: var(--blue-dark); }

/* ============================================================
   NEW SEO/CONVERSION SECTIONS (2026-06-19)
   - Comparison table
   - Loyalty stats
   - Device ecosystem
   - Compatible apps
   - Cities (France coverage)
   - Popular guides
   ============================================================ */

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.compare-table thead th { padding: 18px 18px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--fg-muted); background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%); border-bottom: 1px solid var(--border); }
.compare-table thead th.ct-col-pro { color: #fff; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.compare-table thead th.ct-criterion { width: 24%; }
.compare-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t-fast); }
.compare-table tbody tr:last-child { border-bottom: 0; }
.compare-table tbody tr:hover { background: #FAFBFD; }
.compare-table tbody td { padding: 16px 18px; vertical-align: middle; color: var(--fg); }
.compare-table tbody td:first-child { font-weight: 600; color: var(--blue-darker); }
.ct-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 8px; vertical-align: middle; font-weight: 800; font-size: 12px; line-height: 1; }
.ct-icon-yes { background: #DCFCE7; color: #15803D; }
.ct-icon-no { background: #FEE2E2; color: #B91C1C; }
.ct-icon-partial { background: #FEF3C7; color: #B45309; }
.ct-yes { color: #166534; font-weight: 600; }
.ct-no { color: #991B1B; }
.ct-partial { color: #92400E; }
@media (max-width: 720px) {
  .compare-wrap::after { content: "← Faites glisser →"; display: block; padding: 10px; font-size: 12px; text-align: center; color: var(--fg-soft); background: var(--blue-50); border-top: 1px solid var(--border); }
}

/* ---------- Loyalty stats ---------- */
.loyalty-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; padding: 28px; background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 100%); border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.loyalty-stat { text-align: center; padding: 6px 4px; }
.loyalty-stat + .loyalty-stat { border-left: 1px solid rgba(255,255,255,.12); }
.loyalty-stat .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); color: #fff; line-height: 1.1; margin-bottom: 6px; }
.loyalty-stat .l { display: block; font-size: 13px; color: rgba(255,255,255,.78); letter-spacing: .01em; }
@media (max-width: 720px) {
  .loyalty-stats { grid-template-columns: repeat(2, 1fr); padding: 22px; gap: 22px 18px; }
  .loyalty-stat:nth-child(2n+1) + .loyalty-stat { border-left: 1px solid rgba(255,255,255,.12); }
  .loyalty-stat:nth-child(odd) { border-left: 0; }
}

/* ---------- Device ecosystem ---------- */
.ecosystem { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; padding: 36px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.ecosystem::before { content: ""; position: absolute; top: -120px; right: -120px; width: 320px; height: 320px; background: radial-gradient(circle at center, rgba(37,99,235,.12) 0%, transparent 70%); pointer-events: none; }
.ecosystem-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-blue); }
.ecosystem-center::after { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 2px; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask-composite: xor; pointer-events: none; }
.ecosystem-core-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.ecosystem-core-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.ecosystem-core-sub { font-size: 13.5px; color: rgba(255,255,255,.82); margin-top: 6px; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.eco-device { display: flex; align-items: center; gap: 10px; padding: 14px 14px; background: #F8FAFC; border: 1px solid var(--border); border-radius: 12px; transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.eco-device:hover { transform: translateY(-2px); border-color: var(--blue); background: var(--blue-50); }
.eco-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--blue); border: 1px solid var(--border); flex-shrink: 0; overflow: hidden; }
.eco-icon svg { width: 22px; height: 22px; display: block; }
.eco-icon-samsung { width: auto; min-width: 78px; padding: 0 6px; }
.eco-icon-samsung svg { width: 64px; height: auto; max-height: 22px; }
.eco-label { font-size: 13.5px; font-weight: 600; color: var(--fg); }
@media (max-width: 900px) {
  .ecosystem { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .ecosystem-center { padding: 26px 20px; }
}
@media (max-width: 560px) {
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .eco-device { padding: 12px 10px; }
  .eco-label { font-size: 12.5px; }
}

/* ---------- Compatible apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.app-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; }
.app-icon-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; box-shadow: var(--shadow-blue); }
.app-card h3 { margin: 0 0 8px; font-size: 17px; }
.app-card p { font-size: 14px; color: var(--fg-muted); margin: 0 0 16px; }
.app-badge { display: inline-block; padding: 5px 11px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--blue-dark); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px; }
.app-badge-primary { color: #fff; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); border-color: var(--blue-dark); }
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .apps-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Cities / coverage ---------- */
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.city-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.city-card:hover { transform: translateY(-2px); border-color: var(--blue); background: var(--blue-50); }
.city-pin { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); flex-shrink: 0; transition: background var(--t-fast), color var(--t-fast); }
.city-card:hover .city-pin { background: var(--blue); color: #fff; }
.city-label { font-size: 14px; font-weight: 600; color: var(--blue-darker); }
@media (max-width: 900px) { .cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cities-grid { grid-template-columns: 1fr; } }

/* ---------- Popular guides ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); color: var(--fg); }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); color: var(--fg); }
.guide-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.guide-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15) 0%, transparent 60%); pointer-events: none; }
.guide-thumb svg { position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.guide-content { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.guide-tag { display: inline-block; align-self: flex-start; padding: 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-dark); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px; margin-bottom: 12px; }
.guide-content h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; color: var(--blue-darker); }
.guide-content p { font-size: 14px; color: var(--fg-muted); margin: 0 0 14px; flex: 1; }
.guide-link { font-size: 13.5px; font-weight: 700; color: var(--blue); transition: color var(--t-fast), transform var(--t-fast); display: inline-block; }
.guide-card:hover .guide-link { color: var(--blue-dark); transform: translateX(4px); }
@media (max-width: 900px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ============================================================
   PAYONEER-STYLE ARTICLE LAYOUT + CARD COVERS  (added 2026-07-09)
   ============================================================ */

/* --- Article-card cover image (Tutoriels hub + related grids) --- */
.article-card-thumb { background-size: cover; background-position: center; }
.article-card-thumb.has-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,22,54,.15) 0%, rgba(11,22,54,.62) 100%);
}
.article-card-thumb .num { z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,.45); }

/* --- Payoneer-style article header --- */
.article-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--fg-soft); margin-bottom: 18px; }
.article-breadcrumb a { color: var(--fg-soft); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--blue); }
.article-breadcrumb .sep { opacity: .5; }
.article-breadcrumb [aria-current] { color: var(--fg-muted); }

.article-chip { display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 16px; }

.article-byline { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; }
.article-byline .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  font-family: var(--font-display); }
.article-byline .who { display: flex; flex-direction: column; line-height: 1.35; }
.article-byline .who .name { font-weight: 700; color: var(--fg); font-size: 14.5px; }
.article-byline .who .meta { font-size: 13px; color: var(--fg-soft); }

/* --- Full-width Payoneer cover image --- */
.article-hero, img.article-hero { width: 100%; height: auto; aspect-ratio: 16/9;
  object-fit: cover; border-radius: 16px; margin: 24px 0 8px; display: block;
  box-shadow: 0 18px 50px -20px rgba(11,22,54,.35); }

/* --- Related articles ("À lire aussi") --- */
.related { padding: 48px 0 8px; border-top: 1px solid var(--border); margin-top: 40px; }
.related h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px){ .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAYONEER ARTICLE v2 — sticky TOC sidebar + related carousel
   ============================================================ */
.article-body-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px; align-items: start; max-width: 1100px; }
.article-main.prose { max-width: none; margin: 0; }

/* Sticky Table of Contents */
.article-toc-wrap { position: sticky; top: 92px; }
.article-toc { border-left: 2px solid var(--border); padding-left: 0; }
.article-toc .toc-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--fg-soft); margin: 0 0 12px 16px; }
.article-toc ul { list-style: none; margin: 0; padding: 0; }
.article-toc li { margin: 0; }
.article-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--fg-soft); font-size: 13.5px;
  line-height: 1.4; text-decoration: none; transition: color .15s, border-color .15s; }
.article-toc a:hover { color: var(--fg); }
.article-toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.article-toc a.lvl-3 { padding-left: 30px; font-size: 12.5px; }

@media (max-width: 1000px) {
  .article-body-grid { grid-template-columns: 1fr; gap: 0; }
  .article-toc-wrap { position: static; margin: 0 0 26px; }
  .article-toc { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
    background: var(--bg-soft, #f7f9fc); }
  .article-toc details > summary { cursor: pointer; font-weight: 700; color: var(--fg); list-style: none; }
  .article-toc details > summary::-webkit-details-marker { display: none; }
}

/* Related articles CAROUSEL */
.related { padding: 52px 0 8px; border-top: 1px solid var(--border); margin-top: 44px; }
.related-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.related-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.related-nav { display: flex; gap: 8px; }
.related-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--fg); font-size: 18px; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, border-color .15s, color .15s; }
.related-nav button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.related-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 4px 18px; -ms-overflow-style: none; scrollbar-width: none; }
.related-carousel::-webkit-scrollbar { display: none; }
.related-carousel > .article-card { flex: 0 0 300px; scroll-snap-align: start; }
@media (max-width: 560px){ .related-carousel > .article-card { flex-basis: 82%; } }
