/* ============================================
   Fred Saint Nectaire feuille de style
   Palette artisanale & terroir
   ============================================ */

:root {
  --bg:          #faf4e6;
  --bg-alt:      #f0e3c8;
  --cream:       #fffdf6;          /* crème de référence : surface claire ET texte/éléments sur fond foncé */
  --surface:     var(--cream);
  --text:        #2d1a06;
  --text-muted:  #6b5239;          /* foncé pour atteindre AA (≈ 5.1:1 sur --bg) */
  --primary:     #8b5528;
  --primary-dark:#5c3514;
  --primary-50:  rgba(139, 85, 40, 0.08);
  --primary-15:  rgba(139, 85, 40, 0.15);
  --accent:      #c4a265;
  --accent-dark: #b8922a;
  --gold:        #b8922a;
  --gold-dark:   #7d5f11;          /* foncé pour AA (≈ 5.4:1 sur --bg, 4.7:1 sur --bg-alt) */
  --gold-10:     rgba(184, 146, 42, 0.10);
  --gold-soft:   #e8c88a;          /* or clair chaud : accents (eyebrow, badges, libellés) sur fonds foncés */
  --fourme:      #3d6b4f;           /* couleur signature Fourme d'Auvergne */
  --border:      #dcc8a8;
  --footer-text:  #e8d8ba;
  --footer-link:  #f0e2c4;
  --footer-meta:  #c8b48e;
  --footer-faint: #a89070;
  --success:      #487029;         /* foncé pour AA (≈ 5.1:1 sur --success-bg) */
  --success-bg:   #eef2dd;
  --success-bd:   #b8cf8a;
  --error:        #c5302e;
  --error-bg:     #fbe9e7;
  --error-bd:     #f1bcba;
  --warning-bg:   #f8e8d8;
  --warning-fg:   #6f3f15;
  --warning-bd:   #d4b88a;
  --shadow-sm:   0 1px 3px rgba(44, 26, 8, 0.08);
  --shadow-md:   0 4px 14px rgba(44, 26, 8, 0.11);
  --shadow-lg:   0 12px 36px rgba(44, 26, 8, 0.15);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --max-width:   1200px;
  --gutter:      clamp(1.25rem, 5vw, 2.5rem);
  --font-serif:  "Lora", Georgia, "Times New Roman", serif;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Échelle d'espacement (base 4/8 px) — référence unique pour le rythme vertical/horizontal */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.5rem;    /* 24px */
  --space-6:   2rem;      /* 32px */
  --space-7:   2.5rem;    /* 40px */
  --space-8:   3rem;      /* 48px */
  --space-9:   4rem;      /* 64px */
  --space-10:  4.5rem;    /* 72px */
  --space-12:  6rem;      /* 96px */

  /* Mouvement — système d'animation unifié (artisanal, discret) */
  --dur-fast:   0.15s;          /* micro-interactions : couleurs, bordures, focus */
  --dur-base:   0.25s;          /* standard : survols de cartes, élévations */
  --dur-slow:   0.4s;           /* transitions importantes : zoom image, entrées au scroll */
  --ease-out:   cubic-bezier(.22, 1, .36, 1);    /* entrées : décélération douce */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);   /* mouvements : aller-retour équilibré */
  --lift:      -3px;            /* élévation au survol, valeur unique */
  --reveal-dur: var(--dur-slow);  /* alias : durée des entrées au scroll */
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; height: auto; }
/* Le wrapper <picture> ne doit pas perturber les conteneurs (object-fit, grilles) */
picture { display: contents; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }
main { flex: 1; }

/* ── Typographie ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; margin-bottom: 0.35em; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

/* ── Accessibilité ── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.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;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section--alt {
  background-color: var(--bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section__head .eyebrow { margin-bottom: 0.75rem; }
.section__head h2 { margin-bottom: 0.6rem; }
.section__head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.section__note { color: var(--text-muted); max-width: 640px; margin: 0 auto 1.5rem; text-align: center; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
/* Groupe de boutons centré (états vides, page 404) — pendant clair de .cta-band__actions */
.actions-center { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-6); }

