/* ===========================================
   VARIABLES & RESET
   =========================================== */

:root {
    /* ===== L'Investisseur Stratège — Charte « Encre & Papier » ===== */

    /* Surfaces (papier, clair) */
    --paper:        #F5F1E8;  /* fond de page principal */
    --paper-raised: #FBF8F1;  /* cartes / panneaux posés sur le papier */
    --paper-sunken: #EDE8DB;  /* sections alternées, encarts en creux */

    /* Encre (texte + surfaces sombres d'ancrage) */
    --ink:        #1B1A17;  /* texte principal ET fond des sections sombres */
    --ink-soft:   #2A2823;  /* fond sombre adouci (moins dur que l'encre pure) */
    --text:       #1B1A17;  /* texte principal (alias) */
    --text-muted: #57544C;  /* texte secondaire */
    --text-faint: #8A867A;  /* légendes, mentions RGPD, placeholders */

    /* Accent — terre cuite (remplace l'or) */
    --terre:       #9A3B28;
    --terre-hover: #7E2F20;  /* survol / actif */
    --terre-tint:  #F0E3DD;  /* fond pâle : badges, surlignages */

    /* Filets / bordures */
    --line:        #D8D2C4;  /* hairline par défaut */
    --line-strong: #C4BCAA;  /* séparateurs marqués, survols */

    /* Texte sur fond sombre (sections encre, footer) */
    --on-ink:        #F5F1E8;
    --on-ink-muted:  #B8B2A4;
    --on-ink-accent: #CF6B52;  /* terre éclaircie : lisible sur l'encre */

    /* Typographie (Cormorant conservée pour l'instant — swappable) */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

    /* Élévation discrète */
    --shadow-card: 0 1px 2px rgba(27,26,23,.05), 0 6px 18px rgba(27,26,23,.04);

    /* ---- Layout conservé (non lié aux couleurs) ---- */
    --radius:      22px;
    --max:         1180px;

    /* ---- Shims de compatibilité : anciens noms → nouvelle charte ----
       Permet de basculer sans renommer ~150 usages. Aucun ne pointe plus
       vers du navy/or/blanc translucide. */
    --font-body:    var(--font-sans);
    --bg:           var(--paper);
    --bg-soft:      var(--paper-sunken);
    --panel:        var(--paper-raised);
    --panel-strong: var(--paper-raised);
    --line-soft:    var(--line);
    --cream:        var(--ink);
    --muted:        var(--text-muted);
    --muted-2:      var(--text-faint);
    --gold:         var(--terre);
    --gold-soft:    var(--terre-tint);
    --shadow:       var(--shadow-card);
    /* --bg-deep retiré : double usage (texte/fond) traité au cas par cas */
}

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

html {
    scroll-behavior: smooth;
}

/* ===========================================
   BASE TYPOGRAPHY
   =========================================== */

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(27,26,23,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,26,23,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 70%);
    z-index: -1;
}

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

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-display);
}

/* ===========================================
   LAYOUT UTILITIES
   =========================================== */

.container {
    width: min(92%, var(--max));
    margin: 0 auto;
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 241, 232, 0.88);
    border-bottom: 0.5px solid var(--line);
}

.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--terre-tint);
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--gold);
    white-space: nowrap;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-cta {
    text-decoration: none;
    color: var(--on-ink);
    background: var(--terre);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.header-cta:hover {
    opacity: 0.88;
}

.header-logout {
    font-size: 0.8rem;
    color: var(--muted-2);
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-logout:hover {
    color: var(--gold);
}

.mobile-nav-links .mobile-nav-logout {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted-2);
    margin-top: 8px;
    letter-spacing: 0.04em;
}

/* ===========================================
   MOBILE NAVIGATION
   =========================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s;
}

.mobile-nav-close:hover { color: var(--text); }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.mobile-nav-links a:hover { color: var(--text); }

.mobile-nav-links .mobile-nav-cta {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--terre);
    border: 1px solid rgba(154, 59, 40, 0.35);
    padding: 14px 32px;
    border-radius: 999px;
    margin-top: 8px;
    letter-spacing: 0;
}

/* ===========================================
   HERO (HOMEPAGE)
   =========================================== */

.hero {
    min-height: 100vh;
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
    background: var(--paper);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(27,26,23,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,26,23,0.04) 1px, transparent 1px);
    background-size: 82px 82px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at 70% 40%, rgba(0,0,0,0.7), transparent 72%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 72px;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(52px, 6.5vw, 88px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 16px;
    color: var(--ink);
}

.hero-brand::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    background: var(--terre);
    margin-top: 22px;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hero-lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 580px;
    margin-bottom: 34px;
    line-height: 1.7;
}

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

