/* ============================================================
   citadelle-belfort.fr — "L'Encyclopédie de Pierre"
   CSS statique pur — design tokens + tous les styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Oswald:wght@400;500&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /* Couleurs principales */
  --fortress:    #1E1E1E;
  --regiment:    #8B1A1A;
  --parchment:   #F2EBD9;
  --gold:        #B8922A;
  --stone:       #6E6560;
  --cream-alt:   #EDE5D0;

  /* Dérivés opacité */
  --fortress-80: rgba(30,30,30,0.80);
  --fortress-60: rgba(30,30,30,0.60);
  --fortress-40: rgba(30,30,30,0.40);
  --fortress-20: rgba(30,30,30,0.20);
  --fortress-10: rgba(30,30,30,0.10);
  --fortress-06: rgba(30,30,30,0.06);
  --regiment-15: rgba(139,26,26,0.15);
  --regiment-30: rgba(139,26,26,0.30);
  --parchment-95: rgba(242,235,217,0.95);
  --gold-20: rgba(184,146,42,0.20);

  /* Typographie */
  --ff-display: 'Zilla Slab', Georgia, serif;
  --ff-body:    'Lora', 'Times New Roman', serif;
  --ff-ui:      'Oswald', system-ui, sans-serif;

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

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 280ms;
  --dur:      480ms;
  --dur-slow: 700ms;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(30,30,30,0.12);
  --shadow-md: 0 4px 16px rgba(30,30,30,0.14);
  --shadow-lg: 0 8px 32px rgba(30,30,30,0.18);

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: clamp(0.975rem, 1vw + 0.7rem, 1.075rem);
  line-height: 1.75;
  color: var(--fortress);
  background-color: var(--parchment);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--regiment); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fortress);
}

h1 { font-size: clamp(1.85rem, 3.5vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.7rem, 2rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 1.8vw + 0.6rem, 1.45rem); margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* SIGNATURE 1 — Filets rouges cartographiques sous H2 */
.article-body h2 {
  position: relative;
  padding-bottom: 0.65rem;
}
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--regiment);
  transition: width var(--dur) var(--ease);
}
.article-body h2.visible::after { width: 48px; }

p { margin-bottom: 1.25rem; }

strong { font-weight: 600; }
em { font-style: italic; }

/* Lettrine au premier paragraphe */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 0.82;
  color: var(--regiment);
  margin-right: 0.12em;
  margin-top: 0.08em;
}

/* SIGNATURE 3 — Kickers "badge régimentaire" */
.kicker {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--regiment);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

/* SIGNATURE 4 — Pull quotes parchemin */
blockquote {
  position: relative;
  background: var(--cream-alt);
  border-left: 3px solid var(--regiment);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  overflow: hidden;
}
blockquote::after {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 48px; height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Cpath d='M15 5 L85 5 L95 40 L75 75 L25 75 L5 40 Z' fill='none' stroke='%238B1A1A' stroke-width='3'/%3E%3Ccircle cx='50' cy='40' r='18' fill='none' stroke='%238B1A1A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.10;
  pointer-events: none;
}

/* ============================================================
   4. LAYOUT & CONTAINERS
   ============================================================ */

.container {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-article {
  max-width: var(--measure-article);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fortress);
  color: #fff;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}
.site-logo-sub {
  font-family: var(--ff-ui);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.10); text-decoration: none; }
.nav-link.active { color: #fff; }

/* Dropdown navigation */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  padding: 0.4rem 0.7rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}
.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.65em;
}
.nav-dropdown-toggle:hover { color: #fff; background: rgba(255,255,255,0.10); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--fortress);
  border-top: 2px solid var(--regiment);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}

