/*
Theme Name: Nappezest
Theme URI: https://nappezest.ch
Author: Nappezest
Description: Thème bloc sur mesure pour Nappezest, liqueurs artisanales de Givrins. La vraie étiquette se déroule de la bouteille au défilement.
Version: 1.0.48
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nappezest
Tags: block-theme, full-site-editing, one-column
*/

/* =========================================================
   Sobre, minimaliste et soigné, dans la DA des bouteilles :
   papier blanc, encre de l'étiquette, jaune du limoncello,
   bandeau en vague et grain pulvérisé de l'étiquette.
   ========================================================= */

/* Polices hébergées dans le thème (licence SIL OFL) : aucun appel à Google,
   donc rien que l'extension de cookies doive bloquer — le site garde toujours ses polices. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/polices/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/polices/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/polices/rozha-one-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rozha One"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/polices/rozha-one-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --noir: #040403;
  --encre: #231E20;          /* noir de l'étiquette imprimée */
  --blanc: #FBFBFA;
  --jaune: #F6E166;          /* limoncello */
  --jaune-fonce: #CEBA1B;
  --gris: #6D6769;
  --filet: rgba(35, 30, 32, .14);

  --display: "Rozha One", Georgia, serif;
  --texte: "Archivo", system-ui, -apple-system, sans-serif;

  --marge: clamp(16px, 4.4vw, 64px);
  --entete: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 400 16px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }   /* height:auto : sinon l'attribut height des blocs image l'emporte */
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }
[hidden] { display: none !important; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0px),
   filet de sécurité ici À SPÉCIFICITÉ NULLE — jamais « .wp-block-group > * ». */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }

/* ---------- Typographie commune ---------- */
.surtitre {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gris);
}
.titre, .titre-section {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.005em;
  hyphens: none;
  text-wrap: balance;
}
.titre { font-size: clamp(1.9rem, 2.5vw, 2.6rem); line-height: 1.08; margin-top: .5em; }
.titre-section { font-size: clamp(2.1rem, 4.2vw, 3.8rem); line-height: 1.05; margin-top: .4em; }

.section-tete { position: relative; z-index: 1; text-align: center; }

/* Lien souligné (paragraphe « lien ») */
.lien a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s;
}
.lien a:hover { opacity: .6; }
/* lien « Suivre » + logo Instagram (carte de la page Commande) : le logo est un masque, il prend la couleur du lien */
.lien-suivre a::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("assets/img/instagram.svg") center / contain no-repeat;
  mask: url("assets/img/instagram.svg") center / contain no-repeat;
}

/* ---------- Boutons ----------
   « bouton » sert à la fois aux vrais <button> (porte d'âge), aux blocs Bouton
   (la classe est posée sur le conteneur div.wp-block-button : on style le lien)
   et au bouton d'envoi de Contact Form 7. */
.bouton:not(.wp-block-button),
.wp-block-button.bouton .wp-block-button__link,
.formulaire .wpcf7-submit {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--encre);
  border-radius: 999px;
  background: var(--encre);
  color: var(--blanc);
  font: 500 14px/1.6 var(--texte);
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.bouton:not(.wp-block-button):hover,
.wp-block-button.bouton .wp-block-button__link:hover,
.formulaire .wpcf7-submit:hover { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }

.bouton-contour:not(.wp-block-button), .wp-block-button.bouton-contour .wp-block-button__link { background: transparent; color: var(--encre); }
.bouton-contour:not(.wp-block-button):hover, .wp-block-button.bouton-contour .wp-block-button__link:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

.bouton-jaune:not(.wp-block-button), .wp-block-button.bouton-jaune .wp-block-button__link,
.theme-sombre .formulaire .wpcf7-submit { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.bouton-jaune:not(.wp-block-button):hover, .wp-block-button.bouton-jaune .wp-block-button__link:hover,
.theme-sombre .formulaire .wpcf7-submit:hover { background: var(--blanc); border-color: var(--blanc); color: var(--encre); }

.bouton-clair:not(.wp-block-button), .wp-block-button.bouton-clair .wp-block-button__link { background: transparent; border-color: rgba(251, 251, 250, .65); color: var(--blanc); }
.bouton-clair:not(.wp-block-button):hover, .wp-block-button.bouton-clair .wp-block-button__link:hover { background: var(--blanc); border-color: var(--blanc); color: var(--encre); }

/* un vrai <button> (porte d'âge) et le bouton d'envoi gardent l'interligne des boutons du navigateur, comme dans la maquette */
button.bouton, .formulaire .wpcf7-submit { line-height: normal; }

/* bouton « Suivre » + logo Instagram : le logo est un masque, il prend la couleur du texte du bouton */
.wp-block-button.bouton-insta .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  vertical-align: -4px;
  background: currentColor;
  -webkit-mask: url("assets/img/instagram.svg") center / contain no-repeat;
  mask: url("assets/img/instagram.svg") center / contain no-repeat;
}

/* le conteneur du bloc ne porte aucun style de bouton */
.wp-block-button.bouton { display: inline-block; padding: 0; border: 0; border-radius: 0; background: none; }
.wp-block-buttons { gap: 12px; }

/* Apparition douce */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.apparait.est-visible { opacity: 1; transform: none; }

/* ---------- Le fond : bandeau en vague et grain de l'étiquette (créé par le script) ---------- */
.ruban-fantome {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  color: rgba(35, 30, 32, .045);
  --trous: var(--blanc);
}
.ruban-fantome svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--entete);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--marge);
  color: var(--encre);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, color .35s;
}
/* le fond flouté vit sur un calque : posé sur .entete, backdrop-filter enfermerait
   le menu mobile plein écran (position fixed) dans la hauteur de la barre */
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 251, 250, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .35s;
}
.admin-bar .entete { top: var(--wp-admin--admin-bar--height, 32px); }
.entete.a-defile { border-bottom-color: var(--filet); }
.entete.sur-sombre { color: var(--blanc); border-bottom-color: rgba(251, 251, 250, .08); }
.entete.sur-sombre::before { background: rgba(4, 4, 3, .74); }

/* Le nom, dessiné depuis l'étiquette (masque : il prend la couleur de l'en-tête) ;
   au survol, la main apparaît dessous pour dire « retour à l'accueil ». */
.entete-logo { position: relative; line-height: 0; flex: none; }
.entete-logo a { position: relative; display: block; width: 125px; height: 32px; font-size: 0; color: inherit; }
.entete-logo a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("assets/img/logo-nappezest-mot.svg") left center / contain no-repeat;
  mask: url("assets/img/logo-nappezest-mot.svg") left center / contain no-repeat;
  transition: opacity .2s;
}
.entete-logo a:hover::before { opacity: .75; }
.entete-logo a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 31px;
  height: 68px;
  border-top: 14px solid transparent;      /* garde le survol entre le nom et la main */
  background: url("assets/img/main-geste.webp") center bottom / contain no-repeat content-box;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, filter .35s;
}
.entete-logo a:hover::after,
.entete-logo a:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.entete.sur-sombre .entete-logo a::after { filter: invert(1) brightness(1.12); }

/* Le menu (bloc Navigation : modifiable dans l'éditeur) */
.wp-block-navigation.entete-nav { margin-left: auto; gap: clamp(20px, 2.4vw, 36px); }
.wp-block-navigation.entete-nav .wp-block-navigation__container { gap: clamp(20px, 2.4vw, 36px); }
.wp-block-navigation.entete-nav .wp-block-navigation-item__content {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding: 0 0 2px;
  transition: background-size .3s;
}
.wp-block-navigation.entete-nav .wp-block-navigation-item__content:hover,
.wp-block-navigation.entete-nav .current-menu-item > .wp-block-navigation-item__content { background-size: 100% 1px; }