/* ===========================================
   CREDIBILITY ROW
   =========================================== */

.credibility-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 560px;
}

.credibility-row div {
    border-top: 1px solid var(--line);
    padding-top: 15px;
}

.credibility-row strong {
    display: block;
    font-family: var(--font-display);
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
}

.credibility-row span {
    color: var(--muted-2);
    font-size: 12px;
}


/* ===========================================
   HERO VISUAL (PORTRAIT)
   =========================================== */

.hero-visual {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    width: min(430px, 88vw);
    min-height: 590px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: 65px 10px 20px;
    border: 0.5px solid var(--line);
    border-radius: 38px;
    background: var(--paper-raised);
    box-shadow: var(--shadow-card);
}

.portrait-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: none;
    top: 90px;
}

.portrait-img {
    position: relative;
    z-index: 2;
    max-height: 620px;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(27,26,23,0.18));
}

.floating-card {
    position: absolute;
    z-index: 4;
    width: 210px;
    padding: 18px;
    border-radius: 18px;
    background: var(--paper-raised);
    border: 0.5px solid var(--line);
    box-shadow: var(--shadow-card);
}

.floating-card span {
    color: var(--terre);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.floating-card strong {
    display: block;
    font-family: var(--font-display);
    margin: 8px 0 2px;
    font-size: 19px;
    font-weight: 500;
}

.floating-card small {
    color: var(--muted-2);
    font-size: 12px;
}

.card-market {
    left: -56px;
    top: 200px;
}

.card-risk {
    right: -56px;
    bottom: 100px;
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--terre);
    color: var(--on-ink);
}

.btn-primary:hover { background: var(--terre-hover); }

.btn-secondary {
    background: var(--paper-raised);
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--terre); }

.btn-large {
    min-height: 60px;
    padding: 18px 34px;
    font-size: 16px;
}

.author-bio-link {
    margin-top: 16px;
}

.club-lib-link {
    margin-top: 20px;
}

/* ===========================================
   EYEBROW & KICKER
   =========================================== */

.eyebrow,
.section-kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 18px;
}

/* ===========================================
   SECTIONS — SHARED
   =========================================== */

.section {
    padding: 120px 0;
    position: relative;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.section-dark {
    background: var(--paper-sunken);
    border-top: 0.5px solid var(--line);
    border-bottom: 0.5px solid var(--line);
}

/* ===========================================
   SECTION — EDITORIAL (lighter padding)
   =========================================== */

.section-editorial {
    padding: 80px 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 220px 1fr 330px;
    gap: 52px;
    align-items: start;
}

.editorial-content h2,
.section-heading h2,
.author-panel h2,
.ia-grid h2,
.newsletter-copy h2,
.club-panel h2 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
    margin-bottom: 28px;
}

.editorial-content p,
.section-heading p,
.author-panel p,
.ia-grid p,
.newsletter-copy p,
.club-panel p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.signal-list {
    display: grid;
    gap: 14px;
}

.signal-item {
    padding: 22px;
    border: 0.5px solid var(--line);
    background: var(--paper-raised);
    border-radius: var(--radius);
}

.signal-item span,
.ia-matrix span {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1.8px;
    font-family: var(--font-body);
}

.signal-item p {
    color: var(--text);
    margin-top: 8px;
    font-size: 15px;
}

/* ===========================================
   SECTION — FEATURES GRID
   =========================================== */

.section-heading {
    max-width: 850px;
    margin-bottom: 56px;
}

.cards-grid,
.audience-grid {
    display: grid;
    gap: 22px;
}

.cards-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.audience-card,
.ia-matrix div {
    background: var(--paper-raised);
    border: 0.5px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    min-height: 220px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.audience-card:hover,
.ia-matrix div:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
}

