/* ============================================
   LUCIDITY INDEX — Main Stylesheet
   Voir clair dans le bruit économique
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #0B1D3A;
  --deep-blue: #142D55;
  --royal: #1B4F8A;
  --accent: #2E86DE;
  --light-accent: #5BA4F5;
  --ice: #E8F1FB;
  --ghost: #F4F7FB;
  --white: #FFFFFF;
  --slate: #64748B;
  --warm-gray: #94A3B8;
  --charcoal: #1E293B;
  --gold: #C8A84E;
  --signal-red: #DC4A3F;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --reading-width: 780px;
  --gap: 2rem;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--ghost);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--light-accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2em; }

.mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-red { color: var(--signal-red); }
.text-slate { color: var(--slate); }
.text-warm { color: var(--warm-gray); }
.text-white { color: var(--white); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--reading-width); }
.section { padding: 5rem 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--deep { background: var(--deep-blue); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--ice { background: var(--ice); }
.section--white { background: var(--white); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }

/* --- Grid pattern background for dark sections --- */
.grid-bg {
  position: relative;
}
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo__mark {
  width: 36px;
  height: 36px;
  position: relative;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  overflow: hidden;
}
.logo__mark::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: var(--accent);
}
.logo__mark span { position: relative; z-index: 1; }
.logo__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo__text em {
  font-style: normal;
  color: var(--accent);
}

/* Desktop Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav__link {
  color: var(--warm-gray);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav__link:hover,
.main-nav__link--active { color: var(--white); }
.main-nav__link--active { border-bottom: 2px solid var(--accent); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__link {
  color: var(--warm-gray);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
  transition: color var(--transition);
}
.mobile-nav__link:hover { color: var(--white); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--navy);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(46,134,222,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.hero__tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--warm-gray);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--light-accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
}
.btn--ghost:hover { color: var(--light-accent); }

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--deep-blue); color: var(--white); }

/* ============================================
   STAT CARDS (Key Figures)
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: var(--deep-blue);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: rgba(46,134,222,0.3);
  transform: translateY(-2px);
}
.stat-card__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--signal-red);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.stat-card__value--accent { color: var(--accent); }
.stat-card__value--gold { color: var(--gold); }
.stat-card__label {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-weight: 400;
  line-height: 1.4;
}
.stat-card__context {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-top: 0.75rem;
}
.stat-card__source {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate);
  margin-top: 0.75rem;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(11,29,58,0.08);
  transform: translateY(-2px);
}

.article-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--ice);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--accent); }

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--warm-gray);
  font-family: var(--font-mono);
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ============================================
   THEMATIC CARDS
   ============================================ */
.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(11,29,58,0.08);
}
.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}
.theme-card:hover::before { transform: scaleY(1); }

.theme-card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  width: 48px;
  height: 48px;
  background: var(--ice);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.theme-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.theme-card__desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.theme-card__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--warm-gray);
}

/* ============================================
   BOOK PROMO SECTION
   ============================================ */
.book-promo {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
}

.book-cover {
  width: 200px;
  height: 290px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 60%, var(--royal) 100%);
  border-radius: 4px;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}
.book-cover__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.book-cover__subtitle {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--warm-gray);
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.book-cover__author {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book-promo__content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.book-promo__content p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-box {
  background: var(--deep-blue);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.newsletter-box > * { position: relative; z-index: 1; }

.newsletter-box h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-box p { color: var(--warm-gray); margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]::placeholder { color: var(--warm-gray); }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: var(--warm-gray);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand p {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 1rem;
  line-height: 1.6;
}
.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
  color: var(--warm-gray);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  color: var(--warm-gray);
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--accent); }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--warm-gray);
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.4rem; color: var(--warm-gray); }

/* ============================================
   PAGE HEADERS (inner pages)
   ============================================ */
