/* ═══════════════════════════════════════════
   Éclairages — Sylvain Marchand
   Navy / Gold / Paper — Editorial
   ═══════════════════════════════════════════ */

:root {
    --navy: #1b2838; --navy-deep: #0f1922; --navy-mid: #1e2f42; --navy-light: #2a3d54;
    --gold: #c4a54d; --gold-light: #d4ba6a; --gold-dim: rgba(196,165,77,0.12);
    --cream: #f5f0e8; --paper: #faf7f1;
    --warm-gray: #8c8377; --text: #2c2c2c; --text-light: #6b6560; --text-muted: #9e9689;
    --border: rgba(0,0,0,0.06);
    --cat-analyses: #3b82f6; --cat-decryptages: var(--gold); --cat-tribunes: #c0392b;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--text); overflow-x: hidden; }

/* ─── NAV ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 32px; height: 56px; display: flex; align-items: center; justify-content: space-between; background: rgba(15,25,34,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(196,165,77,0.1); }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.active { color: var(--gold); }

/* ─── HERO MINI ─── */
.hero-mini { background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%); padding: 120px 32px 64px; position: relative; overflow: hidden; }
.hero-mini::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.hero-mini-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-mini .label { font-size: 0.65rem; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 16px; }
.hero-mini h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.7; max-width: 600px; }
.hero-desc a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.hero-desc a:hover { color: var(--gold); }

/* ─── HERO ARTICLE ─── */
.hero-article { padding-bottom: 48px; }
.hero-article h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); max-width: 700px; margin-bottom: 24px; }
.breadcrumb { margin-bottom: 24px; font-size: 0.78rem; }
.breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.15); }
.article-meta-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.article-cat { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 4px 12px; border-radius: 3px; }
.cat-analyses { color: var(--cat-analyses); background: rgba(59,130,246,0.1); }
.cat-decryptages { color: var(--cat-decryptages); background: var(--gold-dim); }
.cat-tribunes { color: var(--cat-tribunes); background: rgba(192,57,43,0.08); }
.article-date, .article-read { font-size: 0.8rem; color: rgba(255,255,255,0.35); font-weight: 300; }
.article-views { font-size: 0.8rem; color: rgba(255,255,255,0.35); font-weight: 300; }

.article-author { display: flex; gap: 12px; align-items: center; }
.article-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(196,165,77,0.2); }
.author-name { display: block; font-size: 0.88rem; color: #fff; font-weight: 600; }
.author-role { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.35); font-weight: 300; }
.author-linkedin { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); margin-left: 4px; transition: all 0.3s; }
.author-linkedin:hover { color: var(--gold-light); border-color: rgba(196,165,77,0.3); background: rgba(196,165,77,0.1); }

/* ─── CATEGORY FILTERS ─── */
.category-filters { padding: 24px 32px 0; }
.filters-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; padding: 8px 20px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; color: var(--text-muted); background: var(--cream); border: 1px solid var(--border); border-radius: 50px; text-decoration: none; transition: all 0.25s; }
.filter-chip:hover { color: var(--gold); border-color: rgba(196,165,77,0.3); }
.filter-chip.active { color: #fff; background: var(--navy); border-color: var(--navy); }

/* ─── ARTICLES LIST ─── */
.articles-list { padding: 32px 32px 24px; }
.articles-inner { max-width: 760px; margin: 0 auto; }
.no-articles { text-align: center; padding: 60px 0; color: var(--text-muted); font-style: italic; font-size: 1rem; }
.load-more-wrap { text-align: center; padding: 32px 0 16px; }
.btn-load-more {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
    color: var(--navy); background: #fff; border: 2px solid var(--border);
    border-radius: 8px; cursor: pointer; transition: all 0.25s;
    letter-spacing: 0.3px;
}
.btn-load-more:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(196,165,77,0.15); }
.btn-load-more span { font-weight: 400; font-size: 0.78rem; color: var(--text-muted); }

.article-card { border-bottom: 1px solid var(--border); padding: 32px 0; }
.article-card:first-child { padding-top: 0; }
.article-card:last-child { border-bottom: none; }
.article-card-link { text-decoration: none; color: inherit; display: flex; gap: 24px; align-items: flex-start; transition: transform 0.2s; }
.article-card-link:hover { transform: translateX(4px); }
.article-card-link:hover .article-card-title { color: var(--gold); }

/* Vignette à gauche */
.article-card-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}
.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-thumb img {
    transform: scale(1.06);
}
.article-card-body { flex: 1; min-width: 0; }

/* Sans image : layout normal */
.article-card:not(.has-thumb) .article-card-link { display: block; }

