/*
Theme Name: NutriSavoir
Theme URI: https://nutrisavoir.com
Author: NutriSavoir Editorial
Author URI: https://nutrisavoir.com
Description: Thème WordPress éditorial premium pour magazine santé & nutrition. 100% compatible smartphones. Mobile-first absolu. Articles parfaitement lisibles sur tous les écrans. Palette vert turquoise éditoriale. JSON-LD complet, bloc auteur + relecteur médical, conforme E-E-A-T santé YMYL.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nutrisavoir
Tags: blog, news, magazine, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================
   VARIABLES
   ========================================== */
:root {
  --cream: #f7f5ef;
  --paper: #ede9dc;
  --ink: #0f1614;
  --ink-soft: #3d4845;
  --ink-mute: #7a8581;
  --green: #0d5d56;
  --green-deep: #063d38;
  --turq: #2da89a;
  --turq-soft: #6dd5c9;
  --line: #d8d4c4;
  --line-soft: #e6e2d2;
  
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 100px;
}

/* ==========================================
   RESET MOBILE-FIRST CORRECT
   FIX #1: Pas de word-break: break-word global
   FIX #5: overflow-x: hidden sur body
   ========================================== */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  -webkit-text-size-adjust: 100%; 
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth; 
  scroll-padding-top: 80px;
  /* FIX: Empêche le zoom horizontal forcé */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* FIX #5: Empêche scroll horizontal sur mobile */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  /* FIX: Min-width 0 pour permettre la réduction */
  min-width: 0;
}

@media (min-width: 768px) {
  body { font-size: 17px; line-height: 1.65; }
}

/* ==========================================
   TYPOGRAPHIE - HIÉRARCHIE PROPRE
   FIX: Tailles adaptées mobile/desktop sans clamp() aberrant
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* FIX: Permet le wrap mais pas la coupure de mots */
  overflow-wrap: break-word;
}

h1 { font-size: 28px; margin-bottom: 16px; }
h2 { font-size: 24px; margin-top: 32px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-top: 24px; margin-bottom: 10px; }
h4 { font-size: 18px; margin-top: 20px; margin-bottom: 8px; }
h5, h6 { font-size: 16px; margin-top: 16px; margin-bottom: 8px; }

@media (min-width: 768px) {
  h1 { font-size: 36px; margin-bottom: 20px; }
  h2 { font-size: 30px; margin-top: 40px; margin-bottom: 16px; }
  h3 { font-size: 24px; margin-top: 32px; margin-bottom: 12px; }
  h4 { font-size: 20px; }
  h5, h6 { font-size: 18px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  h3 { font-size: 26px; }
}

p {
  margin-bottom: 1em;
  line-height: 1.7;
  /* FIX: overflow-wrap permet le wrap des mots TRÈS longs uniquement */
  overflow-wrap: break-word;
  /* Hyphenation pour le français */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }

a { 
  color: var(--green); 
  text-decoration: none;
  transition: color 200ms ease;
  /* FIX: Permet le wrap des URLs longues */
  overflow-wrap: break-word;
  word-break: break-word;
}

a:hover { color: var(--green-deep); }

/* Soulignement UNIQUEMENT pour les liens dans le texte des articles */
.article-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* FIX #7: Toutes les images responsive PARTOUT */
img, picture, video, svg, iframe { 
  display: block; 
  max-width: 100%; 
  height: auto; 
}

img { border-radius: 8px; }

button, input, textarea, select { 
  font: inherit; 
  color: inherit; 
  max-width: 100%;
}

button { 
  cursor: pointer; 
  background: none; 
  border: none; 
  padding: 0; 
  /* FIX: Touch target minimum */
  min-height: 44px;
  min-width: 44px;
}

ul, ol { 
  margin-bottom: 1em;
  padding-left: 24px;
  line-height: 1.7;
}

li {
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

li:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--turq);
  padding: 12px 16px;
  margin: 24px 0;
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
  overflow-wrap: break-word;
}