/* =========================================================
   ACCUEIL 1 & 2 · L'ÉTIQUETTE SE DÉROULE — scène épinglée
   ========================================================= */
.deroule { height: 480vh; }
.deroule-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.deroule-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }

/* l'étiquette du bloc image sert de texture à la bouteille : on ne l'affiche pas telle quelle */
.wp-block-image.etiquette-texture { display: none; }

/* Le nom, en grand, derrière la bouteille */
.wp-block-image.hero-logo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(var(--entete) + 2vh);
  width: min(64vw, 1000px, 108vh);
  translate: -50% 0;
  will-change: opacity, transform;
}
.wp-block-image.hero-logo img { width: 100%; }

/* la main au petit verre, emblème de la marque : en grand, en filigrane (placée par le script) */
.wp-block-image.hero-main { position: absolute; z-index: 0; left: 0; top: 0; opacity: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; }
.wp-block-image.hero-main img { width: auto; max-width: none; height: 0; }

.intro {
  position: absolute;
  z-index: 3;
  left: var(--marge);
  bottom: 9vh;
  width: min(34vw, 32rem);
  will-change: opacity, transform;
}
/* « L'art de la macération, » / « au cœur de la région de Nyon. » : chaque ligne reste entière ;
   la colonne s'arrête avant la bouteille (~34 % de la largeur), la 2e ligne mesure ~13,7 fois la taille de la police */
.intro .titre { white-space: nowrap; font-size: min(clamp(1.9rem, 2.5vw, 2.6rem), calc(min(34vw, 32rem) / 14)); }
.intro-droite {
  position: absolute;
  z-index: 3;
  right: var(--marge);
  bottom: 9vh;
  width: min(28vw, 24rem);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gris);
  will-change: opacity, transform;
}
.intro-droite p { padding-top: 18px; border-top: 1px solid var(--filet); }

.indice {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gris);
  white-space: nowrap;
}
.indice::after {
  content: "";
  flex: none;
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--encre), var(--encre)) 0 -26px / 1px 26px no-repeat, var(--filet);
  animation: indice 1.8s ease-in-out infinite;
}
@keyframes indice { to { background-position: 0 26px, 0 0; } }

/* Repères posés sur l'étiquette déroulée.
   Contenu de chaque élément de liste : « 01 » (première ligne), puis le texte. */
.repere {
  position: absolute;
  z-index: 3;
  left: 0; top: 0;
  width: max-content;            /* chaque ligne reste entière : le texte ne passe à la ligne qu'aux <br> */
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gris);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.repere::first-line { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--encre); }
.repere strong { display: block; margin-top: 6px; font-weight: 600; color: var(--encre); }
.repere::before,
.repere.repere-haut::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin-bottom: 6px;
  background: var(--encre);
  opacity: .5;
}
.repere.repere-haut::before { content: none; }
.repere.repere-haut::after { margin: 6px 0 0; }
.repere.est-visible { opacity: 1; }
.repere.a-droite { text-align: right; }
.repere.a-droite::before, .repere.a-droite::after { margin-left: auto; }

.deroule-fil {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  width: 120px;
  height: 1px;
  margin-left: -60px;
  background: var(--filet);
  opacity: 0;
  transition: opacity .4s;
}
.deroule-fil i { display: block; height: 100%; background: var(--encre); transform-origin: 0 50%; transform: scaleX(0); }
.deroule-fil.est-visible { opacity: 1; }

/* =========================================================
   ACCUEIL 3 · LE RÉCIT, SUR LE NOIR
   ========================================================= */
.recit { background: var(--noir); color: var(--blanc); overflow: hidden; }
.recit .surtitre { color: rgba(251, 251, 250, .58); }
.theme-sombre .ruban-fantome { color: rgba(251, 251, 250, .05); --trous: var(--noir); }

/* Ouverture : le rituel, photo pleine largeur */
.recit-ouverture { position: relative; }
.wp-block-image.recit-photo { position: relative; }
.wp-block-image.recit-photo img { width: 100%; height: clamp(520px, 62vw, 860px); object-fit: cover; object-position: 70% 50%; }
.wp-block-image.recit-photo::after {           /* la photo se fond dans le noir de la section */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(rgba(4, 4, 3, 0), var(--noir));
}
.recit-ouverture-texte {
  position: absolute;
  z-index: 1;
  left: var(--marge);
  top: 50%;
  translate: 0 -50%;
  max-width: 25rem;
}
.recit-ouverture-texte p:not(.surtitre) { margin-top: 22px; color: rgba(251, 251, 250, .72); }
/* « Bien frais, / dans un petit verre. » : chaque ligne du titre reste entière ;
   sur très petit écran, la taille baisse juste assez (la 2e ligne mesure ~9,1 fois la taille de la police) */
.recit-ouverture-texte .titre-section { white-space: nowrap; font-size: min(clamp(2.1rem, 4.2vw, 3.8rem), calc((100vw - 2 * var(--marge)) / 9.4)); }
.recit-ouverture-texte .wp-block-buttons,
.chapitre-texte .wp-block-buttons { margin-top: 30px; }

/* Notre histoire */
.recit-intro { position: relative; padding: clamp(80px, 10vw, 150px) var(--marge) clamp(80px, 9vw, 130px); }
.histoire-lead {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 34px auto 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}
.recit .histoire-lead { color: rgba(251, 251, 250, .84); }
.ingredients {               /* 4 ingrédients sur la 1re ligne, les suivants sur la 2e, même largeur */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: min(100%, 64rem);
  margin: clamp(44px, 5vw, 64px) auto 0;
  border-top: 1px solid rgba(251, 251, 250, .2);
  border-bottom: 1px solid rgba(251, 251, 250, .2);
}
.ingredients li {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px clamp(12px, 1.7vw, 26px);
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ingredients li:nth-child(n+5) { grid-column: span 4; border-top: 1px solid rgba(251, 251, 250, .2); }
.ingredients li + li { border-left: 1px solid rgba(251, 251, 250, .2); }
.ingredients li:nth-child(5) { border-left: 0; }

/* Le sceau tournant (créé par le script), comme sur nos visuels */
.sceau {
  position: absolute;
  z-index: 1;
  right: clamp(16px, 6vw, 110px);
  top: clamp(40px, 6vw, 90px);
  width: clamp(110px, 11vw, 160px);
  fill: var(--jaune);
  will-change: transform;
}
.sceau text { font: 600 11.2px/1 var(--texte); letter-spacing: .22em; }
.sceau-filet { fill: none; stroke: var(--jaune); stroke-width: .8; opacity: .45; }

/* Du zeste à la bouteille */
.recit-corps { position: relative; }
.recit-corps .ruban-fantome { inset: auto 0; height: 1000px; }
.recit-corps .ruban-fantome--nuit-a { top: 6%; }
.recit-corps .ruban-fantome--nuit-b { top: 54%; }
.chapitres {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--marge);
}
.chapitres-titre { text-align: center; margin-bottom: clamp(48px, 6vw, 90px); }
.chapitre {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.chapitre + .chapitre { margin-top: clamp(72px, 9vw, 140px); }
.chapitre:nth-child(odd) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }   /* alternance gauche / droite */
.chapitre:nth-child(odd) .chapitre-photo { order: 2; }
.wp-block-image.chapitre-photo { position: relative; }
.wp-block-image.chapitre-photo::before {       /* filet décalé, comme le contour blanc des illustrations */
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(251, 251, 250, .22);
  pointer-events: none;
}
.chapitre:nth-child(odd) .wp-block-image.chapitre-photo::before { inset: 14px 14px -14px -14px; }
.wp-block-image.chapitre-photo img { position: relative; width: 100%; object-fit: cover; }
.wp-block-image.chapitre-photo.paysage img { aspect-ratio: 3 / 2; }
.wp-block-image.chapitre-photo.portrait { width: 78%; justify-self: center; }
.wp-block-image.chapitre-photo.portrait img { aspect-ratio: 4 / 5; }
.chapitre-num { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--jaune); line-height: 25.6px; }
.chapitre-texte h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.08;
  margin: 18px 0 16px;
}
.chapitre-texte p:not(.chapitre-num) { color: rgba(251, 251, 250, .66); font-size: 16px; max-width: 27rem; }

