/* =========================================================
   CP CREDIT — Landing (refonte « éditorial ivoire »)
   Scopé à .home : ne touche pas documents.php / dashboard.php
   Ivoire · navy · or · serif Libre Baskerville
   ========================================================= */

.home {
    --bg:          #F4F0E7;
    --bg-2:        #FCFAF5;
    --card:        #FFFFFF;
    --ink:         #1A2238;
    --text:        #1A2238;
    --navy:        #0A1330;
    --muted:       #6B6E78;
    --muted-2:     #9A9488;
    --line:        #E4DDCE;
    --line-2:      #EDE7D9;

    --primary:     #1A2238;
    --primary-d:   #0F1626;
    --primary-l:   #4A5168;
    --primary-soft:#ECE7DA;

    --gold:        #C2A36B;
    --gold-l:      #D8BE8A;

    --accent:      #1A2238;
    --accent-d:    #14213A;
    --accent-soft: #EBE6D8;

    --font-display:'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

body.home { background: var(--bg); }

/* ── Typo serif ── */
.home h1, .home h2, .home h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.005em;
}
.home .highlight { color: var(--gold); font-style: normal; }
.home .eyebrow { color: var(--gold); }
.home .eyebrow::before { background: var(--gold); }
.home .section-head p { color: var(--muted); }

/* ── Boutons sobres ── */
.home .btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: none; border-radius: 8px;
}
.home .btn-primary:hover {
    background: var(--primary-d); color: #fff;
    transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20,27,46,.18);
}
.home .btn-light { background: var(--gold); color: #fff; }
.home .btn-light:hover { background: var(--gold-l); box-shadow: 0 12px 26px rgba(169,132,76,.3); }

/* ============ EN-TÊTE MINIMAL (pas de navbar) ============ */
.lp-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0 6px;
}
.home .brand-text { font-family: var(--font-sans); color: var(--ink); font-weight: 700; }
.home .brand-text span { color: var(--gold); }
.lp-phone {
    color: var(--ink); font-weight: 600; font-size: .94rem; letter-spacing: .02em;
}
.lp-phone:hover { color: var(--gold); }

/* ============ HERO ============ */
.home .hero {
    background: var(--bg);
    color: var(--ink);
    padding: 64px 0 72px;
    overflow: visible;
}
.home .hero::before, .home .hero::after { display: none !important; }
.home .hero-inner { align-items: center; padding-top: 0; gap: 56px; }

.lp-eyebrow {
    display: inline-block;
    font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 22px;
}
.lp-eyebrow::before { content: "— "; }

.home .hero h1 {
    color: var(--ink);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.07; margin-bottom: 24px; font-weight: 700;
}
.home .hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.home .hero-lead {
    color: var(--muted); font-size: 1.12rem; line-height: 1.7;
    max-width: 480px; margin-bottom: 0;
}

