/* ==========================================================================
   Natur'Avenir - Feuille de style principale
   Direction artistique : moderne, mais ancrée dans le terroir et la tradition
   ========================================================================== */

/* Polices hébergées en local (fichiers variables Google Fonts récupérés une
   fois pour toutes) : pas de requête vers fonts.googleapis.com/gstatic.com,
   donc pas de transfert d'IP visiteur à Google (point soulevé par la CNIL)
   et aucune dépendance à un CDN externe pouvant être filtré. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100; font-display: swap; src: url('../fonts/montserrat-thin.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-regular.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-italic.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-bold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-extrabold.otf') format('opentype'); }

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100; font-display: swap; src: url('../fonts/roboto-thin.ttf') format('truetype'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ROBOTO-REGULAR.TTF') format('truetype'); }
@font-face { font-family: 'Roboto'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/roboto-italic.ttf') format('truetype'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-bold.ttf') format('truetype'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-boldcondensed.ttf') format('truetype'); }

@font-face { font-family: 'Brownhill Script'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/brownhill-script.ttf') format('truetype'); }
@font-face { font-family: 'Apple Berry'; font-style: bold; font-weight: 400; font-display: swap; src: url('../fonts/appleberry.ttf') format('truetype'); }

:root {
  --green: #1f6b52;
  --deep: #123527;
  --deep-text: #1a4a32; /* même vert que --deep, un poil plus clair : réservé au texte uniquement (voir --deep pour les fonds/bordures) */
  --ink: #2a2016;
  --kraft: #FAF9F6;
  --paper: #FAF9F6;
  --cream: #FAF9F6;
  --terracotta: #a52a1e; /* unifié avec --pink : rouge plus franc, moins de composante orangée/terracotta */
  --honey: #f7b801; /* jaune solaire saturé, sans la teinte brune/moutarde de l'ancienne valeur */
  --sage: #96a67c;
  --pink: #a52a1e; /* unifié avec --terracotta (même couleur demandée) */
  --pink-deep: #7c2017;
  --line: #1f6b521f;
  --body-text: #4c4130;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-script: 'Brownhill Script', cursive;
  --font-figures: 'Apple Berry', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  background-image:
    radial-gradient(circle at 1px 1px, #1f6b520d 1px, transparent 0);
  background-size: 22px 22px;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
code { font-family: monospace; background: #1f6b521a; padding: 2px 6px; border-radius: 4px; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 6px;
  font-weight: 600; font-size: 14px; z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 2px;
}
.map-pin:focus-visible { outline-offset: 4px; }

/* ---------- Badges & dividers (identité terroir) ---------- */
.divider {
  height: 26px;
  background-image: radial-gradient(circle at 12px -6px, transparent 13px, var(--paper) 14px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
}
.divider.on-kraft { background-image: radial-gradient(circle at 12px -6px, transparent 13px, var(--kraft) 14px); }
.divider.on-deep { background-image: radial-gradient(circle at 12px -6px, transparent 13px, var(--deep) 14px); }
.divider.divider-lg { height: 52px; background-size: 26px 52px; }

.eyebrow { margin: 0 0 21px; color: var(--pink); font-size: 18px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow:after { content: ""; display: block; width: 62px; height: 2px; background: currentColor; margin-top: 11px; border-radius: 2px; }

/* ---------- Bandeau annonce + Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 25;
  transition: transform .3s ease;
}
.site-header.site-header--hidden { transform: translateY(-100%); }
.announce-bar {
  margin: 0; text-align: center; background: var(--honey); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 9px 12px;
}
.header {
  height: 100px; padding: 0 5.5vw; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logo { color: var(--green); display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

/* ---------- Logo (animation d'intro : transition CSS pilotée par classes JS) ---------- */
.logo-svg { height: 42px; width: auto; }
.logo-svg.logo-intro #logoWipeRect { width: 0; transition: width 1.4s cubic-bezier(.45,.05,.55,.95); }
.logo-svg.logo-intro .logo-word { opacity: 0; transition: opacity .6s ease 1.3s; }
.logo-svg.logo-intro.logo-intro-play #logoWipeRect { width: 458.92px; }
.logo-svg.logo-intro.logo-intro-play .logo-word { opacity: 1; }

/* ---------- Écran de chargement plein écran (intro logo : arrivée sur l'accueil + clic sur le logo) ---------- */
#logo-intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  opacity: 1;
  transition: opacity .5s ease;
}
#logo-intro-screen.intro-active { display: flex; }
#logo-intro-screen.intro-fade-out { opacity: 0; pointer-events: none; }
#logo-intro-screen .logo-svg-fullscreen { height: auto; width: min(70vw, 520px); }
html.na-intro-lock, html.na-intro-lock body { overflow: hidden; }
nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 600; }
nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
nav a:hover { border-color: var(--green); }
nav .nav-pill {
  background: var(--pink); color: #fff; padding: 11px 20px; border-radius: 30px;
  font-weight: 700; border-bottom: 0 !important;
}
nav .nav-pill:hover { background: var(--pink-deep); }
nav .find { padding: 12px 20px; border-radius: 10px; color: var(--ink); border: 1.5px solid var(--ink); }
nav .find:hover { border-color: transparent; background: var(--ink); color: #fff; }
.menu { display: none; border: 1px solid #1f6b5240; background: var(--paper); border-radius: 50%; width: 44px; height: 44px; color: var(--green); font-size: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #12271f; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media:after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, #12271fd9 0%, #12271fa8 38%, #12271f30 62%, transparent 80%);
}
.hero-copy { position: relative; z-index: 2; padding: 9vh 3vw 9vh 6vw; max-width: 620px; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .eyebrow { color: var(--honey); }
h1 { font-size: clamp(46px, 4.6vw, 72px); line-height: .92; letter-spacing: -.02em; color: var(--deep-text); }
.hero-copy h1 { color: #fff; }
.accent-word { font-style: italic; color: var(--pink); position: relative; z-index: 2; display: inline-block; }
.hero-copy .accent-word { color: var(--honey); }
.accent-text { font-size: .8em; }
.hero-line1 { position: relative; z-index: 1; }
.hero-copy h1 { line-height: .90; }
.script-svg { position: absolute; left: 100%; bottom: -.3em; height: 1em; width: auto; aspect-ratio: 116.41 / 52.24; margin-left: .22em; transform-origin: left bottom; transform: scale(2); }
.lead { max-width: 560px; margin: 0; font-size: 18px; font-weight: 400; font-family: 'Roboto', Arial, Helvetica, sans-serif; line-height: 1.6; color: var(--body-text); }
.hero-copy .lead { color: #f3ecdc; }
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-badges span {
  background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px;
  font-size: 12px; font-weight: 700; color: var(--deep-text);
}
.actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.button { display: inline-flex; gap: 14px; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font-size: 15px; background: #fff; color: var(--ink); font-weight: 700; border: 1.5px solid var(--ink); border-radius: 10px; transition: .25s; cursor: pointer; font-family: var(--font-display); }
.button:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px #00000030; }
.button.outline { background: transparent; color: var(--deep-text); border: 1.5px solid var(--deep); }
.button.button-dark { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.button.button-dark:hover { background: var(--ink); color: #fff; box-shadow: 0 14px 30px #00000030; }
.link { color: var(--green); font-weight: 600; border-bottom: 1px solid #1f6b5255; padding-bottom: 5px; }
.hero-copy .link { color: #fff; border-bottom-color: #ffffff55; }
.hero-copy .link:hover { color: var(--honey); border-bottom-color: currentColor; }

/* ---------- Sections génériques ---------- */
.section { padding: 100px 5.5vw; }
.section.alt { background: var(--kraft); }
#produits { padding-top: 40px; }
#produits .heading { text-align: center; margin-left: auto; margin-right: auto; }
#produits .heading > p:last-child { margin-left: auto; margin-right: auto; }
#produits .heading .eyebrow:after { margin-left: auto; margin-right: auto; }
.heading { max-width: 750px; margin-bottom: 46px; }
.heading h2, .story h2, .recipes h2, .locator h2 { font-size: clamp(38px, 3.8vw, 58px); line-height: 1.08; letter-spacing: -.02em; color: var(--deep-text); }
.story-title-break-mobile { display: none; }
.heading > p:last-child { max-width: 610px; font-size: 18px; font-weight: 400; font-family: 'Roboto', Arial, Helvetica, sans-serif; line-height: 1.65; color: var(--body-text); }

/* ---------- Catégories produits (cliquables) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carousel-dots { display: none; }
.cat-card {
  display: block; min-height: 300px; padding: 34px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  transition: .3s; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px #23342d1f; border-color: var(--pink); }
.cat-card .cat-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  color: var(--green);
}
.cat-card .cat-icon svg { height: 30px; width: auto; }
.cat-card small { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--pink); }
.cat-card h3 { font-size: 26px; color: var(--deep-text); margin: 12px 0 14px; }
.cat-card p { font-size: 18px; font-weight: 400; font-family: 'Roboto', Arial, Helvetica, sans-serif; line-height: 1.55; color: var(--body-text); margin: 0 0 22px; }
.cat-card .cat-arrow { font-weight: 700; color: var(--ink); }

/* ---------- Histoire de la marque ---------- */
.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4vw; }
.story-visual {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start;
  padding: 3vw 6vw 3vw 0; background: var(--paper);
}
.story-col { display: flex; flex-direction: column; gap: 16px; }
.story-mosaic-cell { position: relative; border-radius: 18px; overflow: hidden; background: var(--sage); }
.story-mosaic-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.story-ratio-portrait { aspect-ratio: 3 / 4; }
.story-ratio-landscape { aspect-ratio: 2 / 1; }
.story-logo-card {
  aspect-ratio: 2 / 1; border-radius: 0; background: #000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.story-logo-card img { max-width: 65%; max-height: 55%; filter: brightness(0) invert(1); }
.story-scene img { opacity: 0; transition: opacity 1.4s ease; }
.story-scene img.is-active { opacity: 1; z-index: 1; }
.story-stat {
  aspect-ratio: 2 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; border-radius: 18px; background: transparent; padding: 20px;
}
.story-stat b { display: block; font-size: 76px; line-height: 1; font-family: var(--font-figures); font-weight: 400; color: var(--deep); }
.story-stat span { font-size: 13px; font-weight: 700; color: var(--deep); letter-spacing: .03em; }
.story-copy { padding: 3vw 0 3vw 6vw; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-start; }
.story-copy .intro { color: var(--green); font: 25px/1.4 var(--font-display); }
.story-copy p:not(.eyebrow):not(.intro) { font-size: 18px; font-weight: 400; font-family: 'Roboto', Arial, Helvetica, sans-serif; line-height: 1.7; color: var(--body-text); }

/* ---------- Engagements ---------- */
.dark { padding: 100px 6vw; background: var(--deep); color: #f3ecdc; }
.dark .eyebrow { color: var(--honey); }
.dark h2 { color: #fff; }
.dark .heading > p:last-child { color: #d8cfb9; }
.commitments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 54px; }
.commitments article {
  display: flex; align-items: center; gap: 18px;
  padding: 0 40px; border-left: 1px solid #ffffff26; transition: .25s;
}
.commitments article:first-child { border-left: none; padding-left: 0; }
.commitment-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: #ffffff14; border: 1.5px solid var(--honey); transition: .25s;
  color: var(--honey);
}
.commitment-icon svg { width: 30px; height: 30px; transition: color .25s; }
.commitment-body { flex: 1; min-width: 0; }
.commitments article:hover .commitment-icon { background: var(--honey); }
.commitments article:hover .commitment-icon svg { color: var(--deep-text); }
.commitments h3 { font-size: 26px; margin: 0 0 12px; color: #fff; }
.commitments p { font-size: 18px; line-height: 1.6; color: #d8cfb9; margin: 0; font-weight: 400; }

/* ---------- Recettes (accueil : cartes cliquables) ---------- */
.recipes-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center;
  background: var(--terracotta); color: #fff; border-radius: 20px; padding: 50px 60px; margin-bottom: 50px;
}
.recipes-banner .eyebrow { color: var(--honey); margin-bottom: 14px; }
.recipes-banner h2 { color: #fff; margin: 0; }
.recipes-banner h2 em { color: var(--honey); font-style: italic; }
.recipes-banner-actions p { font-size: 18px; font-weight: 400; font-family: 'Roboto', Arial, Helvetica, sans-serif; line-height: 1.65; color: #fff; margin: 0 0 24px; }
.recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.recipe {
  display: block; min-height: 420px; padding: 22px; position: relative;
  border-radius: 22px; overflow: hidden; transition: .3s;
}
.recipe:hover { transform: translateY(-6px); box-shadow: 0 22px 40px #23342d1f; }
.recipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .4s ease; }
.recipe:hover img { transform: scale(1.08); }
.recipe:before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #16110a 5%, transparent 60%); z-index: 1; }
.recipe .recipe-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; }
.recipe .recipe-inner > div { width: 100%; padding: 20px; background: var(--paper); border-radius: 12px; transition: .25s; }
.recipe:hover .recipe-inner > div { background: #fff; }
.recipe h3 { font-size: 26px; margin: 8px 0 7px; color: var(--deep-text); }
.recipe p { margin: 0; font-size: 18px; font-weight: 400; color: var(--body-text); }
.recipe .uses { margin: 10px 0 0; font-size: 11px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.recipe .recipe-tag { display: block; margin: 0; font-size: 13.3333px; font-weight: 700; color: var(--pink); letter-spacing: .06em; }
.recipe .read-more { display: inline-block; margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.recipe-badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-badges span { background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 7px 13px; border-radius: 20px; box-shadow: 0 6px 14px #00000022; }

/* ---------- Localisateur / carte ---------- */
.locator { margin: 0 5.5vw 75px; display: block; background: var(--kraft); border-radius: 20px; padding: 0; overflow: hidden; border: 1px solid var(--line); }
.locator-head { padding: 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: end; background: var(--deep); color: #fff; }
.locator-head h2 { color: #fff; }
.locator-head .eyebrow { color: var(--honey); }
form label { display: block; font-weight: 600; margin-bottom: 10px; }
.search { display: flex; }
.search input { width: 100%; border: 0; padding: 18px; border-radius: 4px 0 0 4px; color: var(--ink); }
.search button { border: 0; padding: 0 22px; background: var(--deep); color: white; font-weight: 600; cursor: pointer; border-radius: 0 4px 4px 0; }
.map-status { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--deep-text); }
.locator-head .map-status { color: #fff; }

.map-layout { display: grid; grid-template-columns: 360px 1fr; min-height: 560px; }
.store-panel { padding: 26px; background: var(--paper); overflow: auto; max-height: 560px; }
.store-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.store-panel h3 { font-size: 26px; color: var(--deep-text); margin: 0; }
.locator-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.locator-action-btn { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--deep-text); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; cursor: pointer; transition: .2s; }
.locator-action-btn:hover { border-color: var(--green); background: #edf5f2; }
.store-list { display: grid; gap: 10px; }
.store-empty { color: var(--body-text); font-size: 13px; }
.store { width: 100%; padding: 16px; text-align: left; border: 1px solid #1f6b521a; background: #fff; border-radius: 10px; cursor: pointer; }
.store:hover, .store.active, .store.hover { border-color: var(--green); background: #edf5f2; }
.store strong { display: block; font-size: 18px; font-weight: 700; color: var(--deep-text); margin-bottom: 5px; }
.store small { display: block; font-size: 14px; font-weight: 400; color: var(--body-text); line-height: 1.45; }
.store em { display: inline-block; margin-top: 9px; color: var(--green); font-style: normal; font-weight: 700; font-size: 12px; }
.store .store-phone { font-size: 14px; margin-top: 4px; color: var(--deep-text); font-weight: 600; }
.demo-note { font-size: 11px; line-height: 1.4; color: #7a6d57; margin-top: 18px; }
#store-map { height: 560px; min-height: 560px; z-index: 1; background: var(--paper); }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content strong { color: var(--green); font-size: 15px; }
.store-hours { margin-top: 2px; }
.store-hours summary { cursor: pointer; color: var(--green); font-size: 12px; font-weight: 600; }
.store-hours small { display: block; margin-top: 4px; line-height: 1.6; }
/* Leaflet positionne .map-pin lui-même via un `transform: translate3d(...)` en ligne : poser
   la rotation de la goutte directement dessus ferait que ce style inline écrase notre
   `transform: rotate()` (même propriété, l'inline gagne toujours). La forme tournée est donc
   sur .map-pin-shape, un enfant que Leaflet ne touche jamais.
   Pas de `position` ici : .leaflet-marker-icon a déjà `position: absolute` dans le CSS de
   Leaflet, qui suffit comme contexte de positionnement pour l'enfant ; en redéclarer une ici
   (même en `relative`) écraserait ce `absolute` (même spécificité, notre feuille de style se
   charge après) et ferait retomber chaque pin dans le flux normal du document. */
.map-pin { width: 24px !important; height: 24px !important; }
.map-pin-shape { position: absolute; inset: 0; border-radius: 50% 50% 50% 0; background: var(--terracotta); border: 2px solid white; transform: rotate(-45deg); box-shadow: 0 3px 8px #173e3355; transition: transform .15s ease; }
.map-pin-shape:after { content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background: #fff; border-radius: 0 70% 0 70%; transform: rotate(45deg); }
.map-pin:hover .map-pin-shape, .map-pin.is-hover .map-pin-shape { transform: rotate(-45deg) scale(1.2); }

/* Regroupement des points (Leaflet.markercluster) : couleurs de marque plutôt que le jaune/vert
   par défaut de la librairie (voir assets/vendor/markercluster/MarkerCluster.Default.css). */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: #a52a1e33; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--terracotta); }
.marker-cluster span { color: #fff; font-weight: 700; font-family: var(--font-display); }
.map-error { padding: 30px; color: var(--body-text); }

/* ---------- Footer ---------- */
footer { padding: 60px 6vw 30px; background: var(--deep); color: #f3ecdc; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 44px; }
.footer-contact { margin-top: 22px; }
.footer-brand .logo img { filter: brightness(0) invert(1); }
.footer-brand p { font: 400 20px var(--font-display); margin: 12px 0 0; color: #fff; }
.footer-brand-partner { display: block; width: 320px; max-width: 100%; height: auto; margin: 14px 0 0; }
.footer-contact h3 { font-size: 26px; color: #fff; margin-bottom: 8px; }
.footer-contact p { margin: 0 0 10px; color: #f3ecdc; font-size: 18px; font-weight: 400; }
.footer-contact .link { color: #fff; border-bottom-color: transparent; }
.footer-contact .link:hover { color: var(--honey); }


.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 28px; }
.footer-col-img { display: block; width: 100%; height: 100px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.footer-col-img--solid-1 { background: var(--honey); }
.footer-col-img--solid-2 { background: var(--sage); }
.footer-col-img--solid-3 { background: var(--terracotta); }
.footer-columns h4 { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; color: #fff; }
.footer-columns a { display: block; color: #f3ecdc; font-size: 16px; font-weight: 400; padding: 6px 0; }
.footer-columns a:hover { color: var(--honey); }

footer small { display: block; color: #b9ae95; padding-top: 24px; border-top: 1px solid #ffffff26; font-size: 13px; font-weight: 400; }
footer small a { color: #b9ae95; text-decoration: underline; }
footer small a:hover { color: var(--honey); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
  padding: 18px 5.5vw;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  background: linear-gradient(155deg, var(--deep), #0d2a1f); color: #f3ecdc;
  border-radius: 20px; border-top: 3px solid var(--honey); padding: 24px 30px;
  box-shadow: 0 24px 60px #00000048;
}
.cookie-banner-text { flex: 1 1 380px; }
.cookie-banner-title {
  margin: 0 0 6px; color: var(--honey); font-family: var(--font-display); font-size: 13px;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.cookie-banner-inner p { margin: 0; font-size: 14px; line-height: 1.65; }
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-inner a:hover { color: var(--honey); }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  min-height: 46px; padding: 0 24px; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: var(--font-display); transition: .2s; border: 1.5px solid transparent;
}
.cookie-btn.accept { background: #fff; color: var(--ink); border-color: #fff; }
.cookie-btn.accept:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.cookie-btn.refuse { background: #ffffff14; color: #fff; border-color: #ffffff40; }
.cookie-btn.refuse:hover { background: #ffffff22; border-color: #ffffff70; }

.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Pages secondaires : blog recettes, page recette, catégories, contact
   ========================================================================== */

.page-hero { padding: 40px 5.5vw 15px; background: linear-gradient(110deg, var(--paper), var(--kraft)); }
.page-hero h1 { font-size: clamp(38px, 4vw, 58px); color: var(--deep-text); }
.page-hero p { max-width: 620px; font-size: 18px; font-weight: 400; line-height: 1.6; color: var(--body-text); margin-top: 16px; }
.page-hero--centered { text-align: center; max-width: 900px; margin: 0 auto; }
.page-hero--centered p { margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: 13px; color: #7a6d57; margin-bottom: 18px; }
.breadcrumb a { color: var(--green); font-weight: 600; }
.rd-breadcrumb, .rd-breadcrumb a { color: #f3ecdc; }

.recipe-filters {
  padding: 20px 5.5vw 0; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
}
.recipe-filters-types { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  padding: 10px 20px; border-radius: 30px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: .2s;
}
.filter-pill:hover { border-color: var(--green); }
.filter-pill.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.recipe-filters-ingredient { display: flex; align-items: center; gap: 10px; }
.recipe-filters-ingredient label { font-weight: 700; font-size: 14px; color: var(--ink); }
.recipe-filters-ingredient select {
  padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}

.blog-grid {
  padding: 55px 5.5vw 110px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center; gap: 30px;
}
.blog-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); transition: .25s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px #23342d1f; border-color: var(--terracotta); }
.blog-thumb-wrap { position: relative; }
.blog-card .thumb { height: 210px; width: 100%; object-fit: cover; display: block; background-color: var(--kraft); }
.blog-card .thumb-placeholder { display: flex; align-items: center; justify-content: center; background-color: var(--sage); }
.blog-card .thumb-placeholder img { width: 35%; max-width: 110px; opacity: .55; }
.blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card small { order: 1; margin: 0 0 8px; color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13.3333px; }
.blog-card h3 { font-size: 26px; margin: 0 0 8px; color: var(--deep-text); order: 2; }
.blog-card p { color: var(--body-text); line-height: 1.5; font-size: 18px; font-weight: 400; margin: 0; order: 3; }
.blog-empty { padding: 60px 5.5vw; text-align: center; color: #7a6d57; }

.recipe-detail-hero { height: 420px; position: relative; overflow: hidden; }
.recipe-detail-hero.no-image { background: var(--deep); }
.recipe-detail-hero.no-image:after { display: none; }
.recipe-detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.recipe-detail-hero:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #12100b 10%, transparent 60%); z-index: 1; }
.recipe-detail-hero .rd-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 5.5vw; z-index: 2; color: #fff; }
.recipe-detail-hero h1 { color: #fff; font-size: clamp(38px, 4vw, 58px); }
.recipe-meta { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.recipe-meta span { background: #ffffff26; padding: 8px 14px; border-radius: 20px; }
.recipe-body { padding: 70px 5.5vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; max-width: 1200px; margin: 0 auto; }
.recipe-body h2 { font-size: 26px; color: var(--deep-text); margin-bottom: 18px; }
.legal-content { padding-top: 20px; max-width: 900px; }
.legal-content h2 { font-size: 26px; color: var(--deep-text); margin: 34px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { line-height: 1.7; color: var(--body-text); }
.legal-content .legal-note { background: #fff8e0; border: 1px solid #e8ab3455; border-radius: 10px; padding: 18px 22px; margin-bottom: 40px; font-size: 14px; color: #5c4a12; }
.ingredients-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ingredients-list li { padding: 12px 14px; background: var(--cream); border-radius: 8px; font-size: 18px; font-weight: 400; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps-list li { position: relative; padding-left: 46px; line-height: 1.6; color: var(--body-text); font-size: 18px; font-weight: 400; font-family: 'Roboto', Arial, Helvetica, sans-serif; }
.steps-list li:before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.products-used { margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--line); }
.products-used span, .products-used a { display: inline-block; margin: 4px 6px 0 0; padding: 6px 12px; background: var(--kraft); border-radius: 20px; font-size: 12px; font-weight: 700; }
.products-used a { color: var(--green); text-decoration: none; transition: background-color .15s ease; }
.products-used a:hover, .products-used a:focus-visible { background: var(--green); color: #fff; }

.category-grid {
  padding: 30px 5.5vw 110px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  justify-content: center; gap: 22px;
}
.product-tile { display: flex; flex-direction: column; background: var(--cream); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: .25s; }
.product-tile:hover { transform: translateY(-5px); box-shadow: 0 18px 32px #23342d1c; border-color: var(--pink); }
.product-tile .thumb-wrap { position: relative; }
.product-tile .thumb { height: 330px; width: 100%; object-fit: cover; display: block; background-color: var(--kraft); }
.product-tile .tile-badge {
  position: absolute; top: 12px; left: 12px; background: var(--terracotta); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 5px 10px; border-radius: 20px;
  box-shadow: 0 6px 14px #0003;
}
.product-tile .tile-badge .figure-number { font-family: var(--font-figures); font-size: 14px; }
.product-tile .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-tile h3 { font-size: 16px; line-height: 1.35; margin: 0 0 8px; color: var(--deep-text); }
.product-tile p { margin: 0; font-size: 14px; font-weight: 400; color: var(--body-text); line-height: 1.5; }

/* ---------- Catégories en lignes alternées (Matière Brute / Prêts à déguster) ---------- */
.cat-rows { padding: 40px 5.5vw 110px; max-width: 1180px; margin: 0 auto; }
.cat-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center;
  padding: 46px 0; border-bottom: 1px solid var(--line);
}
.cat-rows .cat-row:last-child { border-bottom: 0; }
.cat-row .cat-text { order: 1; }
.cat-row .cat-media { order: 2; }
.cat-row.reverse { grid-template-columns: 2fr 1fr; }
.cat-row.reverse .cat-text { order: 2; }
.cat-row.reverse .cat-media { order: 1; }
.cat-text h2 { font-size: 26px; color: var(--deep-text); margin-bottom: 14px; }
.cat-text p { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--body-text); max-width: 420px; margin: 0; }
.cat-media img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; display: block; }

.contact-wrap { padding: 20px 5.5vw 110px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; max-width: 1200px; margin: 0 auto; }
.contact-wrap--form-only { grid-template-columns: 1fr; max-width: 900px; padding-top: 10px; padding-bottom: 80px; }
.contact-form { background: var(--cream); border-radius: 20px; padding: 44px; border: 1px solid var(--line); box-shadow: 0 30px 60px #23342d14; }
.contact-form .field-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: var(--deep-text); }
.field input, .field textarea { width: 100%; border: 1px solid #1f6b5233; border-radius: 8px; padding: 13px 14px; background: #fff; font-family: var(--font-body); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #1f6b521a; }
.field textarea { resize: vertical; min-height: 150px; }
.contact-form .button { width: 100%; margin-top: 6px; }
.form-notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 600; }
.form-notice.success { background: #1f6b521a; color: var(--deep-text); }
.form-notice.error { background: #bc5a3720; color: var(--pink); }

/* ---------- Responsive ---------- */
@media (max-width: 950px) {
  nav { gap: 14px; }
  .hero-copy { padding: 9vh 7vw; max-width: 100%; }
  .story { grid-template-columns: 1fr; }
  .recipes-banner { grid-template-columns: 1fr; gap: 24px; padding: 40px; }
  .story-visual { padding: 0 8vw 75px; }
  .story-copy { padding: 75px 8vw 0; }

  .commitments article, .commitments article:first-child {
    border-left: none; padding: 28px 24px; border-radius: 18px;
    background: #ffffff0d; border: 1px solid #ffffff20;
  }

  .cat-grid, .commitments, .recipe-grid {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -5.5vw; margin-right: -5.5vw;
    cursor: grab; user-select: none;
    /* Marge intérieure + marge négative équivalente : la zone de défilement (qui rogne
       tout ce qui dépasse) est agrandie verticalement pour laisser la place à l'effet de
       survol (lévitation + ombre) sans le couper, tout en gardant le même espacement visuel
       dans la page grâce aux marges négatives qui compensent. */
    padding: 20px 5.5vw 70px; margin-top: -20px; margin-bottom: -70px;
  }
  .cat-grid.is-dragging, .commitments.is-dragging, .recipe-grid.is-dragging, .recipe-filters-types.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
  .dark .commitments { margin-left: -6vw; margin-right: -6vw; }
  .cat-grid::-webkit-scrollbar, .commitments::-webkit-scrollbar, .recipe-grid::-webkit-scrollbar { display: none; }
  .cat-grid .cat-card, .commitments article, .recipe-grid .recipe { flex: 0 0 82%; scroll-snap-align: center; }
  .carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
  .carousel-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: .25s; }
  .carousel-dots button.is-active { background: var(--pink); width: 22px; border-radius: 5px; }
  .dark .carousel-dots button { background: #ffffff40; }
  .dark .carousel-dots button.is-active { background: var(--honey); }
  .locator-head, .map-layout { grid-template-columns: 1fr; }
  .store-panel { max-height: none; }
  .store-list { grid-template-columns: repeat(2, 1fr); }
  #store-map { min-height: 420px; height: 420px; }
  .recipe-body, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .contact-form { padding: 28px 22px; }
  .contact-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .header { height: 82px; padding: 0 21px; }
  .logo img { height: 34px; }
  .story-title-break-mobile { display: inline; }
  .story-title-break-desktop { display: none; }
  .hero { min-height: auto; }
  .hero-copy { padding: 70px 23px 55px; }
  .hero-media:after { background: linear-gradient(180deg, #12271f40, #12271fd0 55%); }
  .accent-word { display: block; margin-top: 8px; }
  .script-svg { display: block; position: static; margin-left: 14px; margin-top: 14px; transform-origin: left bottom; transform: scale(1.5); }
  .blog-grid, .category-grid { grid-template-columns: 1fr; }
  #produits .heading { text-align: left; margin-left: 0; margin-right: 0; }
  #produits .heading > p:last-child { margin-left: 0; margin-right: 0; }
  #produits .heading .eyebrow:after { margin-left: 0; margin-right: 0; }
  .cat-grid .cat-card, .commitments article, .recipe-grid .recipe { flex-basis: 86%; }
  .cat-grid, .commitments, .dark .commitments, .recipe-grid { margin-left: -23px; margin-right: -23px; padding-left: 23px; padding-right: 23px; }
  .cat-row, .cat-row.reverse { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; }
  .cat-row .cat-text, .cat-row.reverse .cat-text { order: 2; }
  .cat-row .cat-media, .cat-row.reverse .cat-media { order: 1; }
  .cat-text p { max-width: none; }
  .cat-media img { height: 240px; }
  .section, .dark, .recipes { padding: 70px 23px; }
  .story-visual { grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 23px 60px; }
  .story-col { display: contents; }
  .story-mosaic-cell.story-ratio-portrait:not(.story-scene),
  .story-mosaic-cell.story-ratio-landscape { display: none; }
  .story-scene { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; }
  .story-logo-card, .story-stat { aspect-ratio: 1 / 1; }
  .story-logo-card img { max-width: 96%; max-height: 88%; }
  .story-stat { padding: 20px; }
  .story-stat b { font-size: 52px; }
  .story-copy { padding: 60px 23px 0; }
  .locator { margin: 0 17px 50px; }
  .locator-head { padding: 32px 22px; }
  .search { flex-direction: column; gap: 8px; }
  .search input, .search button { border-radius: 4px; }
  .search button { padding: 18px; }
  .store-list { grid-template-columns: 1fr; }
  .map-layout { display: flex; flex-direction: column; min-height: auto; }
  .store-panel { max-height: 320px; }
  #store-map { min-height: 380px; height: 380px; }
  .photo-tag { right: 12px; bottom: 12px; }
  footer { padding: 36px 23px 18px; }
  .footer-top { gap: 20px; padding-bottom: 24px; }
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; padding: 18px; }
  .cookie-banner-text { flex: 0 0 auto; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
  .footer-brand p { font-size: 16px; margin-top: 8px; }
  .footer-brand-partner { width: 240px; margin-top: 10px; }
  .footer-contact { margin-top: 4px; }
  .footer-contact h3 { font-size: 18px; margin-bottom: 6px; }
  .footer-contact p { font-size: 15px; margin-bottom: 6px; }
  .footer-columns { grid-template-columns: 1fr; gap: 6px; padding-bottom: 14px; }
  .footer-columns h4 { font-size: 15px; margin-bottom: 8px; }
  .footer-columns a { font-size: 15px; padding: 3px 0; }
  .footer-col-img { display: none; }
  footer small { font-size: 13px; padding-top: 16px; }
  .page-hero { padding: 0 23px; }
  .blog-grid { padding: 35px 23px 80px; }
  /* `display:flex` + `overflow-x:auto` est peu fiable pour le scroll tactile sur iOS Safari
     (bug connu : les enfants flex ne déclenchent pas toujours le scroll horizontal natif).
     On bascule sur `white-space:nowrap` + enfants `inline-block`, la technique la plus robuste
     pour une rangée de pastilles qui défile au doigt. */
  .recipe-filters-types {
    display: block; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; touch-action: pan-x; cursor: grab; user-select: none;
    margin-left: -5.5vw; margin-right: -5.5vw; padding: 4px 5.5vw;
  }
  .recipe-filters-types::-webkit-scrollbar { display: none; }
  .recipe-filters-types .filter-pill { display: inline-block; margin-right: 10px; }
  .recipe-filters-types .filter-pill:last-child { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .button, .cat-card, .blog-card, .recipe, .recipe img { transition: none; }
  .motif-col img { animation: none; }
  .story-scene img { transition: none; }
}

/* ---------- Motifs décoratifs (Matière Brute / Prêts à déguster) ---------- */
.page-with-motifs { position: relative; }
.page-motifs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.motif-col { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 900px; padding-top: 40px; }
.motif-col--left { left: -40px; }
.motif-col--right { right: -40px; }
.motif-col img {
  width: 440px; height: auto; opacity: .2; will-change: transform;
  animation: motifFloatLeft 9s ease-in-out infinite;
}
.motif-col--right img { animation-name: motifFloatRight; }
.motif-col img:nth-child(2) { animation-delay: -3s; }
.motif-col img:nth-child(3) { animation-delay: -6s; }
@keyframes motifFloatLeft {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-26px) rotate(4deg); }
}
@keyframes motifFloatRight {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(-4deg); }
  50% { transform: scaleX(-1) translateY(-26px) rotate(4deg); }
}
@media (max-width: 1150px) {
  .page-motifs { display: none; }
  .menu { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 25px; background: var(--paper); flex-direction: column; align-items: flex-start; box-shadow: 0 15px 30px #19392e18; z-index: 20; }
  nav.open { display: flex; }
  nav .nav-pill, nav .find { display: inline-flex; }
}