.histoire-fin {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 160px) var(--marge);
  text-align: center;
}
.histoire-citation {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.3;
  text-wrap: balance;
  margin-bottom: 75px;          /* même écart qu'avant avec le bouton (mention retirée : 18 + 19 + 38 px) */
}

/* =========================================================
   ACCUEIL 4 · DEVENIR PARTENAIRE  (et page partenaire)
   ========================================================= */
.partenaire { overflow: hidden; padding: clamp(96px, 12vw, 170px) var(--marge) clamp(96px, 11vw, 160px); }
.partenaire > :not(.ruban-fantome) { position: relative; z-index: 1; }
/* la main de l'étiquette, en filigrane */
.partenaire::after,
.page-tete.avec-main::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -5vw;
  top: 4%;
  width: min(40vw, 520px);
  aspect-ratio: 1414 / 2000;
  background: url("assets/img/main-gravure.webp") center / contain no-repeat;
  rotate: -8deg;
  opacity: .05;
  pointer-events: none;
}
.page-tete.avec-main::after { right: -4vw; top: 12%; width: min(36vw, 460px); }
.partenaire-lead { max-width: 36rem; margin: 26px auto 36px; color: var(--gris); font-size: clamp(1.02rem, 1.25vw, 1.12rem); }
.partenaire-bloc { max-width: 1180px; margin: clamp(80px, 10vw, 140px) auto 0; }
.partenaire-sous { text-align: center; margin-bottom: clamp(36px, 4vw, 56px); }

.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--filet); }
.atout { padding: 30px clamp(18px, 2.6vw, 40px) 0 0; }
.atout + .atout { padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid var(--filet); }
.atout-num { font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 25.6px; }
.atout h3, .etape h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.12; margin: 22px 0 12px; }
.atout p:not(.atout-num), .etape p:not(.etape-num) { color: var(--gris); font-size: 15px; max-width: 22rem; }

.etapes { --ecart: clamp(24px, 4vw, 64px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ecart); }
.etapes::before {                               /* le fil qui relie les trois étapes */
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: calc((100% - 2 * var(--ecart)) / 3 - 28px);
  height: 1px;
  background: var(--filet);
}
.etape-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--encre);
  border-radius: 50%;
  background: var(--blanc);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}
.partenaire-fin { margin-top: clamp(72px, 9vw, 120px); }

/* boutons centrés */
.section-tete .wp-block-buttons,
.histoire-fin .wp-block-buttons,
.partenaire-fin .wp-block-buttons,
.page-tete .wp-block-buttons,
.encart .wp-block-buttons,
.wp-block-buttons.bande-actions,
.wp-block-buttons.appel-actions { justify-content: center; }

/* =========================================================
   PORTE D'ÂGE — première chose que voit chaque visiteur
   ========================================================= */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* « age-attente » est posé sur <html> par le script d'en-tête tant que l'âge n'est pas vérifié
   (jamais dans l'éditeur : il reste défilable) */
.age-attente:not(.age-ok) body { overflow: hidden; }
.age-ok .age { display: none; }
.age {
  position: fixed;
  inset: 0;
  z-index: 2147483647;            /* au-dessus de tout, bannière de cookies comprise : l'âge d'abord */
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 40px var(--marge);
  background: var(--blanc);
  transition: opacity .7s ease, visibility .7s;
}
.age.part { opacity: 0; visibility: hidden; }
.age-boite { position: relative; z-index: 1; width: min(100%, 31rem); text-align: center; }
.age-logo { width: clamp(132px, 19vh, 190px); height: auto; margin: 0 auto 26px; }
.age-titre {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin-top: 12px;
  text-wrap: balance;
}
.age-texte { max-width: 27rem; margin: 14px auto 0; color: var(--gris); font-size: 15px; }
.age-form { margin-top: 26px; }
.age-champs { display: flex; justify-content: center; gap: 14px; margin: 0; padding: 0; border: 0; }
.age-champs label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.age-champs input {
  width: 4.4rem;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--encre);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font: 400 1.7rem/1 var(--display);
  text-align: center;
}
.age-annee input { width: 6.6rem; }
.age-champs input::placeholder { color: rgba(35, 30, 32, .28); }
.age-champs input:focus { outline: none; border-bottom: 2px solid var(--encre); box-shadow: 0 2px 0 var(--jaune); }
.age-erreur { min-height: 1.5em; margin: 14px 0 8px; color: #9b1c1c; font-size: 14px; }
.age-mention { margin-top: 30px; font-size: 12px; color: var(--gris); }
.moins18 {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--encre);
  color: var(--blanc);
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}
.age .bouton-jaune:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* Bannière de cookies (extension SureCookie) aux couleurs et à la police du site */
html:root {
  --surecookie-banner-background-color: #FBFBFA;
  --surecookie-banner-text-color: #231E20;
  --surecookie-banner-primary-color: #231E20;
  --surecookie-banner-primary-hover-color: #040403;
  --surecookie-banner-primary-text-color: #FBFBFA;
  --surecookie-banner-secondary-color: #231E20;
  --surecookie-banner-secondary-text-color: #FBFBFA;
}
#surecookie-public-root, #surecookie-public-root * { font-family: var(--texte) !important; }
#surecookie-public-root .surecookie-btn-base { border-radius: 999px !important; }

/* =========================================================
   PAGES INTÉRIEURES — en-tête de page commun
   ========================================================= */