::selection { background: var(--turq); color: var(--cream); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ==========================================
   CONTAINERS - PADDING MOBILE CORRECT
   FIX #11: Padding adapté à iPhone SE (375px)
   ========================================== */
.container { 
  width: 100%; 
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .container { 
    max-width: 1240px; 
    padding-left: 32px; 
    padding-right: 32px; 
  }
}

.container-narrow { 
  width: 100%; 
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container-narrow { 
    max-width: 720px; 
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ==========================================
   SKIP LINK
   FIX #14: Position fixe en haut
   ========================================== */
.skip-link {
  position: fixed;
  top: -100px; 
  left: 16px;
  background: var(--ink); 
  color: var(--cream);
  padding: 12px 20px; 
  border-radius: var(--r-sm); 
  z-index: 1000;
  font-weight: 600; 
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ==========================================
   HEADER - MOBILE FIRST
   ========================================== */
.site-header { 
  background: var(--cream); 
  border-bottom: 1px solid var(--line); 
  position: sticky; 
  top: 0; 
  z-index: 100;
  /* FIX: Empêche overflow horizontal */
  width: 100%;
}

.header-top {
  display: none;
}
@media (min-width: 900px) { 
  .header-top {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 0; 
    font-size: 11px;
    color: var(--ink-mute); 
    text-transform: uppercase; 
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--line-soft);
  }
}

.header-main { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
  gap: 12px;
  min-width: 0;
}

@media (min-width: 768px) { 
  .header-main { padding: 20px 0; } 
}

.site-logo {
  font-family: var(--font-serif); 
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink); 
  text-decoration: none;
  display: inline-flex; 
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) { .site-logo { font-size: 28px; } }
@media (min-width: 1024px) { .site-logo { font-size: 32px; } }

.site-logo em { 
  font-style: italic; 
  color: var(--green); 
  font-weight: 700; 
}

.main-nav { display: none; }

@media (min-width: 1024px) { 
  .main-nav { 
    display: flex; 
    gap: 24px;
  } 
}

.main-nav a { 
  font-size: 14px; 
  font-weight: 500; 
  position: relative; 
  padding: 4px 0; 
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-actions { 
  display: flex; 
  gap: 8px;
  flex-shrink: 0;
}

/* FIX #12: Touch targets 44x44px minimum */
.icon-btn {
  width: 44px; 
  height: 44px; 
  display: grid; 
  place-items: center;
  border: 1px solid var(--line); 
  border-radius: 50%;
  background: transparent; 
  cursor: pointer; 
  transition: all 200ms;
  color: var(--ink);
  flex-shrink: 0;
}

.icon-btn:hover { 
  background: var(--ink); 
  color: var(--cream); 
  border-color: var(--ink); 
}

.icon-btn svg { 
  width: 18px; 
  height: 18px; 
  stroke-width: 2; 
}

.menu-toggle { display: grid; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ==========================================
   DRAWER MOBILE
   FIX #13: Largeur correcte sur mobile
   ========================================== */
.drawer {
  position: fixed; 
  top: 0; 
  right: -100%; 
  width: 85%;
  max-width: 320px;
  height: 100vh; 
  height: 100dvh;
  background: var(--cream); 
  border-left: 1px solid var(--line);
  z-index: 99; 
  transition: right 250ms ease;
  display: flex; 
  flex-direction: column;
  overflow-y: auto;
}

body.menu-open .drawer { right: 0; }

.drawer-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px; 
  border-bottom: 1px solid var(--line); 
}

.drawer-body { 
  flex: 1; 
  overflow-y: auto; 
  padding: 16px 0; 
}

.drawer-body ul { 
  list-style: none;
  padding: 0; 
  margin: 0; 
}

.drawer-body li { 
  padding: 14px 16px; 
  border-bottom: 1px solid var(--line-soft);
}

.drawer-body a {
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.drawer-footer { 
  padding: 16px; 
  border-top: 1px solid var(--line); 
  background: var(--paper); 
}

/* ==========================================
   HERO SECTION
   FIX #2: em inline avec wrap naturel
   FIX #3: Tailles correctes pour mobile
   ========================================== */
.hero { 
  padding: 24px 0 40px; 
}

@media (min-width: 768px) { .hero { padding: 48px 0 64px; } }
@media (min-width: 1024px) { .hero { padding: 72px 0 88px; } }

.hero-grid { 
  display: flex; 
  flex-direction: column; 
  gap: 24px;
}

@media (min-width: 1024px) { 
  .hero-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    gap: 48px; 
    align-items: center; 
  } 
}

.hero-eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-size: 11px; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  color: var(--green); 
  margin-bottom: 16px;
}

.hero-eyebrow::before { 
  content: ''; 
  width: 20px; 
  height: 1px; 
  background: var(--green); 
}

/* FIX: Hero title TAILLES RAISONNABLES pour mobile */
.hero-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

@media (min-width: 480px) { .hero-title { font-size: 36px; } }
@media (min-width: 768px) { .hero-title { font-size: 48px; margin-bottom: 20px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } }
@media (min-width: 1280px) { .hero-title { font-size: 72px; } }

/* FIX #2: em reste inline pour wrap naturel */
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--green);
}

.hero-lede { 
  font-size: 17px; 
  color: var(--ink-soft); 
  margin-bottom: 24px; 
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .hero-lede { 
    font-size: 19px; 
    margin-bottom: 32px; 
    max-width: 520px; 
  } 
}

.hero-cta {
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
  padding: 14px 24px; 
  background: var(--ink); 
  color: var(--cream);
  border-radius: var(--r-pill); 
  font-size: 14px; 
  font-weight: 600;
  letter-spacing: 0.02em; 
  transition: all 250ms;
  text-decoration: none;
  min-height: 44px;
}

.hero-cta:hover { 
  background: var(--green); 
  color: var(--cream); 
  transform: translateY(-2px); 
}

.hero-cta svg { 
  width: 14px; 
  height: 14px; 
}

.hero-visual {
  position: relative; 
  aspect-ratio: 4/3;
  border-radius: var(--r-md); 
  overflow: hidden;
  background: linear-gradient(135deg, #2da89a, #0d5d56);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1024px) { 
  .hero-visual { 
    aspect-ratio: 4/5; 
    border-radius: var(--r-lg);
  } 
}

.hero-visual img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

.hero-visual-content {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  padding: 20px;
  color: white; 
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent); 
  z-index: 2;
}

.hero-visual-badge {
  display: inline-block; 
  font-size: 10px; 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  padding: 5px 12px; 
  background: rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); 
  border-radius: var(--r-pill);
  margin-bottom: 12px; 
  color: white;
}

.hero-visual-title { 
  font-size: 18px;
  color: white; 
  line-height: 1.25; 
  font-weight: 700;
  font-family: var(--font-serif);
}