.icon-line {
    width: 36px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 24px;
}

.feature-card h3,
.audience-card h3,
.ia-matrix strong {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 12px;
}

.feature-card p,
.audience-card p,
.ia-matrix p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ===========================================
   SECTION — AUTHOR
   =========================================== */

.author-grid,
.ia-grid,
.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 54px;
    align-items: start;
}

.author-panel,
.club-panel,
.newsletter-cta-panel {
    border: 0.5px solid var(--line);
    background: var(--paper-raised);
    border-radius: calc(var(--radius) + 8px);
    padding: 42px;
    box-shadow: var(--shadow-card);
}

.authority-stack {
    display: grid;
    gap: 18px;
}

.authority-item {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--terre-tint);
    border: 0.5px solid var(--line);
}

.authority-item span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 11px;
    font-family: var(--font-body);
}

.authority-item strong {
    display: block;
    font-family: var(--font-display);
    margin-top: 10px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
}

/* ===========================================
   SECTION — IA
   =========================================== */

.section-ia {
    background: var(--paper-sunken);
    border-top: 0.5px solid var(--line);
    border-bottom: 0.5px solid var(--line);
}

.ia-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* ===========================================
   SECTION — AUDIENCE
   =========================================== */

.audience-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ===========================================
   SECTION — NEWSLETTER (conversion, more padding)
   =========================================== */

.section-newsletter {
    padding: 160px 0;
    background: var(--paper-sunken);
    border-top: 0.5px solid var(--line);
    border-bottom: 0.5px solid var(--line);
}

.value-list {
    list-style: none;
    display: grid;
    gap: 13px;
    margin-top: 28px;
}

.value-list li {
    color: var(--text);
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.value-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    left: 0;
    top: 8px;
}

.newsletter-cta-panel {
    background: var(--paper-raised);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.newsletter-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.newsletter-cta-sub {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.form-note {
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 14px;
    line-height: 1.5;
}

/* ===========================================
   SECTION — LIBRARY TEASER (club)
   =========================================== */

.section-club {
    padding: 100px 0;
}

.club-panel {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--terre-tint);
}

/* ===========================================
   SECTION — PARTENAIRES
   =========================================== */

.section-partenaires {
    padding: 80px 0;
}

.partenaires-header {
    text-align: center;
    margin-bottom: 60px;
}

.partenaires-header h2 {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
    letter-spacing: -0.02em;
    line-height: 1.3;
    max-width: 520px;
    margin: 0 auto;
}

.partenaires-strip {
    display: flex;
    align-items: stretch;
    min-height: 160px;
}

.partenaire-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partenaire-slot:not(:last-child) {
    border-right: 1px solid var(--line);
}

.partenaire-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    text-decoration: none;
    text-align: center;
}

.partenaire-accent {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    opacity: 0.35;
    margin-bottom: 4px;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.partenaire-inner:hover .partenaire-accent {
    opacity: 1;
    width: 38px;
}

.partenaire-logo-wrap {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partenaire-logo {
    max-height: 84px;
    max-width: 270px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.partenaire-inner:hover .partenaire-logo {
    opacity: 1;
}

.partenaire-name {
    display: block;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.partenaire-inner:hover .partenaire-name {
    color: var(--text);
}

.partenaire-specialty {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--muted-2);
    line-height: 1.4;
}

/* ===========================================
   PAGE HERO (inner pages)
   =========================================== */

.page-hero {
    padding: 160px 0 80px;
    background: var(--paper);
    border-bottom: 0.5px solid var(--line);
    text-align: center;
}

.page-hero .eyebrow {
    margin-bottom: 20px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--ink);
}

.page-hero .page-lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================================
   ARTICLE BODY (content pages)
   =========================================== */

.article-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
}

.article-meta .tag-chip + .tag-chip {
    margin-left: 4px;
}

.article-date {
    color: var(--muted-2);
    font-size: 13px;
}

.article-read-time {
    color: var(--muted-2);
    font-size: 13px;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 52px 0 20px;
    color: var(--text);
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    margin: 36px 0 14px;
    color: var(--text);
}

.article-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 22px;
}

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