.hero-meta {
    display: flex; align-items: center; gap: 26px;
    margin-top: 36px; padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hm-item { display: flex; flex-direction: column; }
.hm-item strong {
    font-family: var(--font-display); font-size: 1.55rem; font-weight: 500;
    color: var(--ink); line-height: 1;
}
.hm-item strong.hm-rate { color: var(--gold); }
.hm-item span { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.hm-sep { width: 1px; height: 36px; background: var(--line); flex-shrink: 0; }

/* ── Carte formulaire (sobre sur fond clair) ── */
.home .quiz-form-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 54px rgba(20,27,46,.12);
}
.home .quiz-form-header h2 { font-family: var(--font-display); font-weight: 500; }
.home .secure-tag { background: var(--bg); border-color: var(--line); }
.home .opt-card { border-radius: 8px; }
.home .quiz-option input:checked + .opt-card { background: var(--primary-soft); border-color: var(--primary); }
.home .quiz-option input:checked + .opt-card::after {
    border-color: var(--primary);
    background: var(--primary) radial-gradient(circle, #fff 32%, transparent 36%);
}
.home .progress-bar { background: linear-gradient(90deg, var(--gold), var(--gold-l)); }

/* ============ PARTENAIRES (carrousel) ============ */
.partners-mobile { display: none; }
.home .partners-label {
    text-transform: uppercase; letter-spacing: .14em;
    font-size: .72rem; color: var(--muted-2); font-weight: 600;
}
.partners-mobile .partners-label { text-align: left; margin: 0 0 12px; }

/* ============ SOLUTIONS (à-plats éditoriaux) ============ */
.home .types { background: var(--bg); }
.home .type-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .25s ease;
}
.home .type-card::before { display: none; }
.home .type-card:hover { transform: none; box-shadow: none; border-color: var(--gold); }
.home .type-icon {
    background: transparent; border: 1px solid var(--line);
    color: var(--gold); border-radius: 10px;
}
.home .type-card:hover .type-icon { border-color: var(--gold); color: var(--gold); }
.home .type-card h3 { font-weight: 500; }
.home .type-tag { background: var(--primary-soft); color: var(--primary); }

/* ============ COMMENT ÇA MARCHE (numéros serif) ============ */
.home .how { background: var(--bg-2); }
.home .step-num {
    width: auto; height: auto; border-radius: 0; background: transparent !important;
    color: var(--gold); box-shadow: none !important;
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 500;
    line-height: 1; display: inline-block;
    padding-bottom: 12px; margin-bottom: 18px;
    border-bottom: 2px solid var(--line);
}
.home .step h3 { font-weight: 500; }

/* ============ CHIFFRES (navy sobre) ============ */
.home .stats-band { background: var(--navy); }
.home .stats-band::before { display: none; }
.home .stat-num { color: #fff; }
.home .stat-num::after { background: var(--gold); }

/* ============ TÉMOIGNAGES ============ */
.home .testimonials { background: var(--bg); }
.home .tcard {
    background: var(--bg-2); border: 1px solid var(--line);
    box-shadow: none; border-radius: 10px;
}
.home .tcard .stars { color: var(--gold); }
.home .tquote {
    font-family: var(--font-display); font-style: italic; font-weight: 400;
    font-size: 1.08rem; line-height: 1.6; color: var(--ink);
}
.home .tav-1 { background: var(--primary); }
.home .tav-2 { background: var(--gold); }
.home .tav-3 { background: var(--primary-l); }

/* ============ FAQ ============ */
.home .faq { background: var(--bg-2); }
.home .faq-item { background: var(--bg); }
.home .faq-item[open] { background: #fff; border-color: var(--gold); }
.home .faq-item summary { font-family: var(--font-display); font-weight: 500; }
.home .faq-icon { background: var(--primary-soft); color: var(--gold); }
.home .faq-item[open] .faq-icon { background: var(--gold); color: #fff; }

/* ============ CTA FINAL ============ */
.home .final-cta { background: var(--navy); }
.home .final-cta::before {
    background: radial-gradient(50vw 50vw at 50% -30%, rgba(169,132,76,.22), transparent 62%);
}
.home .final-cta h2 { color: #fff; }
.home .final-cta .micro { color: rgba(255,255,255,.6); }

/* ============ PAGE DOCUMENTS (thème ivoire) ============ */
.home .doc-hero {
    background: var(--bg);
    color: var(--ink);
    padding: 60px 0 44px;
}
.home .doc-hero::before { display: none; }
.home .doc-hero h1 { color: var(--ink); font-weight: 500; }
.home .doc-hero h1 .highlight { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.home .doc-hero p { color: var(--muted); }
.home .doc-hero .hero-badge {
    background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.home .doc-hero .hero-badge svg { color: var(--gold-l); }
.home .doc-page { background: var(--bg); }
.home .doc-form-card { border: 1px solid var(--line); box-shadow: 0 24px 54px rgba(20,27,46,.10); }
.home .doc-section-head h2 { font-weight: 500; }
.home .doc-group-title { color: var(--muted-2); }
.home .doc-note { border-left-color: var(--gold); }
.home .fd-icon { color: var(--primary); }
.home .file-drop.has-file { border-color: var(--gold); background: var(--accent-soft); }
.home .file-drop.has-file .fd-badge { background: var(--gold); }
.home .file-drop.has-file .fd-icon { border-color: var(--gold); color: var(--gold); }

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

/* ============ BARRE LOGO + NAV (vitrine, partagée) ============ */
.cp-topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.cp-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.cp-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.cp-logo img { height: 36px; width: auto; display: block; flex-shrink: 0; }
.cp-logo .cp-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; color: var(--ink); line-height: 1; white-space: nowrap; }
.cp-logo .cp-wordmark span { color: var(--gold); }
.cp-nav { display: flex; align-items: center; gap: 20px; min-width: 0; }
.cp-nav a { text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; transition: color .2s; white-space: nowrap; }
.cp-nav a:hover, .cp-nav a.is-active { color: var(--gold); }
.cp-nav .btn { padding: 9px 17px; font-size: .87rem; flex-shrink: 0; }
.cp-cta .cta-short { display: none; }

/* Burger mobile */
.cp-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 40px; padding: 8px 9px;
    background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.cp-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s ease, opacity .18s ease; }
.cp-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cp-burger.open span:nth-child(2) { opacity: 0; }
.cp-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .cp-burger { display: flex; }
    .cp-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 34px rgba(10,19,48,.12);
        padding: 6px 18px 14px;
    }
    .cp-nav.open { display: flex; }
    .cp-nav a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
    .cp-nav a:not(.btn):last-of-type { border-bottom: 0; }
    .cp-nav .btn { margin-top: 10px; text-align: center; }
    .cp-logo img { height: 32px; }
    .cp-cta .cta-long { display: inline; }
    .cp-cta .cta-short { display: none; }
}
@media (max-width: 360px) {
    .cp-logo .cp-wordmark { display: none; }
}

/* Mention légale sous le taux du hero */
.home .hero-legal {
    max-width: 540px; margin: 14px 0 0;
    font-size: .68rem; line-height: 1.45; color: var(--muted-2);
}

/* ============ VITRINE — composants partagés (index + pages) ============ */
.cp-hero { padding: 54px 0 30px; }
.cp-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cp-hero .hero-left { min-width: 0; }
.cp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 14px 0 18px; overflow-wrap: break-word; }
.cp-hero .hero-lead { max-width: 540px; }
.cp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 6px; }
.cp-hero-visual { display: flex; justify-content: center; min-width: 0; }
.cp-hero-visual img { width: 100%; max-width: 330px; height: auto; filter: drop-shadow(0 26px 54px rgba(20,27,46,.14)); }
@media (max-width: 860px) {
    .cp-hero { padding: 26px 0 22px; }
    .cp-hero-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .cp-hero .hero-lead { margin-left: auto; margin-right: auto; }
    .cp-hero-cta { justify-content: center; }
    .cp-hero-cta .btn { width: 100%; max-width: 340px; }
    .cp-hero-visual { order: -1; }
    .cp-hero-visual img { max-width: 160px; }
    .cp-hero .hero-meta { justify-content: center; }
}

/* En-tête de page intérieure */
.cp-page-hero { padding: 50px 0 6px; text-align: center; }
.cp-page-hero .lp-eyebrow::before { content: "— "; }
.cp-page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 12px; color: var(--ink); }
.cp-page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; line-height: 1.7; }