/* ── Page 404 — état « introuvable », remplit la hauteur de l'écran ── */
.not-found {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-12);
}
.not-found .eyebrow { margin-bottom: var(--space-5); }
.not-found h1 { font-style: italic; line-height: 1.08; max-width: 18ch; margin: 0 auto var(--space-8); }
.not-found p { max-width: 56ch; margin-inline: auto; color: var(--text-muted); font-size: 1.08rem; line-height: 1.65; }
.not-found .actions-center { margin-top: var(--space-9); }
.not-found .section__note { margin-top: var(--space-8); margin-bottom: 0; }
@media (max-width: 640px) {
  /* Compacte la typo pour éviter le débordement du titre serif sur petit écran */
  .not-found h1 { font-size: 1.95rem; line-height: 1.12; }
  .not-found p { font-size: 0.95rem; }
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              transform var(--dur-base) var(--ease-out), box-shadow var(--dur-fast) ease;
  min-height: 48px;
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--large { padding: 1.1rem 2.25rem; font-size: 1rem; }
.btn--small { padding: 0.6rem 1.2rem; font-size: 0.85rem; min-height: 40px; }

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 230, 0.95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0.7rem;
}
.brand__mark { height: 56px; width: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__name {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.55rem);
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 0.3rem;
  margin-left: 2px;
  white-space: nowrap;
}
.site-footer .brand__name { color: #f7ecd6; white-space: normal; }
.site-footer .brand__sub { color: var(--footer-meta); white-space: normal; }
.nav__list {
  display: none;
  list-style: none;
  padding: 0;
  gap: 2rem;
  align-items: center;
}
.nav__list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav__cta { display: none; }
.nav__toggle {
  background: transparent;
  border: 0;
  padding: 0.5rem;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  color: var(--text);
}
.nav__toggle svg { width: 26px; height: 26px; stroke: currentColor; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="false"] .icon-close { display: none; }
.nav__drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast);
}
.nav__drawer a:hover,
.nav__drawer a[aria-current="page"] { color: var(--primary); }
.nav__drawer .btn { margin-top: 1.25rem; }

@media (min-width: 900px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none !important; }
}

/* ── Hero (homepage) ── */
.hero {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  position: relative;
  padding-block: clamp(6rem, 11vw, 8rem);
  background-color: #2c1806; /* fallback sombre derrière les couches */
  color: #fff;
  overflow: hidden;
}
/* Couche photo (parallaxée) — débordée en haut/bas pour la course du mouvement */
.hero::before {
  content: "";
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  /* Fallback JPG pour les navigateurs sans image-set */
  background: url("../assets/images/saint-nectaire.jpg") center 35% / cover no-repeat;
  /* WebP prioritaire quand supporté */
  background: image-set(
      url("../assets/images/saint-nectaire.webp") type("image/webp"),
      url("../assets/images/saint-nectaire.jpg") type("image/jpeg")
    ) center 35% / cover no-repeat;
  transform: translate3d(0, var(--hero-parallax, 0px), 0);
  will-change: transform;
}
/* Couche dégradé (au-dessus de la photo, pour la lisibilité du texte blanc) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg,
    rgba(28, 14, 4, 0.88) 0%,
    rgba(80, 46, 14, 0.80) 55%,
    rgba(44, 24, 6, 0.88) 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero__inner {
  max-width: 780px;
  position: relative;
}
.hero .eyebrow {
  color: var(--gold-soft);
}
.hero h1 {
  color: #fff;
  font-style: italic;
  font-weight: 700;
  line-height: 1.06;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Badge médaille dans le hero */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(232, 200, 138, 0.40);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.hero__badge svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--gold-soft);
}

/* CTA buttons dans le hero */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* Stats sous les CTA */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero__stat strong {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero__stat span {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
}

/* ── Guarantee band (3 réassurances sous le hero) ── */
.guarantee-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}
.guarantee-band__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
}
.guarantee-band__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.guarantee-band__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.guarantee-band__icon svg { width: 24px; height: 24px; }
.guarantee-band__text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.guarantee-band__text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Features numérotées (01 / 02 / 03) ── */
.features-numbered {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.feature-numbered {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.feature-numbered__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--gold);
  opacity: 0.28;
  line-height: 0.9;
  flex-shrink: 0;
  margin-top: 0.12em;
  user-select: none;
}
.feature-numbered h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.55rem;
}
.feature-numbered p {
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 1rem;
  margin: 0;
}