.page-tete {
  overflow: hidden;
  overflow: clip;                 /* la main en filigrane dépasse : jamais de défilement de côté */
  padding: calc(var(--entete) + clamp(80px, 11vw, 150px)) var(--marge) clamp(80px, 9vw, 130px);
  text-align: center;
}
.page-tete > :not(.ruban-fantome) { position: relative; z-index: 1; }
.titre-page {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-top: .35em;
  text-wrap: balance;
}
.page-lead { max-width: 38rem; margin: 26px auto 0; color: var(--gris); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.page-tete .wp-block-buttons { margin-top: 34px; }

/* Bande noire réutilisable */
.bande-sombre {
  overflow: hidden;
  background: var(--noir);
  color: var(--blanc);
  padding: clamp(96px, 11vw, 160px) var(--marge);
  text-align: center;
}
.bande-sombre > :not(.ruban-fantome) { position: relative; z-index: 1; }
.bande-sombre .surtitre { color: rgba(251, 251, 250, .58); }
.bande-texte { max-width: 34rem; margin: 26px auto 0; color: rgba(251, 251, 250, .72); }
.wp-block-buttons.bande-actions { flex-wrap: wrap; margin-top: 36px; }
.prevenir { max-width: 640px; margin: 52px auto 0; text-align: left; }

/* Appel de fin de page */
.appel { padding: clamp(96px, 11vw, 160px) var(--marge); text-align: center; }
.appel-texte { max-width: 34rem; margin: 24px auto 0; color: var(--gris); }
.wp-block-buttons.appel-actions { margin-top: 34px; }

/* =========================================================
   NOS BOUTEILLES — fiches produit
   ========================================================= */
.fiche {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--marge);
  border-top: 1px solid var(--filet);
}
.fiche-inverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
/* texte à gauche, bouteille à droite, sur la même ligne ; l'étiquette à plat dessous, sur toute la largeur */
.fiche-inverse .fiche-texte { grid-column: 1; grid-row: 1; }
.fiche-inverse .fiche-bouteille { grid-column: 2; grid-row: 1; }
.fiche-bouteille { text-align: center; }
/* l'étiquette du bloc image devient une bouteille qu'on fait tourner (script) */
.wp-block-image.bouteille-3d.est-3d img { display: none; }
.bouteille-3d .bouteille { display: block; width: 100%; height: clamp(440px, 52vw, 640px); cursor: grab; touch-action: pan-y; }
.bouteille-3d .bouteille:active { cursor: grabbing; }
.fiche-geste { margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.fiche-nom { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; margin-top: .3em; }
.fiche-format { margin-top: 10px; font-size: 13px; letter-spacing: .1em; color: var(--gris); }
.fiche-description { margin-top: 24px; max-width: 32rem; font-size: clamp(1rem, 1.2vw, 1.08rem); }
.fiche-details { margin: 30px 0 0; border-top: 1px solid var(--filet); }
.fiche-ligne { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.fiche-terme { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.fiche-valeur { color: var(--gris); font-size: 15px; }
.wp-block-buttons.fiche-actions { margin-top: 32px; }
.wp-block-image.fiche-etiquette { grid-column: 1 / -1; margin: clamp(8px, 2vw, 24px) 0 0; text-align: center; }
.wp-block-image.fiche-etiquette img { width: 100%; filter: drop-shadow(0 6px 14px rgba(35, 30, 32, .16)); }
.wp-block-image.fiche-etiquette figcaption { margin: 14px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
/* Pastille « Nouveau » (créée par le script) sur les fiches « fiche-nouveau » : un autocollant jaune,
   un peu penché, dont l'anneau de texte tourne lentement */
.fiche-nouveau .fiche-texte { position: relative; }
.pastille-nouveau {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(92px, 10vw, 140px);
  transform: translateY(-30%) rotate(-10deg);
  filter: drop-shadow(0 6px 14px rgba(35, 30, 32, .14));
  pointer-events: none;
}
.pastille-fond { fill: var(--jaune); }
.pastille-filet { fill: none; stroke: var(--encre); stroke-width: .8; opacity: .35; }
.pastille-anneau { fill: var(--encre); transform-origin: 100px 100px; animation: pastille-tourne 24s linear infinite; }
.pastille-anneau text { font: 600 11.2px/1 var(--texte); letter-spacing: .16em; }   /* trois fois le texte : l'anneau est plein */
.pastille-mot { fill: var(--encre); font: 400 27px/1 var(--display); }
@keyframes pastille-tourne { to { transform: rotate(360deg); } }
/* très petits écrans : plus la place à côté du titre → la pastille se pose à côté du bas de la bouteille */
@media (max-width: 379px) {
  .pastille-nouveau { width: 84px; transform: translateY(-165%) rotate(-10deg); }
}

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin: clamp(56px, 7vw, 90px) auto 0; text-align: left; border-top: 1px solid rgba(251, 251, 250, .2); }
.trio-item { padding: 30px clamp(18px, 2.6vw, 40px) 0 0; }
.trio-item + .trio-item { padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid rgba(251, 251, 250, .2); }
.trio-num { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--jaune); line-height: 25.6px; }
.trio-item h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); margin: 20px 0 10px; }
.trio-item p:not(.trio-num) { color: rgba(251, 251, 250, .66); font-size: 15px; }
/* Origine de nos matières premières : une ligne par ingrédient — numéro, nom et origine à gauche, texte à droite */
.matieres { max-width: 1080px; margin: clamp(56px, 7vw, 90px) auto 0; text-align: left; border-top: 1px solid rgba(251, 251, 250, .2); }
.matiere { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); padding: clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid rgba(251, 251, 250, .2); }
.matiere-num { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--jaune); }
.matiere h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.12; margin: 14px 0 10px; }
.matiere-origine { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 251, 250, .5); }
.matiere-texte { max-width: 40rem; padding-top: 2px; color: rgba(251, 251, 250, .72); font-size: clamp(1rem, 1.15vw, 1.05rem); }
@media (max-width: 900px) {
  .matiere { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================
   POINTS DE VENTE
   ========================================================= */
.encart { margin-top: clamp(56px, 7vw, 90px); padding: clamp(32px, 4vw, 52px); border: 1px solid var(--filet); text-align: center; }
.encart-texte { max-width: 32rem; margin: 16px auto 28px; }

/* La carte des points de vente, dans l'esprit d'une carte pampam : la carte remplit le cadre,
   un panneau posé dessus (recherche, filtres, liste des adresses) et une fiche pour l'adresse choisie.
   Panneau, carte et repères sont créés par le script ; les adresses restent du texte.
   Sur téléphone et petite tablette, le panneau passe sous la carte. */
.carte-section { max-width: 1320px; margin: 0 auto; padding: 0 var(--marge) clamp(64px, 8vw, 110px); }
.carte-zone { position: relative; scroll-margin-top: calc(var(--entete) + 12px); }
.carte-zone > *, .adresses > *, .adresse > * { margin-block: 0; }   /* sans les espacements automatiques de WordPress */
.picto { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* les adresses (sans script : une simple liste) */
.adresse { position: relative; padding: 16px 64px 16px 14px; border-bottom: 1px solid var(--filet); }
.adresse h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.15; }
.adresse-rue { margin-top: 4px; color: var(--gris); font-size: 14px; }
.adresse-type { margin-top: 2px; color: var(--gris); font-size: 12px; letter-spacing: .04em; }
.adresse-lien { margin-top: 8px; font-size: 13px; font-weight: 500; }
.adresse-lien a { text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid currentColor; }
.adresse-lien a:hover { opacity: .6; }

/* le cadre */
.carte-prete { height: clamp(600px, 82vh, 780px); border: 1px solid var(--filet); background: #ecebe7; overflow: hidden; }
.carte-cadre { position: absolute; inset: 0; }
.carte { position: absolute; inset: 0; z-index: 0; background: #ecebe7; }
.carte-indisponible::after { content: "La carte n'a pas pu se charger : les adresses restent dans la liste."; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 24px 420px; text-align: center; color: var(--gris); font-size: 14px; }
.carte-astuce { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px 24px 24px 420px; background: rgba(35, 30, 32, .42); color: var(--blanc); font-size: 15px; font-weight: 500; text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.carte-astuce.est-visible { opacity: 1; }

/* le panneau : un bandeau d'encre en tête (recherche, filtres), bordé d'une vague au grain pulvérisé
   comme le bandeau de l'étiquette ; la liste sur le papier, en dessous */
.carte-panneau { position: absolute; z-index: 2; top: 16px; left: 16px; bottom: 16px; width: 380px; display: flex; flex-direction: column; background: var(--blanc); box-shadow: 0 18px 48px rgba(35, 30, 32, .22), 0 2px 6px rgba(35, 30, 32, .08); }
.carte-vue-liste { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.carte-outils, .fiche-tete { position: relative; z-index: 1; flex: none; background: var(--encre); color: var(--blanc); }
.carte-outils { padding: 22px 20px 12px; }
.bandeau-vague { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: 36px; fill: var(--encre); pointer-events: none; }
.bandeau-trous { fill: var(--blanc); }
.carte-recherche { position: relative; display: flex; align-items: center; border-bottom: 1px solid rgba(251, 251, 250, .4); transition: border-color .2s, box-shadow .2s; }
.carte-recherche:focus-within { border-bottom-color: var(--jaune); box-shadow: 0 1px 0 var(--jaune); }
.carte-recherche > .picto { position: absolute; left: 0; font-size: 19px; color: var(--jaune); pointer-events: none; }
.carte-recherche input { flex: 1; min-width: 0; padding: 10px 34px 11px 30px; border: 0; border-radius: 0; background: transparent; color: var(--blanc); caret-color: var(--jaune); font: 400 16px/1.2 var(--texte); -webkit-appearance: none; appearance: none; }
.carte-recherche input::placeholder { color: rgba(251, 251, 250, .5); opacity: 1; }
.carte-recherche input:focus { outline: none; }
.carte-recherche input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.carte-effacer { position: absolute; right: -6px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--blanc); font-size: 16px; cursor: pointer; transition: color .2s; }
.carte-effacer:hover { color: var(--jaune); }
.carte-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.carte-filtre { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(251, 251, 250, .26); border-radius: 999px; background: transparent; color: var(--blanc); font: 500 13px/1 var(--texte); white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.carte-filtre span { font-size: 11px; font-weight: 600; color: rgba(251, 251, 250, .5); transition: color .2s; }
.carte-filtre:hover { border-color: rgba(251, 251, 250, .8); }
.carte-filtre[aria-pressed="true"] { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.carte-filtre[aria-pressed="true"] span { color: rgba(35, 30, 32, .6); }
.adresses-outils { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.adresses-nombre { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
.adresses-proche { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 0 0 2px; border: 0; border-bottom: 1px solid rgba(251, 251, 250, .5); background: none; color: var(--blanc); font: 500 13px/1.2 var(--texte); cursor: pointer; transition: color .2s, border-color .2s; }
.adresses-proche .picto { font-size: 16px; }
.adresses-proche:hover { color: var(--jaune); border-color: var(--jaune); }
.adresses-proche:disabled { opacity: .6; cursor: progress; }
.adresses-proche.est-actif .picto circle:last-of-type { fill: currentColor; }

/* la liste : une ligne par adresse, pictogramme du type à gauche */
.carte-prete .adresses { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 42px 0 26px; -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
.carte-prete .adresse { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; padding: 12px 70px 12px 20px; border: 0; cursor: pointer; transition: background .2s; }
.carte-prete .adresse > :not(.adresse-picto) { grid-column: 2; }
.carte-prete .adresse-type, .carte-prete .adresse-lien { display: none; }
.carte-prete .adresse h3 { font-size: 1.1rem; }
.carte-prete .adresse-rue { margin-top: 3px; font-size: 13.5px; line-height: 1.4; }
.adresse-picto { grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(246, 225, 102, .5); color: var(--encre); font-size: 18px; transition: background .2s; }
.carte-prete .adresse:hover, .carte-prete .adresse:focus-visible { background: rgba(246, 225, 102, .2); outline: none; }
.carte-prete .adresse:hover .adresse-picto, .carte-prete .adresse:focus-visible .adresse-picto, .carte-prete .adresse.est-choisie .adresse-picto { background: var(--jaune); }
.carte-prete .adresse.est-choisie { background: rgba(246, 225, 102, .32); }
.adresse-distance { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--gris); }
.adresses-vide { padding: 58px 20px 32px; text-align: center; color: var(--gris); font-size: 14px; }
.adresses-vide button { margin-top: 12px; padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--encre); font: 500 13px/1.2 var(--texte); cursor: pointer; }

/* la fiche de l'adresse choisie : même bandeau d'encre en tête */
.carte-fiche { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fiche-tete { padding: 14px 20px 18px; }
.fiche-retour { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--blanc); font: 500 13px/1 var(--texte); cursor: pointer; transition: color .2s; }
.fiche-retour .picto { font-size: 17px; transition: transform .2s; }
.fiche-retour:hover { color: var(--jaune); }
.fiche-retour:hover .picto { transform: translateX(-3px); }
.fiche-type { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
.fiche-type .picto { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--jaune); color: var(--encre); }
.fiche-nom { margin-top: 14px; color: var(--blanc); font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.2vw, 2.05rem); line-height: 1.06; text-wrap: balance; }
.fiche-nom:focus { outline: none; }
.fiche-adresse { margin-top: 10px; color: rgba(251, 251, 250, .72); font-size: 15px; line-height: 1.5; }
.fiche-distance { margin-top: 8px; color: var(--jaune); font-size: 13px; font-weight: 500; }
.fiche-corps { flex: 1; padding: 52px 20px 24px; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fiche-itineraire, .fiche-copier { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--encre); border-radius: 999px; font: 500 14px/1 var(--texte); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.fiche-itineraire { background: var(--encre); color: var(--blanc); }
.fiche-itineraire:hover { background: var(--jaune); border-color: var(--jaune); color: var(--encre); }
.fiche-copier { background: transparent; color: var(--encre); }
.fiche-copier:hover { background: var(--encre); color: var(--blanc); }
.fiche-itineraire .picto, .fiche-copier .picto { font-size: 16px; }
.fiche-proches { margin-top: 32px; }
.fiche-proches-titre { padding-bottom: 10px; border-bottom: 1px solid var(--filet); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.fiche-proches button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--filet); background: none; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.fiche-proche-nom { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.fiche-proche-lieu { flex: none; font-size: 12.5px; color: var(--gris); }
.fiche-proches button:hover .fiche-proche-nom { text-decoration: underline; text-underline-offset: 3px; }
.fiche-pied { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--filet); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--gris); }
.fiche-pied button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--filet); border-radius: 50%; background: none; color: var(--encre); font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s; }
.fiche-pied button:hover:not(:disabled) { background: var(--jaune); border-color: var(--jaune); }
.fiche-pied button:disabled { opacity: .3; cursor: default; }

/* la carte (Leaflet) : fond adouci, commandes et repères aux couleurs du site */
.carte.leaflet-container { font: 14px/1.4 var(--texte); background: #ecebe7; }
.carte .leaflet-tile-pane { filter: grayscale(1) contrast(.62) brightness(1.2); transition: filter .3s; }
.carte-ville .leaflet-tile-pane { filter: grayscale(1) contrast(.45) brightness(1.32); }   /* en ville, bâtiments gris plutôt que noirs */
.carte .leaflet-top.leaflet-right { top: 8px; right: 8px; }
.carte.leaflet-container .leaflet-bar { overflow: hidden; border: 0; border-radius: 999px; background: var(--encre); box-shadow: 0 6px 18px rgba(35, 30, 32, .28); }
.carte.leaflet-container .leaflet-bar a { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 0; background: transparent; color: var(--blanc); font: 400 18px/1 var(--texte); text-indent: 0; transition: background .2s, color .2s; }
.carte.leaflet-container .leaflet-bar a + a { box-shadow: inset 0 1px 0 rgba(251, 251, 250, .16); }
.carte.leaflet-container .leaflet-bar a:hover, .carte.leaflet-container .leaflet-bar a:focus-visible { background: var(--jaune); color: var(--encre); }
.carte.leaflet-container .leaflet-bar a.leaflet-disabled { background: transparent; color: rgba(251, 251, 250, .3); cursor: default; }
.carte.leaflet-container .leaflet-bar .picto { display: block; stroke-width: 1.8; }
.carte-ensemble { position: absolute; z-index: 1; left: 412px; right: 0; bottom: 22px; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.carte-ensemble button { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--encre); color: var(--blanc); font: 500 13.5px/1 var(--texte); letter-spacing: .02em; box-shadow: 0 6px 20px rgba(35, 30, 32, .3); cursor: pointer; pointer-events: auto; transition: background .2s, color .2s; animation: ensemble-entree .3s ease-out; }
.carte-ensemble button:hover, .carte-ensemble button:focus-visible { background: var(--jaune); color: var(--encre); }
.carte-ensemble .picto { font-size: 17px; }
@keyframes ensemble-entree { from { opacity: 0; transform: translateY(10px); } }
.carte .leaflet-control-attribution { font-size: 10px; background: rgba(251, 251, 250, .85); }
.repere-carte { position: relative; }
.repere-pastille { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--encre); border-radius: 50%; background: var(--jaune); color: var(--encre); font-size: 16px; box-shadow: 0 3px 8px rgba(35, 30, 32, .3); transition: transform .2s, background .2s, color .2s; }
.repere-pastille .picto { stroke-width: 2; }
.repere-carte:hover .repere-pastille, .repere-carte.survol .repere-pastille { transform: scale(1.15); }
.repere-carte.actif .repere-pastille { background: var(--encre); border-color: var(--jaune); color: var(--jaune); transform: scale(1.25); }
.repere-nom { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); white-space: nowrap; color: var(--encre); font: 600 12px/1.2 var(--texte); text-shadow: 0 0 2px var(--blanc), 0 0 3px var(--blanc), 0 0 5px var(--blanc), 0 0 8px var(--blanc); pointer-events: none; opacity: 0; transition: opacity .2s; }
.carte-noms .repere-nom, .repere-carte:hover .repere-nom, .repere-carte.survol .repere-nom, .repere-carte.actif .repere-nom { opacity: 1; }
.repere-carte.actif .repere-nom { left: 42px; font-size: 13px; }
.groupe-carte span { display: grid; place-items: center; width: 36px; height: 36px; margin: 2px; border: 2px solid var(--jaune); border-radius: 50%; background: var(--encre); color: var(--jaune); font: 600 13px/1 var(--texte); box-shadow: 0 0 0 5px rgba(35, 30, 32, .14), 0 3px 10px rgba(35, 30, 32, .3); transition: transform .2s; }
.groupe-carte:hover span, .groupe-carte.survol span { transform: scale(1.12); }
.ici-carte span { display: block; width: 16px; height: 16px; margin: 3px; border: 3px solid var(--blanc); border-radius: 50%; background: var(--encre); box-shadow: 0 0 0 0 rgba(35, 30, 32, .35); animation: ici-pouls 2s ease-out infinite; }
@keyframes ici-pouls { to { box-shadow: 0 0 0 16px rgba(35, 30, 32, 0); } }
/* la localité cherchée : point blanc cerclé d'encre, son nom dans une étiquette */
.lieu-carte { position: relative; }
.lieu-point { display: block; width: 18px; height: 18px; border: 4px solid var(--encre); border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 4px rgba(251, 251, 250, .75), 0 2px 8px rgba(35, 30, 32, .35); }
.lieu-nom { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 999px; background: var(--encre); color: var(--blanc); font: 500 12px/1 var(--texte); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 2px 8px rgba(35, 30, 32, .3); }

@media (max-width: 900px) {
  .carte-prete { height: auto; border: 0; background: none; overflow: visible; }
  .carte-cadre { position: relative; inset: auto; height: min(56vh, 440px); border: 1px solid var(--filet); }
  .carte-indisponible::after, .carte-astuce { padding-left: 24px; }
  .carte-ensemble { left: 0; bottom: 16px; }
  .carte-panneau { position: static; width: auto; box-shadow: none; }
  .carte-outils { padding: 20px 18px 12px; }
  .carte-filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; }
  .carte-filtres::-webkit-scrollbar { display: none; }
  .carte-prete .adresses { flex: none; max-height: 340px; overscroll-behavior: auto; padding: 40px 0 0; }   /* 3 adresses, le reste défile (hauteur exacte : app.js) */
  .carte-prete .adresse { padding: 13px 64px 13px 6px; border-bottom: 1px solid var(--filet); }
  .adresse-distance { right: 6px; }
  .carte-fiche { overflow: visible; }
  .fiche-tete { padding: 14px 18px 18px; }
  .fiche-corps { padding: 48px 0 22px; }
  .fiche-pied { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ici-carte span, .carte-ensemble button, .est-devoile { animation: none; }
  .choix-carte.est-cliquable:hover, .choix-lien:hover { transform: none; }
}

/* =========================================================
   DEVENIR PARTENAIRE & COMMANDE
   ========================================================= */
.partenaire-page, .attente-commande { max-width: 1180px; margin: 0 auto; padding: 0 var(--marge) clamp(96px, 11vw, 160px); }
.pour-qui { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pour-qui-carte { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--filet); background: rgba(251, 251, 250, .7); }
.pour-qui-carte h2, .pour-qui-carte h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.12; }
.pour-qui-carte p:not(.lien):not(.lien-insta) { margin: 12px 0 18px; color: var(--gris); font-size: 15px; }

/* Les deux chemins, sous le titre : établissements / complices */
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1000px; margin: clamp(52px, 6vw, 76px) auto 0; text-align: left; }
.choix-carte { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.4vw, 48px); border: 1px solid var(--filet); background: rgba(251, 251, 250, .82); }
.choix-carte h2, .choix-carte h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.1; margin-top: 14px; max-width: 15ch; text-wrap: balance; }
.choix-carte > p:not(.surtitre):not(.choix-taux) { margin: 14px 0 0; max-width: 25rem; color: var(--gris); font-size: 15px; }
.choix-complice { border-color: var(--encre); background: var(--encre); color: var(--blanc); }
.choix-complice .surtitre { color: var(--jaune); }
.choix-complice > p:not(.surtitre):not(.choix-taux) { color: rgba(251, 251, 250, .72); }
/* toute la carte se clique : sur la page Devenir partenaire (app.js, flèche ↓ : la partie s'ouvre dessous)
   et sur l'accueil (.choix-lien : le titre est un lien étendu à toute la carte, flèche → vers la page) */
