@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ==========================================================================
   capsurlessaveurs.fr — « Fruité vert »
   Le vert du décanteur en dominante, pas le crème en fond.
   ========================================================================== */

:root {
  /* Palette */
  --vert-decanteur: #2F3A24;
  --huile-neuve:    #A8B84A;
  --amande:         #EDE6D6;
  --terre-cuite:    #9C5B3F;
  --noyau:          #1A1C16;
  --calcaire-pale:  #F7F5EF;

  /* Dérivés */
  --vert-15:   rgba(47, 58, 36, 0.15);
  --vert-30:   rgba(47, 58, 36, 0.30);
  --vert-70:   rgba(47, 58, 36, 0.70);
  --huile-20:  rgba(168, 184, 74, 0.20);
  --amande-60: rgba(237, 230, 214, 0.60);
  --noyau-70:  rgba(26, 28, 22, 0.70);

  /* Catégories */
  --cat-terroir:     #9C5B3F;
  --cat-oliveraie:   #5A7340;
  --cat-table:       #B5842E;
  --cat-vins:        #6E3042;
  --cat-fabrication: #2F3A24;

  /* Typographie */
  --ff-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   1.4375rem;
  --fs-xl:   1.875rem;
  --fs-2xl:  2.5rem;
  --fs-3xl:  3.25rem;
  --fs-4xl:  4.25rem;

  /* Mesures */
  --measure-article: 840px;
  --measure-wide:   1200px;
  --measure-hero:   1440px;
  --gutter: 1.5rem;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 680ms;
}

/* --------------------------------------------------------------------------
   Reset — height:auto est obligatoire (Astro ajoute width/height en dur)
   -------------------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--calcaire-pale);
  color: var(--noyau);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.125rem, 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.625rem, 3.4vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.25rem, 2.4vw, var(--fs-lg)); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 1.35em; }

a {
  color: var(--vert-decanteur);
  text-decoration-color: var(--huile-neuve);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--terre-cuite); }

:focus-visible {
  outline: 3px solid var(--huile-neuve);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Enveloppes
   -------------------------------------------------------------------------- */

.wrap      { max-width: var(--measure-wide);    margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--measure-hero);    margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: var(--measure-article); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vert-decanteur);
  color: var(--amande);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vert-decanteur);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--huile-20), 0 6px 24px rgba(26, 28, 22, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  color: var(--amande);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.brand:hover { color: var(--huile-neuve); }
.brand em {
  font-style: italic;
  color: var(--huile-neuve);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--amande);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current='page'] {
  color: var(--huile-neuve);
  border-bottom-color: var(--huile-neuve);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--amande-60);
  color: var(--amande);
  font-size: 1.125rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero — la « bande de pressage », signature du site
   -------------------------------------------------------------------------- */

.hero-home {
  position: relative;
  background: var(--vert-decanteur);
  color: var(--amande);
  overflow: hidden;
}

.hero-home__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-home__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(47, 58, 36, 0.92) 0%, rgba(47, 58, 36, 0.74) 46%, rgba(47, 58, 36, 0.28) 100%);
}

.hero-home__inner {
  position: relative;
  z-index: 1;
  max-width: var(--measure-hero);
  margin-inline: auto;
  padding: clamp(4rem, 11vw, 8.5rem) var(--gutter) clamp(3.5rem, 9vw, 7rem);
}

.hero-home__text { max-width: 36ch; }

.hero-home h1 {
  font-size: clamp(2.5rem, 6.4vw, var(--fs-4xl));
  color: var(--amande);
  margin-bottom: 1rem;
}
.hero-home h1 em {
  font-style: italic;
  color: var(--huile-neuve);
}

.hero-home__lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--amande);
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* Bande de pressage — bandeau des pages intérieures */
.hero-band {
  background: var(--vert-decanteur);
  color: var(--amande);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.hero-band__inner {
  max-width: var(--measure-hero);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-left: 3px solid var(--huile-neuve);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.hero-band h1 {
  color: var(--amande);
  max-width: 34ch;
  margin-bottom: 0.75rem;
}
.hero-band__lede {
  color: var(--amande);
  font-size: var(--fs-md);
  max-width: 56ch;
  margin-bottom: 0;
  opacity: 0.92;
}
.hero-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--huile-neuve);
}