/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
}
.hero-home {
  min-height: clamp(520px, 80vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-page {
  min-height: clamp(320px, 45vh, 520px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,30,30,0.30) 0%,
    rgba(30,30,30,0.60) 60%,
    rgba(30,30,30,0.80) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: var(--gutter);
  max-width: var(--measure-hero);
  width: 100%;
  margin-inline: auto;
}

.hero-home .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-page .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-breadcrumb {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { margin-inline: 0.5rem; opacity: 0.5; }

.hero-home .hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 1.25rem;
}
.hero-page .hero-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.5vw + 0.8rem, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-meta {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: bounce 2s infinite;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ============================================================
   7. BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast), box-shadow var(--dur-fast);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--regiment);
  color: #fff;
}
.btn-primary:hover { background: #6e1414; color: #fff; text-decoration: none; box-shadow: 0 4px 12px var(--regiment-30); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; border-color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--regiment);
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--fortress); text-decoration: none; }

/* ============================================================
   8. HOMEPAGE ENCYCLOPÉDIQUE — Grille asymétrique (Signature 5)
   ============================================================ */

.hp-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hp-intro {
  background: var(--parchment);
  border-top: 1px solid var(--fortress-10);
  border-bottom: 1px solid var(--fortress-10);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.hp-intro-inner {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hp-intro p {
  font-size: clamp(1rem, 1.3vw + 0.5rem, 1.15rem);
  color: var(--stone);
  margin-bottom: 0;
}

/* Grille principale guides : sidebar encyclopédique + cards */
.hp-guides-wrapper {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(2rem, 5vw, 4rem);
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* SIGNATURE 5 — Index thématique sticky (desktop) */
.hp-sidebar {
  width: 220px;
  flex-shrink: 0;
}
.hp-sidebar-sticky {
  position: sticky;
  top: 80px;
}
.hp-sidebar-title {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--fortress-10);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.hp-sidebar-list { display: flex; flex-direction: column; gap: 0; }
.hp-sidebar-item {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  display: block;
  line-height: 1.3;
}
.hp-sidebar-item:hover { color: var(--regiment); background: var(--regiment-15); text-decoration: none; }
.hp-sidebar-item.active { color: var(--regiment); font-weight: 500; }

.hp-guides-main { flex: 1; min-width: 0; }

/* Grille guides : 4 columns, pattern asymétrique */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--cream-alt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }

.card-sq { aspect-ratio: 1; }
.card-po { aspect-ratio: 3/4; grid-row: span 1; }
.card-feature { grid-column: span 2; aspect-ratio: 16/9; }

.card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.card:hover .card-img { transform: scale(1.04); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,0.82) 0%, rgba(30,30,30,0.20) 60%, transparent 100%);
}

.card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.1rem;
  color: #fff;
}
.card-kicker {
  font-family: var(--ff-ui);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 0.3rem;
}
.card-title {
  font-family: var(--ff-display);
  font-size: clamp(0.9rem, 1.5vw + 0.3rem, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

/* SIGNATURE 2 — Numéros encyclopédiques en creux */
@media (min-width: 1024px) {
  .section-block {
    position: relative;
    overflow: hidden;
  }
  .section-block::before {
    content: attr(data-num);
    position: absolute;
    top: -1.5rem;
    right: var(--gutter);
    font-family: var(--ff-display);
    font-size: 10rem;
    font-weight: 700;
    color: var(--fortress);
    opacity: 0.04;
    pointer-events: none;
    line-height: 1;
    user-select: none;
  }
}

/* Blog teaser */
.hp-blog { background: var(--cream-alt); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--parchment);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }

.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-kicker {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--regiment);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fortress);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.6;
  flex: 1;
}
.blog-card-meta {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
  margin-top: 1rem;
}

/* Section immersive */
.hp-immersive {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 40vh, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hp-immersive-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hp-immersive-overlay {
  position: absolute; inset: 0;
  background: rgba(30,30,30,0.72);
  z-index: 1;
}
.hp-immersive-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  max-width: 640px;
}
.hp-immersive-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  color: #fff;
  margin-bottom: 1rem;
}
.hp-immersive-content p {
  color: rgba(255,255,255,0.80);
  font-style: italic;
  margin-bottom: 1.75rem;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.5vw + 0.5rem, 1.85rem);
  font-weight: 700;
  color: var(--fortress);
}
.section-link {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--regiment);
  text-decoration: none;
  margin-left: auto;
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   9. ARTICLE LAYOUT — PageLayout / BlogLayout
   ============================================================ */

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.article-container {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 3rem;
  align-items: start;
}

