/* ════════════════════════════════════════════════════════════════
   STRATÉGIE-ÉPARGNE — design system + composants partagés
   Style premium / institutionnel sobre. Noir + rouge + blanc.
   ════════════════════════════════════════════════════════════════ */

:root {
    --color-black:        #1a1a1a;
    --color-black-soft:   #2a2a2a;
    --color-text:         #1a1a1a;
    --color-text-soft:    #4a4a4a;
    --color-text-muted:   #777777;
    --color-red:          #e02323;
    --color-red-dark:     #b91b1b;
    --color-white:        #ffffff;
    --color-bg:           #ffffff;
    --color-bg-soft:      #f7f7f5;
    --color-bg-section:   #fafafa;
    --color-border:       #e5e5e5;
    --color-border-soft:  #ededed;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    --maxw:        1180px;
    --maxw-narrow: 820px;
    --radius:      4px;

    --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 14px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover { color: var(--color-red); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    font-weight: 700;
}

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 6px; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}
.container--narrow {
    max-width: var(--maxw-narrow);
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    max-width: var(--maxw);
    margin: 0 auto;
    gap: 18px;
}

.site-logo {
    display: block;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-soft);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--color-text);
    border-color: var(--color-red);
}

.site-nav-cta {
    padding: 10px 18px;
    background: var(--color-text);
    color: var(--color-white) !important;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.15s;
}
.site-nav-cta:hover {
    background: var(--color-red);
    border-color: transparent;
}

/* Burger */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 22px 22px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border-soft);
        border-top: none;
    }
    .site-nav-cta {
        margin-top: 14px;
        text-align: center;
        padding: 14px 18px;
    }
    .nav-toggle { display: block; }
    .site-logo img { height: 36px; }
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
    padding: 80px 0 70px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-soft);
}

.hero--theme {
    padding: 64px 0 50px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 22px;
    max-width: 820px;
}
.hero h1 .accent { color: var(--color-red); }

.hero-sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--color-text-soft);
    max-width: 720px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero { padding: 56px 0 44px; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 17px; }
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}
.btn-primary:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-white) !important;
}

.btn-red {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}
.btn-red:hover {
    background: var(--color-red-dark);
    border-color: var(--color-red-dark);
    color: var(--color-white) !important;
}

/* ── SECTION GENERIC ──────────────────────────────────── */
.section {
    padding: 72px 0;
}
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-text); color: var(--color-white); }
.section--dark h2 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.85); }

.section h2 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 760px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 18px;
    color: var(--color-text-soft);
    max-width: 720px;
    margin-bottom: 44px;
}

@media (max-width: 640px) {
    .section { padding: 52px 0; }
    .section h2 { font-size: 26px; }
}

/* ── CARDS GRID (thématiques en home) ────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px 26px;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 38px;
    height: 38px;
    background: var(--color-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 6px;
    border: 1px solid var(--color-border);
}

.card h3 {
    font-size: 20px;
    margin: 0;
}

.card p {
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.55;
    flex: 1;
}

.card-link {
    color: var(--color-red);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}
.card-link::after { content: ' →'; }
.card:hover .card-link { color: var(--color-red-dark); }

/* ── PILLARS (3 valeurs : indépendant/pédagogique/sans produit) ── */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.pillar {
    padding: 0;
}

.pillar-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-red);
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.pillar h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.pillar p {
    color: var(--color-text-soft);
    font-size: 15.5px;
    line-height: 1.65;
}

/* ── ARTICLE / CONTENU LONG (pages thématiques) ───────── */
.article-body {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    padding: 60px 22px 40px;
}

.article-body h2 {
    font-size: 30px;
    margin-top: 50px;
    margin-bottom: 14px;
}
.article-body h2:first-of-type { margin-top: 0; }

.article-body h3 {
    font-size: 21px;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.article-body p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-soft);
    margin-bottom: 16px;
}

.article-body ul li,
.article-body ol li {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-soft);
}

.article-body strong { color: var(--color-text); font-weight: 600; }

/* En bref — encart points clés en haut d'article */
.brief-box {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-red);
    padding: 22px 26px;
    margin: 32px 0 40px;
}
.brief-box-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red);
    font-weight: 700;
    margin-bottom: 12px;
}
.brief-box ul { margin: 0; padding-left: 20px; }
.brief-box li {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 8px;
    color: var(--color-text);
}

/* Encart Avantages / Inconvénients */
.proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 32px 0;
}
.proscons-col {
    padding: 22px 24px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
}
.proscons-col h4 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}
.proscons-pros h4 { color: #1f8a3f; }
.proscons-cons h4 { color: var(--color-red); }
.proscons-col ul { margin: 0; padding-left: 20px; }
.proscons-col li {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
    color: var(--color-text-soft);
}

@media (max-width: 640px) {
    .proscons { grid-template-columns: 1fr; gap: 14px; }
}

/* ── FAQ accordéon ────────────────────────────────────── */
.faq {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 22px 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.faq-q-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.faq-item.is-open .faq-q-icon {
    transform: rotate(45deg);
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.65;
}

.faq-item.is-open .faq-a {
    max-height: 1000px;
    padding: 0 0 22px;
}

/* ── DISCLAIMER BAND ──────────────────────────────────── */
.disclaimer-band {
    background: var(--color-text);
    color: rgba(255,255,255,0.9);
    padding: 36px 0;
}
.disclaimer-band-inner {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.disclaimer-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-red);
    color: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    font-family: Georgia, serif;
}
.disclaimer-text {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.65;
}
.disclaimer-text strong {
    color: var(--color-white);
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .disclaimer-band-inner { flex-direction: column; gap: 14px; }
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
    background: var(--color-bg-soft);
    color: var(--color-text);
    padding: 56px 0 24px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    background: var(--color-white);
    padding: 18px 22px;
    display: inline-block;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}
.footer-logo img { height: 36px; width: auto; }

.footer-about {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text-soft);
    max-width: 380px;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--color-text-soft);
    font-size: 14.5px;
}
.footer-col a:hover { color: var(--color-red); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── COOKIE BANNER ────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--color-text);
    color: var(--color-white);
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
    transform: translateY(120%);
    transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-text {
    flex: 1;
    min-width: 240px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
}
.cookie-banner-text a {
    color: var(--color-white);
    text-decoration: underline;
}
.cookie-banner-text a:hover { color: var(--color-red); }

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    background: var(--color-white);
    color: var(--color-text);
    padding: 10px 18px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cookie-btn:hover {
    background: var(--color-red);
    color: var(--color-white);
}

/* ── PAGE LÉGALES (mise en page sobre) ────────────────── */
.legal-body {
    max-width: var(--maxw-narrow);
    margin: 0 auto;
    padding: 50px 22px 40px;
}
.legal-body h2 {
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal-body p,
.legal-body li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-soft);
}

.legal-placeholder {
    display: inline-block;
    background: #fff5cc;
    border: 1px dashed #c69300;
    color: #6b4f00;
    padding: 1px 8px;
    font-size: 14px;
    font-weight: 500;
}

/* ── CONTACT ──────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-card {
    padding: 32px 30px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
}
.contact-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.contact-card p {
    color: var(--color-text-soft);
    margin-bottom: 18px;
    font-size: 15.5px;
}
.contact-email {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-red);
    word-break: break-all;
}

@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
}