.hero-figure {
  margin: 0;
  max-width: var(--measure-hero);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero-figure .img-hero { margin-top: -2rem; }

.btn {
  display: inline-block;
  background: var(--huile-neuve);
  color: var(--noyau);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.btn:hover { background: #BACB5B; color: var(--noyau); }

.btn-ghost {
  background: transparent;
  color: var(--amande);
  border: 1px solid var(--amande-60);
}
.btn-ghost:hover { background: var(--huile-20); color: var(--amande); }

/* --------------------------------------------------------------------------
   Wrappers d'images anti-distorsion (REGLE 14)
   Jamais object-fit sur <img> seul : sans hauteur résolue, il est sans effet.
   -------------------------------------------------------------------------- */

/* Les ratios suivent les fichiers reellement generes (hero/body/card en 3:2,
   portraits en 1:1), et non l'inverse : un container 16/9 recevant une image
   3:2 recadre le sujet et coupe les tetes. Convention reseau, verifiee par
   check_image_aspect_ratio_hook.py. */
.img-hero     { aspect-ratio: 3/2;  overflow: hidden; }
.img-card     { aspect-ratio: 3/2;  overflow: hidden; }
.img-body     { aspect-ratio: 3/2;  overflow: hidden; }
.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;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--amande { background: var(--amande); }
.section--vert {
  background: var(--vert-decanteur);
  color: var(--amande);
}
.section--vert h2 { color: var(--amande); }
.section--vert h2 em { color: var(--huile-neuve); font-style: italic; }
.section--vert a { color: var(--huile-neuve); }

.section__head {
  max-width: var(--measure-wide);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding-inline: var(--gutter);
}
.section__head h2 { margin-bottom: 0.5rem; }
.section__head p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--noyau-70);
}
.section--vert .section__head p { color: var(--amande); opacity: 0.88; }

/* --------------------------------------------------------------------------
   Cards — filet, pas d'ombre grise générique
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--calcaire-pale);
  border: 1px solid var(--vert-15);
  border-radius: 2px;
  overflow: hidden;
}
.section--amande .card { background: var(--calcaire-pale); }
.section--vert .card {
  background: rgba(247, 245, 239, 0.06);
  border-color: var(--amande-60);
}

.card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: var(--fs-xs);
}

.card__cat {
  font-weight: 600;
  color: var(--terre-cuite);
}
.section--vert .card__cat { color: var(--huile-neuve); }

.card__date { color: var(--noyau-70); }
.section--vert .card__date { color: var(--amande); opacity: 0.75; }

.card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.section--vert .card h3 a { color: var(--amande); }
.section--vert .card h3 a:hover { color: var(--huile-neuve); }

.card__excerpt {
  font-size: var(--fs-sm);
  color: var(--noyau-70);
  margin-bottom: 0;
}
.section--vert .card__excerpt { color: var(--amande); opacity: 0.82; }

/* --------------------------------------------------------------------------
   Corps éditorial
   -------------------------------------------------------------------------- */

.article-body {
  max-width: var(--measure-article);
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-size: var(--fs-md);
  line-height: 1.72;
}

.article-body > h2 {
  margin-top: 2.5em;
  padding-top: 0.5rem;
  border-top: 1px solid var(--vert-15);
}
.article-body > h2:first-child { margin-top: 0; border-top: none; }
.article-body > h3 { margin-top: 1.9em; }

/* Noms de variétés en italique d'Instrument Serif */
.article-body em {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.06em;
}

.article-body strong { font-weight: 600; }

/* Listes — jamais la puce navigateur par défaut */
.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding-left: 0;
  list-style: none;
}
.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7em;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--huile-neuve);
  border-radius: 50%;
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--ff-display);
  font-size: 1.05em;
  color: var(--terre-cuite);
  font-weight: 400;
}
.article-body li ul { margin-top: 0.7em; margin-bottom: 0; }