.choix-carte.est-cliquable, .choix-lien { cursor: pointer; padding-bottom: calc(clamp(28px, 3.4vw, 48px) + 76px); transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease; }
.choix-carte.est-cliquable:hover, .choix-lien:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(35, 30, 32, .5); }
.choix-carte.est-cliquable:focus-visible, .choix-lien:focus-within { outline: 2px solid var(--jaune-fonce); outline-offset: 4px; }
.choix-carte.est-cliquable::before, .choix-lien::before,
.choix-carte.est-cliquable::after, .choix-lien::after {
  content: "";
  position: absolute;
  left: clamp(28px, 3.4vw, 48px);
  bottom: clamp(28px, 3.4vw, 48px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color .3s ease, border-color .3s ease, translate .3s ease;
}
.choix-carte.est-cliquable::before, .choix-lien::before { border: 1px solid var(--encre); }
.choix-carte.est-cliquable::after, .choix-lien::after { background: var(--encre); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat; }
.choix-complice.est-cliquable::before, .choix-complice.choix-lien::before { border-color: var(--jaune); }
.choix-complice.est-cliquable::after, .choix-complice.choix-lien::after { background: var(--jaune); }
.choix-carte.est-cliquable:hover::before, .choix-lien:hover::before { border-color: var(--jaune); background: var(--jaune); }
.choix-carte.est-cliquable:hover::after, .choix-lien:hover::after { background: var(--encre); }
.choix-carte.est-cliquable:hover::before, .choix-carte.est-cliquable:hover::after { translate: 0 3px; }
.choix-lien::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.choix-lien:hover::before, .choix-lien:hover::after { translate: 3px 0; }
.choix-accueil { margin-top: clamp(16px, 2.6vw, 36px); }
.choix-lien h3 a { color: inherit; text-decoration: none; }
.choix-lien h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }   /* le lien couvre toute la carte */
.choix-lien h3 a:focus-visible { outline: none; }
/* la pastille « 10 % », penchée comme la pastille « Nouveau » des bouteilles */
.choix-taux {
  position: absolute;
  top: clamp(-30px, -2.4vw, -22px);
  right: clamp(16px, 2.4vw, 32px);
  display: grid;
  place-items: center;
  width: clamp(76px, 7.4vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--encre);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1;
  white-space: nowrap;
  rotate: -10deg;
  box-shadow: 0 0 0 1px var(--encre), 0 0 0 5px var(--jaune), 0 0 0 6px var(--encre);
}