@media (min-width: 768px) { .hero-visual-title { font-size: 22px; } }

/* ==========================================
   STATS BAND
   ========================================== */
.stats-band { 
  padding: 32px 0; 
  border-top: 1px solid var(--line); 
  border-bottom: 1px solid var(--line); 
}

@media (min-width: 768px) { .stats-band { padding: 48px 0; } }

.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px 12px; 
  text-align: center; 
}

@media (min-width: 768px) { 
  .stats-grid { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
  } 
}

.stat-item { padding: 0 4px; min-width: 0; }

.stat-number { 
  font-family: var(--font-serif); 
  font-size: 32px;
  font-weight: 700; 
  color: var(--green); 
  line-height: 1; 
  margin-bottom: 6px;
}

@media (min-width: 768px) { .stat-number { font-size: 42px; } }
@media (min-width: 1024px) { .stat-number { font-size: 48px; } }

.stat-label { 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section { padding: 40px 0; }

@media (min-width: 768px) { .section { padding: 64px 0; } }
@media (min-width: 1024px) { .section { padding: 88px 0; } }

.section-header { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  margin-bottom: 28px;
}

@media (min-width: 768px) { 
  .section-header { 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 48px; 
    gap: 32px; 
    flex-wrap: wrap; 
  } 
}

.section-eyebrow { 
  font-size: 11px; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  color: var(--green); 
  margin-bottom: 8px; 
  display: inline-block;
}

.section-title { 
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { .section-title { font-size: 32px; } }
@media (min-width: 1024px) { .section-title { font-size: 38px; } }

.section-title em { font-style: italic; color: var(--green); }

.section-link { 
  font-size: 14px; 
  font-weight: 500; 
  border-bottom: 1px solid var(--ink); 
  padding-bottom: 4px; 
  align-self: flex-start; 
  text-decoration: none;
  color: var(--ink);
  transition: color 200ms, border-color 200ms;
}

.section-link:hover { 
  color: var(--green); 
  border-bottom-color: var(--green); 
}

/* ==========================================
   FEATURED SECTION
   ========================================== */
.featured-section { padding: 32px 0; }
@media (min-width: 768px) { .featured-section { padding: 48px 0; } }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.featured-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 3/2;
  /* FIX: min-width: 0 pour grid items */
  min-width: 0;
}

.featured-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

.featured-content {
  min-width: 0;
}

.featured-cat {
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 0.12em;
  color: var(--green); 
  margin-bottom: 10px; 
  font-weight: 600;
}

.featured-title { 
  font-size: 22px;
  margin-bottom: 10px; 
  line-height: 1.25;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { .featured-title { font-size: 26px; } }

.featured-title a { 
  color: var(--ink); 
  text-decoration: none;
}

.featured-title a:hover { color: var(--green); }

.featured-excerpt {
  font-size: 15px; 
  color: var(--ink-soft);
  line-height: 1.6; 
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.featured-author {
  display: flex; 
  gap: 12px; 
  align-items: center;
  min-width: 0;
}

.featured-author-avatar {
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  overflow: hidden; 
  flex-shrink: 0;
}

.featured-author-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

.featured-author-info { min-width: 0; }

.featured-author-name { 
  font-weight: 600; 
  color: var(--ink);
  font-size: 14px;
}

.featured-author-role { 
  font-size: 12px; 
  color: var(--ink-mute);
}

/* ==========================================
   ARTICLES GRID
   ========================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* ==========================================
   ARTICLE CARD
   FIX: min-width: 0 pour grid items
   ========================================== */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 250ms ease;
  min-width: 0;
  /* FIX BUG: le lien-carte ne doit jamais souligner son contenu */
  text-decoration: none;
  color: var(--ink);
}

/* FIX BUG: aucun élément à l'intérieur d'une carte-lien n'est souligné */
.article-card,
.article-card *,
.article-card:hover,
.article-card:hover * {
  text-decoration: none;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--paper);
  overflow: hidden;
  flex-shrink: 0;
}

.article-card-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2da89a, #0d5d56);
}

.article-card-body { 
  padding: 16px; 
  flex: 1; 
  display: flex; 
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 768px) { .article-card-body { padding: 20px; } }

.article-card-cat {
  font-size: 11px; 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.12em;
  color: var(--green); 
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 17px; 
  font-weight: 700;
  line-height: 1.3; 
  margin-bottom: 10px;
  color: var(--ink);
  overflow-wrap: break-word;
}

@media (min-width: 768px) { .article-card-title { font-size: 19px; } }

.article-card:hover .article-card-title { color: var(--green); }

.article-card-excerpt {
  font-size: 14px; 
  color: var(--ink-soft);
  line-height: 1.55; 
  margin-bottom: auto;
  overflow-wrap: break-word;
}

/* FIX BUG: la durée de lecture ne doit jamais être coupée */
.article-card-meta {
  display: flex; 
  gap: 8px;
  align-items: center;
  margin-top: 14px; 
  padding-top: 12px; 
  border-top: 1px solid var(--line-soft);
  font-size: 12px; 
  color: var(--ink-mute);
  min-width: 0;
  width: 100%;
  flex-wrap: wrap;
  /* Empêche tout rognage du texte */
  overflow: visible;
  line-height: 1.4;
}

.article-card-time {
  flex-shrink: 0;
  white-space: nowrap;
}

.article-card-time::after {
  content: "·";
  margin-left: 8px;
  color: var(--line);
}