/* Tableaux */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.75em;
  font-size: var(--fs-sm);
}
.article-body thead { background: var(--vert-decanteur); }
.article-body th {
  color: var(--amande);
  font-family: var(--ff-body);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 0.9rem;
}
.article-body td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--vert-15);
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) { background: var(--amande-60); }

.table-scroll { overflow-x: auto; margin-bottom: 1.75em; }

/* Citations — exclut les blocs d'interview */
.article-body blockquote:not(.journalist-question):not(.expert-answer) {
  margin: 0 0 1.75em;
  padding: 1.1rem 1.4rem;
  background: var(--amande);
  border-left: 3px solid var(--terre-cuite);
  font-size: var(--fs-md);
}
.article-body blockquote:not(.journalist-question):not(.expert-answer) p:last-child {
  margin-bottom: 0;
}

/* Figures et légendes — la légende doit être VISIBLE */
.article-body figure,
.figure-body {
  margin: 2.25em 0;
}
.article-body figcaption,
.figure-body figcaption {
  display: block;
  position: static;
  margin-top: 0.65rem;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--noyau-70);
  border-left: 2px solid var(--huile-neuve);
  padding-left: 0.7rem;
}

.article-body a { font-weight: 500; }

/* Résumé en tête */
.article-summary {
  max-width: var(--measure-article);
  margin: 0 auto 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--amande);
  border-left: 3px solid var(--huile-neuve);
  font-size: var(--fs-md);
}
.article-summary p:last-child { margin-bottom: 0; }

/* Sommaire */
.article-toc {
  max-width: var(--measure-article);
  margin: 0 auto 2.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--calcaire-pale);
  border: 1px solid var(--vert-15);
  border-radius: 2px;
}
.article-toc__title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  margin-bottom: 0.75rem;
}
.article-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--fs-sm);
}
.article-toc li { margin-bottom: 0.35rem; }

/* Navigation vers les articles liés — AVANT la FAQ */
.article-nav-related {
  max-width: var(--measure-article);
  margin: 3rem auto;
  padding: 1.5rem;
  background: var(--amande);
  border-radius: 2px;
}
.article-nav-related__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  margin-bottom: 0.9rem;
}
.article-nav-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.article-nav-related li { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Page de fabrication — SEULE page où la numérotation est légitime
   (c'est réellement une séquence de 12 étapes)
   -------------------------------------------------------------------------- */

.process-steps {
  max-width: var(--measure-article);
  margin: 0 auto 2.5rem;
  padding-inline: var(--gutter);
  list-style: none;
  counter-reset: step;
}
.process-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.75rem;
  padding-bottom: 1.75rem;
  border-left: 1px solid var(--vert-15);
  margin-left: 1.25rem;
}
.process-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -1.25rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--vert-decanteur);
  color: var(--huile-neuve);
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  border-radius: 50%;
}
.process-steps h3 { margin-bottom: 0.4rem; }
.process-steps p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Interview — sélecteurs SANS ancêtre (sinon orphelins)
   -------------------------------------------------------------------------- */

blockquote.journalist-question,
blockquote.expert-answer {
  font-family: var(--ff-body) !important;
  font-size: 1rem !important;
  font-style: normal !important;
  line-height: 1.7 !important;
  margin: 0 0 1.25em;
  padding: 1rem 1.25rem;
  border-radius: 2px;
}
blockquote.journalist-question::before,
blockquote.expert-answer::before {
  content: none !important;
}
blockquote.journalist-question {
  background: var(--vert-decanteur);
  color: var(--amande);
  border-left: 3px solid var(--huile-neuve);
  font-weight: 600;
}
blockquote.expert-answer {
  background: var(--calcaire-pale);
  color: var(--noyau);
  border-left: 3px solid var(--terre-cuite);
}
blockquote.journalist-question p:last-child,
blockquote.expert-answer p:last-child { margin-bottom: 0; }

