/* ═══════════════════════════════════════════════════════════════
   PUBLICATIONS — Feuille de style partagée
   Réutilise la charte de laurentguilbert.com
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0F0F0F;
    --bg-secondary: #161616;
    --bg-tertiary: #1C1C1C;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --text-primary: #F5F0EB;
    --text-secondary: #A8A29E;
    --text-muted: #6B6560;
    --gold: #C8A97E;
    --gold-light: #D4BA94;
    --gold-dark: #A68B5B;
    --gold-glow: rgba(200, 169, 126, 0.15);
    --border: rgba(200, 169, 126, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --max-w: 1240px;
    --max-w-reading: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 900px 600px at 15% 0%, rgba(200,169,126,0.045), transparent 60%),
        radial-gradient(ellipse 800px 500px at 85% 40%, rgba(200,169,126,0.035), transparent 65%),
        radial-gradient(ellipse 700px 500px at 20% 80%, rgba(200,169,126,0.03), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.008) 0 1px, transparent 1px 3px),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
        linear-gradient(180deg, #0F0F0F 0%, #0B0B0B 40%, #0F0F0F 80%, #0A0A0A 100%);
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, no-repeat;
    background-size: auto, auto, auto, auto, auto, 220px 220px, auto;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg-primary); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.container-reading { max-width: var(--max-w-reading); margin: 0 auto; padding: 0 24px; }

/* ═══════════════════ NAV ═══════════════════ */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
}
nav.scrolled { background: rgba(15, 15, 15, 0.95); box-shadow: 0 4px 40px rgba(0,0,0,0.4); }
nav .container { display: flex; justify-content: space-between; align-items: center; height: 76px; }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; height: 40px; }
.nav-logo svg { height: 36px; width: auto; }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary); font-size: 0.82rem;
    font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px;
    background: var(--gold); transition: width 0.4s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 24px; height: 1.5px; background: var(--text-primary); transition: 0.3s; }

/* ═══════════════════ HERO PUBLICATIONS ═══════════════════ */
.pub-hero {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}
.pub-hero::before {
    content: ''; position: absolute; top: 30%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(200,169,126,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.pub-hero-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.pub-hero-tag::before, .pub-hero-tag::after {
    content: ''; width: 32px; height: 1px; background: var(--gold);
}
.pub-hero h1 {
    font-family: var(--font-display); font-size: 3.6rem; font-weight: 500;
    line-height: 1.1; color: var(--text-primary); margin-bottom: 20px;
    letter-spacing: -0.02em; position: relative; z-index: 1;
}
.pub-hero h1 em { font-style: italic; color: var(--gold); }
.pub-hero-subtitle {
    font-family: var(--font-accent); font-size: 1.4rem; font-weight: 400;
    color: var(--text-secondary); font-style: italic;
    max-width: 680px; margin: 0 auto; position: relative; z-index: 1;
}

/* ═══════════════════ GRILLE D'ARTICLES ═══════════════════ */
.articles-section { padding: 80px 0 120px; }

.articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 36px 32px;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}
.article-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s ease;
}
.article-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.article-card:hover::before { transform: scaleX(1); }

.article-card-tag {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 16px;
}
.article-card h3 {
    font-family: var(--font-display); font-size: 1.45rem; font-weight: 500;
    line-height: 1.25; color: var(--text-primary);
    margin-bottom: 14px; letter-spacing: -0.015em;
}
.article-card-excerpt {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 28px; flex-grow: 1;
}
.article-card-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.74rem; color: var(--text-muted);
    padding-top: 20px; border-top: 1px solid var(--border-subtle);
    letter-spacing: 0.05em;
}
.article-card-arrow {
    color: var(--gold);
    transition: transform 0.4s ease;
    display: inline-block;
}
.article-card:hover .article-card-arrow { transform: translateX(6px); }

/* ═══════════════════ ARTICLE (page individuelle) ═══════════════════ */

/* Fil d'Ariane — bande dédiée, gauche, sous la nav */
.breadcrumb-bar {
    padding: 110px 0 0;
    background: transparent;
    position: relative;
}
.breadcrumb-bar .article-breadcrumb {
    text-align: left;
    margin: 0;
    padding: 18px 0 14px;
    border-bottom: 1px solid rgba(200, 169, 126, 0.12);
}

.article-header {
    padding: 44px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}