.page-header {
  background: var(--navy);
  padding: 7rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-header__tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.page-header__desc {
  color: var(--warm-gray);
  font-size: 1.05rem;
  max-width: 600px;
  font-weight: 300;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-header {
  background: var(--navy);
  padding: 8rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.article-header > .container { position: relative; z-index: 1; }
.article-header__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(46,134,222,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.article-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--warm-gray);
  font-size: 0.85rem;
}
.article-header__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article body */
.article-body {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: var(--charcoal);
}
.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--light-accent); }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--ice);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--charcoal);
}

.article-body .data-highlight {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  text-align: center;
}
.article-body .data-highlight .big-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--signal-red);
  display: block;
  margin-bottom: 0.5rem;
}
.article-body .data-highlight .big-number--accent { color: var(--accent); }
.article-body .data-highlight p {
  color: var(--warm-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* Sources section */
.article-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.article-sources h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.article-sources ul {
  list-style: none;
  padding: 0;
}
.article-sources li {
  font-size: 0.82rem;
  color: var(--slate);
  padding: 0.3rem 0;
  font-family: var(--font-mono);
}
.article-sources a { text-decoration: underline; }

/* Article sidebar CTA */
.article-cta {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 3px solid var(--accent);
}
.article-cta h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.article-cta p { font-size: 0.9rem; color: var(--slate); margin-bottom: 1rem; }

/* Share buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.share-bar__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--slate);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
}
.share-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ============================================
   DATA TABLE (donnees.html)
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table thead {
  background: var(--navy);
  color: var(--white);
}
.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.data-table tbody tr:hover { background: var(--ice); }
.data-table .mono { font-weight: 500; }
.data-table .text-red { font-weight: 600; }

/* ============================================
   BIG DATA CARDS (dashboard style)
   ============================================ */
.data-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.data-card__indicator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.data-card__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.data-card__context {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.5;
}
.data-card__source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--warm-gray);
  margin-top: 0.75rem;
}

/* ============================================
   CHAPTER LIST (livre.html)
   ============================================ */
.chapter-list { list-style: none; counter-reset: chapter; }
.chapter-list li {
  counter-increment: chapter;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.chapter-list li::before {
  content: counter(chapter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  width: 2.5rem;
}
.chapter-list__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.3rem;
}
.chapter-list__desc {
  font-size: 0.85rem;
  color: var(--slate);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-header {
  margin-bottom: 3rem;
}
.section-header__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header__tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section--dark .section-header__tag::before { background: var(--accent); }

.section-header p {
  color: var(--slate);
  font-size: 1rem;
  max-width: 600px;
}
.section--dark .section-header p { color: var(--warm-gray); }

/* ============================================
   BLOCKQUOTE (gold style)
   ============================================ */
.quote-gold {
  border-left: 3px solid var(--gold);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  background: rgba(200,168,78,0.04);
}
.quote-gold p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  margin: 0;
}
.quote-gold cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 1rem;
  font-style: normal;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
  background: var(--ghost);
  padding: 4rem 0;
}
.related-articles h2 { margin-bottom: 2rem; }

/* ============================================
   NEWSLETTER INLINE (within articles)
   ============================================ */
.newsletter-inline {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.newsletter-inline h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.newsletter-inline p {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

/* ============================================
   SKIP LINK (accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.fade-in--d1 { animation-delay: 0.1s; }
.fade-in--d2 { animation-delay: 0.2s; }
.fade-in--d3 { animation-delay: 0.3s; }
.fade-in--d4 { animation-delay: 0.4s; }
.fade-in--d5 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .book-promo { grid-template-columns: 160px 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero__title { font-size: 1.8rem; }
  .section { padding: 3rem 0; }

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

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .book-promo { grid-template-columns: 1fr; text-align: center; }
  .book-cover { margin: 0 auto; }

  .newsletter-form { flex-direction: column; }

  .article-header { padding: 6rem 0 2.5rem; }
  .article-header__meta { flex-wrap: wrap; }

  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }

  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.5rem; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .site-footer, .newsletter-box, .share-bar, .btn { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
