/* ===================== PUBLICITÉS — STYLES ===================== */

/* Wrapper générique pour tous les slots */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

/* Label discret "Publicité" au-dessus de chaque slot (obligatoire légalement) */
.ad-slot::before {
  content: 'Publicité';
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3d50;
  text-align: center;
  margin-bottom: 0.3rem;
}

/* ── 1. LEADERBOARD HEADER ── */
.ad-header-wrap {
  background: var(--sombre);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;          /* évite le layout shift */
}

/* ── 2. IN-FEED (entre articles) ── */
.ad-in-feed {
  grid-column: 1 / -1;       /* prend toute la largeur de la grille */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-in-feed .ad-label-inline {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: #3a3d50;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: block;
}

/* ── 3. SIDEBAR STICKY ── */
.ad-sidebar-sticky {
  position: sticky;
  top: 80px;                 /* sous le header fixe */
  min-height: 600px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

/* ── 4. IN-ARTICLE ── */
.ad-in-article {
  margin: 2rem auto;
  max-width: 100%;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 270px;
}

/* ── 5. STICKY FOOTER MOBILE ── */
.ad-sticky-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;               /* sous le header (100) */
  background: rgba(74,86,112,0.97);
  border-top: 1px solid var(--border);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* Bouton fermeture sticky footer */
.ad-sticky-close {
  position: absolute;
  top: -28px; right: 8px;
  background: rgba(74,86,112,0.9);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
}
.ad-sticky-close:hover { color: var(--text); }

/* ── LAYOUT SIDEBAR pour section articles ── */
.articles-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.articles-main { min-width: 0; }

/* Responsive : masquer sidebar et sticky footer sur mobile */
@media (max-width: 1100px) {
  .articles-with-sidebar { grid-template-columns: 1fr; }
  .ad-sidebar-wrap { display: none; }
}

@media (min-width: 769px) {
  .ad-sticky-footer { display: none; }  /* sticky footer = mobile only */
}

@media (max-width: 768px) {
  body { padding-bottom: 60px; }        /* espace pour le sticky footer */
}

/* ── Placeholder visuel (à supprimer en prod) ── */
.ad-placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(42,45,58,0.3),
    rgba(42,45,58,0.3) 10px,
    rgba(30,33,44,0.3) 10px,
    rgba(30,33,44,0.3) 20px
  );
  border: 1px dashed #2a2d3a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #3a3d50;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  min-height: inherit;
  width: 100%;
}
.ad-placeholder span { font-size: 1.5rem; opacity: 0.3; }

/* ===================== RESET & VARIABLES ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --noir:    #3a4560;
  --sombre:  #4a5670;
  --card:    #5a6680;
  --border:  #6a7690;
  --vert:    #1d6b44;
  --vert2:   #24a05e;
  --or:      #d4a843;
  --rouge:   #c0392b;
  --bleu:    #2980b9;
  --text:    #f2f5fa;
  --muted:   #a5afc5;
  --accent:  #d4a843;
  --radius:  6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.1;
}

.mono { font-family: 'DM Mono', monospace; }

/* ===================== HEADER / NAV ===================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(58,69,96,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo span.accent { color: var(--or); }
.logo .ball { font-size: 1.1rem; }

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--or); }

.nav-tag {
  background: var(--vert);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(29,107,68,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(212,168,67,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-left {
  padding: 5rem 3rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--or);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212,168,67,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  line-height: 1.0;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.btn-primary {
  background: var(--vert);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--vert2); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  background: transparent;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--or); color: var(--or); }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--or);
}
.hero-stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Hero right - featured article */
.hero-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid var(--border);
}

.hero-featured {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--sombre);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.3s;
}

.hero-featured:first-child {
  border-bottom: 1px solid var(--border);
}

.hero-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  z-index: 1;
}

.hero-featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.hero-featured:hover .hero-featured-bg { transform: scale(1.04); }

.hero-featured-content { position: relative; z-index: 2; }

.cat-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.cat-science { background: rgba(41,128,185,0.3); color: #74b9e0; border: 1px solid rgba(41,128,185,0.4); }
.cat-histoire { background: rgba(192,57,43,0.3); color: #e07474; border: 1px solid rgba(192,57,43,0.4); }
.cat-culture { background: rgba(212,168,67,0.3); color: #e0c474; border: 1px solid rgba(212,168,67,0.4); }
.cat-data { background: rgba(36,160,94,0.3); color: #74e0aa; border: 1px solid rgba(36,160,94,0.4); }
.cat-societe { background: rgba(142,68,173,0.3); color: #c474e0; border: 1px solid rgba(142,68,173,0.4); }

.hero-featured h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.hero-featured p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ===================== SECTIONS ===================== */
section { padding: 5rem 4rem; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  letter-spacing: -1px;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===================== ARTICLES GRID ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-card {
  background: var(--card);
  padding: 2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.article-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #4a5670, #3a4560);
  position: relative;
}

.article-visual picture {
  width: 100%;
  height: 100%;
  display: block;
}

.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-visual-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #2a4258, #24a05e);
}

.article-visual-fallback strong {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  line-height: 1.2;
}

.article-visual-fallback span {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  opacity: 0.9;
}

.article-card:hover { background: #6a7690; }

.article-card::after {
  content: '→';
  position: absolute;
  top: 2rem; right: 2rem;
  color: var(--muted);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.article-card:hover::after { opacity: 1; transform: translateX(0); }

.article-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.article-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--text);
}
.article-card:hover h3 { color: #fff; }

.article-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.article-read {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ===================== DATA SECTION ===================== */
.data-section {
  background: var(--sombre);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.data-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.data-intro-left h2 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 1rem; }
.data-intro-left p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; }

.data-sources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.data-source-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.data-source-card:hover { border-color: var(--vert2); }

.data-source-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.data-source-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vert2);
}

.data-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-free { background: rgba(36,160,94,0.2); color: var(--vert2); border: 1px solid rgba(36,160,94,0.3); }
.badge-freemium { background: rgba(212,168,67,0.2); color: var(--or); border: 1px solid rgba(212,168,67,0.3); }

.data-source-card h4 { font-size: 1rem; margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.data-source-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.data-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: var(--muted);
}

/* ===================== XG EXPLAINER ===================== */
.xg-explainer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.xg-pitch {
  background: var(--vert);
  border-radius: var(--radius);
  aspect-ratio: 1.5;
  position: relative;
  overflow: hidden;
}

.pitch-lines {
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 2px;
}

.pitch-center-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}

.pitch-center-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.3);
}

/* Shot dots */
.shot-dot {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s;
}
.shot-dot:hover { transform: translate(-50%, -50%) scale(1.3); }
.shot-dot.high-xg { background: rgba(192,57,43,0.8); }
.shot-dot.mid-xg  { background: rgba(212,168,67,0.7); }
.shot-dot.low-xg  { background: rgba(41,128,185,0.7); }

.legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
}