.article-header::before {
    content: ''; position: absolute; top: 40%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(200,169,126,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.article-breadcrumb {
    font-size: 0.74rem; color: var(--text-muted);
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--gold); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb .sep { margin: 0 10px; opacity: 0.5; }

.article-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.article-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.article-title {
    font-family: var(--font-display); font-size: 3rem; font-weight: 500;
    line-height: 1.15; letter-spacing: -0.02em;
    max-width: 900px; margin: 0 auto 20px;
    position: relative; z-index: 1;
}
.article-title em { font-style: italic; color: var(--gold); }

.article-lede {
    font-family: var(--font-accent); font-size: 1.35rem; font-weight: 400;
    font-style: italic; color: var(--text-secondary);
    max-width: 720px; margin: 0 auto 32px;
    position: relative; z-index: 1;
}

.article-meta {
    display: inline-flex; gap: 32px; align-items: center;
    font-size: 0.78rem; color: var(--text-muted);
    letter-spacing: 0.05em;
    position: relative; z-index: 1;
}
.article-meta span::before {
    content: '—'; margin-right: 8px; color: var(--gold); opacity: 0.6;
}
.article-meta span:first-child::before { display: none; }

/* ═══════════════════ HERO IMAGE D'ARTICLE ═══════════════════
   Format cinématographique (crop ~50% vertical),
   filtre unifié sépia/or cohérent avec la charte dark-gold.
   ══════════════════════════════════════════════════════════ */
.article-hero {
    max-width: 1240px;
    margin: 56px auto 24px;
    padding: 0 48px;
    position: relative;
    text-align: center;
}
.article-hero img {
    width: 100%;
    aspect-ratio: 5 / 2;          /* crop ~50% — format large, cinéma */
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    /* Filtre commun — ton chaud, contrasté, légèrement désaturé
       pour harmonier avec le palette or/noir du site */
    filter:
        grayscale(0.22)
        sepia(0.32)
        contrast(1.08)
        brightness(0.82)
        saturate(0.88);
    transition: filter 0.5s ease, transform 0.6s ease;
}
.article-hero::before {
    /* Dégradé or subtil qui fond l'image dans le fond du site */
    content: '';
    position: absolute;
    left: 48px; right: 48px; top: 0; bottom: 0;
    background:
        linear-gradient(180deg, rgba(15,15,15,0.22) 0%, transparent 22%, transparent 70%, rgba(15,15,15,0.55) 100%),
        radial-gradient(ellipse at center, transparent 55%, rgba(15,15,15,0.35) 100%);
    pointer-events: none;
    border-radius: 4px;
    mix-blend-mode: normal;
}
.article-hero::after {
    /* Fine ligne or en bas — signature graphique */
    content: '';
    position: absolute;
    left: 50%; bottom: -14px;
    transform: translateX(-50%);
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.65;
    pointer-events: none;
}
.article-hero figcaption {
    margin-top: 28px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-accent);
    padding: 0 24px;
    max-width: var(--max-w-reading);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.article-hero figcaption em {
    color: var(--gold);
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .article-hero { padding: 0 24px; margin: 32px auto 16px; }
    .article-hero::before { left: 24px; right: 24px; }
    .article-hero img { aspect-ratio: 16 / 9; }
}

/* Corps d'article */
.article-body {
    padding: 72px 0 100px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
}
.article-body > * { max-width: var(--max-w-reading); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.article-body > figure, .article-body > .figure-wide, .article-body > .callout {
    max-width: 900px;
}

.article-body h2 {
    font-family: var(--font-display); font-size: 2.1rem; font-weight: 500;
    line-height: 1.2; letter-spacing: -0.015em;
    margin: 72px auto 20px; color: var(--text-primary);
    padding-top: 8px;
}
.article-body h2 em { font-style: italic; color: var(--gold); }
.article-body h2:first-of-type { margin-top: 0; }

.article-body h3 {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
    line-height: 1.3; letter-spacing: -0.01em;
    margin: 48px auto 16px; color: var(--gold-light);
}

.article-body p {
    margin-bottom: 22px; color: var(--text-primary);
}
.article-body p.lede::first-letter {
    font-family: var(--font-display); font-size: 4rem; float: left;
    line-height: 1; margin: 4px 14px 0 0; color: var(--gold); font-weight: 500;
}

.article-body a {
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid rgba(200,169,126,0.3);
    transition: border-color 0.3s, color 0.3s;
}
.article-body a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body em { font-style: italic; color: var(--text-secondary); }

.article-body ul, .article-body ol {
    margin: 0 auto 24px;
    max-width: var(--max-w-reading);
    padding-left: 48px; padding-right: 24px;
    color: var(--text-primary);
}
.article-body li { margin-bottom: 10px; padding-left: 6px; }
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); font-weight: 600; }

.article-body blockquote {
    border-left: 2px solid var(--gold);
    padding: 8px 28px;
    margin: 36px auto;
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: var(--max-w-reading);
}

.article-body code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.92em;
    color: var(--gold-light);
    font-family: 'SF Mono', 'Monaco', 'Menlo', Consolas, monospace;
}
.article-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-left: 2px solid var(--gold);
    padding: 20px 24px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 28px auto;
    max-width: 900px;
}
.article-body pre code {
    background: transparent; border: none; padding: 0;
    color: var(--text-primary); font-size: 0.88rem;
}

