/* =========================================================
   DOLMAN — Design System v3
   Identité : corporate fintech · blanc · bleu profond · net
   Typo     : Plus Jakarta Sans (display) · Instrument Sans (corps)
   ========================================================= */

:root {
    /* Palette */
    --night:       #10284E;   /* bleu profond (bandeaux, footer) */
    --night-2:     #173764;
    --ink:         #0F1D33;

    --primary:     #1D5BD6;   /* bleu action */
    --primary-d:   #1747A8;
    --primary-l:   #4F82E8;
    --primary-soft:#EAF1FD;

    --gold:        #6FA8FF;   /* accent clair (sur fonds sombres) */
    --gold-d:      #2563EB;
    --gold-text:   #1747A8;
    --gold-soft:   #EAF1FD;

    --accent:      #1D5BD6;
    --accent-d:    #1747A8;
    --accent-soft: #EAF1FD;

    --bg:          #F6F8FB;
    --bg-2:        #FFFFFF;
    --card:        #FFFFFF;
    --text:        #334155;
    --muted:       #64748B;
    --muted-2:     #94A3B8;
    --line:        #E3E8F0;
    --line-2:      #EDF1F7;

    --danger:      #DC2626;
    --danger-bg:   #FEF2F2;

    /* Compat dashboard.css */
    --gris-clair:  #F6F8FB;
    --texte:       #334155;
    --navy:        #10284E;
    --bleu:        #1D5BD6;
    --bleu-dark:   #1747A8;
    --bleu-light:  #4F82E8;
    --bleu-soft:   #EAF1FD;
    --rouge:       #2563EB;
    --rouge-soft:  #EAF1FD;
    --rouge-dark:  #1747A8;
    --blanc:       #FFFFFF;
    --border:      #E3E8F0;
    --gris:        #64748B;
    --gris-fonce:  #475569;
    --radius:      10px;
    --transition:  all .2s ease;
    --ombre:       0 1px 3px rgba(15, 29, 51, 0.07);
    --ombre-forte: 0 24px 60px rgba(16, 40, 78, 0.25);

    /* Typo */
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-sans:    'Instrument Sans', 'Segoe UI', system-ui, sans-serif;

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

    /* Rayons */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;

    /* Ombres */
    --shadow-sm:   0 1px 2px rgba(15, 29, 51, 0.05);
    --shadow-md:   0 12px 32px rgba(15, 29, 51, 0.09);
    --shadow-lg:   0 28px 64px rgba(16, 40, 78, 0.14);
    --shadow-card: 0 1px 3px rgba(15, 29, 51, 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.14;
    letter-spacing: -0.022em;
    margin: 0 0 0.5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.35rem); font-weight: 700; }
p  { margin: 0 0 1em; }

h1 em, h2 em { font-style: normal; color: var(--primary); }

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid #D3E2FA;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

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

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

.section-head { max-width: 700px; margin: 0 0 52px; text-align: left; }
.section-head .eyebrow { justify-content: flex-start; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 91, 214, 0.25);
}
.btn-primary:hover {
    background: var(--primary-d);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(23, 71, 168, 0.3);
}
.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.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(--night);
}
.btn-light:hover { background: var(--primary-soft); color: var(--night); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 29, 51, 0.25); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }

/* ============ NAV (héritée, peu utilisée) ============ */

.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: 10px; display: block; }
.brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.18rem;
    color: #fff;
    letter-spacing: 0.01em;
}
.brand-text span { color: var(--gold); }
.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(--bg);
    color: var(--ink);
    padding: 72px 0 88px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(48vw 36vw at 90% -10%, rgba(29,91,214,0.07), transparent 60%),
        radial-gradient(40vw 40vw at -8% 110%, rgba(16,40,78,0.05), transparent 55%);
    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; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(29,91,214,0.5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(29,91,214,0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(29,91,214,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,91,214,0); }
}

.hero h1 { color: var(--ink); margin-bottom: 22px; }
.hero h1 .highlight { color: var(--primary); }
.hero h1 em {
    font-style: normal;
    color: var(--primary);
    background: none;
    padding: 0;
}
.hero-lead {
    font-size: 1.12rem;
    line-height: 1.68;
    color: var(--muted);
    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: var(--text); font-weight: 500; }
.checklist li .ck {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-d);
    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 var(--line);
}
.hero-avatars { display: flex; }
.hero-avatars span {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--bg);
    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: var(--primary); } .ha-2 { background: var(--night-2); }
