/* =========================================================
   CRÉDIT PRO — Design System
   Identité : Fintech B2B · confiance bancaire · moderne
   Palette  : Navy profond · Bleu électrique · Vert validation
   Typo     : Sora (display) · Inter (corps)
   ========================================================= */

:root {
    /* Palette */
    --navy:        #0A1330;
    --navy-2:      #111E45;
    --ink:         #0E1B3D;

    --primary:     #1E4FA3;
    --primary-d:   #163C7E;
    --primary-l:   #4F79C7;
    --primary-soft:#EAF0F9;

    --accent:      #1A7F5A;   /* vert sobre "accordé" */
    --accent-d:    #136046;
    --accent-soft: #E7F1EC;

    --gold:        #C2A36B;   /* accent premium discret */
    --gold-l:      #D8BE8A;

    --bg:          #F5F7FB;
    --bg-2:        #FFFFFF;
    --card:        #FFFFFF;
    --text:        #16223D;
    --muted:       #5C6B89;
    --muted-2:     #8593AE;
    --line:        #E3EAF5;
    --line-2:      #EEF2FA;

    /* Compat dashboard.css */
    --gris-clair:  #F5F7FB;
    --texte:       #16223D;
    --bleu:        #1E4FA3;
    --bleu-dark:   #163C7E;
    --bleu-light:  #4F79C7;
    --bleu-soft:   #EAF0F9;
    --rouge:       #1A7F5A;
    --rouge-soft:  #E7F1EC;
    --rouge-dark:  #136046;
    --blanc:       #FFFFFF;
    --border:      #E3EAF5;
    --gris:        #5C6B89;
    --gris-fonce:  #33425E;
    --radius:      10px;
    --transition:  all .2s ease;
    --ombre:       0 1px 3px rgba(14, 27, 61, 0.07);
    --ombre-forte: 0 24px 60px rgba(10, 19, 48, 0.28);

    /* Typo */
    --font-display: 'Sora', system-ui, -apple-system, sans-serif;
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container: 1180px;
    --section-y: 104px;

    /* Rayons */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;

    /* Ombres */
    --shadow-sm:   0 1px 3px rgba(14, 27, 61, 0.06);
    --shadow-md:   0 10px 30px rgba(14, 27, 61, 0.08);
    --shadow-lg:   0 30px 70px rgba(10, 19, 48, 0.18);
    --shadow-card: 0 2px 16px rgba(14, 27, 61, 0.05);
}

/* ============ RESET ============ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-d); }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ TYPO ============ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; }
p  { margin: 0 0 1em; }

.highlight { color: var(--primary); }
.accent    { color: var(--accent-d); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

/* ============ LAYOUT ============ */

.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }
section { padding: var(--section-y) 0; }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ============ BOUTONS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 28px;
    font-family: var(--font-sans);
    font-size: 0.97rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .22s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 79, 163, 0.18);
}
.btn-primary:hover {
    background: var(--primary-d);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 79, 163, 0.24);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.btn-ghost-light {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
}
.btn-ghost-light:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-light {
    background: #fff;
    color: var(--primary-d);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* ============ NAV ============ */

.site-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: block;
    box-shadow: 0 6px 16px rgba(14, 35, 80, 0.35);
}
.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.18rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.brand-text span { color: var(--gold-l); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone {
    color: rgba(255,255,255,0.82);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 7px;
}
.nav-phone:hover { color: #fff; }

/* ============ HERO ============ */

.hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    padding: 132px 0 96px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(70vw 70vw at 82% -20%, rgba(40,82,150,0.30), transparent 62%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 78%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.hero-inner > * { min-width: 0; } /* évite le débordement de grille (blowout) */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(232,238,250,0.92);
    margin-bottom: 26px;
}
.hero-badge .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold-l);
    box-shadow: 0 0 0 0 rgba(216,190,138,0.6);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(216,190,138,0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(216,190,138,0); }
    100% { box-shadow: 0 0 0 0 rgba(216,190,138,0); }
}