.article-card-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.article-card-cat { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.article-card-date, .article-card-read { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
.article-card-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; transition: color 0.3s; }
.article-card-desc { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; font-weight: 300; margin-bottom: 12px; }
.article-card-cta { font-size: 0.78rem; color: var(--gold); font-weight: 600; letter-spacing: 0.5px; }

/* ─── ARTICLE BODY ─── */
.article-body { padding: 48px 32px; }
.article-inner { max-width: 680px; margin: 0 auto; }
.article-inner h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 48px 0 16px; line-height: 1.3; }
.article-inner h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 36px 0 12px; line-height: 1.35; }
.article-inner p { font-size: 1.05rem; line-height: 1.9; color: var(--text-light); font-weight: 300; margin-bottom: 20px; }
.article-inner p strong { color: var(--text); font-weight: 600; }
.article-inner blockquote { margin: 32px 0; padding: 20px 28px; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 8px 8px 0; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--navy); line-height: 1.6; }
.article-inner .data-box { margin: 32px 0; padding: 24px 28px; background: var(--navy); border-radius: 10px; color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; }
.article-inner .data-box strong { color: var(--gold-light); }
.article-inner .data-box .data-source { display: block; margin-top: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.3); font-weight: 400; }
.article-inner ul, .article-inner ol { margin: 16px 0 24px 24px; font-size: 1.02rem; color: var(--text-light); line-height: 1.8; font-weight: 300; }
.article-inner li { margin-bottom: 8px; }
.article-inner li strong { color: var(--text); font-weight: 600; }
.article-inner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.article-inner a:hover { color: var(--navy); }
.article-inner hr { border: none; height: 1px; background: var(--border); margin: 40px 0; }
.article-placeholder { text-align: center; padding: 60px 0; color: var(--text-muted); font-style: italic; }

/* ─── TAGS ─── */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.tag { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; background: var(--cream); padding: 5px 14px; border-radius: 50px; letter-spacing: 0.3px; }

/* ─── RELATED ─── */
.related-section { padding: 48px 32px 64px; }
.related-inner { max-width: 760px; margin: 0 auto; }
.related-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.related-card { padding: 24px; background: var(--cream); border-radius: 10px; border: 1px solid rgba(0,0,0,0.04); text-decoration: none; color: inherit; transition: all 0.3s; }
.related-card:hover { border-color: rgba(196,165,77,0.3); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.related-card:hover h3 { color: var(--gold); }
.related-cat { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.related-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin: 8px 0; line-height: 1.35; transition: color 0.3s; }
.related-date { font-size: 0.72rem; color: var(--text-muted); }

/* ─── BUTTONS ─── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--gold); color: var(--navy-deep); text-decoration: none; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; border-radius: 4px; transition: all 0.3s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,165,77,0.25); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 1px solid rgba(196,165,77,0.35); color: var(--gold-light); text-decoration: none; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; border-radius: 4px; transition: all 0.3s; }
.btn-secondary:hover { background: rgba(196,165,77,0.08); border-color: var(--gold); }

/* ─── FOOTER ─── */
footer { background: var(--navy-deep); padding: 48px 32px; text-align: center; }
.footer-name { font-family: var(--font-display); font-size: 1.1rem; color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-name span { color: var(--gold); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); font-weight: 300; margin-bottom: 24px; }
.footer-links { display: flex; justify-content: center; gap: 24px; list-style: none; margin-bottom: 28px; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.2); }

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(16px); transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
/* ─── Image à la une (article) ─── */

.article-featured-img {
    margin: 0 auto 36px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}
.article-featured-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ─── Images inline dans le contenu ─── */

.article-img {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
}
.article-img img {
    width: 100%;
    height: auto;
    display: block;
}
.article-img figcaption {
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

/* ─── Boutons de partage ─── */

.article-share {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.share-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}
.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.share-btn svg { flex-shrink: 0; }
.share-linkedin:hover { background: #0077B5; color: #fff; border-color: #0077B5; }
.share-x:hover { background: #000; color: #fff; border-color: #000; }
.share-facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-email:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-copy:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.share-copy.copied { background: #27ae60; color: #fff; border-color: #27ae60; }

@media (max-width: 768px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.68rem; letter-spacing: 1px; }
    .hero-mini { padding: 100px 24px 48px; }
    .hero-mini h1 { font-size: 1.8rem; }
    .articles-list { padding: 24px 24px 16px; }
    .article-body { padding: 36px 24px; }
    .article-card-title { font-size: 1.2rem; }
    .related-grid { grid-template-columns: 1fr; }
    .category-filters { padding: 20px 24px 0; }
    .article-card-thumb { width: 140px; height: 95px; }
    .article-card-link { gap: 16px; }
}

@media (max-width: 520px) {
    .nav { padding: 0 16px; height: 50px; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.6rem; letter-spacing: 0.5px; }
    .hero-mini { padding: 80px 16px 36px; }
    .hero-mini h1 { font-size: 1.5rem; }
    .hero-article h1 { font-size: 1.3rem; }
    .articles-list { padding: 20px 16px 12px; }
    .article-body { padding: 28px 16px; }
    .article-inner h2 { font-size: 1.25rem; }
    .article-inner p { font-size: 0.95rem; }
    .related-section { padding: 36px 16px 48px; }
    .article-meta-top { gap: 10px; }
    .category-filters { padding: 16px 16px 0; }
    .filters-inner { gap: 8px; }
    .filter-chip { padding: 6px 16px; font-size: 0.72rem; }
    .btn-primary, .btn-secondary { font-size: 0.7rem; padding: 11px 20px; }
    .article-card-thumb { width: 110px; height: 75px; border-radius: 6px; }
    .article-card-link { gap: 12px; }
    .article-card-desc { display: none; }
    .share-btn span { display: none; }
    .share-btn { padding: 10px; }
}