.pullquote {
    border-left: 2px solid var(--gold);
    padding: 4px 0 4px 28px;
    margin: 40px 0;
}

.pullquote p {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 26px);
    font-style: italic;
    font-weight: 400;
    color: var(--text) !important;
    line-height: 1.4;
    margin: 0 !important;
}

.key-figure {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.key-figure .figure-value {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    white-space: nowrap;
}

.key-figure .figure-label {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.article-cta {
    margin-top: 64px;
    padding: 40px;
    border: 0.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--terre-tint);
    text-align: center;
}

.article-cta h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-cta p {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 60px;
    gap: 20px;
}

.article-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    max-width: 45%;
}

.article-nav a:hover { color: var(--gold); }

.article-nav .nav-prev::before { content: "← "; }
.article-nav .nav-next::after  { content: " →"; }

.article-nav .nav-index {
    font-size: 13px;
    color: var(--muted-2);
    flex-shrink: 0;
}

/* ===========================================
   CONTENT CARDS (archive indexes)
   =========================================== */

.content-grid {
    display: grid;
    gap: 22px;
}

.content-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.content-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.content-card {
    background: var(--paper-raised);
    border: 0.5px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
}

.content-card .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.content-card .card-date {
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.content-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.content-card .card-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card .card-read {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.content-card .card-read-more {
    margin-top: 14px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.replay-card .replay-duration {
    font-size: 13px;
    color: var(--muted-2);
}

/* ===========================================
   TAG CHIPS
   =========================================== */

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--terre-tint);
    border: 0.5px solid var(--line);
    color: var(--terre);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
}

/* ===========================================
   HUB HUB SECTION (bibliothèque index)
   =========================================== */

.hub-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--line-soft);
}

.hub-section:last-of-type {
    border-bottom: none;
}

.hub-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
}

.hub-header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hub-header a {
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.hub-header a:hover { opacity: 0.75; }

/* ===========================================
   FOOTER
   =========================================== */

.site-footer {
    border-top: 0.5px solid rgba(245,241,232,0.14);
    padding: 64px 0 40px;
    background: var(--ink);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--on-ink-accent);
    display: block;
    margin-bottom: 6px;
}

.footer-brand p {
    color: var(--on-ink-muted);
    font-size: 14px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--on-ink-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.footer-col a {
    font-size: 14px;
    color: var(--on-ink-muted);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

.footer-col a:hover { color: var(--on-ink-accent); }

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 0.5px solid rgba(245,241,232,0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--on-ink-muted);
    font-size: 14px;
    transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--on-ink-accent); }

