/* =========================================================
   TOFUZH — Design tokens
   ========================================================= */
:root{
  color-scheme: only light;
  /* Couleurs charte graphique */
  --emerald:       #008a88;
  --emerald-light: #dfefca;
  --blue:          #2760ef;
  --blue-light:    #add0ee;
  --orange:        #ff7701;
  --beige:         #f5be89;
  --aubergine:     #800039;
  --pink:          #ffb2d4;
  --cream-1:       #f8eee5;
  --cream-2:       #fff1e6;
  --carte-fond:    #dfe9f2;   /* fond des cartes dessinées (la mer) */
  --carte-grise:   #e7e7e7;   /* gris neutre de l'aperçu de l'accueil */

  /* Texte */
  --ink:           #3a2317;   /* brun chaud pour le corps de texte */
  --ink-soft:      #6b5247;

  /* Typo */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-title: 'Titan One', 'Bricolage Grotesque', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Rythme */
  --container: 1180px;
  --radius-card: 28px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*{ margin:0; padding:0; box-sizing:border-box; }

html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width:100%; }

a{ color: inherit; text-decoration: none; }

ul{ list-style:none; }

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.justify-text {
  text-align: justify;
}

/* Masqué visuellement mais accessible aux lecteurs d'écran / moteurs */
.visually-hidden{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

h1, h2, h3{
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--aubergine);
}

