/* ═══════════════════════════════════════════════════════════════════
   PRIMES WALLONIE — Design System inspiré du SPW (wallonie.be)
   Font : Nunito Sans · Rouge officiel : #ed0334
═══════════════════════════════════════════════════════════════════ */

:root {
    /* ── Couleurs Wallonie officielles ── */
    --red:          #ed0334;   /* Rouge Wallonie exact */
    --red-dark:     #c40029;
    --red-light:    #ff1a47;
    --red-pale:     #fff0f2;

    /* ── Bleu marine secondaire ── */
    --navy:         #1b3a6b;
    --navy-dark:    #0f2347;
    --navy-light:   #2c5299;
    --navy-pale:    #f0f4fb;

    /* ── Gris SPW ── */
    --grey-50:      #fafafa;
    --grey-100:     #f5f5f5;
    --grey-200:     #eeeeee;
    --grey-300:     #e0e0e0;
    --grey-500:     #9e9e9e;
    --grey-700:     #616161;
    --grey-800:     #323434;
    --grey-900:     #0b0c0c;

    /* ── Sémantique ── */
    --success:      #4caf50;
    --success-pale: #f0faf0;
    --text-dark:    var(--grey-900);
    --text-body:    var(--grey-800);
    --text-muted:   var(--grey-700);
    --bg-white:     #ffffff;
    --bg-light:     var(--grey-50);
    --bg-grey:      var(--grey-100);
    --border:       var(--grey-200);

    /* ── Élévations SPW (très subtiles) ── */
    --elev-1: 0 1px 2px rgba(0,0,0,.08);
    --elev-2: 0 2px 4px rgba(0,0,0,.08);
    --elev-3: 0 4px 8px rgba(0,0,0,.08);
    --elev-4: 0 6px 12px rgba(0,0,0,.08);
    --elev-5: 0 0 24px rgba(0,0,0,.08);

    /* ── Rayons ── */
    --r-sm:  4px;
    --r:     8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-pill:9999px;

    /* ── Autres ── */
    --t:         all .2s ease;
    --header-h:  68px;
    --container: 1200px;
    --font:      'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); color: var(--text-body); background: var(--bg-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); color: var(--text-dark); line-height: 1.3; letter-spacing: -.15px; font-weight: 700; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; display: block; }
ul    { list-style: none; }
button { font-family: var(--font); }

/* ── CONTAINER ─────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--r-pill);
    font-family: var(--font); font-weight: 700; font-size: 15px;
    cursor: pointer; transition: var(--t); border: 2px solid transparent;
    line-height: 1; white-space: nowrap;
}
.btn-red   { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover   { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(237,3,52,.3); }
.btn-navy  { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover  { background: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,58,107,.25); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red-pale); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--navy-pale); border-color: var(--navy-pale); }
.btn-lg  { padding: 16px 36px; font-size: 17px; }
.btn-sm  { padding: 9px 20px; font-size: 13px; }
.btn-block { width: 100%; }
/* Legacy aliases */
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(237,3,52,.3); }
.btn-secondary { background: transparent; color: var(--red); border-color: var(--red); }
.btn-secondary:hover { background: var(--red-pale); }

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
    position: static;
    background: #fff; border-bottom: 2px solid var(--red);
    height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font); text-decoration: none; flex-shrink: 0;
}
.logo-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(140deg, #f0153a 0%, #c20028 100%);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(237,3,52,.38);
}
.logo-icon svg { width: 26px; height: 26px; }
.logo-text { display: flex; align-items: center; }
.logo-name { font-size: 19px; font-weight: 900; color: var(--navy); letter-spacing: -.3px; }
.logo-name span { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    font-family: var(--font); font-weight: 600; font-size: 14px;
    color: var(--text-body); padding: 8px 14px; border-radius: var(--r-sm);
    transition: var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); background: var(--red-pale); }