/* Visuels et figures */
.article-body figure {
    margin: 48px auto;
    text-align: center;
}
.article-body figure svg,
.article-body figure img {
    max-width: 100%; height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}
.article-body figcaption {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-accent);
    padding: 0 24px;
}

/* Callout / encadré d'astuce */
.callout {
    margin: 36px auto;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(200,169,126,0.05), rgba(200,169,126,0.02));
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}
.callout-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 10px;
}
.callout p { margin-bottom: 0 !important; color: var(--text-primary); }
.callout p + p { margin-top: 12px !important; }

/* Checklist */
.checklist {
    list-style: none !important;
    padding-left: 24px !important;
}
.checklist li {
    position: relative;
    padding-left: 36px !important;
    margin-bottom: 14px !important;
}
.checklist li::before {
    content: '';
    position: absolute; left: 0; top: 8px;
    width: 18px; height: 18px;
    border: 1.5px solid var(--gold);
    border-radius: 3px;
}
.checklist li::after {
    content: '';
    position: absolute; left: 5px; top: 10px;
    width: 8px; height: 4px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}

/* Tableau comparatif */
.comparison-table {
    width: 100%; max-width: 900px; margin: 36px auto;
    border-collapse: collapse;
    font-size: 0.92rem;
    padding: 0 !important;
}
.comparison-table th, .comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.comparison-table th {
    background: var(--bg-secondary);
    font-family: var(--font-display);
    font-weight: 600; font-size: 0.95rem;
    color: var(--gold-light);
    border-bottom: 1px solid var(--border);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(200,169,126,0.03); }

/* Navigation bas d'article */
.article-nav {
    max-width: var(--max-w-reading); margin: 60px auto 0;
    padding: 32px 24px 0;
    border-top: 1px solid var(--border-subtle);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.article-nav a {
    color: var(--gold); text-decoration: none;
    font-size: 0.82rem; letter-spacing: 0.1em;
    text-transform: uppercase; font-weight: 600;
    transition: color 0.3s;
}
.article-nav a:hover { color: var(--gold-light); }

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
    background: var(--bg-primary);
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}
footer p { font-size: 0.82rem; color: var(--text-muted); }
footer a { color: var(--gold); text-decoration: none; }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-hero h1 { font-size: 2.8rem; }
    .article-title { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 76px; left: 0; right: 0;
        background: rgba(15,15,15,0.98); padding: 24px; gap: 20px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .hamburger { display: flex; }
    .nav-logo svg { width: 140px; height: auto; }

    .pub-hero { padding: 140px 0 60px; }
    .pub-hero h1 { font-size: 2.1rem; }
    .pub-hero-subtitle { font-size: 1.1rem; }

    .articles-section { padding: 60px 0 80px; }
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
    .article-card { padding: 28px 24px; }
    .article-card h3 { font-size: 1.2rem; }

    .breadcrumb-bar { padding: 90px 0 0; }
    .breadcrumb-bar .article-breadcrumb { font-size: 0.68rem; padding: 14px 0 12px; }
    .article-header { padding: 36px 0 50px; }
    .article-title { font-size: 1.9rem; }
    .article-lede { font-size: 1.1rem; }
    .article-meta { flex-direction: column; gap: 6px; font-size: 0.72rem; }
    .article-meta span::before { display: none; }

    .article-body { padding: 50px 0 70px; font-size: 0.98rem; }
    .article-body h2 { font-size: 1.6rem; margin-top: 48px; }
    .article-body h3 { font-size: 1.15rem; }
    .article-body blockquote { font-size: 1.1rem; padding: 4px 18px; }
    .callout { padding: 22px 22px; }
    .comparison-table { font-size: 0.82rem; }
    .comparison-table th, .comparison-table td { padding: 10px 12px; }

    footer p { font-size: 0.74rem; line-height: 1.6; }
}

/* ═══════════════════ LIENS D'ACRONYMES (inline dans les articles) ═══════════════════ */
.acro-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(200, 169, 126, 0.55);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: help;
}
.acro-link:hover,
.acro-link:focus {
    color: var(--gold);
    border-bottom-color: var(--gold);
    border-bottom-style: solid;
    outline: none;
}
.acro-link::after {
    content: '\200B'; /* zero-width space pour préserver le wrapping */
}
