/* ==========================================================================
   Guide Rencontre Ephemere — design system "Golden Hour Nomade"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Outfit:wght@300;400;500;600;700&family=Caveat:wght@500;600&display=swap');

/* Reset anti-distorsion obligatoire (regle reseau) */
img { max-width: 100%; height: auto; display: block; }

:root {
  /* Couleurs — palette Golden Hour Nomade */
  --terracotta: #C97052;
  --sable: #F5E6D3;
  --crepuscule: #2C3E56;
  --corail: #E8836B;
  --miel: #D4A24C;
  --encre: #22242E;
  --text: #22242E;
  --text-light: #5C6270;

  /* Derives opacite */
  --crepuscule-90: rgba(44, 62, 86, 0.9);
  --crepuscule-70: rgba(44, 62, 86, 0.7);
  --crepuscule-45: rgba(44, 62, 86, 0.45);
  --crepuscule-20: rgba(44, 62, 86, 0.2);
  --crepuscule-10: rgba(44, 62, 86, 0.1);
  --crepuscule-06: rgba(44, 62, 86, 0.06);
  --sable-95: rgba(245, 230, 211, 0.95);
  --sable-75: rgba(245, 230, 211, 0.75);
  --sable-40: rgba(245, 230, 211, 0.4);
  --corail-40: rgba(232, 131, 107, 0.4);
  --terracotta-15: rgba(201, 112, 82, 0.15);
  --miel-15: rgba(212, 162, 76, 0.15);

  /* Polices */
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'Outfit', system-ui, sans-serif;
  --ff-accent: 'Caveat', cursive;

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

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

  /* Radius */
  --radius: 6px;
  --radius-lg: 12px;
}

/* ==========================================================================
   Reset general
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--sable);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--crepuscule);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.2em; }

a { color: var(--terracotta); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--crepuscule); }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

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

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

/* ==========================================================================
   Anti-distorsion — wrappers images (regle reseau critique)
   ========================================================================== */

.img-hero     { aspect-ratio: 3/2;  overflow: hidden; border-radius: var(--radius-lg); }
.img-card     { aspect-ratio: 3/2;  overflow: hidden; border-radius: var(--radius); }
.img-body     { aspect-ratio: 3/2;  overflow: hidden; border-radius: var(--radius); }
.img-portrait { aspect-ratio: 1/1;  overflow: hidden; border-radius: 50%; }

.img-hero img, .img-card img, .img-body img, .img-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 2em 0; }

/* Figures avec legende dans le corps d'article */
.fig-body { margin: 2.2em 0; }
.fig-body img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); margin: 0; }
.fig-body figcaption { margin-top: 0.6em; font-size: 0.85rem; color: var(--text-light); text-align: center; font-style: italic; }

/* Alias blog-card -> reprend le style .card (compat listing blog) */
.blog-card { }

/* ==========================================================================
   Kicker / signature "carnet de voyage"
   ========================================================================== */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8em;
}

.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

/* Filet decoratif sous H2 */
.section-title {
  position: relative;
  padding-bottom: 0.5em;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--corail);
  transform-origin: left;
  transition: width var(--dur-slow) var(--ease);
}

.section-title.in-view::after,
.reveal.visible .section-title::after {
  width: 96px;
}

/* Accent manuscrit carnet de voyage */
.accent-script {
  font-family: var(--ff-accent);
  font-size: 1.5em;
  color: var(--terracotta);
  font-weight: 600;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sable-95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--crepuscule-10);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.site-header.scrolled { box-shadow: 0 2px 16px var(--crepuscule-06); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--crepuscule);
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}

.site-logo .accent-script { font-size: 1.25em; }

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

.main-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.8rem;
}

.main-nav__list > li { margin: 0; position: relative; }

.main-nav a { color: var(--crepuscule); font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: var(--terracotta); }