h2{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3{ font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

p{ color: var(--ink-soft); }

.section-pad{ padding: clamp(3.5rem, 5vw, 3rem) 0; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-1);
  background: var(--orange);
  padding: .5em 1.1em;
  border-radius: 999px;
}

.section-head{
  text-align:center;
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.section-head p{ margin-top:.75rem; }

/* Liens accessibles : focus visible */
a:focus-visible,
button:focus-visible,
.nav-toggle-label:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien d'évitement */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--orange); color:#fff; padding:.6em 1em; border-radius: 8px;
  font-family: var(--font-display); font-weight:700;
}
.skip-link:focus{ left: 16px; top: 16px; z-index: 999; }

/* =========================================================
   Boutons & badges
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .85em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary{
  background: var(--orange);
  color: var(--cream-1);
  box-shadow: 0 6px 0 0 rgba(128,0,57,.18);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 9px 0 0 rgba(128,0,57,.18);
}
.btn-outline{
  background: transparent;
  border-color: currentColor;
  color: var(--aubergine);
}
.btn-outline:hover{
  background: var(--aubergine);
  color: var(--cream-1);
}

.pill{
  display:inline-flex;
  align-items:center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55em 1.3em;
  border-radius: 999px;
}

/* =========================================================
   Icônes (illustrations ligne, esprit charte)
   ========================================================= */
.icon{
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Formes organiques ("blobs") — élément signature
   ========================================================= */
.blob{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  aspect-ratio: 1 / 1;
  color: var(--orange);
  overflow:hidden;
}
.blob-1{ border-radius: 63% 37% 54% 46% / 58% 48% 52% 42%; }
.blob-2{ border-radius: 42% 58% 61% 39% / 49% 42% 58% 51%; }
.blob-3{ border-radius: 55% 45% 38% 62% / 60% 35% 65% 40%; }
.blob-4{ border-radius: 48% 52% 65% 35% / 40% 60% 40% 60%; }

.blob-icon.blob-icon-lg{ width: 60%; }
/* Illustration fournie par le client : elle porte déjà son fond texturé et
   remplit toute la forme organique, à la place de l'aplat uni + picto. */
.blob .blob-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Agrandissement de 150 % réservé aux cartes de l'accueil, où le motif est
   petit ; le débordement est masqué par l'overflow de .blob. Les mascottes
   des fiches produits portent un libellé incurvé qu'un zoom couperait. */
.menu-card .blob-photo{ transform: scale(1.5); }
/* =========================================================
   En-tête
   ========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  /* Fond quadrillé (papier millimétré) fourni par le client */
  background: var(--cream-1) url("../img/fond-quadrille.jpg") repeat center / 340px auto;
  box-shadow: 0 4px 16px -4px rgba(58, 35, 23, .45);
}
.nav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Logo */
.logo{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding: .25em .9em .25em .6em;
  z-index: 1;
  /* Jamais comprimé par les pastilles : object-fit:cover le rognerait. */
  flex: none;
}
.logo img{
  height: 150px;
  display: block;
  margin: -50px 0;
  object-fit: cover;
  clip-path: inset(35% 0 35% 0);
}
/* Logo de l'en-tête agrandi de 20 % (le pied de page garde sa taille) */
.site-header .logo img{
  height: 180px;
  margin: -60px 0;
}

/* Navigation */
.nav-toggle{ display:none; }
.nav-toggle-label{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 38px;
  height: 38px;
  cursor:pointer;
}
.nav-toggle-label span{
  display:block;
  height: 3px;
  border-radius: 2px;
  background: var(--aubergine);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-primary,
.nav-secondary{
  display:flex;
  align-items:center;
  gap: 1.8rem;
}
/* Liens du bandeau en « pastille » pleine orange (référence client image-1),
   violette au survol. Le lien Instagram reste une icône, jamais une pastille. */
.nav-primary a,
.nav-secondary a:not(.icon-instagram-link){
  font-family: var(--font-title);
  font-weight: 400;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  position:relative;
  padding: .5em 1.1em;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cream-1);
  transition: background .2s ease, color .2s ease;
}
.nav-primary a:hover,
.nav-secondary a:not(.icon-instagram-link):hover{
  background: var(--aubergine);
  color: var(--cream-1);
}

/* Page courante : la pastille est déjà dans l'état violet. */
.nav-primary a[aria-current="page"],
.nav-secondary a[aria-current="page"]:not(.icon-instagram-link){
  background: var(--aubergine);
  color: var(--cream-1);
}

.nav-secondary{ gap: 1.2rem; }
.icon-instagram-link{
  display:inline-flex;
  width: 32px; height: 32px;
  margin-right: .8rem;
  color: var(--aubergine);
  transition: color .2s ease, transform .2s ease;
}
.icon-instagram-link:hover{ color: var(--orange); transform: rotate(-8deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding: clamp(2rem, 5.3vw, 4rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.hero-content > *+*{ margin-top: 1.2rem; }
.hero h1{
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  margin-top: .9rem;
}
.hero p{ font-size: 1.05rem; max-width: 51ch; }
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top: 1.6rem !important;
}
/* Pastilles du bandeau d'accueil. Le fond était en --cream-2, quasi
   indiscernable du crème de la page : 1,03 de contraste, seul le texte se
   voyait. --beige, l'orange clair de la charte, les détache (1,46) tout en
   gardant le texte aubergine bien lisible (6,38). */
.hero-badges .pill{
  background: var(--beige);
  color: var(--aubergine);
  font-size: .75rem;
}
.hero-cta{ margin-top: 1.8rem !important; }

.hero-visual .blob{
  background: linear-gradient(150deg, var(--emerald-light) 0%, var(--blue-light) 100%);
  color: var(--emerald);
}

/* =========================================================
   AU MENU
   ========================================================= */
/* Orange clair demandé par le client — #f5be89 de image-2, soit --beige. */
.menu-section{ background: var(--beige); }
.menu-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
}
.menu-card{
  background: var(--cream-1);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  border-top: 8px solid var(--orange);
  transition: transform .25s ease;
}
.menu-card:hover{
  transform: translateY(-6px);
}
.menu-card[data-accent="aubergine"]{ border-top-color: var(--aubergine); }
.menu-card[data-accent="blue"]{ border-top-color: var(--blue); }

.menu-card .blob{
  max-width: 180px;
  margin: -2.4rem auto 1.2rem;
}
.menu-card[data-accent="aubergine"] .blob{ color: var(--aubergine); background: var(--pink); }
.menu-card[data-accent="blue"] .blob{ color: var(--blue); background: var(--cream-2); }
.menu-card[data-accent="orange"] .blob{ color: var(--orange); background: var(--beige); }

.menu-card h3{ text-align:center; }
.menu-card p{ text-align:center; font-size: .95rem; margin-top:.5rem; }

.menu-cta{ text-align:center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* =========================================================
   POURQUOI CHOISIR
   ========================================================= */
.why-section{ background: var(--emerald-light); }
.why-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.why-item{
  display:flex;
  gap: 1.1rem;
  align-items:flex-start;
}
.why-item .icon-wrap{
  flex: none;
  width: 56px; height: 56px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 50% 38% 52% 48% / 48% 52% 44% 56%;
  background: var(--cream-1);
  color: var(--orange);
}
.why-item p{ margin-top:.35rem; font-size: .95rem; }

.adjectives{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: .8rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
/* Les cinq pastilles partagent le même habillage, celui de « Bio ». */
.adjectives .pill{
  font-size: .85rem;
  padding: .65em 1.5em;
  background: var(--cream-1);
  color: var(--emerald);
}

/* =========================================================
   CARTE DES TOFUTIERS
   ========================================================= */
.map-section{ background: var(--cream-2); }
.map-frame{
  border-radius: var(--radius-card);
  overflow:hidden;
  border: 6px solid var(--cream-1);
  box-shadow: 0 18px 40px -22px rgba(58,35,23,.45);
  aspect-ratio: 16/8;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* Cadre carré, à la forme de la carte de France, et largeur limitée pour
   qu'il ne s'étale pas sur toute la page. */
.map-section .map-frame{
  position: relative;
  aspect-ratio: 1/1;
  max-width: 620px;
  margin-inline: auto;
}

/* Aperçu de l'accueil présenté en gris neutre : le dessin lui-même est
   désaturé, sans quoi le bleu de la mer teinterait tout le bloc. */
.map-section .carte-locale{ filter: grayscale(1); }

/* Voile d'appel posé sur l'aperçu : il couvre toute la carte, qui apparaît
   ainsi grisée, et porte le bouton qui déclenche le chargement de la carte
   Google (voir script-accueil.html). */
.carte-voile{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.4rem;
  text-align: center;
  background: rgba(231,231,231,.8);   /* repli si color-mix n'est pas connu */
  background: color-mix(in srgb, var(--carte-grise) 80%, transparent);
}
.carte-mention{
  margin: 0;
  max-width: 36ch;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   Carte de localisation dessinée dans le site
   (partials/carte-melesse.svg) — elle remplace l'iframe
   Google Maps, qui transmettait l'adresse IP des visiteurs.
   --------------------------------------------------------- */
.carte-locale{ display:block; width:100%; height:100%; }
.carte-mer{ fill: var(--carte-fond); }
.carte-voisins{ fill: var(--cream-2); stroke: #fff; stroke-width: 1.5; }
.carte-departement{ fill: var(--beige); fill-opacity: .55; stroke: var(--aubergine); stroke-width: 2; }
/* Découpage régional de la carte de France : trait plus discret, il sert
   de repère et non de sujet. */
.carte-regions{
  fill: var(--beige); fill-opacity: .55;
  stroke: var(--aubergine); stroke-opacity: .45; stroke-width: 1.2;
}
.carte-point{ fill: var(--aubergine); }
.carte-epingle{ fill: var(--orange); }
.carte-epingle-oeil{ fill: var(--cream-1); }
.carte-repere,
.carte-ville,
.carte-atelier{
  font-family: var(--font-display);
  text-anchor: middle;
  fill: var(--aubergine);
  /* Halo blanc : les libellés restent lisibles aussi bien sur la mer
     que sur les aplats de terre. */
  paint-order: stroke;
  stroke: rgba(255,255,255,.85);
  stroke-width: 3;
  stroke-linejoin: round;
}
.carte-repere{ font-size: 17px; font-weight: 500; }
.carte-ville{ font-size: 21px; font-weight: 700; }
.carte-atelier{ font-size: 26px; font-weight: 800; }

/* Bouton posé sur la carte de la page Contact, en haut à gauche. Fond plein
   pour rester lisible par-dessus le dessin. */
.contact-map{ position: relative; }
.carte-bouton{
  position: absolute;
  top: .8rem;
  left: .8rem;
  font-size: .8rem;
  padding: .6em 1.3em;
  background: var(--cream-1);
  box-shadow: 0 10px 22px -14px rgba(58,35,23,.7);
}
@media (max-width: 520px){
  /* Sur téléphone, le bouton mangeait le haut de la carte. */
  .carte-bouton{ top: .6rem; left: .6rem; font-size: .72rem; padding: .55em 1.1em; }
}

.map-credit{ font-size: .78rem; color: var(--ink-soft); opacity: .8; margin: .8rem 0 0; }
.map-credit a{ color: inherit; }
.map-section .map-credit{ margin-top: .8rem; text-align: center; }
.partners-grid{
  display:grid;
  /* 6 colonnes : les six partenaires tiennent sur une seule ligne en version
     ordinateur, au lieu de 5 + 1 isolé en dessous. Les paliers 3 puis 2
     colonnes des écrans plus petits sont inchangés. */
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.partner-slot{
  border: 2px dashed var(--orange);
  border-radius: 20px;
  padding: 1.2rem 1rem;
  text-align:center;
  background: var(--cream-2);
}
.partner-logo{
  aspect-ratio: 1/1;
  border-radius: 50% 42% 58% 46% / 46% 58% 42% 54%;
  background: var(--cream-1);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: .8rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight:800;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform:uppercase;
  padding: .4rem;
}
.partner-name{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--aubergine);
}
.partner-desc{
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: .3rem;
}

/* Séparateur organique entre la conclusion et le footer */
.shape-divider{
  display:block;
  width:100%;
  height: 60px;
  color: var(--aubergine);
}
.shape-divider svg{ display:block; width:100%; height:100%; }
/* Le tracé de la vague est plein en dessous seulement : au-dessus, le fond du
   bloc apparaît. Sans couleur, c'est le crème du body qui traverse et forme
   une bande claire entre la dernière section et le pied de page. On aligne
   donc ce fond sur la couleur de la section qui précède, via $divider_bg. */
.shape-divider.on-beige{ background: var(--beige); }
.shape-divider.on-aubergine{ background: var(--aubergine); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--aubergine);
  color: var(--cream-2);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  /* Le padding haut était à 0 pour rattraper la marge négative de l'ancien
     logo recadré au clip-path. Le nouveau logo n'en a pas, il faut donc
     rendre cet espacement. */
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
/* Logo du pied de page, et les petites phrases juste en dessous — les deux
   sont des visuels fournis par le client. Ils remplacent l'ancien logo
   recadré au clip-path et la baseline en texte. */
.footer-brand{ display:inline-block; }
.footer-brand img{ width: 200px; height:auto; }
.footer-topline{
  width: 240px;
  height:auto;
  margin-top: .8rem;
}
.footer-col h3{
  color: var(--cream-1);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-col ul li + li{ margin-top: .55rem; }
.footer-col a, .footer-col p{
  font-size: .92rem;
  color: var(--cream-2);
  opacity:.85;
}
.footer-col a:hover{ opacity:1; text-decoration: underline; }
.footer-instagram{
  display:inline-flex;
  align-items:center;
  gap: .5rem;
  margin-top: .4rem;
}
.footer-instagram .icon{ width: 22px; height:22px; }

.footer-bottom a{ color: inherit; text-decoration: underline; }
.footer-bottom a:hover{ color: #fff; }
.footer-bottom{
  border-top: 1px solid rgba(255,241,230,.18);
  padding: 1.2rem 0;
  text-align:center;
  font-size: .8rem;
  color: var(--cream-2);
  opacity:.7;
}

/* =========================================================
   Animations légères au scroll
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .menu-card:hover, .btn-primary:hover{ transform:none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; max-width: 380px; margin: 0 auto; }
  .menu-grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: 1fr; }
  .partners-grid{ grid-template-columns: repeat(3, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* Repli du menu en burger.
   Seuil remonté de 720 à 980 px quand les liens sont passés en pastilles,
   bien plus larges qu'en texte simple, puis de 980 à 1170 px à l'ajout du
   cinquième lien « Engagements » : en dessous, la barre déborde. */
@media (max-width: 1169px){
  .nav-toggle-label{ display:flex; }
  .nav-primary{
    position:absolute;
    top: 100%; left:0; right:0;
    flex-direction:column;
    align-items:flex-start;
    gap: 1.2rem;
    background: var(--cream-1);
    padding: 1.5rem 24px 2rem;
    border-bottom: 2px solid var(--cream-2);
    transform: translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-toggle:checked ~ .nav-primary{
    opacity:1; transform:translateY(0); visibility:visible;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2){ opacity:0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 720px){
  /* Barre et pastille resserrées : à pleine taille elles rognaient le logo. */
  .nav-bar{ gap: 1rem; }
  .nav-secondary{ gap: 1rem; }
  .nav-secondary a:not(.icon-instagram-link){ font-size:.85rem; padding: .45em .75em; }
  /* Logo réduit pour tenir entier à côté de la pastille Contact. */
  .site-header .logo img{ height: 110px; margin: -37px 0; }

  .menu-grid{ grid-template-columns: 1fr; }
  .partners-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; gap: 2rem; }
}

/* Très petits écrans : on redonne au logo le droit de se réduire plutôt que
   de laisser la barre déborder. */
@media (max-width: 400px){
  .logo{ flex: 0 1 auto; }
}

/* =========================================================
   BANDEAU D'INTRODUCTION DE PAGE
   ========================================================= */
.page-hero{
  background: var(--aubergine);
}
.page-hero .container{
  text-align:center;
  max-width: 760px;
}
.page-hero h1{
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-top: .9rem;
  color: var(--cream-2);
}
.page-hero p{
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--cream-2);
  opacity:.9;
}
.page-hero .eyebrow{
  background: var(--cream-2);
  color: var(--aubergine);
}

/* Variante orange clair du bandeau d'introduction (--beige, le #f5be89 de
   image-2). Le fond devenant clair, les textes repassent en foncé et la
   pastille reprend l'orange plein du reste du site.
   Posée page par page : Contact garde le bandeau aubergine. */
.page-hero.page-hero-light{ background: var(--beige); }
.page-hero.page-hero-light h1{ color: var(--aubergine); }
.page-hero.page-hero-light p{ color: var(--ink-soft); opacity: 1; }
.page-hero.page-hero-light .eyebrow{
  background: var(--orange);
  color: var(--cream-1);
}

/* =========================================================
   MISE EN PAGE ALTERNÉE (image / texte)
   — utilisée pour les fiches produits et les sections atelier
   ========================================================= */
.split-section{ overflow:hidden; }
.split-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.split-grid.reverse > .split-visual{ order:2; }
.split-grid.reverse > .split-content{ order:1; }
.split-visual{ display:flex; justify-content:center; }
.split-visual .blob{ max-width: 380px; }
.split-content h2{
  margin-top: .6rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
.split-content p{ margin-top: 1rem; max-width: 50ch; }
.split-content p + p{ margin-top: .8rem; }

/* Liste des membres du collectif de la ferme. Le site retire les puces sur
   tous les ul, on les rétablit ici : c'est bien une énumération. */
.farm-collectif{
  list-style: disc;
  margin: .8rem 0 0 1.2rem;
  max-width: 50ch;
}
.farm-collectif li{
  color: var(--ink-soft);
  margin-top: .35rem;
}

/* Fonds alternés réutilisables */
.bg-cream2{ background: var(--cream-2); }
.bg-beige{ background: var(--beige); }

/* Variantes de couleur d'accent (fiches produits) */
.split-section[data-accent="orange"] h2{ color: var(--orange); }
.split-section[data-accent="orange"] .blob{ color: var(--orange); background: var(--beige); }
.split-section[data-accent="orange"] .eyebrow{ background: var(--orange); }

.split-section[data-accent="aubergine"] .blob{ color: var(--aubergine); background: var(--pink); }
.split-section[data-accent="aubergine"] .eyebrow{ background: var(--aubergine); }

.split-section[data-accent="blue"] h2{ color: var(--blue); }
.split-section[data-accent="blue"] .blob{ color: var(--blue); background: var(--blue-light); }
.split-section[data-accent="blue"] .eyebrow{ background: var(--blue); }

/* Emplacement réservé (5e produit à venir) */
/* Encart « un nouveau tofu arrive bientôt » : contour, picto et titre en
   orange. Le paragraphe reste en gris, la demande ne visant que ces trois
   éléments. */
.product-placeholder{
  border: 2px dashed var(--orange);
  border-radius: var(--radius-card);
  text-align:center;
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.product-placeholder .icon-wrap{
  width: 64px; height:64px;
  margin: 0 auto 1rem;
  color: var(--orange);
}
.product-placeholder h3{ color: var(--orange); }

@media (max-width: 860px){
  .split-grid{ grid-template-columns: 1fr; }
  .split-grid.reverse > .split-visual{ order:0; }
  .split-grid.reverse > .split-content{ order:1; }
  .split-visual .blob{ max-width: 280px; margin: 0 auto; }
}

/* =========================================================
   PAGE ACHETER
   ========================================================= */
.points-list{
  display:flex;
  flex-direction:column;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.point-card{
  display:flex;
  gap: 1.1rem;
  align-items:flex-start;
  background: var(--cream-1);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
}
/* Les encarts qui portent un lien sont des <a> et étaient indiscernables des
   encarts inertes. On les signale au survol, comme les cartes de l'accueil. */
a.point-card{
  transition: transform .2s ease, border-color .2s ease;
}
a.point-card:hover{ transform: translateY(-3px); }
a.point-card.pending:hover{ border-color: var(--orange); }
a.point-card:hover h3{ color: var(--orange); }
.point-card .icon-wrap{
  flex:none;
  width: 48px; height: 48px;
  border-radius: 50% 38% 52% 48% / 48% 52% 44% 56%;
  background: var(--cream-2);
  display:flex; align-items:center; justify-content:center;
  color: var(--orange);
}
.point-card .icon-wrap .icon{ width: 55%; height: 55%; }
.point-card h3{ margin-bottom: .2rem; }
.point-card .point-meta{
  display:block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: .25rem;
}
.point-card p{ font-size: .95rem; }

/* Variante "à venir" */
.point-card.pending{
  background: transparent;
  border: 2px dashed var(--blue-light);
}
.point-card.pending .icon-wrap{ background: var(--cream-1); color: var(--blue); }

/* Bandeau d'appel à l'action distributeurs/restaurateurs */
/* Bandeau d'appel en orange clair : la vague du pied de page, tracée en
   bordeaux, ne se détacherait pas d'un fond bordeaux. Les couleurs de
   texte reviennent donc à celles par défaut. */
.cta-band{
  background: var(--beige);
  text-align:center;
}
.cta-band p{
  max-width: 600px;
  margin: 0 auto 1.8rem;
}
.cta-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 1rem;
}
/* Le bandeau est passé en orange clair : les boutons reprennent le
   bordeaux du style par défaut, illisibles en crème sur ce fond. */
.cta-buttons .btn-outline{
  border-color: var(--aubergine);
  color: var(--aubergine);
}
.cta-buttons .btn-outline:hover{
  background: var(--aubergine);
  color: var(--cream-1);
}

@media (max-width: 600px){
  .point-card{ flex-direction:column; align-items:flex-start; }
}

/* =========================================================
   PAGE CONTACT
   ========================================================= */

/* Mise en page générale */
.contact-section{ background: var(--cream-2); }
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items:start;
}
.contact-grid h2{ text-align:left; margin-bottom: 1.2rem; }

/* Coordonnées */
.info-list{
  display:flex;
  flex-direction:column;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.info-list li{
  display:flex;
  align-items:flex-start;
  gap: .9rem;
}
.info-icon{
  flex:none;
  width: 44px; height: 44px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 50% 38% 52% 48% / 48% 52% 44% 56%;
  background: var(--cream-1);
  color: var(--orange);
}
.info-icon .icon{ width: 55%; height: 55%; }
.info-list .info-text strong{
  display:block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aubergine);
  margin-bottom: .15rem;
}
.info-list .info-text a,
.info-list .info-text p{
  font-size: .95rem;
  color: var(--ink-soft);
}
.info-list .info-text a:hover{ color: var(--orange); }

/* Cadre carré : c'est la forme de l'Ille-et-Vilaine, la carte le remplit
   sans laisser de bandes vides sur les côtés. */
.contact-map{ aspect-ratio: 1/1; }

/* Formulaire */
#formulaire{ scroll-margin-top: 105px; }

.contact-form-wrap{
  background: var(--cream-1);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.contact-form-wrap p{ margin-bottom: 1.4rem; }
.form-row{ margin-bottom: 1.1rem; }
.form-row label{
  display:block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--aubergine);
  margin-bottom: .4rem;
}
.form-row input,
.form-row select,
.form-row textarea{
  width:100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-2);
  border: 2px solid var(--blue-light);
  border-radius: 14px;
  padding: .75em .9em;
  transition: border-color .2s ease, background .2s ease;
}
.form-row textarea{ resize: vertical; min-height: 140px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.form-row select{ cursor:pointer; }

/* Piège à robots (honeypot) — invisible pour les humains */
.form-hp{
  position:absolute;
  width: 1px; height: 1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

.form-submit{ margin-top: .4rem; }
.form-submit .btn{ width:100%; }

/* Message de retour (succès / erreur) */
.form-message{
  border-radius: 14px;
  padding: .9em 1.1em;
  margin-bottom: 1.4rem;
  font-size: .95rem;
  font-weight: 500;
}
.form-message[data-type="success"]{
  background: var(--emerald-light);
  color: var(--emerald);
}
.form-message[data-type="error"]{
  background: var(--pink);
  color: var(--aubergine);
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}


/* =========================================================
   PAGES LÉGALES
   Colonne de lecture étroite : une page de texte administratif se lit
   mal sur toute la largeur du conteneur.
   ========================================================= */
.legal-prose{ max-width: 44rem; margin: 0 auto; }
.legal-prose h2{
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: 2.8rem;
}
.legal-prose h2:first-child{ margin-top: 0; }
.legal-prose h3{ margin-top: 2.1rem; }
.legal-prose h3 + .legal-list{ margin-top: .8rem; }
.legal-prose p{ margin: .9rem 0; }
.legal-chapo{ font-size: 1.05rem; margin-bottom: 2rem; }
/* Mention d'information affichée sous le formulaire de contact. */
.form-rgpd{ font-size: .82rem; line-height: 1.5; margin: .2rem 0 1.2rem; }
.form-rgpd a{ color: var(--aubergine); text-decoration: underline; }
.form-rgpd a:hover{ color: var(--orange); }
.legal-maj{ font-size: .85rem; opacity: .75; }
.legal-prose a{ color: var(--aubergine); text-decoration: underline; }
.legal-prose a:hover{ color: var(--orange); }
.legal-adresse{ line-height: 1.9; }

.legal-list{
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: .6rem 2rem;
  margin: 1.2rem 0 0;
}
.legal-list dt{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--aubergine);
}
.legal-list dd{ margin: 0; color: var(--ink-soft); }

@media (max-width: 620px){
  /* En colonne unique, l'intitulé se place au-dessus de sa valeur. */
  .legal-list{ grid-template-columns: 1fr; gap: 0; }
  .legal-list dd{ margin-bottom: 1rem; }
}


/* =========================================================
   THÈME FONCÉ
   Les sections auparavant sur fond pâle (vert, bleu, beige) passent
   sur fond aubergine avec texte clair. Les fonds crème restent clairs.
   On applique la classe .is-dark sur les <section> concernées.
   ========================================================= */
.is-dark{
  background: var(--aubergine);
  color: var(--cream-2);
}
/* Titres et textes posés directement sur le fond foncé */
.is-dark h2,
.is-dark h3{ color: var(--cream-1); }
.is-dark p{ color: var(--cream-2); }

/* Boutons "contour" lisibles sur fond foncé */
.is-dark .btn-outline{
  border-color: var(--cream-2);
  color: var(--cream-2);
}
.is-dark .btn-outline:hover{
  background: var(--cream-2);
  color: var(--aubergine);
}

/* Cartes claires DANS une section foncée : couleurs d'origine rétablies */
.is-dark .menu-card,
.is-dark .point-card:not(.pending),
.is-dark .partner-slot{ color: var(--ink); }
.is-dark .menu-card h3,
.is-dark .point-card:not(.pending) h3{ color: var(--aubergine); }
.is-dark .menu-card p,
.is-dark .point-card:not(.pending) p{ color: var(--ink-soft); }
.is-dark .point-card:not(.pending) .point-meta{ color: var(--ink-soft); }
.is-dark .partner-slot .partner-name{ color: var(--aubergine); }
.is-dark .partner-slot .partner-desc{ color: var(--ink-soft); }

/* Cartes "à venir" (fond transparent) : texte clair sur le fond foncé */
.is-dark .point-card.pending .point-meta{ color: var(--cream-2); opacity:.85; }

/* =========================================================
   ACCUEIL — Bandeau plein écran (placeholder en attendant le graphiste)
   ========================================================= */
/* Rognage adaptatif, sans aplat de remplissage.
   La hauteur suit l'écran (100vh moins la barre de navigation), plafonnée
   à 70.3vw :
   - écran étroit (portable) -> la hauteur atteint le plafond et l'image
     est rognée sur les côtés, à 10 % de chaque côté exactement. 70.3vw
     est la valeur qui donne ces 10 % : l'image cadrée à 80 % de sa
     largeur a un ratio de 1.4222, et 100/1.4222 = 70.3 ;
   - écran plat              -> la hauteur est celle de l'écran et l'image
     est rognée en haut et en bas.
   Le rognage vertical reste réparti et non pris uniquement en haut : le
   contenu de la bannière s'étend de y=219 à y=825 sur 1080, soit 219 px
   de marge haute seulement. Sur un 1920x700, le rognage nécessaire est de
   480 px — tout prendre en haut couperait la mascotte et l'accroche. */
.fullscreen-banner{
  height: min(calc(100vh - 100px), 70.3vw);   /* 100px = hauteur de la barre de navigation */
  height: min(calc(100dvh - 100px), 70.3vw);
  overflow: hidden;
}
.fullscreen-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   ACCUEIL — Photo dans le bandeau héro (remplace l'ancienne mascotte)
   ========================================================= */
.hero-visual .blob.hero-photo{
  background: var(--emerald-light);
}
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* =========================================================
   ACCUEIL — Couleur des titres de tofu selon leur conteneur
   (placé après .is-dark pour l'emporter sur les cartes en section foncée)
   ========================================================= */
.menu-card[data-accent="orange"] h3{ color: var(--orange); }
.menu-card[data-accent="aubergine"] h3{ color: var(--aubergine); }
.menu-card[data-accent="blue"] h3{ color: var(--blue); }

/* =========================================================
   ACCUEIL — Bloc de clôture (ambition + partenaires + conclusion)
   Les trois contenus sont réunis dans une seule section, au style
   standard du site (en-tête centré, espacements habituels).
   ========================================================= */
/* Orange clair demandé par le client — #f5be89 de image-2, soit --beige. */
.closing-section{ text-align:center; background: var(--beige); }
.closing-lead{
  max-width: 620px;
  margin: 0 auto;
}
.closing-section .partners-grid{ margin-top: 1.5rem; }

/* =========================================================
   DÉGUSTER — Points de vente en 3 colonnes
   ========================================================= */
.deguster-columns{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items:start;
}
.deguster-col > * + *{ margin-top: .7rem; }
.deguster-col h2{ font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
.deguster-col .deguster-col-intro{ font-size: .95rem; }
.deguster-col .points-list{ margin-top: 1.2rem; }

@media (max-width: 860px){
  .deguster-columns{ grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 2.8rem); }
}

/* =========================================================
   ATELIER — Notre histoire : photo + frise chronologique
   ========================================================= */
.story-header{
  text-align:center;
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.story-photo{
  border-radius: var(--radius-card);
  overflow:hidden;
  margin-bottom: 1.6rem;
  box-shadow: 0 18px 40px -22px rgba(58,35,23,.45);
}
/* La photo est en portrait : sans cadrage, elle occuperait près de 1400 px
   de haut et écraserait le reste de la section. On la cadre en 4/3, ce qui
   garde le rythme de bandeau de l'ancienne photo paysage. Le point de
   cadrage descend un peu sous le centre pour garder les visages et la
   marmite, la partie haute n'étant que le plafond et la hotte. */
.story-photo{ aspect-ratio: 4 / 3; }
.story-photo img{ width:100%; height:100%; object-fit: cover; object-position: center 58%; }
.story-header .eyebrow{ margin-bottom: .7rem; }
.story-intro{
  margin-top: .75rem;
  font-style: italic;
  color: var(--ink-soft);
}

.timeline{
  position:relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2.4rem;
  list-style:none;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 7px;
  top: .5rem;
  bottom: .5rem;
  width: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}
.timeline-item{
  position:relative;
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content:"";
  position:absolute;
  left: -2.4rem;            /* dans la gouttière, aligné sur la ligne verticale */
  top: .3rem;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--cream-1);
}
.timeline-date{
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--aubergine);
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.timeline-content p + p{ margin-top: .7rem; }

/* =========================================================
   ATELIER — Section collectif (photo du collectif + boutons)
   ========================================================= */
.farm-photo{
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.5);
}
.farm-photo img{ width: 100%; height: auto; }
.farm-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

/* =========================================================
   ATELIER — Nos engagements (photo portrait + liste d'engagements)
   ========================================================= */
.engagements-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.engagements-photo{
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(58,35,23,.45);
  position: sticky;
  top: 120px;
}
.engagements-photo img{ width: 100%; height: auto; }
.engagement + .engagement{ margin-top: 1.6rem; }
.engagement h3{ margin-bottom: .3rem; }

@media (max-width: 860px){
  .engagements-grid{ grid-template-columns: 1fr; }
  .engagements-photo{ position: static; max-width: 360px; margin: 0 auto; }
}