.interview-expert-card {
  max-width: var(--measure-article);
  margin: 0 auto 2.5rem;
  padding: 1.5rem;
  background: var(--amande);
  border-radius: 2px;
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}
/* Portrait de largeur fixe, texte en flex : pas de grille a colonne fixe. */
.interview-expert-card > :first-child { flex: 0 0 110px; }
.interview-expert-card > :not(:first-child) { flex: 1 1 auto; min-width: 0; }
.interview-expert-card__name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  margin-bottom: 0.2rem;
}
.interview-expert-card__role {
  font-size: var(--fs-sm);
  color: var(--terre-cuite);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.interview-expert-card__bio {
  font-size: var(--fs-sm);
  margin-bottom: 0;
  color: var(--noyau-70);
}

.hero-compact { min-height: 42vh; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: var(--measure-article);
  margin: 3.5rem auto 0;
  padding-inline: var(--gutter);
}
.faq h2 { margin-bottom: 1.25rem; }

.faq__item {
  border-bottom: 1px solid var(--vert-15);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--noyau);
  text-align: left;
  cursor: pointer;
}
.faq__q i { color: var(--terre-cuite); flex-shrink: 0; font-size: 0.9em; }
.faq__a { padding-bottom: 1.1rem; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__item[data-open='false'] .faq__a { display: none; }

/* --------------------------------------------------------------------------
   Blog — filtre par catégorie
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: var(--measure-wide);
  margin: 0 auto 2.25rem;
  padding-inline: var(--gutter);
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--vert-30);
  color: var(--vert-decanteur);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.filter-btn:hover { background: var(--amande); }
.filter-btn[aria-pressed='true'] {
  background: var(--vert-decanteur);
  border-color: var(--vert-decanteur);
  color: var(--amande);
}
.card[hidden] { display: none; }

.filter-empty {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--noyau-70);
}

/* --------------------------------------------------------------------------
   Formulaire de contact
   -------------------------------------------------------------------------- */

.contact-form {
  max-width: 620px;
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--vert-30);
  border-radius: 2px;
  background: var(--calcaire-pale);
  color: var(--noyau);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--huile-neuve);
  outline-offset: 1px;
  border-color: var(--vert-decanteur);
}
.field textarea { min-height: 170px; resize: vertical; }
.field-hp { position: absolute; left: -9999px; }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: var(--fs-sm);
}
.form-status[data-state='ok']    { background: var(--huile-20); border-left: 3px solid var(--huile-neuve); }
.form-status[data-state='error'] { background: rgba(156, 91, 63, 0.12); border-left: 3px solid var(--terre-cuite); }
.form-status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--vert-decanteur);
  color: var(--amande);
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.75rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-footer h2 {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--huile-neuve);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: var(--fs-sm); }
.site-footer a { color: var(--amande); text-decoration: none; }
.site-footer a:hover { color: var(--huile-neuve); text-decoration: underline; }
.site-footer p { font-size: var(--fs-sm); opacity: 0.85; }

.footer-base {
  max-width: var(--measure-wide);
  margin: 2.5rem auto 0;
  padding: 1.25rem var(--gutter) 0;
  border-top: 1px solid var(--amande-60);
  font-size: var(--fs-xs);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   404 et plan du site
   -------------------------------------------------------------------------- */

.page-404 {
  max-width: var(--measure-article);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  text-align: center;
}

.sitemap-list { list-style: none; padding-left: 0; }
.sitemap-list ul { list-style: none; padding-left: 1.25rem; margin-top: 0.5rem; }
.sitemap-list li { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   Révélation — un seul moment de motion, au chargement du hero
   -------------------------------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  :root { --gutter: 1rem; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 68px 0 auto;
    background: var(--vert-decanteur);
    border-top: 1px solid var(--huile-20);
    display: none;
  }
  .site-nav[data-open='true'] { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-list a {
    display: block;
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--huile-20);
  }

  .interview-expert-card { grid-template-columns: 1fr; }
  .interview-expert-card .img-portrait { max-width: 110px; }

  .hero-figure .img-hero { margin-top: 0; }
  .process-steps > li { padding-left: 3.25rem; }
}