.xg-text h3 { font-size: 1.8rem; letter-spacing: -0.5px; margin-bottom: 1rem; }
.xg-text p { font-size: 0.88rem; color: var(--muted); line-height: 1.9; margin-bottom: 1rem; }

.xg-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.xg-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--or);
}
.xg-stat-label { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }

/* ===================== FEATURED LONG READ ===================== */
.longread-section { background: var(--noir); }

.longread-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
  cursor: pointer;
}
.longread-card:hover { border-color: var(--or); }

.longread-visual {
  background: var(--sombre);
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.longread-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.longread-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.longread-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--or);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.longread-card h3 {
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.longread-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.longread-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-info { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.author-name { font-size: 0.78rem; color: var(--text); }
.author-date { font-size: 0.7rem; color: var(--muted); }

.read-time {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
}

/* ===================== HISTOIRE TIMELINE ===================== */
.histoire-section { background: var(--sombre); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--vert), var(--or), var(--rouge), var(--bleu));
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  cursor: pointer;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--or);
  border: 3px solid var(--sombre);
  z-index: 2;
}

.timeline-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--or);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline-item:hover h3 { color: var(--or); }

.timeline-item p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
}

/* ===================== CULTURE SECTION ===================== */
.culture-section { background: var(--noir); }

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.culture-card {
  background: var(--card);
  padding: 1.8rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 200px;
}
.culture-card:hover { background: #6a7690; }

.culture-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.culture-card h4 {
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
  font-family: 'Playfair Display', serif;
}

.culture-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.culture-region {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--or);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto;
}

/* ===================== SOCIETE SECTION ===================== */
.societe-section {
  background: var(--sombre);
  border-top: 1px solid var(--border);
}

.societe-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.societe-main-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.societe-main-card:hover { border-color: rgba(142,68,173,0.5); }

.societe-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.societe-item {
  background: var(--card);
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.15s;
}
.societe-item:hover { background: #6a7690; }

.societe-item h4 { font-size: 0.9rem; color: var(--text); font-family: 'Playfair Display', serif; margin-bottom: 0.3rem; }
.societe-item p { font-size: 0.75rem; color: var(--muted); }
.societe-arrow { color: var(--muted); font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ===================== NEWSLETTER ===================== */
.newsletter-section {
  background: linear-gradient(135deg, #3d5550 0%, #3a4560 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 5rem 4rem;
}

.newsletter-section h2 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--vert2); }
.newsletter-form input::placeholder { color: var(--muted); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--sombre);
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 280px;
  line-height: 1.8;
}

.footer-col h5 {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col li a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-col li a:hover { color: var(--or); }

.footer-bottom {
  background: var(--sombre);
  border-top: 1px solid var(--border);
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 0.75rem; color: var(--muted); }

/* ===================== ARTICLE MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,69,96,0.95);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--sombre);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  margin: auto;
  padding: 3rem;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }

.modal-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

.modal-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #4a5670, #3a4560);
}

.modal-visual picture {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal h2 {
  font-size: 2rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.modal-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.modal-meta-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

.modal-body h4 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--text);
}

.modal-body p {
  font-size: 0.92rem;
  color: #9aa0bf;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.modal-body blockquote {
  border-left: 3px solid var(--or);
  padding: 0.8rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(212,168,67,0.05);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
}

.data-callout {
  background: rgba(36,160,94,0.07);
  border: 1px solid rgba(36,160,94,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.data-callout-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--vert2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.data-callout p { font-size: 0.85rem; color: var(--muted); margin: 0; }

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

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.12s; }
.fade-up:nth-child(3) { animation-delay: 0.19s; }
.fade-up:nth-child(4) { animation-delay: 0.26s; }
.fade-up:nth-child(5) { animation-delay: 0.33s; }
.fade-up:nth-child(6) { animation-delay: 0.40s; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  .data-intro { grid-template-columns: 1fr; }
  .societe-grid { grid-template-columns: 1fr; }
  .xg-explainer { grid-template-columns: 1fr; }
  .longread-card { grid-template-columns: 1fr; }
  section { padding: 3rem 1.5rem; }
  header { padding: 0 1.5rem; }
  footer { padding: 2rem 1.5rem; gap: 2rem; }
  .footer-bottom { padding: 1rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  nav { display: none; }
  .newsletter-form { flex-direction: column; }
  .hero-left { padding: 3rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
}