/* Article summary (chapeau italique) */
.article-summary {
  background: var(--cream-alt);
  border-left: 3px solid var(--regiment);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fortress-80);
}

/* TOC sticky */
.toc {
  position: sticky;
  top: 80px;
  background: var(--cream-alt);
  border: 1px solid var(--fortress-10);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.toc-title {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--fortress-10);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}
.toc-list { display: flex; flex-direction: column; gap: 0.1rem; }
.toc-item a {
  font-family: var(--ff-ui);
  font-size: 0.76rem;
  color: var(--stone);
  text-decoration: none;
  padding: 0.3rem 0.4rem;
  display: block;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.toc-item a:hover { color: var(--regiment); background: var(--regiment-15); }
.toc-item.active a { color: var(--regiment); font-weight: 500; }

/* Article body styles */
.article-body {
  max-width: var(--measure-article);
}
.article-body ul, .article-body ol {
  list-style: revert;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--regiment); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--fortress); }

.article-meta {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--fortress-10);
}

/* Images dans l'article */
.article-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-block: 2rem;
  box-shadow: var(--shadow-sm);
}
.article-img-caption {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* Related pages */
.related-section {
  background: var(--cream-alt);
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
  border-radius: var(--radius-md);
}
.related-title {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.related-item {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fortress);
  text-decoration: none;
  padding: 0.75rem 1rem;
  background: var(--parchment);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--regiment);
  line-height: 1.35;
  display: block;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.related-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }

/* ============================================================
   10. FAQ ACCORDION
   ============================================================ */

.faq-section { padding-block: 2.5rem; }
.faq-title {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--fortress-10);
}
.faq-item:first-child { border-top: 1px solid var(--fortress-10); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fortress);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--regiment); }
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: 1.5px solid var(--fortress-40);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast);
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--regiment);
  color: var(--regiment);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--stone);
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ============================================================
   11. FOOTER
   ============================================================ */

.site-footer {
  background: var(--fortress);
  color: rgba(255,255,255,0.70);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}
.footer-logo-text {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}
.footer-tagline {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  display: block;
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.footer-heritage {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.30);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.footer-col-title {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-list a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--dur-fast);
}
.footer-list a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.30);
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,0.70); }

/* ============================================================
   12. PAGES SYSTÈME
   ============================================================ */

/* Page 404 */
.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.page-404-num {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--regiment);
  opacity: 0.25;
  line-height: 1;
}
.page-404-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  margin-bottom: 1rem;
}
.page-404-text { color: var(--stone); margin-bottom: 2rem; max-width: 480px; }

/* Page contact */
.contact-form { max-width: 560px; margin-inline: auto; }
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.4rem;
}
.form-input, .form-textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--fortress);
  background: var(--cream-alt);
  border: 1.5px solid var(--fortress-20);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--dur-fast);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--regiment);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 140px; }

/* Blog listing */
.blog-listing {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ============================================================
   13. REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .card-feature { grid-column: span 2; }
  .hp-guides-wrapper { gap: 2rem; }
}

@media (max-width: 1023px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  .toc { display: none; }
  .hp-sidebar { display: none; }
  .hp-guides-wrapper { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-hamburger { display: block; }

  /* Menu mobile ouvert */
  body.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--fortress);
    padding: 1.5rem var(--gutter);
    overflow-y: auto;
    z-index: 99;
    gap: 0;
    align-items: flex-start;
  }
  body.nav-open .nav-link,
  body.nav-open .nav-dropdown-toggle {
    font-size: 1rem;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
  }
  body.nav-open .nav-dropdown { width: 100%; }
  body.nav-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--regiment);
    padding: 0 0 0 1rem;
    margin-bottom: 0.5rem;
  }

  body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .card-feature { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   15. UTILITAIRES
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--stone); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