.article-card-author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card-avatar {
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  overflow: hidden; 
  flex-shrink: 0;
}

.article-card-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

/* ==========================================
   ARTICLE PAGE - LISIBILITÉ MOBILE PARFAITE
   ========================================== */
.article-page { padding: 24px 0; }

@media (min-width: 768px) { .article-page { padding: 40px 0; } }

.article-header { 
  padding: 24px 0 28px; 
  border-bottom: 1px solid var(--line); 
}

@media (min-width: 768px) { 
  .article-header { padding: 40px 0 48px; } 
}

.article-breadcrumb {
  display: flex; 
  gap: 6px; 
  align-items: center;
  font-size: 13px; 
  color: var(--ink-soft); 
  margin-bottom: 16px;
  flex-wrap: wrap;
  overflow-wrap: break-word;
}

.article-breadcrumb a { 
  color: var(--green);
  text-decoration: none;
}

.article-breadcrumb a:hover { 
  color: var(--green-deep);
  text-decoration: underline;
}

.article-cat {
  font-size: 11px; 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  color: var(--green); 
  margin-bottom: 12px;
}

.article-title {
  font-size: 26px;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

@media (min-width: 480px) { .article-title { font-size: 30px; } }
@media (min-width: 768px) { 
  .article-title { 
    font-size: 38px; 
    margin-bottom: 20px; 
  } 
}
@media (min-width: 1024px) { .article-title { font-size: 44px; } }

.article-lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .article-lede { font-size: 19px; line-height: 1.6; } 
}

.article-author-block {
  display: flex; 
  flex-direction: column; 
  gap: 12px;
  padding: 16px 0; 
  border-bottom: 1px solid var(--line);
}

.article-author {
  display: flex; 
  gap: 12px; 
  align-items: center;
  min-width: 0;
}

.article-author-avatar {
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  overflow: hidden; 
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .article-author-avatar { width: 56px; height: 56px; }
}

.article-author-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

.article-author-info { 
  flex: 1; 
  min-width: 0;
}

.article-author-name { 
  font-weight: 700; 
  color: var(--ink);
  font-size: 15px;
}

.article-author-role {
  font-size: 12px; 
  color: var(--ink-mute); 
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.article-meta {
  display: flex; 
  gap: 6px; 
  align-items: center;
  font-size: 13px; 
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.article-reviewer {
  font-size: 12px; 
  color: var(--green); 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.1em;
}

.article-share {
  display: flex; 
  gap: 8px; 
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.share-label {
  font-size: 12px; 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-right: 4px;
}

/* FIX #12: Share buttons 44x44px (Apple guideline) */
.share-btn {
  width: 44px; 
  height: 44px; 
  border-radius: 50%;
  border: 1px solid var(--line); 
  display: grid; 
  place-items: center;
  color: var(--ink); 
  transition: all 200ms;
  text-decoration: none;
  flex-shrink: 0;
}

.share-btn:hover { 
  background: var(--ink); 
  color: var(--cream); 
  border-color: var(--ink); 
}

.share-btn svg { width: 16px; height: 16px; }

.article-hero {
  width: 100%; 
  margin: 24px 0; 
  border-radius: var(--r-md); 
  overflow: hidden;
}

@media (min-width: 768px) { 
  .article-hero { margin: 40px 0; } 
}

.article-hero img { 
  width: 100%; 
  height: auto;
  border-radius: 0;
  display: block;
}

/* ==========================================
   ARTICLE CONTENT - LE PLUS IMPORTANT
   100% LISIBLE SUR MOBILE
   FIX: Tous les éléments correctement contraints
   ========================================== */
.article-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  /* FIX: Contraint le contenu au container parent */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

@media (min-width: 768px) {
  .article-content { font-size: 17px; line-height: 1.75; }
}

.article-content > * {
  max-width: 100%;
}

.article-content p {
  margin-bottom: 1.2em;
  line-height: 1.7;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .article-content p { line-height: 1.75; }
}

.article-content h2,
.article-content h3,
.article-content h4 {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.article-content h2 { 
  font-size: 22px; 
  margin-top: 32px; 
  margin-bottom: 12px;
  line-height: 1.25;
}

.article-content h3 { 
  font-size: 19px; 
  margin-top: 24px; 
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-content h4 { 
  font-size: 17px; 
  margin-top: 20px; 
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .article-content h2 { font-size: 28px; margin-top: 40px; }
  .article-content h3 { font-size: 22px; margin-top: 32px; }
  .article-content h4 { font-size: 19px; }
}

/* FIX #7: Images des articles 100% responsive */
.article-content img,
.article-content figure {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
}

.article-content figure {
  margin: 20px -16px;
  border-radius: 0;
}

@media (min-width: 768px) {
  .article-content figure {
    margin: 32px 0;
    border-radius: 8px;
  }
}

.article-content figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
  margin-top: 8px;
  padding: 0 16px;
  line-height: 1.4;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.2em;
  padding-left: 20px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .article-content ul,
  .article-content ol {
    padding-left: 24px;
  }
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: 8px;
  overflow-wrap: break-word;
  padding-left: 4px;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.article-content blockquote {
  border-left: 3px solid var(--turq);
  padding: 12px 16px;
  margin: 24px 0;
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .article-content blockquote {
    padding: 16px 24px;
    margin: 32px 0;
    font-size: 18px;
  }
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* FIX #10: Tables responsive avec wrapper */
.article-content table {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .article-content table {
    display: table;
    font-size: 15px;
  }
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: break-word;
  vertical-align: top;
}

.article-content th {
  background: var(--paper);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .article-content th { white-space: normal; }
}

/* FIX #9: Code et pre responsive */
.article-content code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-word;
  white-space: pre-wrap;
}

.article-content pre {
  background: var(--paper);
  padding: 16px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
}

@media (min-width: 768px) {
  .article-content pre { padding: 20px; font-size: 14px; }
}

.article-content pre code {
  background: none;
  padding: 0;
  white-space: pre;
  word-break: normal;
  display: block;
  font-size: inherit;
}

/* FIX #8: iframes (YouTube embeds) responsive */
.article-content iframe,
.article-content embed,
.article-content object,
.article-content .wp-block-embed iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: none;
  border-radius: 8px;
  margin: 20px 0;
}

.article-content .wp-block-embed {
  margin: 20px 0;
  max-width: 100%;
}

.article-content .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}

/* WordPress Gutenberg blocks */
.article-content .wp-block-image {
  margin: 20px 0;
  max-width: 100%;
}

.article-content .wp-block-image img {
  margin: 0;
  max-width: 100%;
  height: auto;
}

.article-content .wp-block-quote {
  border-left: 3px solid var(--turq);
  padding: 12px 16px;
  margin: 24px 0;
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink-soft);
}

.article-content .wp-block-pullquote {
  text-align: center;
  margin: 32px 0;
  padding: 24px 16px;
  border-top: 2px solid var(--turq);
  border-bottom: 2px solid var(--turq);
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
}

.article-content .wp-block-gallery {
  margin: 20px 0;
}

.article-content .wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
}

/* Alignements WordPress */
.article-content .alignleft,
.article-content .alignright {
  float: none;
  margin: 20px 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .article-content .alignleft {
    float: left;
    margin: 8px 24px 16px 0;
    max-width: 50%;
  }
  .article-content .alignright {
    float: right;
    margin: 8px 0 16px 24px;
    max-width: 50%;
  }
}

.article-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.article-content .alignwide {
  max-width: 100%;
}

.article-content .alignfull {
  max-width: 100%;
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
}

@media (min-width: 768px) {
  .article-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
  }
}

