/* ═══════════════════════════════════════════════════════════
   ImmoClass — styles des pages ressources / guides
   Réutilise les tokens de la landing (index.html)
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #1B60CC;
    --blue-mid: #2B72DB;
    --blue-light: #EBF2FF;
    --blue-xlight: #F5F8FF;
    --teal: #0E9E8E;
    --teal-light: #E6F7F5;
    --bg: #F7F8FA;
    --white: #FFFFFF;
    --text: #0E1729;
    --text-md: #374151;
    --text-muted: #6B7280;
    --border: #E5E9F0;
    --border-light: #F0F3F8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --font: 'Poppins', system-ui, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BOUTONS (identiques à la landing) ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,96,204,0.3); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--blue);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border: 1.5px solid var(--blue);
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    transition: background .25s var(--ease);
}
.btn-outline:hover { background: var(--blue-light); }

/* ── NAVBAR ── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 2rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}
.nav-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-svg { width: 34px; height: 29px; }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-immo { color: var(--text); }
.logo-class { color: var(--blue); }
.nav-links { display: flex; list-style: none; gap: 1.75rem; }
.nav-links a {
    color: var(--text-md);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-cta-short { display: none; }

/* ── EN-TÊTE D'ARTICLE ── */
.article-hero {
    background: linear-gradient(180deg, var(--blue-xlight) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 3.5rem 0 3rem;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    list-style: none;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--border); }
.article-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: .35rem .85rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}
.article-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    max-width: 780px;
}
.article-hero h1 span { color: var(--blue); }
.article-standfirst {
    max-width: 700px;
    margin-top: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-md);
    line-height: 1.75;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.75rem;
    font-size: .8rem;
    color: var(--text-muted);
}
.article-meta strong { color: var(--text-md); font-weight: 600; }

/* ── CORPS D'ARTICLE ── */
.article-body { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; }
.article-body h2 {
    position: relative;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 3rem 0 1.1rem;
    padding-left: 1.1rem;
}
.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    bottom: .3em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--blue-mid), var(--blue));
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.08rem; font-weight: 600; margin: 2rem 0 .75rem; }
.article-body p { color: var(--text-md); margin-bottom: 1.1rem; line-height: 1.8; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(27,96,204,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.35rem; color: var(--text-md); }
.article-body li { margin-bottom: .5rem; line-height: 1.7; }
.article-body ul li::marker { color: var(--blue); }
.article-body strong { color: var(--text); font-weight: 600; }

/* ── COMPOSANTS ÉDITORIAUX ── */
.callout {
    display: flex;
    gap: .9rem;
    background: var(--blue-light);
    border: 1px solid rgba(27,96,204,.12);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    margin: 1.75rem 0;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--text-md);
}
.callout.teal { background: var(--teal-light); border-color: rgba(14,158,142,.15); }
.callout-icon { flex-shrink: 0; font-size: 1.1rem; line-height: 1.5; }
.callout p { margin: 0; font-size: inherit; }

.check-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.6rem;
    margin: 1.5rem 0;
}
.check-card h3 { margin-top: 0; }
.check-card ul { margin-bottom: 0; list-style: none; margin-left: 0; }
.check-card li {
    position: relative;
    padding-left: 1.75rem;
}
.check-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-weight: 700;
}
.check-card.no li::before { content: "✕"; color: #C0392B; }

.article-table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.article-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .88rem; }
.article-table th {
    background: var(--blue-xlight);
    color: var(--text);
    font-weight: 600;
    text-align: left;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.article-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--border-light); color: var(--text-md); vertical-align: top; line-height: 1.6; }
.article-table tr:last-child td { border-bottom: none; }

/* ── FAQ ── */
.faq { margin: 1.5rem 0; }
.faq details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .25s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--blue);
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; font-size: .92rem; color: var(--text-md); line-height: 1.75; }

/* ── CTA intermédiaire ── */
.inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.4rem 1.6rem;
    margin: 2.5rem 0;
}
.inline-cta p { margin: 0; font-size: .92rem; }
.inline-cta strong { display: block; font-size: 1rem; margin-bottom: .2rem; }

/* ── CTA FINAL (repris de la landing) ── */
.cta-section { padding: 3rem 0 5rem; }
.cta-box {
    background: linear-gradient(135deg, #0F2B5B 0%, #1B60CC 60%, #2B7FE0 100%);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .85rem; }
.cta-box p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto; font-size: .95rem; line-height: 1.75; }
.cta-box .btn-primary { background: var(--white); color: var(--blue); margin-top: 2rem; font-size: .95rem; padding: .9rem 2.2rem; }
.cta-box .btn-primary:hover { background: var(--blue-xlight); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cta-note { margin-top: 1.1rem; font-size: .78rem; color: rgba(255,255,255,.6); }

/* ── LIRE AUSSI ── */
.related { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 1rem; }
.related h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(27,96,204,.3); }
.related-card span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: .4rem; }
.related-card strong { font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.45; }

/* ── HUB RESSOURCES ── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; max-width: 1000px; margin: 3rem auto 4rem; padding: 0 1.5rem; }
.hub-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(27,96,204,.3); }
.hub-card .hub-tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.hub-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.35; }
.hub-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.hub-card .hub-more { margin-top: auto; padding-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--blue); }

/* ── FOOTER (repris de la landing) ── */
footer { background: var(--white); border-top: 1px solid var(--border-light); padding: 2.5rem 0; }
.footer-inner { text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.footer-logo-text { font-size: 1rem; font-weight: 700; }
.footer-logo-text .immo { color: var(--text); }
.footer-logo-text .class { color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: .82rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-credit { margin-top: .5rem; font-size: .75rem; color: var(--text-muted); }
.footer-credit a { color: var(--text-md); }

/* ── ANIMATION D'ENTRÉE (header uniquement, sobre) ── */
@media (prefers-reduced-motion: no-preference) {
    .article-hero > .container > * {
        animation: rise .6s var(--ease) both;
    }
    .article-hero > .container > *:nth-child(2) { animation-delay: .08s; }
    .article-hero > .container > *:nth-child(3) { animation-delay: .16s; }
    .article-hero > .container > *:nth-child(4) { animation-delay: .24s; }
    .article-hero > .container > *:nth-child(5) { animation-delay: .32s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    #navbar { padding: .85rem 1.25rem; }
    .nav-links { display: none; }
    .nav-cta-full { display: none; }
    .nav-cta-short { display: inline-flex; }
    .article-hero { padding: 2.5rem 0 2.25rem; }
    .article-body { padding-top: 2.5rem; }
    .inline-cta { flex-direction: column; align-items: flex-start; }
    .cta-box { padding: 2.5rem 1.25rem; border-radius: 16px; }
}
