@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --ink: #0a0a0f;
    --paper: #faf8f5;
    --cream: #f3efe9;
    --warm: #ece6dc;
    --gold: #b8942e;
    --gold-light: #d4b45a;
    --green-soft: #e8f0e8;
    --green: #2d7a4e;
    --text: #2a2a2e;
    --text-secondary: #5e5e64;
    --text-light: #9a9a9e;
    --border: #ddd6cc;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --max-width: 720px;
    --wide: 1080px;
}

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

html { scroll-behavior: smooth; }

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

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--paper);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
/* ===== READING PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 200;
    transition: width 0.1s linear;
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.header-inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 16px 32px;
    transition: padding 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.site-title span { color: var(--gold); }

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

.site-nav a {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s;
}

.site-nav a:hover { color: var(--ink); }

.btn-subscribe {
    font-family: var(--mono) !important;
    font-size: 12px !important;
    color: white !important;
    background: var(--gold);
    padding: 10px 24px;
    text-decoration: none;
    letter-spacing: 1.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--gold-light);
}

/* ===== HERO (sombre, signature) ===== */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 160px 32px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(184, 148, 46, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-inner {
    max-width: var(--wide);
    margin: 0 auto;
    position: relative;
}

.hero-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    width: 40px; height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 32px;
    max-width: 900px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-description {
    font-size: 19px;
    color: rgba(245, 240, 235, 0.6);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: var(--gold);
    padding: 16px 36px;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(184, 148, 46, 0.25);
}

.hero-cta svg {
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* ===== ARTICLES (clair, chaleureux) ===== */
.articles-section {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 80px 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--text);
}

.section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.section-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--ink);
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-count {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.article-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.article-card .tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 14px;
}

.article-card .issue-number {
    font-family: var(--serif);
    font-size: 72px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: 8px; right: 16px;
    line-height: 1;
}

.article-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.article-card .excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-card .meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.read-arrow {
    width: 20px; height: 20px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.article-card:hover .read-arrow {
    transform: translateX(6px);
    color: var(--gold);
}

/* ===== ABOUT (fond crème, chaleureux) ===== */
.about-section {
    background: var(--cream);
    padding: 80px 32px;
    position: relative;
}

.about-inner {
    max-width: var(--wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.about-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-label::before {
    content: '';
    width: 40px; height: 1px;
    background: var(--gold);
}

.about-inner h2 {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
}

.about-inner h2 em {
    font-style: italic;
    color: var(--gold);
}

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

/* ===== NEWSLETTER (fond blanc, aéré) ===== */
.newsletter-section {
    background: white;
    padding: 80px 32px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-inner h2 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--ink);
}

.newsletter-inner p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ===== FOOTER (sombre, rappel du hero) ===== */
.site-footer {
    background: var(--ink);
    padding: 32px;
    text-align: center;
}

.site-footer p {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(245, 240, 235, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer a {
    color: rgba(245, 240, 235, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover { color: var(--gold); }

/* ===== ARTICLE PAGE ===== */
.article-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 24px 0;
}

.article-header .tag {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.article-header h1 {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--ink);
}

.article-header .subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.article-header .meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--ink);
}

.article-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-body h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    margin-top: 52px;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    color: var(--ink);
}

.article-body p {
    margin-bottom: 22px;
    color: var(--text);
}

.article-body strong { font-weight: 600; }

.highlight-box {
    background: var(--cream);
    border-left: 3px solid var(--ink);
    padding: 24px 28px;
    margin: 32px 0;
    font-size: 16px;
    border-radius: 0 6px 6px 0;
}

.highlight-box p { margin-bottom: 12px; }
.highlight-box p:last-child { margin-bottom: 0; }

.key-point { font-weight: 600; }

.scenario-box {
    padding: 24px 28px;
    margin: 20px 0;
    font-size: 16px;
    border-radius: 0 6px 6px 0;
}

.scenario-box p { margin-bottom: 8px; }
.scenario-box p:last-child { margin-bottom: 0; }

.scenario-box.good {
    background: #eef6ee;
    border-left: 3px solid #2d8a4e;
}

.scenario-box.neutral {
    background: #f7f3ea;
    border-left: 3px solid #b8960c;
}

.scenario-box.bad {
    background: #fceeed;
    border-left: 3px solid #c0392b;
}

.scenario-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.scenario-box.good .scenario-label { color: #2d8a4e; }
.scenario-box.neutral .scenario-label { color: #b8960c; }
.scenario-box.bad .scenario-label { color: #c0392b; }

.pullquote {
    font-family: var(--serif);
    font-size: 24px;
    font-style: italic;
    color: var(--ink);
    border-left: 3px solid var(--gold);
    padding: 4px 0 4px 28px;
    margin: 44px 0;
    line-height: 1.45;
}

.product-card {
    background: var(--ink);
    color: var(--paper);
    padding: 28px;
    margin: 32px 0;
    border-radius: 8px;
}

.product-card h3 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 20px;
}

.product-card table {
    width: 100%;
    border-collapse: collapse;
}

.product-card td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 240, 235, 0.1);
    font-size: 15px;
}

.product-card td:first-child {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: rgba(245, 240, 235, 0.5);
    width: 40%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card td:last-child { font-weight: 600; }
.product-card tr:last-child td { border-bottom: none; }

/* ===== CTA BOX ===== */
.cta-box {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 44px;
    margin: 56px 0;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.cta-box h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

/* ===== READING TIME ===== */
.reading-time {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-light);
}

/* ===== ARTICLE NAV ===== */
.article-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
    border-top: 2px solid var(--ink);
}

.article-nav p {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-nav a {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ===== ARTICLE BODY LINKS ===== */
.article-body a {
    color: var(--ink);
    text-decoration: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s;
}

.article-body a:hover {
    color: var(--gold);
    background-size: 100% 100%;
    background-image: linear-gradient(var(--gold-light), var(--gold-light));
    color: var(--ink);
}

/* ===== H2 DECORATION IN ARTICLES ===== */
.article-body h2::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 12px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-label { animation: fadeUp 0.6s ease 0.1s both; }
.hero h1 { animation: fadeUp 0.6s ease 0.2s both; }
.hero-description { animation: fadeUp 0.6s ease 0.35s both; }
.hero-cta { animation: fadeUp 0.6s ease 0.5s both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { padding: 14px 20px; }
    .site-nav { gap: 16px; }
    .site-nav a:not(.btn-subscribe) { display: none; }
    .hero { padding: 120px 20px 60px; }
    .hero h1 { letter-spacing: -1px; }
    .articles-section { padding: 48px 20px; }
    .articles-grid { grid-template-columns: 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 32px; }
    .about-section { padding: 60px 20px; }
    .newsletter-section { padding: 60px 20px; }
    .article-header { padding: 100px 20px 0; }
    .article-header h1 { font-size: 30px; }
    .article-body { padding: 32px 20px 60px; }
    .pullquote { font-size: 20px; }
    .cta-box { padding: 28px 20px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