/* Cartes société / teasers */
.cp-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 14px; }
.cp-about-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.cp-about-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin: 0 0 10px; color: var(--ink); }
.cp-about-card p { color: var(--muted); line-height: 1.65; margin: 0; font-size: .96rem; }
a.cp-about-card { text-decoration: none; transition: border-color .2s, transform .2s; display: block; }
a.cp-about-card:hover { border-color: var(--gold); transform: translateY(-2px); }
a.cp-about-card .cp-card-more { color: var(--gold); font-weight: 700; font-size: .88rem; margin-top: 12px; display: inline-block; }
@media (max-width: 760px) { .cp-about-grid { grid-template-columns: 1fr; } }

/* Mentions légales */
.cp-legal { background: var(--bg-2); }
.cp-legal .legal-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px; max-width: 920px; margin: 0 auto; box-shadow: 0 18px 50px rgba(20,27,46,.06); }
.cp-legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cp-legal h3:first-of-type { margin-top: 6px; }
.legal-dl { display: grid; grid-template-columns: 230px 1fr; gap: 10px 24px; margin: 0; }
.legal-dl dt { color: var(--muted); font-size: .92rem; }
.legal-dl dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 500; overflow-wrap: break-word; }
.cp-legal p { color: var(--muted); line-height: 1.7; font-size: .94rem; }
.cp-legal a { color: var(--gold); overflow-wrap: break-word; }
@media (max-width: 640px) {
    .cp-legal .legal-card { padding: 24px 18px; }
    .legal-dl { grid-template-columns: 1fr; gap: 2px 0; }
    .legal-dl dd { margin-bottom: 10px; }
}