/* Au départ, seuls les deux choix ; la partie choisie se dévoile (app.js), l'autre carte s'efface un peu */
.choix.a-choisi .choix-carte:not(.est-choisi) { opacity: .5; }
.choix.a-choisi .choix-carte:not(.est-choisi):hover { opacity: 1; }
.est-devoile { animation: parcours-entree .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes parcours-entree { from { opacity: 0; transform: translateY(28px); } }

/* Chaque partie commence par son propre titre ; les liens « Devenir … » s'y arrêtent sous l'en-tête */
.partenaire-tete { margin-bottom: clamp(64px, 8vw, 110px); scroll-margin-top: calc(var(--entete) + 48px); }
.partenaire-tete .partenaire-lead { margin-bottom: 0; }
.bande-sombre:not([hidden]) + .partenaire-page.complices { padding-top: clamp(96px, 11vw, 160px); }   /* sans script, les deux parties se suivent */
.etape p a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.etape p a:hover { text-decoration-color: var(--jaune-fonce); }

/* Les documents à télécharger par les complices, sous les conditions : toute la ligne est le lien */
.documents-bloc { margin-top: clamp(48px, 6vw, 72px); }
.documents-intro { margin-top: 12px; color: var(--gris); font-size: 15px; }
.documents { margin-top: 22px; border-top: 1px solid var(--filet); }
.document { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: clamp(20px, 2.4vw, 26px) 0; border-bottom: 1px solid var(--filet); }
.document:focus-within { outline: 2px solid var(--jaune-fonce); outline-offset: 4px; }
.document h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; }
.document .wp-block-file.document-lien { font-size: 13px; }
.document .document-lien a.wp-block-file__button { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: var(--encre); font-size: 13px; font-weight: 500; text-decoration: none; transition: opacity .2s; }
.document:hover .document-lien a.wp-block-file__button { opacity: .6; }
.document .document-lien a.wp-block-file__button::before { content: ""; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.document .document-lien a.wp-block-file__button::after { content: ""; position: absolute; inset: 0; }   /* le lien couvre toute la ligne */
.document .document-lien a.wp-block-file__button:focus-visible { outline: none; }

/* Les conditions des complices : la pastille 10 % à gauche, les règles à droite */
.conditions-bloc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.conditions-chiffre {
  position: sticky;
  top: calc(var(--entete) + 48px);
  justify-self: center;
  display: grid;
  place-content: center;
  width: clamp(210px, 22vw, 290px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--encre);
  text-align: center;
  rotate: -8deg;
  box-shadow: 0 0 0 1px var(--encre), 0 0 0 10px var(--jaune), 0 0 0 11px var(--encre);
}
.conditions-taux { font-family: var(--display); font-size: clamp(3.6rem, 6vw, 5.4rem); line-height: 1; white-space: nowrap; }
.conditions-taux-texte { max-width: 11em; margin: 10px auto 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.conditions-texte > .surtitre { margin-bottom: 22px; }
.conditions { border-top: 1px solid var(--filet); }
.condition { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(14px, 3vw, 40px); padding: clamp(22px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--filet); }
.condition h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; }
.condition p { padding-top: 3px; color: var(--gris); font-size: 15px; }

/* L'astuce sous les conditions : se présenter par son nom, pour que l'établissement puisse le confirmer */
.astuce {
  --retrait: clamp(22px, 2.6vw, 34px);
  position: relative;
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(22px, 2.4vw, 30px) var(--retrait) clamp(22px, 2.4vw, 30px) calc(var(--retrait) + 56px);
  background: var(--encre);
  color: var(--blanc);
}
.astuce::before {                               /* une ampoule, dans une pastille jaune */
  content: "";
  position: absolute;
  left: var(--retrait);
  top: clamp(18px, 2vw, 26px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231E20' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 18h5M10.5 21h3M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2v.2h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.astuce .surtitre { color: var(--jaune); }
.astuce p:not(.surtitre) { margin-top: 8px; color: rgba(251, 251, 250, .78); font-size: 15px; }

/* =========================================================
   POLITIQUE DE CONFIDENTIALITÉ
   ========================================================= */
.texte-legal { max-width: calc(46rem + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge) clamp(96px, 11vw, 160px); }
.legal-bloc { padding: clamp(24px, 3vw, 34px) 0; border-top: 1px solid var(--filet); }
.legal-bloc h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.15; }
.legal-bloc p { margin-top: 10px; color: var(--gris); }
.legal-bloc a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-date { padding-top: 24px; border-top: 1px solid var(--filet); color: var(--gris); font-size: 13px; }
.pied-bas a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* =========================================================
   FORMULAIRES — Contact Form 7, aux classes de la maquette
   ========================================================= */
.formulaire-cadre { max-width: 860px; margin: 0 auto; text-align: left; }
.formulaire-tete { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.formulaire-tete p:last-child { margin-top: 18px; color: rgba(251, 251, 250, .66); }
.wpcf7 form.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.formulaire .hidden-fields-container { display: none; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ-large, .formulaire .wpcf7-response-output { grid-column: 1 / -1; }
.formulaire .wpcf7-form-control-wrap { display: block; }
.champ label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 251, 250, .62); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(251, 251, 250, .35);
  border-radius: 0;
  background: transparent;
  color: var(--blanc);
  font: 400 16px/1.4 var(--texte);
}
.champ select { appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.champ select option { color: var(--encre); }
.champ textarea { display: block; resize: vertical; min-height: 7.5rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--jaune); box-shadow: 0 1px 0 var(--jaune); }
.champ-accord { font-size: 14px; color: rgba(251, 251, 250, .72); }
.champ-accord .wpcf7-form-control, .champ-accord .wpcf7-list-item { display: block; margin: 0; }
.champ-accord label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.champ-accord input { margin-top: 3px; accent-color: var(--jaune); width: 16px; height: 16px; flex: none; }
.formulaire .wpcf7-not-valid-tip { margin-top: 6px; color: #ffb4a8; font-size: 13px; }
.formulaire .wpcf7-not-valid { border-bottom-color: #ffb4a8; }
.formulaire .wpcf7-spinner { margin: 0 0 0 14px; vertical-align: middle; }
.formulaire .champ-envoi { order: 2; }
.wpcf7 form.formulaire .wpcf7-response-output { display: block; order: 1; min-height: 1.4em; margin: 0; padding: 0; border: 0; color: #ffb4a8; font-size: 14px; }
.wpcf7 form.formulaire.sent .wpcf7-response-output { visibility: hidden; }   /* le message « Merci » de la page prend le relais */

/* après l'envoi : le formulaire laisse place au message de remerciement */
.formulaire-merci { container-type: inline-size; display: none; text-align: center; padding: clamp(32px, 4vw, 52px); border: 1px solid rgba(251, 251, 250, .2); }
.formulaire-zone.est-envoye .wpcf7 { display: none; }
.formulaire-zone.est-envoye .formulaire-merci { display: block; }
.formulaire-merci:focus { outline: none; }   /* reçoit le focus pour les lecteurs d'écran, sans cadre visible */
/* « Votre message est bien envoyé. » / « Votre demande est bien envoyée. » tiennent toujours sur une ligne :
   la taille suit la largeur du cadre (cqi) ; la phrase la plus longue mesure ~15,3 fois la taille de la police */
.formulaire-merci-titre { font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 12px 0 14px; }
.contact-formulaire .formulaire-merci-titre,
.formulaire-cadre .formulaire-merci-titre { font-size: min(clamp(1.7rem, 2.8vw, 2.4rem), 6.4cqi); white-space: nowrap; }
.formulaire-merci p:last-child { color: rgba(251, 251, 250, .72); }

/* version claire (page contact) */
.formulaire-clair .champ label { color: var(--gris); }
.formulaire-clair .champ input, .formulaire-clair .champ select, .formulaire-clair .champ textarea { color: var(--encre); border-bottom-color: rgba(35, 30, 32, .3); }
.formulaire-clair .champ input:focus, .formulaire-clair .champ select:focus, .formulaire-clair .champ textarea:focus { border-bottom-color: var(--encre); box-shadow: 0 1px 0 var(--encre); }
.formulaire-clair .champ-accord { color: var(--gris); }
.formulaire-clair .champ-accord input { accent-color: var(--encre); }
.formulaire-clair .wpcf7-not-valid-tip { color: #9b1c1c; }
.formulaire-clair .wpcf7-not-valid { border-bottom-color: #9b1c1c; }
.wpcf7 form.formulaire-clair .wpcf7-response-output { color: #9b1c1c; }
.contact-formulaire .formulaire-merci { border-color: var(--filet); }
.contact-formulaire .formulaire-merci p:last-child { color: var(--gris); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 110px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--marge) clamp(96px, 11vw, 160px);
}
.contact-infos { display: grid; gap: 28px; align-content: start; padding-top: 28px; border-top: 1px solid var(--filet); font-size: 16px; }
.contact-infos .pied-label { color: var(--gris); }
.contact-infos a { text-decoration: none; }
.contact-infos a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-formulaire { padding-top: 28px; border-top: 1px solid var(--filet); }

/* Instagram : le logo (masque, il prend la couleur du texte), lien vers le compte */
.lien-insta a {
  display: inline-block;
  overflow: hidden;            /* ligne de base en bas de l'icône, comme le SVG de la maquette */
  width: 30px;
  height: 30px;
  font-size: 0;
  background: currentColor;
  -webkit-mask: url("assets/img/instagram.svg") center / contain no-repeat;
  mask: url("assets/img/instagram.svg") center / contain no-repeat;
  transition: opacity .2s;
}
.lien-insta a:hover { opacity: .65; }

/* =========================================================
   PIED — le noir de la capsule
   ========================================================= */
.pied { background: var(--noir); color: var(--blanc); padding: clamp(72px, 9vw, 120px) var(--marge) 32px; border-top: 1px solid rgba(251, 251, 250, .1); }
.pied-marque {                                 /* le nom de l'étiquette, vectoriel : net à toute taille */
  width: min(520px, 80vw);
  aspect-ratio: 165.9 / 52.3;
  margin: 0 auto;
  background: url("assets/img/logo-nappezest-pied.svg") center / contain no-repeat;
  font-size: 0;
  color: transparent;
}
.pied-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: clamp(56px, 7vw, 90px) auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(251, 251, 250, .16);
  font-size: 15px;
}
.pied-grille a { text-decoration: none; }
.pied-grille a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 251, 250, .5); margin-bottom: 8px; }
.pied-bas {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: clamp(56px, 7vw, 90px) auto 0;
  font-size: 12px;
  color: rgba(251, 251, 250, .55);
}
.pied-alcool::before {
  content: "-18";
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--noir);
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .wp-block-navigation.entete-nav .wp-block-navigation-item__content { font-size: 13px; }
}
@media (max-width: 900px) {
  :root { --entete: 60px; }
  .entete { gap: 16px; justify-content: space-between; }
  .entete-logo a { width: 110px; height: 28px; }
  .entete-logo a::after { display: none; }   /* pas de survol au doigt */

  /* menu : le bouton « Menu » et le panneau plein écran, jusqu'à 900 px */
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-open,
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-close {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 9px 16px;
    font: 500 13px/1 var(--texte);
    color: inherit;
  }
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-open svg,
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-close svg { display: none; }
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-open::after { content: "Menu"; }
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container-close::after { content: "Fermer"; }
  .wp-block-navigation.entete-nav .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--blanc) !important;      /* le CSS du bloc pose sinon un blanc sur blanc */
    color: var(--encre) !important;
    padding: 18px var(--marge) 32px;
  }
  .wp-block-navigation.entete-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; padding-top: 56px; }
  .wp-block-navigation.entete-nav .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
  .wp-block-navigation.entete-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
  .wp-block-navigation.entete-nav .is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.7rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--filet);
    background: none;
  }

  .wp-block-image.hero-logo { width: calc(100vw - 2 * var(--marge)); top: calc(var(--entete) + 18px); }
  .intro { left: var(--marge); right: var(--marge); bottom: auto; top: calc(var(--entete) + 30px + (100vw - 2 * var(--marge)) * .315); width: auto; text-align: center; }
  .intro .titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .intro-droite { display: none; }

  /* repères : seuls le numéro et le filet sur l'étiquette, le texte est dans la liste dessous */
  .repere { width: auto; font-size: 0; }
  .repere::before, .repere.repere-haut::after { height: 16px; }
  .reperes-liste {
    position: absolute;
    z-index: 3;
    left: var(--marge); right: var(--marge);
    bottom: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--gris);
    opacity: 0;
    transition: opacity .6s;
  }
  .reperes-liste.est-visible { opacity: 1; }
  .reperes-liste p::first-line { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--encre); }
  .reperes-liste strong { display: block; color: var(--encre); font-weight: 600; }

  .wp-block-image.recit-photo img { height: 64vh; object-position: 72% 50%; }
  .recit-ouverture-texte { position: relative; top: auto; left: auto; translate: none; max-width: none; margin-top: -14vh; padding: 0 var(--marge); }
  .sceau { width: 96px; top: 28px; right: 16px; }
  .ingredients { grid-template-columns: 1fr; width: 100%; border-bottom: 0; }
  .ingredients li, .ingredients li:nth-child(n+5) { grid-column: auto; padding: 14px 0; border-top: 0; border-bottom: 1px solid rgba(251, 251, 250, .2); }
  .ingredients li + li { border-left: 0; }

  .chapitre, .chapitre:nth-child(odd) { grid-template-columns: 1fr; gap: 40px; }
  .chapitre:nth-child(odd) .chapitre-photo { order: 0; }
  .wp-block-image.chapitre-photo.portrait { width: 86%; }

  .fiche, .fiche-inverse { grid-template-columns: 1fr; gap: 28px; }
  .fiche-inverse .fiche-texte, .fiche-inverse .fiche-bouteille { grid-column: auto; grid-row: auto; }
  .bouteille-3d .bouteille { height: 460px; }
  .fiche-ligne { grid-template-columns: 1fr; gap: 4px; }
  .trio, .pour-qui { grid-template-columns: 1fr; }
  .trio { border-top: 0; }
  .trio-item, .trio-item + .trio-item { padding: 26px 0 30px; border-left: 0; border-top: 1px solid rgba(251, 251, 250, .2); }
  .wpcf7 form.formulaire { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .page-tete.avec-main::after { width: 70vw; right: -24vw; }
  .partenaire::after { width: 80vw; right: -25vw; }
  .age-champs { gap: 10px; }
  .age-champs input { width: 3.8rem; font-size: 1.5rem; }
  .age-annee input { width: 5.6rem; }
  .atouts, .etapes { grid-template-columns: 1fr; }
  .atouts { border-top: 0; }
  .atout, .atout + .atout { padding: 26px 0 30px; border-left: 0; border-top: 1px solid var(--filet); }
  .etapes { gap: 40px; }
  .etapes::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto; }
  .etape { padding-left: 80px; position: relative; }
  .etape .etape-num { position: absolute; left: 0; top: 0; }
  .etape h3 { margin-top: 10px; }
  .choix { grid-template-columns: 1fr; gap: 40px; }
  .conditions-bloc { grid-template-columns: 1fr; gap: 56px; }
  .conditions-chiffre { position: static; width: 200px; }
  .condition { grid-template-columns: 1fr; gap: 8px; }

  .pied-grille { grid-template-columns: 1fr; }
  .pied-bas { flex-direction: column; }
}
@media (min-width: 901px) {
  .reperes-liste { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .indice::after { animation: none; }
  .pastille-anneau { animation: none; }
}