.ha-3 { background: var(--gold-d); } .ha-4 { background: var(--primary-l); }
.hero-trustline .stars { color: #F5A623; font-size: 0.95rem; letter-spacing: 1px; }
.hero-trustline .t-note { font-size: 0.85rem; color: var(--muted); }
.hero-trustline .t-note strong { color: var(--ink); font-weight: 700; }

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

.quiz-form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--text);
}
.quiz-form-header {
    padding: 26px 30px 22px;
    background: var(--night);
    color: #fff;
}
.quiz-form-header h2 {
    font-size: 1.26rem; margin: 0 0 4px; color: #fff; letter-spacing: -0.01em;
}
.quiz-form-header p { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.quiz-form-header .secure-tag {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 14px;
    font-size: 0.76rem; font-weight: 500; color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 5px 12px; border-radius: 999px;
}
.secure-tag svg { width: 13px; height: 13px; color: var(--gold); }
.quiz-form-body { padding: 26px 30px 30px; }

/* Progress */
.progress {
    position: relative;
    height: 7px;
    background: var(--line-2);
    border-radius: 999px;
    margin: 8px 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: -24px; right: 0;
    font-family: var(--font-display);
    font-size: 0.72rem; font-weight: 700; color: var(--muted);
    letter-spacing: 0.07em; 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.16rem; font-weight: 700;
    margin: 0 0 18px; color: var(--ink); line-height: 1.3;
    letter-spacing: -0.01em;
}
.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 18px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    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);
    background: #fff;
    transition: all .16s ease;
}
.quiz-option:hover .opt-card { border-color: var(--primary-l); background: var(--primary-soft); }
.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) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.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.82rem; 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 16px;
    background: var(--bg);
    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;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,91,214,0.13);
}
.form-field.field-valid input { border-color: var(--primary-l); background: #fff; }
.form-field.field-invalid input { border-color: var(--danger); background: var(--danger-bg); }
.field-error { font-size: 0.76rem; color: var(--danger); 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 / PARTENAIRES (carrousel) ============ */

.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; }

.partners {
    background: var(--bg-2);
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    padding: 36px 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; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.plogo {
    flex: 0 0 auto;
    height: 64px;
    margin: 0 10px;
    padding: 0 28px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
.plogo img { max-height: 34px; max-width: 136px; width: auto; object-fit: contain; display: block; }
@keyframes cp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) {
    .plogo { height: 56px; padding: 0 18px; margin: 0 8px; }
    .plogo img { max-height: 30px; max-width: 112px; }
}
@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: 18px; border: none; background: transparent; }
.type-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.type-card:last-child { border-right: 1px solid var(--line); }
.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #C7D7F5;
    background: var(--card);
}
.type-icon {
    width: 50px; height: 50px; border-radius: var(--r-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: all .22s ease;
}
.type-icon svg { width: 24px; height: 24px; }
.type-card:hover .type-icon { background: var(--primary); color: #fff; }
.type-card h3 { margin: 0 0 8px; font-size: 1.13rem; }
.type-card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 14px; line-height: 1.6; }
.type-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.74rem; font-weight: 700; color: var(--primary-d);
    background: var(--primary-soft);
    border: 1px solid #D3E2FA;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 4px 12px; border-radius: 999px;
}

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

.how { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.step {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: var(--r-lg);
    padding: 30px 28px;
}
.step-num {
    width: 44px; height: 44px; border-radius: var(--r-md);
    background: var(--night); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
    font-style: normal;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    line-height: 1;
}
.step:nth-child(2) .step-num { background: var(--primary); color: #fff; }
.step:nth-child(3) .step-num { background: var(--primary-soft); color: var(--primary-d); }
.step h3 { margin: 0 0 8px; font-size: 1.14rem; }
.step p { color: var(--muted); margin: 0; line-height: 1.65; }

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

.stats-band {
    background: var(--night);
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border-top: none;
}
.stats-band::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(46vw 46vw at 88% 140%, rgba(79,130,232,0.18), transparent 60%);
}
.stats-grid {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    text-align: left;
}
.stats-grid > div { border-left: 2px solid rgba(111,168,255,0.35); padding-left: 22px; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 800;
    line-height: 1; margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.02em;
}
.stat-num::after { content: none; }
.stat-label { color: rgba(214,228,248,0.75); 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: 18px; }
.tcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-card);
    position: relative;
}
.tcard::before { content: none; }
.tcard .stars { color: #F5A623; font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 14px; }
.tquote { font-family: var(--font-sans); font-size: 1rem; line-height: 1.68; color: var(--text); margin: 0 0 22px; font-weight: 400; }
.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(--night-2); } .tav-3 { background: var(--gold-d); }
.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; display: flex; flex-direction: column; gap: 12px; border-top: none; }
.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: #C7D7F5; 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.02rem; font-weight: 700; color: var(--ink);
    letter-spacing: -0.01em;
}
.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: none;
    border-radius: 50%; font-size: 1.15rem; 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: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
    border-top: none;
}
.final-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(56vw 56vw at 50% -30%, rgba(29,91,214,0.4), transparent 62%);
    border: none; border-radius: 0; transform: none; width: auto; height: auto; left: 0; top: 0;
}
.final-cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { color: rgba(214,228,248,0.88); font-size: 1.1rem; margin-bottom: 32px; }
.final-cta .micro { margin-top: 22px; font-size: 0.85rem; color: rgba(214,228,248,0.6); }

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