/* ==========================================
   ENCADRÉS SPÉCIAUX
   ========================================== */
.ns-disclaimer { 
  background: var(--paper); 
  border-left: 3px solid var(--turq); 
  border-radius: var(--r-sm); 
  padding: 16px 20px; 
  margin: 24px 0; 
  font-size: 14px; 
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .ns-disclaimer { 
    padding: 20px 24px; 
    font-size: 15px; 
    margin: 32px 0; 
  } 
}

.ns-disclaimer strong { 
  display: block; 
  margin-bottom: 6px; 
  color: var(--green-deep); 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  font-weight: 700; 
}

.science-box { 
  background: var(--paper); 
  border-radius: var(--r-md); 
  padding: 20px; 
  margin: 28px 0;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .science-box { padding: 28px; margin: 40px 0; } 
}

.science-box::before { 
  content: 'Ce que dit la science'; 
  display: inline-block; 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--green); 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  margin-bottom: 12px;
}

.science-box p:last-child { margin-bottom: 0; }

.key-stats { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
  background: var(--ink); 
  color: var(--cream); 
  border-radius: var(--r-md); 
  padding: 20px; 
  margin: 28px 0; 
}

@media (min-width: 480px) {
  .key-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (min-width: 768px) { 
  .key-stats { 
    padding: 32px; 
    gap: 24px; 
    margin: 40px 0; 
  } 
}

.key-stat-number { 
  font-family: var(--font-serif); 
  font-size: 32px; 
  font-weight: 700; 
  color: var(--turq-soft); 
  line-height: 1; 
  margin-bottom: 6px; 
  display: block; 
}

@media (min-width: 768px) { .key-stat-number { font-size: 40px; } }

.key-stat-label { 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  color: rgba(247, 245, 239, 0.7); 
  line-height: 1.4; 
}

.action-plan { 
  background: var(--paper); 
  border-radius: var(--r-md); 
  padding: 20px; 
  margin: 28px 0;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .action-plan { padding: 28px; margin: 40px 0; } 
}

.action-plan h3 { 
  color: var(--green-deep); 
  margin-bottom: 16px; 
  margin-top: 0; 
  font-size: 20px; 
}

@media (min-width: 768px) { 
  .action-plan h3 { font-size: 24px; margin-bottom: 20px; } 
}

.action-plan ol { 
  list-style: none; 
  padding: 0; 
  counter-reset: action; 
}

.action-plan ol li { 
  counter-increment: action; 
  position: relative; 
  padding: 0 0 12px 40px; 
  margin-bottom: 12px; 
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}

.action-plan ol li:last-child { 
  border-bottom: none; 
  margin-bottom: 0; 
  padding-bottom: 0; 
}

.action-plan ol li::before { 
  content: counter(action); 
  position: absolute; 
  left: 0; 
  top: -2px; 
  width: 28px; 
  height: 28px; 
  background: var(--green); 
  color: var(--cream); 
  border-radius: 50%; 
  display: grid; 
  place-items: center; 
  font-family: var(--font-serif); 
  font-weight: 700; 
  font-size: 13px; 
}

@media (min-width: 768px) {
  .action-plan ol li { padding-left: 48px; }
  .action-plan ol li::before { width: 32px; height: 32px; font-size: 14px; }
}

/* ==========================================
   ARTICLE TAGS
   ========================================== */
.article-tags { 
  display: flex; 
  gap: 8px; 
  margin: 32px 0; 
  flex-wrap: wrap; 
}

@media (min-width: 768px) { 
  .article-tags { margin: 48px 0; } 
}

.article-tag {
  display: inline-block; 
  padding: 6px 12px;
  background: var(--paper); 
  border-radius: var(--r-pill);
  font-size: 13px; 
  color: var(--green); 
  font-weight: 500;
  text-decoration: none;
  transition: all 200ms;
}

.article-tag:hover { 
  background: var(--green); 
  color: var(--cream); 
}

/* ==========================================
   AUTHOR BIO
   ========================================== */
.author-bio {
  display: flex; 
  gap: 16px; 
  padding: 20px;
  background: var(--paper); 
  border-radius: var(--r-md);
  margin: 32px 0; 
  align-items: flex-start;
  flex-wrap: wrap;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .author-bio { 
    gap: 20px; 
    padding: 28px; 
    margin: 48px 0; 
    border-radius: var(--r-lg);
    flex-wrap: nowrap;
  } 
}

.author-bio-avatar {
  width: 56px; 
  height: 56px; 
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turq), var(--green));
  flex-shrink: 0; 
  overflow: hidden;
}