/* ── Parcours en étapes (commande → paiement) ── */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.process-step {
  position: relative;
  padding-left: 0;
}
.process-step__num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.process-step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.process-step p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
/* Trait de liaison entre les étapes (desktop) */
@media (min-width: 760px) {
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: calc(46px + var(--space-3));
    right: calc(-1 * var(--space-6) + var(--space-3));
    height: 2px;
    background: linear-gradient(90deg, var(--border), transparent);
  }
}

/* ── Features (grille carrés pages secondaires) ── */
.features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.feature {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.feature:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--primary);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { color: var(--text); }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* Feature variante ligne */
.features--stack { grid-template-columns: 1fr; gap: 1rem; }
.feature--row {
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature--row .feature__icon { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.feature--row .feature__icon svg { width: 26px; height: 26px; }
.feature--row p { margin: 0; }

/* ── Grille recettes ── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recipe-grid { grid-template-columns: 1fr; } }

.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.recipe-card:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }

.recipe-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.recipe-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.recipe-card:hover .recipe-card__image img { transform: scale(1.06); }

.recipe-card__badge {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.recipe-card__badge--sn     { background: var(--primary); color: #fff; }
.recipe-card__badge--fourme { background: var(--fourme); color: #fff; }

.recipe-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.recipe-card__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.recipe-card__meta span { display: flex; align-items: center; gap: 0.3rem; }
.recipe-card__meta svg  { width: 13px; height: 13px; flex-shrink: 0; }

.recipe-card h3 {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.recipe-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Segments homepage (Pour qui) ── */
.segments-home {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.segment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.segment-card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.segment-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--primary);
}
.segment-card__icon svg { width: 28px; height: 28px; }
.segment-card h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 0; }
.segment-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.segment-card li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.segment-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.segment-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Portrait (section Qui suis-je) ── */
.portrait {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .portrait { grid-template-columns: 320px 1fr; gap: 5rem; }
}
.portrait > *:only-child {
  grid-column: 1 / -1;
  max-width: 780px;
  margin-inline: auto;
}
.portrait__eyebrow { margin-bottom: 0.5rem; }
.portrait__role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.portrait blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}
.portrait__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.portrait__fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--primary);
  line-height: 1;
}
.portrait__fact span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.portrait p {
  color: var(--text-muted);
  line-height: 1.75;
}
.portrait p strong { color: var(--text); }
.portrait blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ── Catalogue fromages ── */
.cheese-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.cheese-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  display: grid;
  grid-template-columns: clamp(180px, 30%, 300px) 1fr;
}
@media (max-width: 640px) {
  .cheese-card { grid-template-columns: 1fr; }
}
.cheese-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cheese-card__media {
  background: linear-gradient(160deg, var(--bg-alt) 0%, #e0c89a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
}
@media (max-width: 640px) {
  .cheese-card__media { min-height: 200px; aspect-ratio: 16/9; }
}
.cheese-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cheese-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
@media (max-width: 640px) {
  .cheese-card__body { border-left: none; border-top: 1px solid var(--border); }
}
.cheese-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  margin-bottom: 0.85rem;
  align-self: flex-start;
  border: 1px solid var(--primary);
}
.cheese-card h3 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.cheese-card p { color: var(--text-muted); font-size: 0.95rem; }
.cheese-card__specs {
  margin: 1rem 0;
  padding: 0.85rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  display: grid;
  gap: 0.4rem;
}
.cheese-card__specs > div {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.15rem;
  font-size: 0.88rem;
  align-items: baseline;
}
.cheese-card__specs dt {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.cheese-card__specs dd { margin: 0; color: var(--text); min-width: 0; }
@media (max-width: 380px) {
  .cheese-card__specs > div {
    grid-template-columns: 1fr;
    row-gap: 0.1rem;
  }
}
.cheese-card__pairing {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}
.cheese-card__pairing strong { color: var(--text); font-style: normal; font-weight: 600; }
.cheese-card__price { margin-top: auto; padding-top: 1.25rem; }
.cheese-card__price-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.cheese-card__price-alt { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.cheese-card__meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ── Listes à cocher ── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  padding-left: 1.85rem;
  position: relative;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 0.5rem;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ── Secteurs servis (page pros) ── */
.sectors {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sector__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--primary);
}
.sector__icon svg { width: 28px; height: 28px; }
.sector h3 { margin-bottom: 0; color: var(--text); font-size: 1.15rem; }
.sector p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ── Producteurs partenaires ── */
.partners {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.partner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.partner__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--primary);
}
.partner__icon svg { width: 28px; height: 28px; }
.partner h3 { margin-bottom: 0; color: var(--text); }
.partner p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Content split ── */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .split--reverse > :first-child { order: 2; }
}
.split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 4rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Cas d'usage CSE ── */
.cse-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 800px) {
  .cse-cases { grid-template-columns: repeat(3, 1fr); }
}
.cse-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.cse-case__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.cse-case h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.cse-case > p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.cse-case__example {
  font-size: 0.85rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin: auto 0 0;
}