.nav-cta { background: var(--red) !important; color: #fff !important; border-radius: var(--r-pill) !important; padding: 10px 20px !important; }
.nav-cta:hover { background: var(--red-dark) !important; }

.burger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 10px; border: none; background: none;
}
.burger span { display: block; width: 24px; height: 2.5px; background: var(--grey-800); border-radius: 2px; transition: var(--t); }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(150deg, var(--red-dark) 0%, var(--red) 60%, #ff2550 100%);
    padding: 56px 0 72px; position: relative; overflow: hidden;
}
/* Motif discret façon SPW */
.hero::after {
    content: '';
    position: absolute; right: -80px; bottom: -80px;
    width: 360px; height: 360px;
    border: 60px solid rgba(255,255,255,.07);
    border-radius: 50%; pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute; left: -40px; top: -40px;
    width: 200px; height: 200px;
    border: 40px solid rgba(255,255,255,.05);
    border-radius: 50%; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 440px; gap: 52px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
    color: #fff; padding: 6px 16px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; background: #ffe066; border-radius: 50%; flex-shrink: 0; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 { font-size: clamp(26px, 3.6vw, 44px); color: #fff; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 strong { color: #ffe066; font-weight: 800; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 24px; line-height: 1.65; max-width: 480px; }
.hero-checks { display: flex; flex-direction: column; gap: 8px; }
.hero-checks li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600; }
.hero-checks li svg { width: 16px; height: 16px; flex-shrink: 0; color: #ffe066; }

/* ── FORM CARD ──────────────────────────────────────────────────── */
.form-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--elev-5); overflow: hidden; transition: box-shadow .3s; }
@keyframes form-pulse {
  0%,100% { box-shadow: var(--elev-5); }
  40%      { box-shadow: 0 0 0 4px rgba(237,3,52,.55), 0 0 28px 6px rgba(237,3,52,.25), var(--elev-5); }
}
.form-card.form-attention { animation: form-pulse 1s ease-in-out 3; }
.form-card-header {
    background: linear-gradient(145deg, #0d2040 0%, #1b3a6b 100%);
    padding: 26px 26px 22px;
    border-bottom: 3px solid var(--red);
    text-align: center;
    position: relative; overflow: hidden;
}
.form-card-header::before {
    content: '';
    position: absolute; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.04); top: -90px; right: -60px; pointer-events: none;
}
.form-card-header h3 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 4px; position: relative; }
.form-card-header p  { color: rgba(255,255,255,.68); font-size: 12px; position: relative; }
.form-progress { margin-top: 16px; position: relative; }
.progress-bar  { height: 5px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #ff6060, #ffe066); border-radius: 3px; transition: width .5s ease; }
.progress-label { color: rgba(255,255,255,.55); font-size: 10px; margin-top: 6px; text-align: right; letter-spacing: .5px; }

.form-body { padding: 24px 24px 20px; }
.form-step { display: none; animation: fadeUp .3s ease; }
.form-step.active { display: block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.step-question {
    font-size: 15px; font-weight: 700; color: var(--text-dark);
    margin-bottom: 16px; text-align: center; line-height: 1.45;
    padding-bottom: 14px; border-bottom: 2px solid var(--grey-100);
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn {
    flex-direction: column; padding: 20px 12px 16px;
    border: 2px solid var(--grey-200);
    border-radius: var(--r-md); background: var(--grey-50); cursor: pointer;
    transition: var(--t); font-family: var(--font); font-weight: 600; font-size: 13px;
    color: var(--text-dark); display: flex; align-items: center; justify-content: center;
    gap: 10px; text-align: center; line-height: 1.35; min-height: 86px;
    --ico-l: #dbeafe; --ico-d: #1e3a8a;
}
.choice-btn:hover {
    border-color: var(--red); background: var(--red-pale); color: var(--red);
    transform: translateY(-2px); box-shadow: 0 4px 14px rgba(237,3,52,.1);
    --ico-l: #fce7f3; --ico-d: var(--red);
}
.choice-btn.selected {
    border-color: var(--red); background: var(--red); color: #fff;
    box-shadow: 0 4px 18px rgba(237,3,52,.3);
    --ico-l: rgba(255,255,255,.22); --ico-d: #fff;
}
.choice-btn svg { width: 40px; height: 40px; flex-shrink: 0; }

.form-input {
    width: 100%; padding: 13px 14px;
    border: 2px solid var(--grey-200); border-radius: var(--r-md);
    font-family: var(--font); font-size: 16px; color: var(--text-dark);
    transition: var(--t); background: var(--grey-50); -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(237,3,52,.1); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group { margin-bottom: 12px; }
.form-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: .8px; }
.form-note  { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ineligible-msg { display: none; text-align: center; padding: 16px 8px; }
.ineligible-msg p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.step-hint { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* ── FLOATING LABELS ─────────────────────────────────────────────── */
.float-group { position: relative; margin-bottom: 12px; }
.float-input {
    width: 100%; padding: 22px 14px 8px;
    border: 2px solid var(--grey-200); border-radius: var(--r-md);
    font-family: var(--font); font-size: 15px; color: var(--text-dark);
    background: var(--grey-50); transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; line-height: 1.4;
}
.float-input:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(237,3,52,.1); }
.float-label {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: var(--text-muted);
    transition: all .18s ease; pointer-events: none;
    background: transparent; font-weight: 500; white-space: nowrap;
}
.float-input:focus + .float-label,
.float-input:not(:placeholder-shown) + .float-label {
    top: 0; transform: translateY(-50%);
    font-size: 10px; font-weight: 700; color: var(--red);
    background: #fff; padding: 0 4px; left: 10px;
    text-transform: uppercase; letter-spacing: .8px; border-radius: 2px;
}

/* ── SHAKE (multi-select validation) ──────────────────────────────── */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.shake { animation: shake .4s ease; }

/* ── SECTIONS ───────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-light { background: var(--bg-light); }
.section-grey  { background: var(--bg-grey); }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title .eyebrow {
    display: inline-block; color: var(--red);
    font-weight: 700; font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 10px;
}
.section-title h2  { font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; margin-bottom: 12px; }
.section-title p   { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 16px; line-height: 1.65; }

.section-cta { text-align: center; margin-top: 36px; }

/* ── CARDS ──────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    background: #fff; border-radius: var(--r-md); padding: 28px 22px;
    box-shadow: var(--elev-2); border: 1px solid var(--grey-200);
    transition: var(--t);
}
.card:hover { box-shadow: var(--elev-4); transform: translateY(-3px); }
.card-icon {
    width: 48px; height: 48px; border-radius: var(--r); margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--red-pale);
}
.card-icon svg { width: 24px; height: 24px; color: var(--red); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
/* Aliases */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card  { background: #fff; border-radius: var(--r-md); padding: 28px 22px; box-shadow: var(--elev-2); border: 1px solid var(--grey-200); transition: var(--t); overflow: hidden; }
.benefit-card:hover { box-shadow: var(--elev-4); transform: translateY(-3px); }
.benefit-icon  { width: 48px; height: 48px; border-radius: var(--r); background: var(--red-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-icon svg { width: 24px; height: 24px; color: var(--red); }
.benefit-card-head { height: 110px; margin: -28px -22px 22px; position: relative; overflow: hidden; }
.benefit-card-head svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: block; }
.benefit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.benefit-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; text-align: center; }

/* ── STATS BAR ──────────────────────────────────────────────────── */
.stats-bar { background: var(--navy); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 12px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num   { font-size: 34px; font-weight: 800; color: #ffe066; line-height: 1; margin-bottom: 4px; white-space: nowrap; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 400; }

/* ── INCOME TABLE ───────────────────────────────────────────────── */
.income-table-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--elev-3); -webkit-overflow-scrolling: touch; }
.income-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.income-table th {
    background: var(--navy); color: #fff; padding: 13px 18px;
    text-align: center; font-size: 13px; font-weight: 700;
    white-space: nowrap; letter-spacing: .3px;
}
.income-table td { padding: 12px 18px; font-size: 14px; border-bottom: 1px solid var(--grey-200); text-align: center; vertical-align: middle; }
.income-table tr:last-child td { border-bottom: none; }
.income-table tr:nth-child(even) td { background: var(--grey-50); }
.income-table tr:hover td { background: var(--red-pale); }
.badge-pct   { display: inline-block; padding: 3px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 13px; }
.badge-green { background: var(--success-pale); color: #2e7d32; }
.badge-blue  { background: var(--navy-pale); color: var(--navy); }
.income-cat  { font-weight: 800; color: var(--red); font-size: 15px; }
.table-scroll-hint { display: none; text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--red); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; cursor: pointer;
    font-size: 14px; font-weight: 700; color: var(--text-dark);
    gap: 12px; line-height: 1.45; user-select: none;
}
.faq-q:hover { color: var(--red); }
.faq-arrow {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--grey-100); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; transition: var(--t);
}
.faq-arrow svg { width: 14px; height: 14px; color: var(--grey-700); transition: transform .3s; }
.faq-item.open .faq-arrow { background: var(--red); }
.faq-item.open .faq-arrow svg { color: #fff; transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14px; color: var(--text-body); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 500px; }

/* ── CTA BANDS ──────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 60px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(20px, 2.8vw, 34px); font-weight: 700; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 28px; }

.mini-cta-band {
    background: var(--red-pale); border-top: 1px solid rgba(237,3,52,.15);
    border-bottom: 1px solid rgba(237,3,52,.15); padding: 28px 0; text-align: center;
}
.mini-cta-band p { color: var(--red-dark); font-weight: 600; font-size: 15px; margin-bottom: 14px; }

/* ── PAGE HERO (sous-pages) ─────────────────────────────────────── */
.page-hero {
    background: linear-gradient(150deg, var(--red-dark) 0%, var(--red) 60%, #ff2550 100%);
    padding: 0 0 64px; position: relative; overflow: hidden;
}
.page-hero::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 280px; height: 280px; border: 48px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; padding-top: 44px; position: relative; z-index: 1; }
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28);
    color: #fff; padding: 5px 14px; border-radius: var(--r-pill);
    font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(22px, 3vw, 38px); color: #fff; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.page-hero h1 em { color: #ffe066; font-style: normal; }
.page-hero-sub { font-size: 15px; color: rgba(255,255,255,.87); margin-bottom: 22px; line-height: 1.65; }
.page-hero-checks { display: flex; flex-direction: column; gap: 9px; }
.page-hero-checks li { display: flex; align-items: flex-start; gap: 9px; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; }
.page-hero-checks li svg { width: 16px; height: 16px; flex-shrink: 0; color: #ffe066; margin-top: 2px; }

/* BREADCRUMB */
.breadcrumb { padding: 12px 0; background: rgba(0,0,0,.12); position: relative; z-index: 1; }
.breadcrumb ul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb li { font-size: 12px; color: rgba(255,255,255,.6); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 6px; }
.breadcrumb li:last-child { color: rgba(255,255,255,.95); font-weight: 600; }
.breadcrumb a { color: rgba(255,255,255,.72); }
.breadcrumb a:hover { color: #fff; }

/* ── STEPS ──────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 28px; left: calc(16.66% + 16px); right: calc(16.66% + 16px); height: 2px; background: var(--grey-200); z-index: 0; }
.step-card { background: #fff; border-radius: var(--r-md); padding: 28px 20px; text-align: center; border: 1px solid var(--grey-200); position: relative; z-index: 1; transition: var(--t); }
.step-card:hover { box-shadow: var(--elev-3); transform: translateY(-3px); }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(237,3,52,.3); }
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── TWO-COL ────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.two-col-img { border-radius: var(--r-lg); background: var(--navy-pale); aspect-ratio: 4/3; overflow: hidden; position: relative; }
.two-col-img svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: block; }

/* ── FEATURES LIST ──────────────────────────────────────────────── */
.features-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-ico { width: 44px; height: 44px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-ico-red   { background: var(--red-pale); }
.feature-ico-red   svg { color: var(--red); }
.feature-ico-green { background: var(--success-pale); }
.feature-ico-green svg { color: #2e7d32; }
.feature-ico-navy,
.feature-ico-blue  { background: var(--navy-pale); }
.feature-ico-navy  svg,
.feature-ico-blue  svg { color: var(--navy); }
.feature-ico svg   { width: 20px; height: 20px; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.feature-item p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); padding: 52px 0 24px; border-top: 3px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 12px; line-height: 1.7; }
.footer-logo { color: #fff; font-weight: 800; font-size: 17px; }
.footer-logo span { color: #ffe066; }
.footer-col h4 { color: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 14px; transition: var(--t); }
.footer-col ul li a:hover { color: #ffe066; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: rgba(255,255,255,.3); font-size: 12px; }
.footer-disclaimer { color: rgba(255,255,255,.3); font-size: 11px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 20px; padding-top: 16px; line-height: 1.7; }

/* ── LEGAL ──────────────────────────────────────────────────────── */
.legal-content { max-width: 820px; margin: 0 auto; padding: 52px 24px; }
.legal-content h1 { font-size: 28px; margin-bottom: 6px; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 17px; color: var(--navy); font-weight: 700; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy-pale); }
.legal-section p, .legal-section ul { font-size: 15px; color: var(--text-body); line-height: 1.8; }
.legal-section ul { padding-left: 20px; list-style: disc; }
.legal-section ul li { margin-bottom: 6px; }
.legal-section p + p { margin-top: 9px; }

/* ── MERCI ──────────────────────────────────────────────────────── */
.merci-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; background: var(--bg-light); padding: 48px 16px; }
.merci-card { background: #fff; border-radius: var(--r-lg); padding: 52px 40px; text-align: center; max-width: 540px; width: 100%; box-shadow: var(--elev-5); }
.merci-icon { width: 72px; height: 72px; background: var(--success-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.merci-icon svg { width: 36px; height: 36px; color: var(--success); }
.merci-card h1 { font-size: 28px; margin-bottom: 12px; }
.merci-card > p { color: var(--text-muted); font-size: 15px; }
.merci-steps { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; text-align: left; }
.merci-step { display: flex; align-items: center; gap: 14px; background: var(--bg-light); border-radius: var(--r); padding: 12px 16px; }
.merci-step-num { width: 28px; height: 28px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.merci-step p { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* ── AVANTAGES ──────────────────────────────────────────────────── */
.avantages-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.avantage-item {
    background: var(--red); border-radius: var(--r-lg);
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(237,3,52,.25);
    border: 1px solid transparent;
    transition: box-shadow .25s, transform .25s;
    display: flex; flex-direction: column; gap: 14px;
}
.avantage-item:hover {
    box-shadow: 0 10px 36px rgba(237,3,52,.4);
    transform: translateY(-4px);
}
.avantage-top  { display: flex; align-items: center; gap: 16px; }
.avantage-ico  {
    width: 54px; height: 54px; border-radius: var(--r-md);
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.avantage-ico svg { width: 26px; height: 26px; color: #fff; stroke-width: 2; }
.avantage-item h3 { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.3; }
.avantage-item p  { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.75; margin: 0; }

/* ── COMMENT ÇA MARCHE (cards avec accent rouge) ─────────────────── */
/* ── COMMENT ÇA MARCHE — dark modern ───────────────────────────── */
.hiw-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.hiw-card {
    background: #132d57; padding: 48px 28px;
    position: relative; overflow: hidden;
    transition: background .3s;
}
.hiw-card:nth-child(2),
.hiw-card:nth-child(4) { background: #1b3a6b; }
.hiw-card + .hiw-card { border-left: 1px solid rgba(255,255,255,.07); }
.hiw-card:hover { background: #1f4480; }
/* ghost big number */
.hiw-card::before {
    content: attr(data-n);
    position: absolute; bottom: -24px; right: 12px;
    font-size: 150px; font-weight: 900; color: #fff;
    opacity: .04; line-height: 1; pointer-events: none;
    font-family: var(--font);
}
.hiw-badge {
    display: inline-flex; align-items: center;
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; padding: 5px 14px;
    border-radius: 30px; margin-bottom: 28px;
}
.hiw-ico {
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.hiw-ico svg { width: 90px; height: 90px; }
.hiw-card h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3; }
.hiw-card p  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.75; }

/* ── PRIME CARDS (types de primes) ──────────────────────────────── */
.prime-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prime-card {
    background: #fff; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
}
.prime-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.prime-card-head {
    height: 150px; position: relative; overflow: hidden;
}
.prime-card-head::before, .prime-card-head::after { display: none; }
.prime-card-head svg {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0; display: block;
}
.prime-card-body {
    padding: 24px 20px 28px; flex: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.prime-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.prime-card-body p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.prime-card-amount {
    font-size: 13px; font-weight: 800; color: var(--text-dark);
    background: var(--grey-100); padding: 5px 14px;
    border-radius: 20px; margin-bottom: 14px;
}
.prime-card-cta {
    font-size: 13px; font-weight: 700; color: var(--red);
    display: inline-flex; align-items: center; gap: 4px;
}
.prime-card-cta svg { width: 13px; height: 13px; transition: transform .2s; }
.prime-card:hover .prime-card-cta svg { transform: translateX(3px); }

@media (max-width: 640px) {
    .avantages-grid { grid-template-columns: 1fr; }
    .avantage-item  { padding: 24px 20px; }
    .prime-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hero-inner, .page-hero-inner { grid-template-columns: 1fr 400px; gap: 36px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
}

@media (max-width: 880px) {
    .hero-inner, .page-hero-inner { grid-template-columns: 1fr; }
    .hero-inner .form-card,
    .page-hero-inner .form-card { max-width: 520px; margin: 0 auto; width: 100%; }
    .two-col { grid-template-columns: 1fr; }
    .two-col-img { display: none; }
    .prime-cards { grid-template-columns: 1fr 1fr; }
    .hiw-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .hiw-card { text-align: center; }
    .hiw-ico { margin: 0 auto 20px; }
    .hiw-badge { margin: 0 auto 28px; }
    .hiw-card:nth-child(odd) { border-left: none; }
    .hiw-card:nth-child(3),
    .hiw-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,.07); }
}

@media (max-width: 640px) {
    :root { --header-h: 60px; }

    .section { padding: 44px 0; }
    .section-title { margin-bottom: 28px; }
    .container { padding: 0 10px; }

    /* HIW — 1 colonne sur mobile */
    .hiw-grid { grid-template-columns: 1fr; border-radius: var(--r-md); }
    .hiw-card { padding: 32px 28px; border-left: none !important; border-top: 1px solid rgba(255,255,255,.07) !important; }
    .hiw-card:first-child { border-top: none !important; }

    /* Hero */
    .hero { padding: 24px 0 32px; }
    .hero-sub { display: none; }
    .hero-eyebrow { font-size: 11px; padding: 5px 12px; }
    .hero-inner > div:first-child { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-checks li { justify-content: center; }
    .hero-inner .form-card,
    .page-hero-inner .form-card { max-width: 100%; border-radius: var(--r-md); }

    /* Sub-page hero */
    .page-hero { padding: 0 0 32px; }
    .page-hero-inner { padding-top: 24px; gap: 20px; }
    .page-hero-inner > div:first-child { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .page-hero-checks li { justify-content: center; }

    /* Form */
    .form-card-header { padding: 18px 16px 16px; }
    .form-card-header h3 { font-size: 15px; }
    .form-body { padding: 16px 14px 14px; }
    .step-question { font-size: 14px; margin-bottom: 12px; padding-bottom: 12px; }
    .choice-btn { padding: 16px 8px 12px; font-size: 12px; gap: 8px; min-height: 74px; }
    .choice-btn svg { width: 28px; height: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .form-input { padding: 12px 12px; font-size: 16px; }
    .btn-block { padding: 15px; font-size: 15px; }

    /* Nav */
    .nav-links {
        display: none; position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: #fff; flex-direction: column;
        padding: 12px 12px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
        gap: 3px; z-index: 199; border-top: 2px solid var(--red);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; font-size: 15px; border-radius: var(--r-sm); }
    .nav-cta { margin-top: 8px !important; padding: 14px !important; text-align: center; border-radius: var(--r-pill) !important; }
    .burger { display: flex; }

    /* Stats — 3 colonnes sur toutes les tailles pour éviter le retour à la ligne */
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-item { border-right: 1px solid rgba(255,255,255,.12); border-bottom: none; padding: 10px 6px; }
    .stat-item:last-child { border-right: none; }
    .stat-num { font-size: 22px; }
    .stat-label { font-size: 11px; }

    /* Benefits */
    .benefits-grid { grid-template-columns: 1fr; gap: 12px; }
    .benefit-card { padding: 20px 16px; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Table — layout carte, zéro scroll horizontal */
    .income-table-wrap { overflow: visible; box-shadow: none; border-radius: 0; background: transparent; }
    .income-table { display: block; min-width: 0; }
    .income-table thead { display: none; }
    .income-table tbody { display: flex; flex-direction: column; gap: 8px; }
    .income-table tr {
        display: flex; align-items: center; gap: 10px;
        background: #fff; border: 1px solid var(--grey-200);
        border-left: 4px solid var(--red);
        border-radius: var(--r); padding: 12px 14px;
    }
    .income-table tr:nth-child(even) td { background: none; }
    .income-table td { border: none; padding: 0; font-size: 13px; display: block; }
    .income-table td:nth-child(1) { width: 28px; flex-shrink: 0; }
    .income-table td:nth-child(2) { flex: 1; font-size: 12px; color: var(--text-muted); }
    .income-table td:nth-child(3) { flex-shrink: 0; }
    .income-table td:nth-child(n+4) { display: none; }
    .table-scroll-hint { display: none; }

    /* FAQ */
    .faq-q { padding: 14px 16px; font-size: 13px; }
    .faq-a-inner { padding: 0 16px 14px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-col { border-top: 1px solid rgba(255,255,255,.07); padding-top: 18px; }
    .footer-brand { border-top: none !important; padding-top: 0; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* CTA */
    .cta-band { padding: 44px 0; }
    .btn-lg { font-size: 15px; padding: 14px 28px; }

    /* Legal */
    .legal-content { padding: 32px 14px; }
    .merci-card { padding: 32px 16px; }
}

/* ── Consent tracking checkbox ───────────────────────────────────────────────── */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
}
.consent-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary, #ed0334);
    cursor: pointer;
}
.consent-check a { color: var(--primary, #ed0334); }

/* ── Focus visible (keyboard accessibility) ─────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--primary, #ed0334);
    outline-offset: 3px;
    border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary, #ed0334);
    outline-offset: 3px;
}

/* ── Submit button loading state ─────────────────────────────────────────────── */
.btn-loading { opacity: .75; cursor: not-allowed; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading .spin { animation: spin .8s linear infinite; }