.hero h1 { color: #fff; margin-bottom: 22px; font-weight: 700; }
.hero h1 .highlight {
    color: var(--gold-l);
    -webkit-text-fill-color: var(--gold-l);
}
.hero-lead {
    font-size: 1.16rem;
    line-height: 1.65;
    color: rgba(226,233,247,0.78);
    max-width: 520px;
    margin-bottom: 30px;
}
.checklist { display: flex; flex-direction: column; gap: 13px; margin-bottom: 34px; }
.checklist li {
    display: flex; align-items: center; gap: 12px;
    font-size: 1rem;
    color: rgba(232,238,250,0.92);
    font-weight: 500;
}
.checklist li .ck {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(216,190,138,0.5);
    color: var(--gold-l);
    display: flex; align-items: center; justify-content: center;
}
.checklist li .ck svg { width: 12px; height: 12px; }

.hero-trustline {
    display: flex; align-items: center; gap: 18px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-avatars { display: flex; }
.hero-avatars span {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--navy);
    margin-left: -11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; color: #fff;
    font-family: var(--font-display);
}
.hero-avatars span:first-child { margin-left: 0; }
.ha-1 { background: #2563EB; } .ha-2 { background: #15B981; }
.ha-3 { background: #7C5CFC; } .ha-4 { background: #F59E0B; }
.hero-trustline .stars { color: var(--gold-l); font-size: 0.95rem; letter-spacing: 1px; }
.hero-trustline .t-note { font-size: 0.85rem; color: rgba(226,233,247,0.7); }
.hero-trustline .t-note strong { color: #fff; font-weight: 700; }

/* ============ FORM CARD (hero) ============ */

.quiz-form-card {
    background: var(--card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--text);
}
.quiz-form-header {
    padding: 26px 30px 20px;
    background: linear-gradient(180deg, #fff, var(--bg));
    border-bottom: 1px solid var(--line-2);
}
.quiz-form-header h2 {
    font-size: 1.3rem; margin: 0 0 4px; color: var(--ink);
}
.quiz-form-header p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.quiz-form-header .secure-tag {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 12px;
    font-size: 0.76rem; font-weight: 500; color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 5px 11px; border-radius: 999px;
}
.secure-tag svg { width: 13px; height: 13px; color: var(--accent-d); }
.quiz-form-body { padding: 24px 30px 30px; }

/* Progress */
.progress {
    position: relative;
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    margin: 6px 0 28px;
}
.progress-bar {
    position: absolute; inset: 0 auto 0 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-l));
    border-radius: 999px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}
.progress-label {
    position: absolute; top: -22px; right: 0;
    font-size: 0.74rem; font-weight: 600; color: var(--muted);
    letter-spacing: 0.04em; text-transform: uppercase;
}

/* Steps */
.quiz-step { display: none; animation: fadeIn .35s ease; }
.quiz-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.quiz-question {
    font-family: var(--font-display);
    font-size: 1.18rem; font-weight: 600;
    margin: 0 0 18px; color: var(--ink); line-height: 1.3;
}
.quiz-subtitle { font-size: 0.9rem; color: var(--muted); margin: -10px 0 22px; }

/* Options */
.quiz-options { display: flex; flex-direction: column; gap: 9px; }
.quiz-options.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quiz-option { cursor: pointer; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card {
    display: flex; align-items: center; gap: 13px;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 0.95rem; color: var(--text);
    transition: all .16s ease;
}
.opt-icon { display: none; }
.opt-text { flex: 1; font-weight: 500; }
.opt-card::after {
    content: '';
    flex-shrink: 0;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--line);
    transition: all .16s ease;
}
.quiz-option:hover .opt-card { border-color: var(--primary-l); background: #fff; }
.quiz-option input:checked + .opt-card {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.quiz-option input:checked + .opt-card::after {
    border-color: var(--primary);
    background: var(--primary)
        radial-gradient(circle, #fff 32%, transparent 36%);
}
.quiz-option input:focus-visible + .opt-card { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Coordonnées */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
    font-size: 0.78rem; font-weight: 600; color: var(--ink);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg-2);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-size: 1rem; color: var(--text);
    transition: all .18s ease;
}
.form-field input::placeholder { color: var(--muted-2); }
.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
}
.form-field.field-valid input { border-color: var(--accent); }
.form-field.field-invalid input { border-color: #E5484D; background: #FEF2F2; }
.field-error { font-size: 0.76rem; color: #E5484D; margin-top: 2px; font-weight: 500; }

.consent { margin-top: 2px; }
.check-label {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.84rem; line-height: 1.5; color: var(--muted); cursor: pointer;
}
.check-label a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.check-label input[type="checkbox"] {
    flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px;
    accent-color: var(--primary); cursor: pointer;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Nav quiz */
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.submit-btn { flex: 1; }
.form-reassurance {
    margin-top: 16px; text-align: center;
    font-size: 0.78rem; color: var(--muted-2);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============ LOGOS / TRUST STRIP ============ */

.logos-strip {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-2);
    padding: 30px 0;
}
.logos-inner {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 14px 44px;
}
.logos-inner .lbl {
    font-size: 0.8rem; font-weight: 600; color: var(--muted-2);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.logos-inner .logo-item {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.05rem; color: var(--muted);
    opacity: 0.7;
    display: inline-flex; align-items: center; gap: 8px;
}

/* ============ PARTENAIRES BANCAIRES (carrousel) ============ */
.partners {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-2);
    padding: 34px 0;
}
.partners-label {
    text-align: center; color: var(--muted);
    font-size: 0.92rem; margin: 0 0 24px;
}
.partners-label strong { color: var(--ink); font-weight: 600; }

.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: cp-marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.plogo {
    flex: 0 0 auto;
    height: 66px;
    margin: 0 11px;
    padding: 0 26px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.plogo img {
    max-height: 38px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    display: block;
}
@keyframes cp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 600px) {
    .plogo { height: 58px; padding: 0 18px; margin: 0 8px; }
    .plogo img { max-height: 32px; max-width: 116px; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .marquee { overflow-x: auto; }
}

/* ============ TYPES DE FINANCEMENT ============ */

.types { background: var(--bg); }
.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.type-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.type-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
}
.type-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.type-card:hover::before { transform: scaleX(1); }
.type-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.type-icon svg { width: 24px; height: 24px; }
.type-card:hover .type-icon { border-color: var(--primary-l); color: var(--primary-d); }
.type-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.type-card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 14px; line-height: 1.6; }
.type-tag {
    display: inline-block;
    font-size: 0.76rem; font-weight: 600; color: var(--primary-d);
    background: var(--primary-soft);
    padding: 4px 11px; border-radius: 999px;
}

/* ============ COMMENT ÇA MARCHE ============ */

.how { background: var(--bg-2); }
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    position: relative;
}
.step { position: relative; padding-top: 8px; }
.step-num {
    width: 54px; height: 54px; border-radius: 16px;
    background: var(--ink); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(14,27,61,0.18);
}
.step:nth-child(2) .step-num { background: var(--primary); box-shadow: 0 10px 24px rgba(37,99,235,0.3); }
.step:nth-child(3) .step-num { background: var(--accent); box-shadow: 0 10px 24px rgba(21,185,129,0.3); }
.step h3 { margin: 0 0 8px; font-size: 1.22rem; }
.step p { color: var(--muted); margin: 0; line-height: 1.65; }

/* ============ STATS BAND ============ */

.stats-band {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(50vw 50vw at 80% 120%, rgba(37,99,235,0.3), transparent 60%);
}
.stats-grid {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700;
    line-height: 1; margin-bottom: 10px;
    color: #fff;
}
.stat-num::after {
    content: ''; display: block;
    width: 28px; height: 2px; margin: 14px auto 0;
    background: var(--gold); border-radius: 2px;
}
.stat-label { color: rgba(226,233,247,0.68); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; }

/* ============ TÉMOIGNAGES ============ */

.testimonials { background: var(--bg); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-card);
}
.tcard .stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 14px; }
.tquote { font-size: 1rem; line-height: 1.65; color: var(--text); margin: 0 0 22px; }
.tauthor { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.tavatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
    flex-shrink: 0;
}
.tav-1 { background: var(--primary); } .tav-2 { background: var(--accent); } .tav-3 { background: #7C5CFC; }
.tauthor strong { display: block; font-size: 0.92rem; color: var(--ink); }
.tauthor span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 1px; }

/* ============ FAQ ============ */

.faq { background: var(--bg-2); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: all .2s ease;
}
.faq-item[open] { background: #fff; border-color: var(--primary-l); box-shadow: var(--shadow-card); }
.faq-item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 20px 24px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    flex-shrink: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary);
    border-radius: 8px; font-size: 1.2rem; font-weight: 600;
    transition: all .25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-body { padding: 0 24px 22px; color: var(--muted); line-height: 1.7; }
.faq-body p { margin: 0; }

/* ============ CTA FINAL ============ */

.final-cta {
    background: var(--navy);
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.final-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(60vw 60vw at 50% -30%, rgba(40,82,150,0.32), transparent 62%);
}
.final-cta .btn-light { border: 1px solid var(--gold); }
.final-cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.88); font-size: 1.12rem; margin-bottom: 32px; }
.final-cta .micro { margin-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.72); }