.nav-dropdown { position: relative; }

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--sable);
  border: 1px solid var(--crepuscule-10);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--crepuscule-20);
  min-width: 260px;
  padding: 0.6rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown__menu li a {
  display: block;
  padding: 0.55em 0.8em;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.nav-dropdown__menu li a:hover { background: var(--corail-40); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--crepuscule);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; }

.hero-home {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--sable);
}

.hero-home__img { position: absolute; inset: 0; z-index: 0; }

.hero-home__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-home__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(34,36,46,0.12) 0%, rgba(34,36,46,0.5) 60%, rgba(34,36,46,0.88) 100%);
}

.hero-home__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem var(--gutter) 5rem;
  max-width: var(--measure-hero);
  margin: 0 auto;
}

.hero-home__kicker {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--miel);
  margin-bottom: 1em;
  display: block;
}

.hero-home h1 { color: var(--sable); max-width: 14ch; }

.hero-home__description {
  max-width: 48ch;
  font-size: 1.1rem;
  color: var(--sable-95);
  margin-top: 1em;
}

.hero-home__cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--sable-75);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.hero-scroll-indicator::after {
  content: '';
  width: 1px;
  height: 28px;
  background: var(--sable-75);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero compact (pages article/pilier) */
.hero-compact {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: var(--sable);
}

.hero-compact .hero-home__img,
.hero-compact .hero-home__overlay,
.hero-compact .hero-home__content { position: absolute; inset: 0; }

.hero-compact .hero-home__content {
  position: relative;
  padding: 3rem var(--gutter) 3rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 52vh;
}

.breadcrumb {
  display: flex;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  font-size: 0.82rem;
  color: var(--sable-75);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--sable-75); }
.breadcrumb a:hover { color: var(--sable); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.5em; opacity: 0.6; }

.article-meta {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--sable-75);
  margin-top: 0.8em;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary { background: var(--terracotta); color: var(--sable); }
.btn--primary:hover { background: var(--crepuscule); color: var(--sable); }

.btn--ghost { background: transparent; border-color: var(--sable-75); color: var(--sable); }
.btn--ghost:hover { background: var(--sable-95); color: var(--crepuscule); border-color: var(--sable-95); }

.btn--outline { background: transparent; border-color: var(--crepuscule-20); color: var(--crepuscule); }
.btn--outline:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ==========================================================================
   Cards
   ========================================================================== */

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

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--crepuscule-06);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Bord dentele type ticket d'avion — signature visuelle */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 10px, transparent 10px 18px);
  z-index: 2;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--crepuscule-10); }

.card__img { aspect-ratio: 3/2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }

.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5em; flex: 1; }

.card__category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.card__date { font-size: 0.8rem; color: var(--text-light); }

.card__title { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card__title a { color: var(--crepuscule); }
.card__title a:hover { color: var(--terracotta); }

.card__excerpt { font-size: 0.9rem; color: var(--text-light); flex: 1; }

/* Grille asymetrique piliers : numerotation arriere-plan */
.pillar-card { position: relative; }

.pillar-card__num {
  position: absolute;
  top: -0.3em;
  right: 0.6em;
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--corail-40);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

/* ==========================================================================
   Etapes numerotees (formules / process)
   ========================================================================== */

.steps {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 2.4rem 0;
}

.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  border-top: 3px solid var(--terracotta);
  box-shadow: 0 2px 12px var(--crepuscule-06);
}

.step__num {
  font-family: var(--ff-accent);
  font-size: 1.7rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.4em;
}

.step__title { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600; color: var(--crepuscule); margin-bottom: 0.4em; }
.step__text { font-size: 0.92rem; color: var(--text-light); margin: 0; }

/* ==========================================================================
   Frise "carnet de bord" (etapes/timeline) — signature visuelle
   ========================================================================== */

.planning-strip {
  display: flex;
  overflow-x: auto;
  gap: 0;
  margin: 2.4rem 0;
  border-radius: var(--radius-lg);
  background: var(--crepuscule);
  padding: 0.4rem;
}