@media (min-width: 768px) { 
  .author-bio-avatar { width: 72px; height: 72px; } 
}

.author-bio-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0;
}

.author-bio-body { 
  flex: 1; 
  min-width: 0;
}

.author-bio-name {
  font-family: var(--font-serif);
  font-size: 17px; 
  font-weight: 700;
  color: var(--ink); 
  margin-bottom: 4px;
  line-height: 1.3;
}

@media (min-width: 768px) { 
  .author-bio-name { font-size: 19px; } 
}

.author-bio-role {
  font-size: 11px; 
  text-transform: uppercase;
  letter-spacing: 0.12em; 
  color: var(--green); 
  font-weight: 600; 
  margin-bottom: 10px; 
}

.author-bio-text {
  font-size: 14px; 
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .author-bio-text { font-size: 15px; }
}

.author-bio-links {
  display: flex; 
  gap: 12px; 
  margin-top: 12px;
  font-size: 12px; 
  flex-wrap: wrap;
}

.author-bio-links a {
  color: var(--green); 
  font-weight: 600;
  text-decoration: underline; 
  text-underline-offset: 2px;
  text-transform: uppercase; 
  letter-spacing: 0.08em;
}

/* ==========================================
   RELATED SECTION
   ========================================== */
.related-section { 
  margin: 40px 0 0; 
  padding-top: 32px; 
  border-top: 1px solid var(--line); 
}

@media (min-width: 768px) { 
  .related-section { 
    margin: 64px 0 0; 
    padding-top: 48px; 
  } 
}

/* ==========================================
   COMMENTS
   ========================================== */
.comments-area { 
  margin: 32px 0; 
  padding-top: 24px; 
  border-top: 1px solid var(--line); 
}

@media (min-width: 768px) { 
  .comments-area { 
    margin: 48px 0; 
    padding-top: 32px; 
  } 
}

.comments-area h3 { 
  font-size: 22px; 
  margin-bottom: 20px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .comments-area h3 { font-size: 28px; margin-bottom: 28px; }
}

.commentlist {
  list-style: none;
  padding: 0;
}

.commentlist .comment-body {
  padding: 16px; 
  background: var(--paper);
  border-radius: var(--r-sm); 
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { 
  .commentlist .comment-body { 
    padding: 20px; 
    border-radius: var(--r-md);
  } 
}

.commentlist .children {
  list-style: none;
  padding-left: 16px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .commentlist .children { padding-left: 32px; }
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 16px;
  background: var(--cream);
  font-family: inherit;
  margin-bottom: 12px;
}

#commentform input:focus,
#commentform textarea:focus {
  outline: none;
  border-color: var(--green);
}

#commentform textarea {
  min-height: 120px;
  resize: vertical;
}

#commentform .submit {
  padding: 12px 28px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-height: 44px;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 4px; 
  margin: 32px 0; 
  flex-wrap: wrap; 
}

@media (min-width: 768px) { 
  .pagination { gap: 8px; margin: 48px 0; } 
}

.pagination a, .pagination span {
  display: inline-grid; 
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm); 
  font-size: 14px; 
  font-weight: 600;
  color: var(--ink); 
  text-decoration: none;
  transition: all 200ms;
}

.pagination a:hover { 
  background: var(--paper); 
  color: var(--green); 
}

.pagination .current { 
  background: var(--ink); 
  color: var(--cream); 
}

/* ==========================================
   SIDEBAR
   ========================================== */
.layout-sidebar { 
  display: grid; 
  gap: 32px;
}

@media (min-width: 1024px) { 
  .layout-sidebar { 
    grid-template-columns: 1fr 280px; 
    gap: 48px;
  } 
}

.sidebar { 
  display: flex; 
  flex-direction: column; 
  gap: 24px;
  min-width: 0;
}

@media (min-width: 1024px) { 
  .sidebar { 
    position: sticky; 
    top: 100px; 
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  } 
}

.widget { 
  padding-bottom: 24px; 
  border-bottom: 1px solid var(--line); 
}