.disclaimer {
    color: var(--on-ink-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 720px;
}

.copyright {
    color: var(--on-ink-muted);
    font-size: 13px;
    white-space: nowrap;
}

/* ===========================================
   REVEAL ANIMATIONS
   =========================================== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE — TABLET (768px – 1059px)
   =========================================== */

@media (max-width: 1059px) {
    .main-nav      { display: none; }
    .header-cta    { display: none; }
    .header-logout { display: none; }
    .hamburger     { display: flex; }

    .hero-inner,
    .editorial-grid,
    .author-grid,
    .ia-grid,
    .newsletter-grid,
    .inscription-inner,
    .club-panel {
        grid-template-columns: 1fr;
    }

    .hero-copy  { order: 1; }
    .hero-visual { order: 2; min-height: 480px; }

    /* Floating cards: static on tablet */
    .floating-card {
        position: static;
        width: auto;
    }

    .hero-visual {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cards-grid.four,
    .audience-grid,
    .content-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .partenaires-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .partenaire-slot:not(:last-child) {
        border-right: none;
    }

    .partenaire-slot:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .partenaire-slot:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        gap: 32px;
    }
}

/* ===========================================
   RESPONSIVE — MOBILE (< 768px)
   =========================================== */

@media (max-width: 767px) {
    .header-inner { height: 68px; }

    .brand-text {
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .hero-brand {
        font-size: clamp(44px, 11vw, 60px);
    }

    .section        { padding: 80px 0; }
    .section-editorial { padding: 60px 0; }
    .section-newsletter { padding: 100px 0; }
    .section-club   { padding: 70px 0; }
    .section-partenaires { padding: 56px 0; }

    .section h2,
    .editorial-content h2,
    .section-heading h2,
    .author-panel h2,
    .ia-grid h2,
    .newsletter-copy h2,
    .club-panel h2 {
        font-size: clamp(28px, 7vw, 38px);
    }

    .author-panel,
    .club-panel,
    .newsletter-cta-panel { padding: 28px; }

    .floating-card { display: none; }

    .credibility-row,
    .cards-grid.four,
    .audience-grid,
    .ia-matrix,
    .footer-inner,
    .content-grid.three,
    .content-grid.two {
        grid-template-columns: 1fr;
    }

    .partenaires-strip {
        grid-template-columns: 1fr;
    }

    .partenaire-slot:nth-child(odd) {
        border-right: none;
    }

    .partenaire-slot:nth-child(-n+2) {
        border-bottom: none;
    }

    .partenaire-slot:not(:last-child) {
        border-bottom: 1px solid var(--line);
    }

    .partenaire-inner {
        padding: 24px 16px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article-wrap {
        padding: 48px 0 80px;
    }

    .article-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-nav a { max-width: 100%; }

    .page-hero { padding: 130px 0 60px; }

    .key-figure {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-cta { padding: 28px 24px; }

    .inscription-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .radio-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-step2-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .section-inscription { padding: 80px 0; }
}

/* ===========================================
   SECTION — INSCRIPTION (two-step form)
   =========================================== */

.section-inscription {
    padding: 140px 0;
    background: var(--paper);
}

.inscription-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.inscription-pitch h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 22px;
}

.inscription-pitch p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ===========================================
   FORM PANEL
   =========================================== */

.inscription-form-panel {
    background: var(--paper-raised);
    border: 0.5px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    padding: 42px;
    box-shadow: var(--shadow-card);
}

/* ===========================================
   PROGRESS INDICATOR
   =========================================== */

.form-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper-sunken);
    border: 1px solid var(--line);
    transition: background 0.35s ease, border-color 0.35s ease;
    flex-shrink: 0;
}

.progress-dot.is-active {
    background: var(--terre);
    border-color: var(--terre);
    box-shadow: 0 0 8px rgba(154,59,40,0.4);
}

.progress-connector {
    flex: 1;
    height: 1px;
    background: var(--line);
    max-width: 40px;
    margin: 0 6px;
    transition: background 0.35s ease;
}

.progress-connector.is-active {
    background: var(--gold);
}

/* ===========================================
   FORM STEPS
   =========================================== */

.form-step {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-step-2 {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-step-2.is-animating {
    display: flex;
}

.form-step-2.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================================
   FORM BLOCKS
   =========================================== */

.form-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-block-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text);
}

.form-limit-msg {
    color: var(--muted-2);
    font-weight: 400;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-transform: uppercase;
}

.req {
    color: var(--gold);
    font-size: 14px;
}

.field-input {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.field-input::placeholder {
    color: var(--muted-2);
}

.field-input:focus {
    border-color: var(--terre);
    background: var(--paper-raised);
}

.field-error-msg {
    font-size: 12px;
    color: #B3261E;
    margin-top: 10px;
    display: none;
}

.field-hint {
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 7px;
    line-height: 1.5;
}

/* ===========================================
   RADIO CARDS (Bloc C — Profil)
   =========================================== */

.radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.radio-card:hover {
    border-color: var(--line-strong);
    background: var(--paper-raised);
}

.radio-card.is-selected {
    border-color: var(--terre);
    background: var(--terre-tint);
}

.radio-card-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
    transition: color 0.2s;
}

.radio-card.is-selected .radio-card-label {
    color: var(--text);
}

/* ===========================================
   RADIO LIST (Bloc D — Contexte)
   =========================================== */

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    user-select: none;
    position: relative;
}

.radio-row:hover {
    border-color: var(--line-strong);
    background: var(--paper-raised);
}

.radio-row.is-selected {
    border-color: var(--terre);
    background: var(--terre-tint);
    color: var(--text);
}

/* ===========================================
   RADIO DOT UI (shared by cards and rows)
   =========================================== */

.radio-dot-ui {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: transparent;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease;
}

.radio-dot-ui::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-card.is-selected .radio-dot-ui,
.radio-row.is-selected .radio-dot-ui {
    border-color: var(--gold);
}

