/* =========================================================
   DOLMAN — Landing & pages vitrine v3
   Scopé à .home : topbar, hero demande, pages société/légal
   Corporate fintech · blanc · bleu profond
   ========================================================= */

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

/* ============ BANDEAU SUPÉRIEUR ============ */
.cp-topline {
    background: var(--night);
    color: rgba(214,228,248,0.8);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}
.cp-topline-in {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 8px 0;
}
.cp-topline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-topline a { color: #fff; font-weight: 600; white-space: nowrap; }
.cp-topline a:hover { color: var(--gold); }
@media (max-width: 640px) { .cp-topline span.tl-loc { display: none; } }

/* ============ BARRE LOGO + NAV (partagée) ============ */
.cp-topbar {
    background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    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: 12px 0; }
.cp-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.cp-logo img { height: 40px; width: auto; display: block; flex-shrink: 0; border-radius: 10px; }
.cp-logo .cp-wordmark {
    font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
    letter-spacing: .01em; color: var(--ink); line-height: 1; white-space: nowrap;
}
.cp-logo .cp-wordmark span { color: var(--primary); }
.cp-nav { display: flex; align-items: center; gap: 26px; min-width: 0; }
.cp-nav a {
    text-decoration: none; color: var(--text);
    font-size: .92rem; font-weight: 600;
    letter-spacing: 0; text-transform: none;
    transition: color .2s; white-space: nowrap;
    padding-bottom: 0;
    border-bottom: none;
}
.cp-nav a:hover, .cp-nav a.is-active { color: var(--primary); }
.cp-nav a.btn-primary, .cp-nav a.btn-primary:hover { color: #fff; }
.cp-nav .btn { padding: 11px 22px; font-size: .9rem; flex-shrink: 0; }
.cp-cta .cta-short { display: none; }
@media (max-width: 900px) {
    .cp-nav a:not(.btn) { display: none; }
    .cp-logo img { height: 34px; }
    .cp-cta .cta-long { display: none; }
    .cp-cta .cta-short { display: inline; }
    .cp-nav .btn { padding: 10px 16px; font-size: .85rem; }
}
@media (max-width: 360px) { .cp-logo .cp-wordmark { display: none; } }

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

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

/* ============ HERO DEMANDE ============ */
.home .hero { padding: 56px 0 72px; }
.home .hero-inner { align-items: start; gap: 56px; }
.home .hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.1; margin-bottom: 24px; }
.home .hero-lead { margin-bottom: 0; }

.hero-meta {
    display: flex; align-items: stretch; gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
    border-left: none;
}
.hm-item {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
}
.hm-item strong {
    font-family: var(--font-display); font-size: 1.45rem; font-weight: 800;
    color: var(--ink); line-height: 1.1; letter-spacing: -0.02em;
    font-style: normal;
}
.hm-item strong.hm-rate { color: var(--primary); font-style: normal; }
.hm-item span { font-size: .76rem; color: var(--muted); margin-top: 5px; letter-spacing: 0; }
.hm-sep { display: none; }

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

/* ============ VITRINE — hero accueil (centré, pro) ============ */
.cp-hero { padding: 76px 0 56px; position: relative; overflow: hidden; }
.cp-hero::before { content: none; }
.cp-hero-inner {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.cp-hero .hero-left { min-width: 0; }
.cp-hero .lp-eyebrow { justify-content: center; }
.cp-hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.9rem);
    line-height: 1.1; margin: 10px 0 22px;
    overflow-wrap: break-word;
}
.cp-hero h1 em {
    font-style: normal; font-weight: 800; color: var(--primary);
    background: none; padding: 0;
}
.cp-hero .hero-lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.cp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 6px; justify-content: center; }
.cp-hero-visual { display: none; }
.cp-hero .hero-meta {
    justify-content: center;
    margin-top: 40px;
}
.cp-hero .hm-item { text-align: left; }
@media (max-width: 860px) {
    .cp-hero { padding: 40px 0 32px; }
    .cp-hero-cta .btn { width: 100%; max-width: 340px; }
    .cp-hero .hero-meta { margin-top: 28px; }
}

/* En-tête de page intérieure */
.cp-page-hero { padding: 60px 0 8px; text-align: left; position: relative; }
.cp-page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 8px 0 14px; color: var(--ink); }
.cp-page-hero p { color: var(--muted); max-width: 640px; margin: 0; line-height: 1.7; font-size: 1.05rem; }

/* Cartes société / teasers */
.cp-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; border: none; background: transparent; counter-reset: aboutcard; }
.cp-about-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    position: relative;
    counter-increment: aboutcard;
    box-shadow: var(--shadow-card);
}
.cp-about-card::before {
    content: counter(aboutcard, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-d);
    background: var(--primary-soft);
    border-radius: var(--r-sm);
    width: 40px; height: 40px;
    line-height: 1;
    margin-bottom: 18px;
}
.cp-about-card h3 { font-size: 1.15rem; margin: 0 0 10px; color: var(--ink); }
.cp-about-card p { color: var(--muted); line-height: 1.65; margin: 0; font-size: .95rem; }
a.cp-about-card { text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; display: block; }
a.cp-about-card:hover { border-color: #C7D7F5; transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--card); }
a.cp-about-card .cp-card-more {
    color: var(--primary); font-family: var(--font-display); font-weight: 700;
    font-size: .9rem; letter-spacing: 0; text-transform: none;
    margin-top: 14px; display: inline-block;
    border-bottom: none;
    padding-bottom: 0;
}
@media (max-width: 760px) {
    .cp-about-grid { grid-template-columns: 1fr; }
}

/* Mentions légales */
.cp-legal { background: var(--bg); padding-top: 40px; }
.cp-legal .legal-card {
    background: var(--card); border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 40px 44px; max-width: 920px;
    margin: 0; box-shadow: var(--shadow-card);
}
.cp-legal h3 {
    font-size: 1.14rem; color: var(--ink); margin: 32px 0 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary-soft);
    display: inline-block; width: 100%;
}
.cp-legal h3:first-of-type { margin-top: 6px; }
.legal-dl { display: grid; grid-template-columns: 240px 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(--primary); overflow-wrap: break-word; }
@media (max-width: 640px) {
    .cp-legal .legal-card { padding: 26px 20px; }
    .legal-dl { grid-template-columns: 1fr; gap: 2px 0; }
    .legal-dl dd { margin-bottom: 10px; }
}

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