/* ── Comparatif fermier vs laitier ── */
.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .comparison { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.comparison__col {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--text-muted);
}
.comparison__col--good {
  border-top-color: var(--primary);
}
.comparison__tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.comparison__col--good .comparison__tag { color: var(--primary); }
.comparison__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comparison__col li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.comparison__col li:last-child { border-bottom: none; }

/* ── Exemples tarifaires ── */
.pricing-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .pricing-examples { grid-template-columns: repeat(3, 1fr); }
}
.pricing-example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pricing-example:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.pricing-example__tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-10);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.pricing-example h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.pricing-example__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.pricing-example__price {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.pricing-example__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Bannières panoramiques (Salers, camion, etc.) ── */
.banner-image {
  margin: 2.5rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.banner-image img {
  width: 100%;
  height: clamp(180px, 28vw, 380px);
  object-fit: cover;
  display: block;
}
.banner-image--top {
  margin: 0 0 2.5rem;
}
.banner-image--top img {
  height: clamp(220px, 38vw, 480px);
}

/* ── Photo pleine largeur (homepage plateau) ── */
.photo-band {
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.photo-band img {
  width: 100%;
  height: clamp(260px, 42vw, 540px);
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* ── Formulaire ── */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}
.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.field .required { color: var(--primary); }
.field .hint { font-size: 0.8rem; color: var(--text-muted); }

/* Champ SIRET : auto-remplissage */
.siret-wrap { position: relative; }
.siret-spinner {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: siret-spin 0.7s linear infinite;
}
@keyframes siret-spin { to { transform: rotate(360deg); } }
.siret-status { font-size: 0.8rem; line-height: 1.4; min-height: 1em; }
.siret-status--ok      { color: var(--success); }
.siret-status--ko      { color: var(--warning-fg); }
.siret-status--pending { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .siret-spinner { animation: none; }
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  min-height: 48px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%237c6248' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,6 8,10 12,6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select:disabled { opacity: 0.5; cursor: not-allowed; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-15);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: var(--error); }
.field__error { font-size: 0.8rem; color: var(--error); min-height: 1em; }
.form__consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--text-muted); }
.form__consent input { margin-top: 0.2rem; }
.form__success,
.form__error {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: none;
}
.form__success { background: var(--success-bg); color: var(--text); border: 1px solid var(--success-bd); }
.form__error   { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-bd); }
.form__success.is-visible,
.form__error.is-visible { display: block; }
.form__intro { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Contact cards ── */
.contact-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.contact-card + .contact-card { margin-top: 1.25rem; }
.contact-card--cta { background: var(--bg-alt); border-color: transparent; }
.contact-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.contact-card p { color: var(--text-muted); font-size: 0.92rem; }
.contact-card p strong { color: var(--text); }
.contact-card p + p { margin-top: 1rem; }

/* ── FAQ ── */
.faq {
  display: grid;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 300;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  border: 1.5px solid var(--border);
  color: var(--gold-dark);
  background: transparent;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.faq details p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.72;
  margin: 0;
}

/* FAQ par catégories */
.faq-group {
  max-width: 820px;
  margin: 0 auto 2.75rem;
}
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--primary);
  margin: 0 0 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
}
.faq-group .faq {
  margin-top: 0;
}