/* ============ FOOTER ============ */
.home .footer { background: var(--navy); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .partners-desktop { display: none; }
    .partners-mobile { display: block; margin: 6px 0 4px; }
    .home .hero { padding: 0 0 48px; }
    .home .hero-inner { padding-top: 14px; gap: 30px; }
    .hero-meta { gap: 18px; }
}
@media (max-width: 600px) {
    .lp-top { padding: 20px 0 4px; }
    .lp-phone { display: none; }
    .home .hero h1 { font-size: 2.3rem; }
    .home .hero-lead { font-size: 1.04rem; }
    .hero-meta { flex-wrap: wrap; gap: 14px 18px; }
    .hm-sep { display: none; }
    .hm-item { flex: 0 0 calc(50% - 9px); }
    .home .step-num { font-size: 2.2rem; }
}


/* =========================================================
   DESIGN V2 — même palette ivoire · navy · or
   Refonte de la mise en forme : reliefs, cadres dorés,
   rythme vertical, micro-interactions. (couche additive)
   ========================================================= */

/* ── Topbar : verre dépoli + filet doré ── */
.cp-topbar {
    background: rgba(252,250,245,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(169,132,76,.18);
}
.cp-topbar-in { padding: 12px 0; }
.cp-nav a:not(.btn) { position: relative; padding: 4px 0; }
.cp-nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
    height: 2px; background: var(--gold); transition: right .25s ease;
}
.cp-nav a:not(.btn):hover::after, .cp-nav a.is-active::after { right: 0; }

/* ── Boutons : arrondis doux + flèche vivante ── */
.home .btn { border-radius: 10px; letter-spacing: .01em; }
.home .btn-primary { padding: 15px 30px; }
.home .btn-primary:hover { transform: translateY(-2px); }
.home .btn-light { background: var(--gold); }
.home .btn-light:hover { background: var(--gold-l); transform: translateY(-2px); }

/* ── Hero : halo doré + eyebrow en pilule ── */
.home .hero { position: relative; }
.home .hero::before {
    content: ''; display: block !important; position: absolute; inset: 0;
    background:
        radial-gradient(46vw 34vw at 18% 0%, rgba(169,132,76,.10), transparent 65%),
        radial-gradient(40vw 30vw at 95% 100%, rgba(20,27,46,.05), transparent 60%);
    pointer-events: none;
}
.home .hero-inner { position: relative; }
.lp-eyebrow {
    background: #fff; border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 999px;
    font-size: .7rem; letter-spacing: .18em;
    box-shadow: 0 2px 8px rgba(20,27,46,.05);
}
.lp-eyebrow::before { content: '' ; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: 1px; }

/* Soulignement doré du mot clé du titre */
.home .hero h1 em, .cp-hero h1 em {
    position: relative; white-space: normal;
}
.home .hero h1 em::after {
    content: ''; position: absolute; left: 2px; right: 2px; bottom: .04em;
    height: .18em; background: rgba(169,132,76,.28); border-radius: 3px; z-index: -1;
}

/* Métriques héro : cartes discrètes au lieu de texte flottant */
.hero-meta { border-top: 0; padding-top: 0; gap: 14px; }
.hm-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 16px; box-shadow: 0 4px 14px rgba(20,27,46,.05);
}
.hm-sep { display: none; }

/* ── Carte formulaire : capot doré + relief ── */
.home .quiz-form-card {
    border-radius: 16px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 34px 70px rgba(20,27,46,.16);
    overflow: hidden;
}
.home .quiz-form-header { border-bottom: 1px dashed var(--line); }
.home .progress { border-radius: 999px; }
.home .opt-card { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.home .quiz-option .opt-card:hover { transform: translateX(3px); border-color: var(--gold-l); }

/* ── Sections : rythme + titres soulignés ── */
.home .section-head { margin-bottom: 52px; }
.home .section-head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.home .section-head h2::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 56px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-l));
}