/* ============ FOOTER ============ */

.footer { background: var(--navy); color: rgba(226,233,247,0.6); padding: 70px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer .brand-text { font-size: 1.2rem; }
.footer-tag { color: rgba(226,233,247,0.5); line-height: 1.6; max-width: 320px; margin: 18px 0 0; font-size: 0.9rem; }
.footer-grid h4 {
    font-family: var(--font-sans); color: #fff; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: rgba(226,233,247,0.62); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem; color: rgba(226,233,247,0.4); text-align: center; line-height: 1.7;
}

/* ============ PAGE SUCCESS / ERROR ============ */

.success-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    background: var(--navy);
    position: relative; overflow: hidden;
}
.success-page::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(50vw 50vw at 50% 0%, rgba(37,99,235,0.3), transparent 60%);
}
.success-card {
    position: relative;
    background: #fff; color: var(--text);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    max-width: 540px; padding: 56px 48px; text-align: center;
}
.success-icon {
    width: 76px; height: 76px; border-radius: 50%;
    margin: 0 auto 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-d));
    box-shadow: 0 14px 30px rgba(21,185,129,0.4);
}
.error-card .success-icon { background: linear-gradient(135deg, #E5484D, #C13338); box-shadow: 0 14px 30px rgba(229,72,77,0.4); }
.success-card h1 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
.success-card p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.success-card strong { color: var(--ink); font-weight: 600; }
.success-steps {
    display: flex; flex-direction: column; gap: 12px;
    text-align: left; margin: 28px 0; padding: 0;
}
.success-steps li {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.92rem; color: var(--text);
}
.success-steps .ck {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent-soft); color: var(--accent-d);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 980px) {
    :root { --section-y: 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero { padding: 110px 0 72px; }
    .nav-phone { display: none; }
    .types-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .tgrid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
    :root { --section-y: 56px; }
    .hero { padding: 96px 0 56px; }
    .hero h1 { font-size: 2.1rem; }
    .hero-lead { font-size: 1.05rem; }
    .quiz-form-header { padding: 22px 22px 16px; }
    .quiz-form-body { padding: 20px 22px 26px; }
    .quiz-options.grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .quiz-nav { flex-direction: column-reverse; gap: 9px; }
    .quiz-nav .btn { width: 100%; }
    .types-grid { grid-template-columns: 1fr; }
    .success-card { padding: 44px 26px; }
    .hero-trustline { gap: 12px; }
}

/* ============ PRÉFÉRENCES ============ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
::selection { background: var(--primary); color: #fff; }

/* ============ BOUTON EN CHARGEMENT ============ */
.btn-loading { opacity: 0.92; cursor: progress; }
.btn-spinner {
    display: inline-block; width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    border-radius: 50%; vertical-align: -2px; margin-right: 8px;
    animation: cp-spin 0.7s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* =========================================================
   PAGE DÉPÔT DE DOCUMENTS
   ========================================================= */

.site-nav-solid {
    position: relative;
    background: var(--navy);
}

.doc-hero {
    background: var(--navy);
    color: #fff;
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}
.doc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(60vw 50vw at 85% -40%, rgba(40,82,150,0.30), transparent 62%);
    pointer-events: none;
}
.doc-hero > .container { position: relative; }
.doc-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.doc-hero h1 .highlight { color: var(--gold-l); -webkit-text-fill-color: var(--gold-l); }
.doc-hero p { color: rgba(226,233,247,0.78); max-width: 620px; margin: 0; font-size: 1.04rem; }
.doc-hero .hero-badge { margin-bottom: 20px; }

.doc-page { padding: 56px 0 80px; }
.doc-page > .container { max-width: 820px; }

.doc-form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    padding: 40px 40px 36px;
}

.doc-alert {
    background: #FEF2F2;
    color: #C13338;
    border: 1px solid #F5C6C7;
    border-radius: var(--r-sm);
    padding: 13px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.doc-section { margin-bottom: 14px; }
.doc-section + .doc-section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line-2); }
.doc-section-head {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px;
}
.doc-step {
    flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--ink); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.doc-section-head h2 { font-size: 1.3rem; margin: 0 0 3px; }
