/* ============================================================
   betterave-rouge.fr — Design "Terre nourricière"
   CSS statique pur — Astro 6
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;600&display=swap');

/* --- Design tokens --- */
:root {
  --bordeaux: #8B1A1A;
  --bordeaux-80: rgba(139, 26, 26, 0.8);
  --bordeaux-40: rgba(139, 26, 26, 0.4);
  --bordeaux-15: rgba(139, 26, 26, 0.15);
  --bordeaux-06: rgba(139, 26, 26, 0.06);
  --vert: #2D5016;
  --vert-60: rgba(45, 80, 22, 0.6);
  --vert-20: rgba(45, 80, 22, 0.2);
  --creme: #F5EEE4;
  --fond-alt: #EDE5D8;
  --texte: #2A2118;
  --or: #C8973A;
  --blanc: #FAFAF8;
  --nuit: #1A0F0A;
  --gris: #7A6E65;
  --gris-clair: #BEB5AD;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'Source Serif 4', Georgia, serif;
  --ff-mono: 'JetBrains Mono', monospace;

  --measure-article: 700px;
  --measure-wide: 1280px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 250ms;
  --dur: 450ms;
  --dur-slow: 700ms;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--creme);
  color: var(--texte);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.2;
  color: var(--texte);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; margin: 2rem 0 0.75rem; }
p { margin-bottom: 1.25rem; }

/* --- Kicker (catégorie) --- */
.kicker {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
}

/* --- Séparateur losange --- */
.sep {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.sep::before, .sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bordeaux-40);
}
.sep-diamond {
  width: 8px; height: 8px;
  background: var(--bordeaux);
  transform: rotate(45deg);
  display: inline-block;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
  padding: 1.25rem var(--gutter);
}
.site-header.scrolled {
  background: var(--nuit);
  box-shadow: 0 2px 20px rgba(26,15,10,0.25);
}
.header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.site-logo img {
  width: 36px; height: 36px;
}
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 400;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  transition: color var(--dur-fast), background var(--dur-fast);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--blanc);
  background: rgba(250,250,248,0.1);
  text-decoration: none;
}
.nav-cta {
  background: var(--bordeaux) !important;
  color: var(--blanc) !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: #a02020 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--blanc);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--nuit);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,15,10,0.72) 0%, rgba(45,80,22,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem var(--gutter) 6rem;
  max-width: 900px;
  animation: fadeUp var(--dur-slow) var(--ease) both;
}
.hero-content .kicker { color: var(--or); margin-bottom: 1rem; }
.hero-content h1 { color: var(--blanc); margin-bottom: 1.5rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-tagline {
  font-family: var(--ff-body);
  font-size: 1.15rem;
  color: rgba(250,250,248,0.88);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--blanc);
  border: 2px solid var(--bordeaux);
}
.btn-primary:hover { background: #a02020; border-color: #a02020; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(250,250,248,0.5);
}
.btn-secondary:hover { border-color: var(--blanc); text-decoration: none; }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(250,250,248,0.6);
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Hero article (non-home) */
.hero-article {
  min-height: 60vh;
}
.hero-article .hero-content { max-width: 780px; }
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hero-breadcrumb a, .hero-breadcrumb span {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.65);
  text-decoration: none;
}
.hero-breadcrumb a:hover { color: var(--blanc); }
.hero-breadcrumb .sep-bc { color: rgba(250,250,248,0.4); }
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-meta-item {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(250,250,248,0.65);
}

/* ============================================================
   LAYOUT ARTICLE
   ============================================================ */
.article-container {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}
.article-container:not(:has(.article-toc)) > .article-main {
  grid-column: 1 / -1;
}
.article-toc {
  position: sticky;
  top: 5rem;
  height: fit-content;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--fond-alt);
  border-left: 3px solid var(--bordeaux);
}
.toc-title {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1rem;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a {
  font-size: 0.85rem;
  color: var(--gris);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--dur-fast);
}
.toc-list a:hover { color: var(--bordeaux); }
.article-main { min-width: 0; }

/* Article Summary (chapeau) */
.article-summary {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gris);
  border-left: 4px solid var(--bordeaux);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--fond-alt);
}

/* Article Body */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
}
.article-body h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}
.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 3rem; height: 2px;
  background: var(--bordeaux);
  transform-origin: left;
}
.article-body h3 { color: var(--vert); }

/* Lettrine */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  color: var(--bordeaux);
  font-size: 4.5rem;
  line-height: 0.8;
  float: left;
  margin: 0.1em 0.15em 0 0;
  font-weight: 700;
}

/* Pull-quote */
.pull-quote {
  border-left: 3px solid var(--bordeaux);
  padding: 1.25rem 1.5rem;
  font-style: italic;
  font-size: 1.15rem;
  background: var(--fond-alt);
  margin: 2rem 0;
  color: var(--texte);
}

/* Article Image */
.article-img {
  width: 100%;
  border-radius: 2px;
  margin: 2rem 0;
}
.article-img figcaption {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--gris);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

