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

.home {
    --bg:          #F3F0E8;
    --bg-2:        #FBFAF5;
    --card:        #FFFFFF;
    --ink:         #16241E;
    --text:        #16241E;
    --navy:        #0F3D2E;
    --muted:       #5C6A60;
    --muted-2:     #828A80;
    --line:        #E3DDCD;
    --line-2:      #ECE6D8;

    --primary:     #0F3D2E;
    --primary-d:   #0A2D22;
    --primary-l:   #3E6B57;
    --primary-soft:#E7EDE7;

    --gold:        #B8924A;
    --gold-l:      #D0B074;

    --accent:      #0F3D2E;
    --accent-d:    #0A2D22;
    --accent-soft: #E7EDE7;

    --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; }
@media (max-width: 900px) {
    .cp-nav a:not(.btn) { display: none; }
    .cp-logo img { height: 32px; }
    .cp-cta .cta-long { display: none; }
    .cp-cta .cta-short { display: inline; }
    .cp-nav .btn { padding: 9px 15px; font-size: .85rem; }
}
@media (max-width: 360px) {
    .cp-logo .cp-wordmark { display: none; }
}

/* ============ 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; }
}