.planning-strip__item {
  flex: 0 0 auto;
  min-width: 160px;
  padding: 1.2rem 1.4rem;
  color: var(--sable);
  border-right: 1px solid rgba(245,230,211,0.15);
  position: relative;
}

.planning-strip__item:last-child { border-right: none; }

.planning-strip__when { font-family: var(--ff-accent); font-size: 1.2rem; color: var(--miel); display: block; margin-bottom: 0.3em; }
.planning-strip__what { font-size: 0.85rem; color: var(--sable-95); margin: 0; }

/* ==========================================================================
   Checklist "tampon passeport" — signature visuelle
   ========================================================================== */

.checklist { list-style: none; padding: 0; margin: 1.6rem 0; }

.checklist li { position: relative; padding-left: 2.2em; margin-bottom: 0.9em; }

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: var(--ff-accent);
  font-size: 1.5rem;
  color: var(--miel);
  line-height: 1;
}

/* ==========================================================================
   Encadre thematique "Le carnet le dit"
   ========================================================================== */

.saviez-vous {
  background: var(--terracotta-15);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}

.saviez-vous__title {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--crepuscule);
  margin-bottom: 0.4em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.saviez-vous p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Interview
   ========================================================================== */

.article-body .interview-expert-card + h2,
.article-body h2:has(+ .expert-answer) {
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--terracotta);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.2rem;
  margin: 1.8rem 0 0.8rem;
}

.interview-expert-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin: 1.6rem 0 2.2rem;
  box-shadow: 0 2px 12px var(--crepuscule-06);
}

.interview-expert-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 30%; flex-shrink: 0; }
.interview-expert-card__name { font-family: var(--ff-display); font-weight: 600; color: var(--crepuscule); margin: 0; }
.interview-expert-card__role { font-size: 0.85rem; color: var(--text-light); margin: 0; }

blockquote.journalist-question,
.journalist-question {
  font-family: var(--ff-body) !important;
  font-style: normal !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  font-weight: 600;
  color: var(--terracotta);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.2rem;
  margin: 1.8rem 0 0.8rem;
}

blockquote.expert-answer,
.expert-answer {
  font-size: 1rem !important;
  font-style: normal !important;
  border-left: 3px solid var(--crepuscule-10);
  padding-left: 1.2rem;
  margin: 0 0 1.8rem;
}

/* ==========================================================================
   Pull quote
   ========================================================================== */

blockquote.pull-quote {
  border-left: 3px solid var(--corail);
  padding-left: 1.6rem;
  margin: 2.4rem 0;
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--crepuscule);
  line-height: 1.5;
}

/* ==========================================================================
   Lettrine
   ========================================================================== */

.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 4.2rem;
  font-weight: 600;
  color: var(--terracotta);
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.08em 0 0;
}

/* ==========================================================================
   Sommaire (TOC)
   ========================================================================== */

.article-sommaire {
  background: #fff;
  border: 1px solid var(--crepuscule-10);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0 2.4rem;
}

.article-sommaire summary { font-family: var(--ff-display); font-weight: 600; cursor: pointer; color: var(--crepuscule); }
.article-sommaire ol { margin: 1em 0 0; padding-left: 1.3em; }
.article-sommaire a { color: var(--text); font-size: 0.92rem; }
.article-sommaire a:hover { color: var(--terracotta); }

.article-toc { position: sticky; top: 100px; max-height: calc(100vh - 110px); overflow-y: auto; }

.article-toc__title {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8em;
}

.article-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--crepuscule-10); }
.article-toc li { margin-bottom: 0.7em; }

.article-toc a {
  color: var(--text-light);
  font-size: 0.88rem;
  padding-left: 1em;
  display: block;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.article-toc a:hover { color: var(--terracotta); border-left-color: var(--terracotta); }

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 3rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.article-layout:not(:has(.article-toc)) { grid-template-columns: minmax(0, 1fr); }

.article-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--crepuscule-90);
  line-height: 1.55;
  margin: 1.6rem 0 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--crepuscule-10);
}