/* Related section */
.related-section {
  background: var(--fond-alt);
  padding: 3rem var(--gutter);
  margin-top: 4rem;
}
.related-title {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.related-heading {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--texte);
}
.related-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.related-card {
  background: var(--blanc);
  padding: 1.5rem;
  border-top: 3px solid var(--bordeaux);
  transition: transform var(--dur-fast) var(--ease);
}
.related-card:hover { transform: translateY(-3px); }
.related-card a {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
  text-decoration: none;
}
.related-card a:hover { color: var(--bordeaux); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  margin: 3rem 0;
}
.faq-title-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.faq-title {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--texte);
}
.faq-item {
  border-bottom: 1px solid var(--bordeaux-15);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 1rem;
}
.faq-question span:first-child {
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
}
.faq-icon {
  font-size: 1.25rem;
  color: var(--bordeaux);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--ff-mono);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.7;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.home-section {
  padding: 5rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.section-kicker {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--gris);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--blanc);
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(42,33,24,0.06);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42,33,24,0.12);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-kicker {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-decoration: none;
  display: block;
}
.blog-card-title:hover { color: var(--bordeaux); }
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--gris);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.blog-card-meta {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: var(--gris-clair);
  letter-spacing: 0.05em;
}
.blog-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux);
  text-decoration: none;
}
.blog-card-link:hover { text-decoration: underline; }

/* Piliers cards */
.piliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pilier-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 2px;
}
.pilier-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.pilier-card:hover img { transform: scale(1.04); }
.pilier-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,15,10,0.8) 0%, transparent 60%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pilier-card-overlay .kicker { margin-bottom: 0.25rem; }
.pilier-card-overlay a {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blanc);
  text-decoration: none;
  line-height: 1.2;
}
.pilier-card-overlay a:hover { color: var(--or); }

/* Catégories filter */
.cat-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cat-btn {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--bordeaux-40);
  background: transparent;
  color: var(--texte);
  cursor: pointer;
  transition: all var(--dur-fast);
  border-radius: 2px;
}
.cat-btn.active, .cat-btn:hover {
  background: var(--bordeaux);
  color: var(--blanc);
  border-color: var(--bordeaux);
}

/* Stats chiffres */
.stats-section {
  background: var(--nuit);
  padding: 5rem var(--gutter);
}
.stats-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--bordeaux);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--ff-body);
  color: rgba(250,250,248,0.7);
  font-size: 0.9rem;
}

/* Section immersive */
.immersive-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.immersive-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.immersive-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,15,10,0.65);
}
.immersive-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem var(--gutter);
  max-width: 700px;
}
.immersive-content .kicker { color: var(--or); margin-bottom: 1rem; }
.immersive-content h2 {
  color: var(--blanc);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}
.immersive-content p { color: rgba(250,250,248,0.82); margin-bottom: 2rem; }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-listing {
  padding: 6rem var(--gutter) 4rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.blog-listing-header {
  text-align: center;
  margin-bottom: 3rem;
}
.blog-listing-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.blog-listing-header p {
  color: var(--gris);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   PAGES UTILITAIRES
   ============================================================ */
.page-util {
  max-width: 760px;
  margin: 7rem auto 4rem;
  padding: 0 var(--gutter);
}
.page-util h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--bordeaux);
}
.page-util h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.page-util p { margin-bottom: 1rem; color: var(--gris); }
.page-util ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-util li { margin-bottom: 0.4rem; color: var(--gris); }

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
}
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--bordeaux-40);
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color var(--dur-fast);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { align-self: flex-start; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--nuit);
  padding: 4rem var(--gutter) 2rem;
}
.footer-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text { font-size: 1.2rem; }
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(250,250,248,0.55);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}
.footer-col h3 {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(250,250,248,0.6);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--blanc); }
.footer-bottom {
  border-top: 1px solid rgba(250,250,248,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: rgba(250,250,248,0.4);
  letter-spacing: 0.05em;
}
.footer-heritage {
  font-size: 0.78rem;
  color: rgba(250,250,248,0.35);
  font-style: italic;
  max-width: 400px;
}

/* ============================================================
   PAGE 404
   ============================================================ */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.page-404 .big-num {
  font-family: var(--ff-display);
  font-size: 8rem;
  color: var(--bordeaux-15);
  line-height: 1;
  margin-bottom: 1rem;
}
.page-404 h1 { font-size: 2rem; margin-bottom: 1rem; }
.page-404 p { color: var(--gris); margin-bottom: 2rem; }

/* ============================================================
   PLAN DU SITE
   ============================================================ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.sitemap-section h2 {
  font-size: 1rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.75rem;
}
.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 0.4rem; }
.sitemap-section a { font-size: 0.9rem; color: var(--texte); }
.sitemap-section a:hover { color: var(--bordeaux); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .article-container { grid-template-columns: 1fr; }
  .article-toc { position: static; margin-bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  body.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--nuit);
    z-index: 99;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  body.nav-open .site-nav a {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .piliers-grid { grid-template-columns: 1fr; }
}