.radio-card.is-selected .radio-dot-ui::after,
.radio-row.is-selected .radio-dot-ui::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ===========================================
   CHECKBOXES (Blocs E, F, RGPD)
   =========================================== */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.checkbox-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    user-select: none;
    position: relative;
}

.checkbox-custom:hover {
    border-color: var(--line-strong);
    background: var(--paper-raised);
}

.checkbox-custom.is-selected {
    border-color: var(--terre);
    background: var(--terre-tint);
    color: var(--text);
}

.checkbox-custom.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--line);
    background: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 7px;
    border-right: 2px solid var(--on-ink);
    border-bottom: 2px solid var(--on-ink);
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.checkbox-custom.is-selected .checkbox-box {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-custom.is-selected .checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

/* RGPD special */
.form-rgpd .checkbox-custom {
    border: none;
    background: none;
    padding: 0;
    align-items: flex-start;
}

.form-rgpd .checkbox-custom:hover {
    background: none;
    border: none;
}

.form-rgpd .checkbox-custom a {
    color: var(--gold);
    text-decoration: none;
}

.form-rgpd .checkbox-custom a:hover {
    text-decoration: underline;
}

/* ===========================================
   STEP 2 ACTIONS
   =========================================== */

.form-step2-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 14px 22px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.form-btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Message d'erreur RGPD inline */
.rgpd-error-msg {
    display: none;
    color: #B3261E;
    font-size: 13px;
    font-family: var(--font-body);
    margin-top: 10px;
    padding-left: 2px;
}

.checkbox-custom.rgpd-required .checkbox-box {
    border-color: rgba(210, 90, 90, 0.7);
}

/* ===========================================
   DOSSIERS DE L'INVESTISSEUR
   =========================================== */

.dossier-card {
    background: var(--paper-raised);
    border: 0.5px solid var(--line);
    border-left: 3px solid var(--terre);
    border-radius: var(--radius);
    padding: 44px 52px;
    max-width: 760px;
    margin: 0 auto;
}

.dossier-card-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-family: var(--font-body);
    margin-bottom: 22px;
    display: block;
}

.dossier-card h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--cream);
}

.dossier-card p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 580px;
}

.dossier-card-foot {
    font-size: 13px;
    color: var(--muted-2);
    margin-top: 18px;
    font-family: var(--font-body);
}

.dossiers-list {
    display: flex;
    flex-direction: column;
    max-width: 760px;
}

.dossier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
    gap: 24px;
}

.dossier-row:first-child {
    border-top: 1px solid var(--line-soft);
}

.dossier-row-meta {
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
}

.dossier-row-main {
    flex: 1;
}

.dossier-row-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text);
}

.dossier-row-desc {
    margin-top: 6px;
    font-size: 0.9em;
    color: var(--muted);
    line-height: 1.45;
}

.dossier-row-dl {
    font-size: 13px;
    color: var(--terre);
    text-decoration: none;
    border-bottom: 1px solid rgba(154,59,40,0.3);
    padding-bottom: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
}

.dossier-row-dl:hover {
    color: var(--terre-hover);
    border-bottom-color: var(--terre);
}

.dossier-empty {
    padding: 40px 0;
    color: var(--muted-2);
    font-size: 15px;
    font-style: italic;
}

/* ------------------------------------------------------------------
   Lignes de dossiers sur mobile — empilement vertical
   Sans cette regle, .dossier-row reste en flex horizontal : la colonne
   « Technique n°XX · N pages » (min-width 140px, nowrap) et le lien de
   telechargement (nowrap, flex-shrink 0) consomment la largeur, et le
   resume tombe dans une colonne d'environ 95 px.
   S'applique a dossiers.html comme a dossiers-techniques.html.
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
    .dossier-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }

    .dossier-row-meta {
        min-width: 0;
        white-space: normal;
    }

    .dossier-row-main {
        width: 100%;
    }

    .dossier-row-title {
        display: block;
        font-size: 19px;
        line-height: 1.25;
    }

    .dossier-row-desc {
        margin-top: 8px;
    }

    .dossier-row-dl {
        margin-top: 2px;
    }
}