.widget:last-child { 
  border-bottom: none; 
  padding-bottom: 0;
}

.widget-title {
  font-size: 11px; 
  font-weight: 700;
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  color: var(--green); 
  margin-bottom: 14px;
}

.widget--popular ol { 
  list-style: none;
  padding: 0; 
  counter-reset: pop; 
}

.widget--popular li {
  counter-increment: pop; 
  position: relative;
  padding: 12px 0 12px 32px; 
  border-bottom: 1px solid var(--line-soft);
}

.widget--popular li:last-child { 
  border-bottom: none; 
}

.widget--popular li::before {
  content: counter(pop, decimal-leading-zero); 
  position: absolute;
  left: 0; 
  top: 12px; 
  font-family: var(--font-serif);
  font-size: 16px; 
  font-weight: 700; 
  color: var(--turq);
}

.widget--popular a {
  font-family: var(--font-serif); 
  font-size: 14px;
  font-weight: 700; 
  line-height: 1.3; 
  color: var(--ink);
  display: block; 
  margin-bottom: 4px;
  text-decoration: none;
  overflow-wrap: break-word;
}

.widget--popular a:hover { color: var(--green); }

.widget-meta { 
  font-size: 11px; 
  color: var(--ink-mute); 
  text-transform: uppercase; 
  letter-spacing: 0.08em; 
}

.toc-list { font-size: 13px; }
.toc-list li { margin-bottom: 6px; }
.toc-list a { 
  display: block; 
  padding: 4px 0 4px 12px; 
  color: var(--ink-soft); 
  border-left: 2px solid var(--line); 
  text-decoration: none;
  transition: all 200ms;
  overflow-wrap: break-word;
}
.toc-list a:hover { 
  color: var(--green); 
  border-left-color: var(--green); 
}

.ad-slot { 
  padding: 16px; 
  background: var(--paper); 
  text-align: center; 
  border-radius: var(--r-sm); 
}

.ad-label { 
  font-size: 10px; 
  text-transform: uppercase; 
  letter-spacing: 0.12em; 
  color: var(--ink-mute); 
  margin-bottom: 8px; 
}

/* ==========================================
   READING PROGRESS BAR
   ========================================== */
.reading-progress { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 2px; 
  background: transparent; 
  z-index: 101; 
  pointer-events: none; 
}

.reading-progress-bar { 
  height: 100%; 
  background: var(--turq); 
  width: 0%; 
  transition: width 100ms ease; 
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { 
  background: var(--cream); 
  padding: 40px 0 20px; 
  border-top: 1px solid var(--line); 
}

@media (min-width: 768px) { 
  .site-footer { padding: 64px 0 28px; } 
}

.footer-grid { 
  display: grid; 
  gap: 32px; 
  margin-bottom: 32px; 
  grid-template-columns: 1fr; 
}

@media (min-width: 600px) { 
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 32px 20px; 
  } 
}

@media (min-width: 900px) { 
  .footer-grid { 
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 48px; 
  } 
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 768px) {
  .footer-brand { font-size: 26px; }
}

.footer-brand em { 
  font-style: italic; 
  color: var(--green); 
  font-weight: 700; 
}

.footer-tagline {
  color: var(--ink-soft); 
  max-width: 320px;
  line-height: 1.5; 
  font-size: 14px; 
  margin-bottom: 16px;
}

.footer-social { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px; 
  height: 40px; 
  border-radius: 50%;
  border: 1px solid var(--line); 
  display: grid;
  place-items: center; 
  transition: all 200ms; 
  color: var(--ink);
  text-decoration: none;
}

.footer-social a:hover { 
  background: var(--ink); 
  color: var(--cream); 
  border-color: var(--ink); 
}

.footer-social svg { 
  width: 14px; 
  height: 14px; 
}

.footer-title {
  font-size: 11px; 
  font-weight: 700;
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  color: var(--ink-mute); 
  margin-bottom: 14px;
}

.footer-list { 
  display: flex; 
  flex-direction: column; 
  gap: 10px;
  list-style: none;
  padding: 0;
}

.footer-list a {
  font-size: 14px; 
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms;
}

.footer-list a:hover { color: var(--green); }

.footer-bottom {
  padding-top: 20px; 
  border-top: 1px solid var(--line);
  font-size: 12px; 
  color: var(--ink-mute);
}

@media (min-width: 768px) { 
  .footer-bottom { padding-top: 28px; } 
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: white; 
  padding: 40px 0;
}

@media (min-width: 768px) { 
  .newsletter-section { padding: 64px 0; } 
}

.newsletter-inner { 
  max-width: 680px; 
  margin: 0 auto; 
  text-align: center; 
}