/* ── CTA bande ── */
.cta-band {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  color: var(--cream);
  padding-block: clamp(3.5rem, 7vw, 5rem);
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255, 253, 246, 0.82); max-width: 580px; margin: 0 auto 2.25rem; font-size: 1.05rem; }
.cta-band .eyebrow { color: rgba(232, 200, 138, 0.7); }
.cta-band .btn--primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.cta-band .btn--primary:hover { background: var(--bg-alt); color: var(--primary-dark); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
}
.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast);
}
.cta-band__phone:hover { color: #fff; }
.cta-band__phone svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-soft); }
.cta-band__phone-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 1;
}
.cta-band__phone strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  display: block;
  line-height: 1.2;
}
.cta-band__catalogue {
  margin: 1.75rem 0 0;
}
.cta-band__catalogue a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.cta-band__catalogue a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.cta-band__catalogue svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Page header (pages secondaires) ── */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
  /* Bande de hauteur uniforme sur toutes les pages secondaires,
     contenu centré verticalement -> aucun en-tête à moitié vide */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(370px, 38vh, 400px);
  padding-block: var(--space-7);
}
.page-header h1 { font-style: italic; line-height: 1.08; max-width: 880px; margin: 0 auto 1rem; }
.page-header p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
/* Quand l'en-tête n'a pas de paragraphe (pages légales courtes),
   le titre ne porte pas de marge basse résiduelle */
.page-header h1:last-child { margin-bottom: 0; }
/* Mobile : on compacte la typo (sans couper le texte) pour que même les
   en-têtes au contenu le plus long tiennent dans la bande -> hauteur égale partout */
@media (max-width: 640px) {
  .page-header { min-height: 390px; }
  .page-header h1 { font-size: 1.95rem; line-height: 1.12; }
  .page-header p { font-size: 0.95rem; }
}

/* Fil d'ariane */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ── Chips de département ── */
.dept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.dept-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.dept-chip em {
  font-style: normal;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.dept-chip svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: var(--primary);
  stroke: var(--primary);
}

/* ── Carte Leaflet ── */
.delivery-map-leaflet {
  height: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.delivery-map__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.88rem;
  z-index: 10;
  border-radius: var(--radius-lg);
}
.delivery-map__caption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}
.delivery-map__noscript {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-alt);
  color: var(--text);
  padding: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: var(--radius-lg);
  z-index: 11;
  margin: 0;
}
@media (max-width: 640px) { .delivery-map-leaflet { height: 380px; } }