/* ==========================================================================
   FAQ accordeon
   ========================================================================== */

.faq { margin: 2.4rem 0; }
.faq-item { border-bottom: 1px solid var(--crepuscule-10); }

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--crepuscule);
}

.faq-item__toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--terracotta-15);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--dur-fast) var(--ease);
}

.faq-item.open .faq-item__toggle { transform: rotate(45deg); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
  font-size: 0.95rem;
  color: var(--text-light);
}

.faq-item.open .faq-item__answer { max-height: 600px; padding-bottom: 1.2rem; }

/* ==========================================================================
   Liens retour / related
   ========================================================================== */

.article-nav-related { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--crepuscule-10); }

/* ==========================================================================
   Sections generiques
   ========================================================================== */

section { padding: 4.5rem 0; }
section.section--compact { padding: 3rem 0; }
section.section--dark { background: var(--crepuscule); color: var(--sable); }
section.section--alt { background: #fff; }

.section-header { max-width: 640px; margin: 0 auto 2.8rem; text-align: center; }
.section-header.left { margin-inline: 0; text-align: left; }

/* Section immersive plein ecran */
.section--immersive {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--sable);
  overflow: hidden;
}

.section--immersive__img { position: absolute; inset: 0; z-index: 0; }
.section--immersive__img img { width: 100%; height: 100%; object-fit: cover; }
.section--immersive__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(34,36,46,0.9) 0%, rgba(34,36,46,0.5) 60%, rgba(34,36,46,0.2) 100%); }
.section--immersive__content { position: relative; z-index: 2; max-width: 560px; padding: 0 var(--gutter); margin: 0 auto; }

/* ==========================================================================
   Stat counter
   ========================================================================== */

.stat-counter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-counter__num { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 600; color: var(--terracotta); }
.stat-counter__label { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   Tableaux et listes (contenu editorial)
   ========================================================================== */

.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.92rem; }

.article-body th, .article-body td {
  padding: 0.7em 1em;
  border: 1px solid var(--crepuscule-10);
  text-align: left;
}

.article-body th { background: var(--crepuscule); color: var(--sable); font-family: var(--ff-body); font-weight: 600; }
.article-body tr:nth-child(even) td { background: var(--sable-40); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--crepuscule); color: var(--sable-75); padding: 4rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,230,211,0.12);
}

.footer-brand .site-logo { color: var(--sable); }
.footer-brand p { font-size: 0.9rem; color: var(--sable-75); margin-top: 1em; max-width: 32ch; }

.footer-col__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--miel);
  margin-bottom: 1.1em;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.7em; }
.footer-col a { color: var(--sable-75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--sable); }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--sable-75);
}

.footer-bottom a { color: var(--sable-75); }
.footer-bottom a:hover { color: var(--sable); }

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; max-width: 640px; }

.contact-form label {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--crepuscule);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.8em 1em;
  border: 1px solid var(--crepuscule-20);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form__status { font-size: 0.9rem; margin-top: 0.5em; }
.contact-form__status--success { color: #3A7D5C; }
.contact-form__status--error { color: #C0392B; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

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

/* ==========================================================================
   Filtre categories (blog)
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--crepuscule-20);
  background: #fff;
  color: var(--crepuscule);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.card[hidden] { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-toc { display: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-hamburger { display: flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-counter { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-home__content { padding: 3rem var(--gutter) 3.5rem; }

  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--sable);
    padding: 2rem var(--gutter);
    z-index: 99;
    align-items: flex-start;
    overflow-y: auto;
  }

  body.nav-open .main-nav__list { flex-direction: column; gap: 1.2rem; width: 100%; }
  body.nav-open .nav-dropdown__menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }
  body.nav-open .nav-dropdown.open .nav-dropdown__menu { display: block; }
}