.newsletter-eyebrow {
  font-size: 11px; 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.15em;
  margin-bottom: 12px; 
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-title {
  font-size: 26px;
  margin-bottom: 12px;
  color: white;
  line-height: 1.2;
}

@media (min-width: 768px) { 
  .newsletter-title { font-size: 34px; } 
}

.newsletter-title em { 
  font-style: italic; 
  font-weight: 700; 
}

.newsletter-lede {
  font-size: 15px; 
  margin-bottom: 24px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
  .newsletter-lede { font-size: 17px; }
}

.newsletter-form { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1; 
  min-width: 200px;
  padding: 14px 20px;
  border: none; 
  border-radius: var(--r-pill);
  font-size: 16px;
  background: white;
  color: var(--ink);
  font-family: inherit;
}

.newsletter-input::placeholder { color: var(--ink-mute); }

.newsletter-input:focus {
  outline: 2px solid var(--turq-soft);
  outline-offset: 2px;
}

.newsletter-btn {
  padding: 14px 24px; 
  background: var(--ink); 
  color: white;
  border: none; 
  border-radius: var(--r-pill);
  font-size: 13px; 
  font-weight: 600; 
  cursor: pointer;
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  transition: all 200ms;
  min-height: 44px;
  font-family: inherit;
}

.newsletter-btn:hover { background: var(--ink-soft); }

.newsletter-trust {
  font-size: 13px; 
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   404
   ========================================== */
.error-404 { 
  text-align: center; 
  padding: 48px 16px; 
}

@media (min-width: 768px) { 
  .error-404 { padding: 88px 16px; } 
}

.error-404-number {
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--line);
  line-height: 1;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .error-404-number { font-size: 140px; }
}

/* ==========================================
   SEARCH FORM
   ========================================== */
.search-form { 
  display: flex; 
  gap: 8px;
  width: 100%;
}

.search-form input[type="search"] {
  flex: 1; 
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill); 
  font-size: 16px;
  background: var(--cream);
  font-family: inherit;
}

.search-form input[type="search"]:focus { 
  outline: none; 
  border-color: var(--green); 
}

.search-form button {
  padding: 12px 20px;
  background: var(--ink); 
  color: var(--cream);
  border: none; 
  border-radius: var(--r-pill);
  font-size: 13px; 
  font-weight: 600; 
  cursor: pointer;
  text-transform: uppercase; 
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* ==========================================
   WORDPRESS UTILS
   ========================================== */
.alignleft { float: left; margin: 0 20px 12px 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 12px 20px; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
  .alignleft, .alignright {
    float: none;
    margin: 16px auto;
    display: block;
    max-width: 100%;
  }
}

.wp-caption { max-width: 100%; }

.wp-caption-text {
  font-size: 13px; 
  color: var(--ink-mute);
  text-align: center; 
  font-style: italic; 
  margin-top: 8px;
  line-height: 1.4;
}

.screen-reader-text {
  border: 0; 
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); 
  height: 1px; 
  margin: -1px;
  overflow: hidden; 
  padding: 0; 
  position: absolute;
  width: 1px; 
  word-wrap: normal;
}

.sticky { display: block; }

/* ==========================================
   ANIMATIONS REVEAL
   ========================================== */
.reveal { 
  opacity: 0; 
  transform: translateY(16px); 
  transition: opacity 600ms ease, transform 600ms ease; 
}

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

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   COOKIE BANNER (FIX: CSS manquant)
   ========================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-banner.is-visible { display: flex; }

.cookie-banner p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: rgba(247,245,239,0.9);
}

.cookie-banner p a {
  color: var(--turq-soft);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 200ms;
}

.cookie-btn-accept {
  background: var(--turq);
  color: var(--ink);
  border-color: var(--turq);
}

.cookie-btn-accept:hover { background: var(--turq-soft); }

.cookie-btn-decline {
  background: transparent;
  color: var(--cream);
}

.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    gap: 24px;
  }
  .cookie-banner p { flex: 1; }
  .cookie-banner-actions { flex-shrink: 0; }
}

/* ==========================================
   SIDEBAR NEWSLETTER WIDGET (FIX: variables CSS inexistantes)
   ========================================== */
.widget--newsletter {
  background: var(--ink);
  color: var(--cream);
  padding: 24px;
  border-radius: var(--r-md);
  border-bottom: none;
}

.widget-newsletter-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--turq-soft);
  margin-bottom: 10px;
}

.widget-newsletter-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.25;
}

.widget-newsletter-text {
  font-size: 13px;
  color: rgba(247,245,239,0.7);
  margin-bottom: 14px;
  line-height: 1.5;
}

.widget-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-newsletter-input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  color: var(--cream);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}

.widget-newsletter-input::placeholder { color: rgba(247,245,239,0.5); }
.widget-newsletter-input:focus {
  outline: none;
  border-color: var(--turq);
}

/* ==========================================
   EMPLACEMENTS PUBLICITAIRES
   ========================================== */
.ns-ad {
  margin: 28px 0;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.ns-ad-inner {
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 12px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ns-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.ns-ad ins,
.ns-ad .adsbygoogle {
  display: block;
  max-width: 100%;
}

.ns-ad--in-article { margin: 32px 0; }
.ns-ad--before-footer { margin: 40px 0; }

@media (min-width: 768px) {
  .ns-ad--before-footer { margin: 56px 0; }
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
  .site-header, 
  .site-footer, 
  .newsletter-section, 
  .sidebar, 
  .article-share,
  .related-section, 
  .comments-area,
  .drawer,
  .reading-progress,
  .cookie-banner,
  .ns-ad { 
    display: none !important; 
  }
  
  body { 
    font-size: 11pt; 
    background: white;
    color: black;
  }
  
  .container { max-width: 100%; padding: 0; }
  
  h1, h2, h3 { 
    page-break-after: avoid; 
    page-break-inside: avoid; 
  }
  
  p, blockquote { 
    page-break-inside: avoid; 
    orphans: 3; 
    widows: 3; 
  }
  
  a { 
    color: black; 
    text-decoration: underline;
  }
  
  img { max-width: 100% !important; }
}