/* ── Cartes solutions : pastille dorée + lift ── */
.home .type-card {
    border-radius: 14px; padding-top: 30px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home .type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(20,27,46,.10);
    border-color: var(--gold-l);
}
.home .type-icon {
    width: 54px; height: 54px; border-radius: 50%;
    background: #fff; border: 1px solid var(--gold-l);
    box-shadow: 0 6px 16px rgba(169,132,76,.16);
}
.home .type-tag { border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--gold); font-weight: 700; }

/* ── Étapes : ligne de liaison dorée ── */
.home .steps { position: relative; }
@media (min-width: 861px) {
    .home .steps::before {
        content: ''; position: absolute; left: 8%; right: 8%; top: 26px;
        height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l) 20%, var(--gold-l) 80%, transparent);
    }
    .home .step { position: relative; background: transparent; }
}
.home .step-num {
    background: var(--bg-2) !important; border: 1px solid var(--gold-l);
    border-radius: 50%; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; padding: 0; margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(169,132,76,.14);
    position: relative; z-index: 1;
}

/* ── Bande chiffres : séparateurs dorés ── */
.home .stats-band { position: relative; }
.home .stats-band::before {
    display: block !important; content: ''; position: absolute; inset: 0;
    background: radial-gradient(60vw 40vw at 50% -20%, rgba(169,132,76,.14), transparent 60%);
    pointer-events: none;
}
.home .stats-grid > div { border-left: 1px solid rgba(255,255,255,.09); padding-left: 26px; }
.home .stats-grid > div:first-child { border-left: 0; }

/* ── Témoignages : guillemet décoratif ── */
.home .tcard { position: relative; border-radius: 14px; padding-top: 54px; overflow: hidden; }
.home .tcard::before {
    content: '\201C'; position: absolute; top: 2px; left: 18px;
    font-family: var(--font-display); font-size: 5.2rem; line-height: 1;
    color: rgba(169,132,76,.18); pointer-events: none;
}
.home .tcard:hover { border-color: var(--gold-l); box-shadow: 0 18px 40px rgba(20,27,46,.08); }

/* ── FAQ : cartes + chevron doré rotatif ── */
.home .faq-item { border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.home .faq-item:hover { border-color: var(--gold-l); }
.home .faq-item[open] { box-shadow: 0 14px 34px rgba(20,27,46,.07); }
.home .faq-icon { border-radius: 50%; transition: transform .25s ease, background .2s ease; }
.home .faq-item[open] .faq-icon { transform: rotate(45deg); }

/* ── CTA final : bouton or + halo ── */
.home .final-cta { position: relative; overflow: hidden; }
.home .final-cta .btn-lg { box-shadow: 0 16px 38px rgba(169,132,76,.35); }

/* ── Footer : filet doré supérieur ── */
.home .footer { border-top: 3px solid var(--gold); }

/* ── Vitrine : cartes société avec flèche animée ── */
a.cp-about-card { position: relative; overflow: hidden; }
a.cp-about-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--gold); transform: scaleY(0); transform-origin: top;
    transition: transform .25s ease;
}
a.cp-about-card:hover::before { transform: scaleY(1); }
a.cp-about-card .cp-card-more::after { content: ' \2192'; transition: margin-left .2s ease; }
a.cp-about-card:hover .cp-card-more::after { margin-left: 5px; }

/* ── Page documents : sections numérotées plus lisibles ── */
.home .doc-step {
    background: var(--gold) !important; color: #fff !important;
    border-radius: 50%; box-shadow: 0 6px 14px rgba(169,132,76,.3);
}
.home .doc-form-card { border-radius: 16px; border-top: 4px solid var(--gold); }
.home .file-drop { border-radius: 12px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.home .file-drop:hover { transform: translateY(-2px); border-color: var(--gold-l); }


/* =========================================================
   PAGE DOCUMENTS V2 — parcours client simplifié
   Tuiles claires en grille · sections en cartes · barre
   d'envoi collante avec compteur. (palette ivoire · or)
   ========================================================= */

/* Héro compact et rassurant */
.home .doc-hero { padding: 30px 0 22px; text-align: center; }
.home .doc-hero h1 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); margin-bottom: 6px; }
.home .doc-hero p { max-width: 560px; margin: 0 auto; font-size: .94rem; }
.doc-trust {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
    margin: 14px 0 0; padding: 0; list-style: none;
}
.doc-trust li {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 13px; font-size: .78rem; font-weight: 600; color: var(--muted);
}
.doc-trust li svg { color: var(--gold); flex-shrink: 0; }