.doc-section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.doc-group { margin-bottom: 22px; }
.doc-group-title {
    font-family: var(--font-sans);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); margin: 0 0 12px;
    display: flex; align-items: center; gap: 10px;
}
.doc-optional {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--muted-2); text-transform: none;
    background: var(--bg); border: 1px solid var(--line);
    padding: 2px 9px; border-radius: 999px;
}
.doc-note {
    margin: -2px 0 12px;
    font-size: 0.83rem; line-height: 1.5; color: var(--muted);
    background: var(--bg);
    border-left: 3px solid var(--primary-l);
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
}
.doc-note strong { color: var(--ink); font-weight: 600; }

.doc-uploads { display: flex; flex-direction: column; gap: 12px; }
.doc-uploads.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.file-drop {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 15px 17px;
    background: var(--bg-2);
    border: 1.5px dashed var(--line);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s ease;
}
.file-drop:hover { border-color: var(--primary-l); background: #fff; }
.file-drop input[type="file"] {
    position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none;
}
.fd-icon {
    flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--line);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.fd-icon svg { width: 20px; height: 20px; }
.fd-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fd-text strong { font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.fd-hint {
    font-size: 0.78rem; color: var(--muted); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fd-badge {
    flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: none; align-items: center; justify-content: center;
}
.fd-badge svg { width: 13px; height: 13px; }
.file-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.file-drop.has-file .fd-badge { display: flex; }
.file-drop.has-file .fd-icon { border-color: var(--accent); color: var(--accent-d); }
.file-drop.fd-error { border-color: #E5484D; background: #FEF2F2; }
.file-drop.fd-error .fd-hint { color: #C13338; }

/* Encadré explicatif du selfie */
.selfie-guide {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 20px;
    margin-bottom: 12px;
}
.selfie-illu {
    flex-shrink: 0;
    width: 150px;
}
.selfie-illu.selfie-illu-lg { width: 200px; }
.selfie-illu svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.selfie-text { flex: 1; }
.selfie-text p { margin: 0 0 8px; font-size: 0.94rem; color: var(--ink); }
.selfie-text ul { display: flex; flex-direction: column; gap: 5px; }
.selfie-text li {
    position: relative; padding-left: 18px;
    font-size: 0.85rem; color: var(--muted); line-height: 1.45;
}
.selfie-text li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.selfie-text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
    .selfie-guide { flex-direction: column; text-align: center; }
    .selfie-illu { width: 180px; }
    .selfie-text li { text-align: left; }
}

.doc-consent { margin: 30px 0 22px; }
.doc-success { max-width: 560px; margin: 0 auto; }

@media (max-width: 600px) {
    .doc-form-card { padding: 28px 22px 26px; }
    .doc-uploads.grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