/* Tooltips ── */
.leaflet-tooltip.map-label {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.leaflet-tooltip.map-label::before { border-top-color: var(--border); }
.leaflet-tooltip.map-label em { font-style: normal; color: var(--text-muted); font-weight: 400; }

/* Labels de villes (permanents) */
.leaflet-tooltip.map-city-label {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #3a2a1a;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px #fff, 0 -1px 3px #fff, 1px 0 3px #fff, -1px 0 3px #fff;
}
.leaflet-tooltip.map-city-label::before { display: none; }
.leaflet-tooltip.map-city-label--main {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e1208;
}
.leaflet-tooltip.map-label--home {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-color: var(--primary-dark);
}
.leaflet-tooltip.map-label--home::before { border-top-color: var(--primary-dark); }

/* Popups ── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border);
  padding: 0;
}
.leaflet-popup-content {
  margin: 0 !important;
  font-family: var(--font-sans);
}
.map-popup {
  padding: 1rem 1.25rem;
  min-width: 180px;
}
.map-popup strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.map-popup__code {
  display: inline-block;
  background: var(--primary);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  color: #fff;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.map-popup__code--82 { background: #8b5528; }
.map-popup__code--81 { background: #8a6c14; } /* foncé : texte blanc AA (4.96:1) */
.map-popup__code--12 { background: #587733; } /* foncé : texte blanc AA (5.12:1) */
.map-popup__code--46 { background: #4a7a9b; }
.map-popup__code--32 { background: #9b5a4a; }
.map-popup p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.leaflet-popup-tip { background: #fff; }

/* Pin de départ ── */
/* ── Marqueur point de départ avec pulse ── */
.map-home {
  position: relative;
  width: 40px; height: 40px;
}
.map-home__pin {
  position: absolute;
  width: 20px; height: 20px;
  top: 6px;
  left: 50%;
  margin-left: -10px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(44, 26, 8, 0.5);
  z-index: 2;
}
.map-home__pulse {
  position: absolute;
  width: 20px; height: 20px;
  top: 6px;
  left: 50%;
  margin-left: -10px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: map-home-pulse 2.4s ease-out infinite;
  z-index: 1;
  pointer-events: none;
}
.map-home__pulse--late { animation-delay: 1.2s; }
@keyframes map-home-pulse {
  0%   { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(3.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-home__pulse { display: none; }
}

/* ── Drop shadow sur le polygone de zone ── */
.zone-polygon {
  filter: drop-shadow(0 4px 10px rgba(61, 40, 20, 0.22));
}

/* ── Recherche d'adresse ── */
.delivery-check {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.delivery-check__input-wrap {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}
.delivery-check__icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.delivery-check input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.delivery-check input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-15);
}
.delivery-check__result {
  display: block;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-md);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.delivery-check__result a { color: inherit; font-weight: 600; }
.delivery-check__result--ok      { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }
.delivery-check__result--ko      { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-bd); }
.delivery-check__result--pending { background: var(--bg-alt);     color: var(--text-muted); border-color: var(--border); }

/* Marqueur résultat de recherche sur la carte */
.map-result-pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.map-result-pin--ok { background: var(--success); }
.map-result-pin--ko { background: #c14c1c; }

/* ── Footer ── */
.site-footer .brand { margin-bottom: 1.1rem; display: inline-flex; }
.site-footer {
  background: var(--primary-dark);
  color: var(--footer-text);
  padding-block: 3.5rem 2rem;
}
.site-footer a { color: var(--footer-link); text-decoration: none; transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(235, 220, 190, 0.12);
}
/* Empêche le bloc marque de déborder sur la colonne « Le site » :
   sans min-width:0 les cellules de grille gardent leur largeur max-content. */
.footer-grid > * { min-width: 0; }
.site-footer .brand__text { min-width: 0; }
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.65rem; font-size: 0.9rem; color: var(--footer-meta); }
.footer-grid ul li { line-height: 1.6; }
.footer-grid p { font-size: 0.88rem; color: var(--footer-meta); line-height: 1.65; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--footer-faint);
}
.footer-bottom a { color: var(--footer-meta); }
.footer-bottom a:hover { color: var(--cream); }

/* ── Prose (pages légales) ── */
.prose-list { padding-left: 1.5rem; margin-bottom: 1em; color: var(--text-muted); }

/* ── Animations au scroll ── */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(16px); }
}
/* État caché avant révélation */
.reveal { opacity: 0; transform: translateY(16px); }
/* À la révélation : animation dédiée (longhand pour ne pas écraser animation-delay).
   Pas de fill forwards -> l'état de repos vient de .is-visible, donc les survols
   (transform/box-shadow propres à chaque composant) ne sont plus court-circuités.
   fill backwards -> reste caché pendant le delay du stagger (pas de flash). */
.reveal.is-visible {
  opacity: 1;
  transform: none;
  animation-name: reveal-in;
  animation-duration: var(--reveal-dur);
  animation-timing-function: var(--ease-out);
  animation-fill-mode: backwards;
}
.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

/* ── Témoignages ── */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
  margin: 0;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.testimonial cite strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.1em;
}
.testimonial cite span {
  color: var(--text-muted);
}

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

/* ── Splash intro ─────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}
#splash img {
  width: clamp(160px, 28vw, 240px);
  height: auto;
  will-change: opacity;
}