/* Carte principale : plus large et plus dense */
.home .doc-page { padding: 18px 0 56px; }
.home .doc-page > .container { max-width: 1060px; }
.home .doc-form-card { border-radius: 16px; padding: 28px 30px 20px; }

/* Sections : titres simples, pastille dorée discrète */
.home .doc-section { margin-bottom: 6px; }
.home .doc-section + .doc-section { margin-top: 20px; padding-top: 20px; }
.home .doc-section-head { margin-bottom: 14px; }
.home .doc-step {
    width: 26px; height: 26px; font-size: .8rem;
    box-shadow: none;
}
.home .doc-section-head h2 { font-size: 1.12rem; }
.home .doc-section-head p { font-size: .84rem; }

/* Groupes : cartes ivoire douces */
.home .doc-group {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 14px 12px;
    margin-bottom: 12px;
}
.home .doc-group-title {
    font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; margin: 0 0 10px;
    display: flex; align-items: center; gap: 8px;
}
.home .doc-group-title::before {
    content: ''; width: 8px; height: 8px; border-radius: 2px;
    background: var(--gold); flex-shrink: 0;
}
.home .doc-optional { font-weight: 600; }
.home .doc-note { display: none; } /* les indications passent dans les tuiles */

/* Tuiles de dépôt : horizontales, compactes, 3 colonnes */
.home .doc-uploads, .home .doc-uploads.grid-2 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.home .file-drop {
    flex-direction: row; align-items: center; justify-content: flex-start;
    text-align: left; gap: 11px;
    min-height: 0; padding: 11px 13px;
    border: 1.6px dashed var(--line);
    border-radius: 12px; background: #fff;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.home .file-drop:hover {
    transform: translateY(-1px);
    border-color: var(--gold);
    box-shadow: 0 8px 18px rgba(20,27,46,.07);
}
.home .fd-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-soft); border: 0; color: var(--gold);
}
.home .fd-icon svg { width: 18px; height: 18px; }
.home .fd-text { align-items: flex-start; }
.home .fd-text strong { font-size: .84rem; line-height: 1.3; }
.home .fd-hint { white-space: normal; font-size: .72rem; margin-top: 2px; line-height: 1.3; }
.home .fd-badge { position: static; margin-left: auto; }
.home .file-drop { position: relative; }
.home .file-drop.has-file {
    border-style: solid; border-color: #1F9D57; background: #F2FAF5;
}
.home .file-drop.has-file .fd-icon { background: #E2F4E9; color: #1F9D57; }
.home .file-drop.has-file .fd-badge { background: #1F9D57; }
.home .fd-locked { border-radius: 14px; }

/* Consentement compact */
.home .doc-consent { margin: 16px 0 12px; }

/* Barre d'envoi collante */
.doc-actionbar {
    position: sticky; bottom: 14px; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 14px 12px 18px;
    box-shadow: 0 14px 40px rgba(20,27,46,.14);
}
.doc-count { font-size: .88rem; color: var(--muted); font-weight: 600; }
.doc-count.has-docs { color: #147A41; }
.doc-count.has-docs::before { content: '\2713 '; font-weight: 700; }
.doc-actionbar .btn { flex-shrink: 0; }

@media (max-width: 900px) {
    .home .doc-uploads, .home .doc-uploads.grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .home .doc-uploads, .home .doc-uploads.grid-2 { grid-template-columns: 1fr; }
    .home .file-drop { padding: 10px 12px; }
    .home .fd-text strong { font-size: .8rem; }
    .doc-actionbar { flex-direction: column; align-items: stretch; text-align: center; bottom: 8px; }
    .doc-trust li { font-size: .74rem; padding: 6px 11px; }
}