.footer { background: var(--night); color: rgba(214,228,248,0.65); 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(214,228,248,0.5); line-height: 1.6; max-width: 320px; margin: 18px 0 0; font-size: 0.9rem; }
.footer-grid h4 {
    font-family: var(--font-display); color: var(--gold); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; font-weight: 700;
}
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: rgba(214,228,248,0.7); }
.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(214,228,248,0.45); 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(--night);
    position: relative; overflow: hidden;
}
.success-page::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(50vw 50vw at 50% 0%, rgba(29,91,214,0.4), transparent 60%);
}
.success-card {
    position: relative;
    background: #fff; color: var(--text);
    border-radius: var(--r-lg);
    border-top: none;
    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: var(--primary);
    box-shadow: 0 14px 32px rgba(29,91,214,0.35);
}
.error-card .success-icon { background: var(--danger); color: #fff; box-shadow: 0 14px 30px rgba(220,38,38,0.3); }
.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(--primary-soft); color: var(--primary-d);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem;
    font-family: var(--font-display);
}

.success-spam {
    font-size: 0.9rem;
    background: var(--primary-soft);
    border: 1px solid #D3E2FA;
    border-radius: var(--r-sm);
    padding: 14px 16px;
    margin-bottom: 22px !important;
}

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

@media (max-width: 980px) {
    :root { --section-y: 68px; }
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero { padding: 48px 0 64px; }
    .nav-phone { display: none; }
    .types-grid { grid-template-columns: 1fr 1fr; }
    .type-card { border-bottom: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .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: 52px; }
    .hero { padding: 34px 0 52px; }
    .hero h1 { font-size: 2.1rem; }
    .hero-lead { font-size: 1.05rem; }
    .quiz-form-header { padding: 22px 22px 18px; }
    .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(--night); }

.doc-hero {
    background: var(--bg);
    color: var(--ink);
    padding: 48px 0 44px;
    position: relative;
    overflow: hidden;
}
.doc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(50vw 40vw at 90% -30%, rgba(29,91,214,0.08), transparent 60%);
    pointer-events: none;
}
.doc-hero > .container { position: relative; }
.doc-hero h1 { color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 12px; }
.doc-hero h1 .highlight { color: var(--primary); }
.doc-hero p { color: var(--muted); max-width: 620px; margin: 0; font-size: 1.04rem; }
.doc-hero .hero-badge { margin-bottom: 20px; }

.doc-page { padding: 12px 0 80px; background: var(--bg); }
.doc-page > .container { max-width: 820px; }

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

.doc-alert {
    background: var(--danger-bg);
    color: #B91C1C;
    border: 1px solid #FECACA;
    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: 36px; height: 36px; border-radius: var(--r-sm);
    background: var(--night); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.doc-section-head h2 { font-size: 1.26rem; 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-display);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--primary); margin: 0 0 12px;
    display: flex; align-items: center; gap: 10px;
}
.doc-optional {
    font-family: var(--font-sans);
    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(--primary-soft);
    border: 1px solid #D3E2FA;
    border-radius: var(--r-sm);
    padding: 9px 13px;
}
.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);
    border: 1.5px dashed #BFCCE0;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s ease;
}
.file-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.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: var(--r-sm);
    background: #fff; 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(--primary); 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(--primary); background: var(--primary-soft); }
.file-drop.has-file .fd-badge { display: flex; }
.file-drop.has-file .fd-icon { border-color: var(--primary); color: var(--primary-d); }
.file-drop.fd-error { border-color: var(--danger); background: var(--danger-bg); }
.file-drop.fd-error .fd-hint { color: #B91C1C; }

/* Pièce déjà validée par l'admin : verrouillée, non modifiable */
.fd-locked {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 15px 17px; border-radius: var(--r-md);
    background: var(--primary-soft); border: 1.5px solid var(--primary); cursor: not-allowed;
}
.fd-locked .fd-icon { background: #fff; border: 1px solid var(--primary); color: var(--primary); }
.fd-locked .fd-text strong { color: var(--ink); }
.fd-locked .fd-hint { color: var(--primary-d); white-space: normal; }
.fd-locked .fd-badge { display: flex; background: var(--primary); }

/* 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: 7px; height: 7px; border-radius: 50%; background: var(--primary-l);
}
.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; }
}
