/* ==========================================================================
   TERRAÏNE — site public
   Direction A3 : fond beige clair, titres vert olive.
   Couleurs échantillonnées dans les planches 4K.
   ========================================================================== */

:root {
  --beige:        #f6eada;   /* fond de page */
  --beige-2:      #efe0cb;   /* tuiles, blocs creux */
  --beige-3:      #e7d5bc;   /* survols, filets */
  --sable:        #dcc4a4;

  --olive:        #585b26;   /* titres, footer */
  --olive-fonce:  #43461b;
  --olive-clair:  #7c8140;
  --olive-pale:   #e3e4cf;

  --encre:        #3a3226;   /* corps de texte */
  --encre-2:      #6b6153;
  --creme:        #fbf6ee;   /* texte sur olive */

  --wrap: 1240px;
  /* hauteur fixe de la bande de livraison : l'en-tête flotte au-dessus du hero
     et s'en sert pour venir se poser juste dessous */
  --h-bandeau: 38px;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --ombre:    0 8px 30px rgba(58, 50, 38, .10);
  --ombre-lg: 0 20px 60px rgba(58, 50, 38, .18);

  --t-doux: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* ==================================================== PASSAGE DE PAGE ===== */
/* Chrome enchaîne les deux documents en un fondu, sans une ligne de JS et sans
   retarder la navigation. Ailleurs, la page entrante monte doucement — le repli
   est dans un @supports pour que les deux ne se superposent jamais. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageSortie .22s var(--t-doux) both; }
::view-transition-new(root) { animation: pageEntree .42s var(--t-doux) both; }

@supports not (view-transition-name: none) {
  body { animation: pageEntree .42s var(--t-doux) both; }
}

@keyframes pageEntree {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pageSortie {
  from { opacity: 1; }
  to   { opacity: 0; }
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Les attributs width/height des <img> réservent la place avant chargement,
   mais ils s'appliquent aussi comme hauteur CSS : sans ce height auto, une
   image mise en width:100% garde la hauteur de l'attribut et s'étire. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.num { font-variant-numeric: tabular-nums; }

/* titres de section : serif olive en capitales, comme sur les planches */
.titre-section {
  font-size: clamp(34px, 4.4vw, 58px);
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* ============================================================ ENTÊTE ===== */
/* bande de livraison, tout en haut, dans le flux */
.bandeau {
  height: var(--h-bandeau);
  display: grid; place-items: center;
  background: var(--olive); color: var(--creme);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding-inline: 16px; text-align: center;
}

.entete {
  position: absolute; inset: var(--h-bandeau) 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px 46px;
  color: #fff;
  transition: background .35s var(--t-doux), padding .35s var(--t-doux),
              color .35s var(--t-doux), box-shadow .35s var(--t-doux);
}
.entete--fixe { position: sticky; top: 0; inset-block-start: 0; color: var(--olive); background: var(--beige); }
/* une fois collée, la bande a défilé : l'en-tête reprend le haut de l'écran */
.entete.is-collee {
  position: fixed; top: 0; background: var(--beige); color: var(--olive);
  padding: 14px 46px; box-shadow: 0 1px 0 rgba(88, 91, 38, .14);
}
.entete__nav { display: flex; gap: 30px; }
.entete__nav a {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  position: relative; padding-bottom: 3px;
}
.entete__nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .3s var(--t-doux);
}
.entete__nav a:hover::after, .entete__nav a.is-actif::after { width: 100%; }
.marque {
  font-family: var(--serif); font-size: 27px; font-weight: 500;
  letter-spacing: .18em; text-indent: .18em; white-space: nowrap;
}
.entete__outils { display: flex; justify-content: flex-end; gap: 20px; align-items: center; }
.entete__outils svg { width: 21px; height: 21px; }
.panier-btn { position: relative; }
.panier-compte {
  position: absolute; top: -7px; right: -9px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 99px;
  background: var(--olive); color: var(--creme);
  font-size: 10.5px; font-weight: 500;
}
.entete.is-collee .panier-compte, .entete--fixe .panier-compte { background: var(--olive); color: var(--creme); }
.burger { display: none; }

/* ============================================================= HERO ====== */
/* Le bloc reprend exactement la proportion de la photo large : le hero gagne en
   hauteur — 804 px sur un écran de 1440 au lieu de 738 — sans que l'image soit
   ni étirée ni rognée, puisque le cadre et la photo ont le même rapport.
   Le plancher couvre les fenêtres très larges et très basses. */
/* La hauteur suit la proportion de la photo (2600 / 1451 = 1,7919) mais se
   calcule à partir de la largeur d'écran plutôt que par `aspect-ratio` : avec
   `aspect-ratio`, plafonner la hauteur rétrécit aussi la largeur et le hero
   cesse de couvrir la page. Le plancher tient les fenêtres basses, le plafond
   évite qu'un écran de 2 560 se retrouve avec 1 430 px de hero ; au-delà de
   ~1 540 px de large, l'image reprend un léger recadrage haut-bas. */
.hero {
  position: relative;
  height: clamp(520px, calc(100vw / 1.7919), 860px);
  display: grid; place-items: center; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60,40,25,.28) 0%, rgba(60,40,25,.05) 45%, rgba(60,40,25,.22) 100%);
}
.hero__contenu { position: relative; z-index: 2; text-align: center; color: #fff; padding: 120px 24px 70px; }
.hero__titre {
  font-size: clamp(38px, 6vw, 82px);
  text-transform: uppercase;
  line-height: 1.06;
  text-shadow: 0 3px 26px rgba(50, 34, 20, .38);
}
.hero__cta { margin-top: 34px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__rond {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  display: grid; place-items: center;
  transition: background .3s var(--t-doux), transform .3s var(--t-doux);
}
.hero__cta:hover .hero__rond { background: rgba(255,255,255,.16); transform: translateY(3px); }
.hero__rond svg { width: 20px; height: 20px; }
.hero__cta span { font-size: 15px; letter-spacing: .08em; }

/* bannière des pages intérieures */
.banniere {
  position: relative;
  min-height: clamp(300px, 46vh, 460px);
  display: grid; place-items: center; overflow: hidden;
}
.banniere__media { position: absolute; inset: 0; }
.banniere__media img { width: 100%; height: 100%; object-fit: cover; }
.banniere__media::after {
  content: ''; position: absolute; inset: 0; background: rgba(60, 40, 25, .16);
}
.banniere h1 {
  position: relative; z-index: 2; color: #fff; padding: 110px 24px 46px;
  font-size: clamp(34px, 5.6vw, 74px); text-transform: uppercase;
  text-shadow: 0 3px 26px rgba(50, 34, 20, .35);
}

/* ============================================================ BOUTONS ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px;
  background: var(--olive); color: var(--creme);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--olive);
  transition: background .28s var(--t-doux), color .28s var(--t-doux),
              transform .2s var(--t-doux), box-shadow .28s var(--t-doux);
}
.btn:hover { background: var(--olive-fonce); border-color: var(--olive-fonce); transform: translateY(-2px); box-shadow: var(--ombre); }
.btn:active { transform: translateY(0); }
.btn--ligne { background: none; color: var(--olive); }
.btn--ligne:hover { background: var(--olive); color: var(--creme); }
.btn--bloc { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============================================================ SECTIONS === */
.section { padding: 86px 0; }
.section--serre { padding: 58px 0; }

/* cartes produit de l'accueil : tuiles décalées, comme sur la planche.
   Le décalage passe par une marge, pas par transform : la révélation au scroll
   et le survol s'approprient transform et effaceraient le décalage voulu. */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px;
        align-items: start; }
.trio > *:nth-child(2) { margin-top: 34px; }

.carte {
  display: block; background: var(--beige-2); overflow: hidden;
  transition: transform .45s var(--t-doux), box-shadow .45s var(--t-doux);
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-lg); }
/* même proportion que les packshots (1400 × 1045) : la vignette ne recadre rien */
.carte__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sable); }
.carte__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--t-doux); }
.carte:hover .carte__media img { transform: scale(1.05); }
.carte__corps { padding: 22px 24px 26px; text-align: center; }
.carte__nom {
  font-family: var(--serif); font-size: 25px; color: var(--olive);
  text-transform: uppercase; letter-spacing: .03em;
}
.carte__accroche { margin: 5px 0 0; font-size: 14.5px; color: var(--encre-2); }
.carte__prix { margin-top: 12px; font-size: 17px; letter-spacing: .02em; }
.carte__prix del { color: var(--encre-2); margin-left: 8px; font-size: .86em; }
.carte__promo {
  position: absolute; top: 14px; right: 14px;
  background: var(--olive); color: var(--creme);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px;
}
.carte { position: relative; }
.carte__rupture {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(246, 234, 218, .78); color: var(--olive);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}

/* --------------------------------------------------------- deux colonnes - */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.duo__texte p { margin: 0 0 18px; max-width: 46ch; }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }
.colonnes { columns: 2; column-gap: 46px; }
.colonnes p { margin: 0 0 18px; break-inside: avoid; }

/* ------------------------------------------------------------- frise ----- */
/* Motif berbère redessiné en SVG : une période bâtie par symétrie, donc un
   raccord invisible en repeat-x, net à toutes les tailles d'écran. */
/* Le pixel de recouvrement supprime le filet clair qui apparaissait au raccord
   avec la bande olive : les deux blocs se chevauchent d'un pixel, donc aucun
   arrondi de rendu ne peut laisser passer le fond de page. */
.frise {
  height: 62px; margin-top: -1px;
  background: url('../img/frise.svg') repeat-x center / auto 100%;
}
@media (max-width: 720px) { .frise { height: 46px; } }

/* ------------------------------------------------------------ citation --- */
.citation {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px);
  color: var(--olive); text-align: center; max-width: 22ch;
  margin: 0 auto; line-height: 1.28;
}

/* ---------------------------------------------------------- engagements -- */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; }
.engagement {
  background: var(--beige-2); padding: 34px 24px 30px; text-align: center;
  transition: background .3s var(--t-doux), transform .3s var(--t-doux);
}
.engagement:hover { background: var(--beige-3); transform: translateY(-4px); }
.engagement svg { width: 44px; height: 44px; color: var(--olive); margin: 0 auto 16px; }
.engagement p { margin: 0; font-size: 14px; letter-spacing: .04em; line-height: 1.5; }

/* ------------------------------------------------------ bande olive ------ */
.bande-olive { background: var(--olive); color: var(--creme); padding: 44px 0; }
.bande-olive__titre {
  font-family: var(--serif); font-size: 30px; text-transform: uppercase;
  text-align: center; letter-spacing: .04em; margin-bottom: 26px;
}
.etapes { display: flex; justify-content: center; gap: 84px; flex-wrap: wrap; }
.etape { display: flex; align-items: center; gap: 13px; }
.etape svg { width: 32px; height: 32px; }
.etape b { font-weight: 400; opacity: .7; }
.ruban {
  background: var(--olive); color: var(--creme); text-align: center;
  padding: 15px 20px; font-size: 14px; letter-spacing: .1em;
}

/* ============================================================ BOUTIQUE === */
.filtres {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 34px 0 6px;
}
.filtre {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-2); padding-bottom: 4px; position: relative;
  transition: color .25s var(--t-doux);
}
.filtre sup { font-size: .74em; margin-left: 3px; }
.filtre::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--olive); transition: width .3s var(--t-doux);
}
.filtre:hover { color: var(--olive); }
.filtre.is-actif { color: var(--olive); }
.filtre.is-actif::after { width: 100%; }
.filtres__tri { margin-left: auto; }

.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.grille--quatre { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.charger-plus { display: grid; place-items: center; margin-top: 54px; }

/* ============================================================= FICHE ===== */
.fiche { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; padding-top: 34px; }
.fiche__visuel { background: var(--sable); overflow: hidden; }
.fiche__visuel img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fiche__vignettes { display: flex; gap: 12px; margin-top: 12px; }
.fiche__vignettes img {
  width: 92px; height: 92px; object-fit: cover; cursor: pointer;
  border: 1px solid transparent; transition: border-color .25s var(--t-doux), opacity .25s var(--t-doux);
  opacity: .72;
}
.fiche__vignettes img:hover { opacity: 1; }
.fiche__vignettes img.is-actif { border-color: var(--olive); opacity: 1; }
/* Fiche produit : tout ce qui suit la fiche reste hors du flux tant que la base
   n'a pas répondu, sinon la bande « mode d'infusion » se dessine une fraction de
   seconde sous l'en-tête avant d'être repoussée. */
/* pas de contre-règle : quand la classe arrive, le sélecteur cesse de
   s'appliquer et chaque section retrouve son propre display */
body:not(.est-pret) .apres { display: none; }

/* Cartes d'attente : mêmes classes et même typographie que les vraies, donc
   exactement la même hauteur. Rien ne bouge quand les produits arrivent. */
.carte--attente { pointer-events: none; }
.carte--attente .carte__media { background: var(--beige-3); }
.carte--attente .carte__nom,
.carte--attente .carte__accroche,
.carte--attente .carte__prix {
  background: var(--beige-3); border-radius: 2px; color: transparent;
}
.carte--attente .carte__nom      { width: 52%; margin-inline: auto; }
.carte--attente .carte__accroche { width: 76%; margin-inline: auto; }
.carte--attente .carte__prix     { width: 34%; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .carte--attente .carte__media,
  .carte--attente .carte__nom,
  .carte--attente .carte__accroche,
  .carte--attente .carte__prix { animation: respire 1.6s ease-in-out infinite; }
}

/* blocs d'attente de la fiche produit, remplacés dès que la base a répondu */
.sq { background: var(--beige-2); }
.sq--visuel { aspect-ratio: 1 / 1; }
.sq--titre  { height: clamp(38px, 4.4vw, 60px); width: 62%; }
.sq--ligne  { height: 15px; margin-top: 14px; }
.sq--prix   { height: 40px; width: 34%; margin: 26px 0; }
.sq--bloc   { height: 48px; margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .sq { animation: respire 1.6s ease-in-out infinite; }
}
@keyframes respire { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.fiche__titre { font-size: clamp(34px, 4.4vw, 56px); color: var(--olive); text-transform: uppercase; }
.fiche__sous { margin: 6px 0 0; color: var(--encre-2); }
.fiche__prix { font-family: var(--serif); font-size: 38px; margin: 22px 0 26px; }
.fiche__achat { display: flex; gap: 16px; align-items: stretch; }
.qte {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--beige-3); padding: 0 8px; background: var(--beige-2);
}
.qte button { width: 36px; height: 48px; font-size: 18px; color: var(--olive); transition: background .2s; }
.qte button:hover { background: var(--beige-3); }
.qte output { min-width: 30px; text-align: center; }

.accordeon { margin-top: 34px; border-top: 1px solid var(--beige-3); }
.accordeon__item { border-bottom: 1px solid var(--beige-3); }
.accordeon__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 19px 2px; color: var(--olive);
  font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase;
}
.accordeon__btn i {
  width: 13px; height: 13px; position: relative; display: block; flex: none;
}
.accordeon__btn i::before, .accordeon__btn i::after {
  content: ''; position: absolute; background: currentColor; inset: 50% 0 auto 0; height: 1px;
}
.accordeon__btn i::after { transform: rotate(90deg); transition: transform .3s var(--t-doux); }
.accordeon__item.is-ouvert .accordeon__btn i::after { transform: rotate(0); }
.accordeon__panneau {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--t-doux);
}
.accordeon__item.is-ouvert .accordeon__panneau { grid-template-rows: 1fr; }
.accordeon__panneau > div { overflow: hidden; }
.accordeon__panneau p { margin: 0 0 16px; color: var(--encre-2); }
.accordeon__item.is-ouvert .accordeon__panneau > div { padding-bottom: 4px; }

/* ============================================================= PANIER ==== */
.voile {
  position: fixed; inset: 0; z-index: 80; background: rgba(58, 50, 38, .42);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--t-doux);
  backdrop-filter: blur(2px);
}
.voile.is-on { opacity: 1; pointer-events: auto; }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(440px, 100%); background: var(--beige);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .42s var(--t-doux);
  box-shadow: var(--ombre-lg);
}
.tiroir.is-on { transform: none; }
.tiroir__tete {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 26px; border-bottom: 1px solid var(--beige-3);
}
.tiroir__tete h2 { font-size: 22px; color: var(--olive); text-transform: uppercase; letter-spacing: .05em; }
.tiroir__corps { flex: 1; overflow-y: auto; padding: 20px 26px; }
.tiroir__pied { padding: 20px 26px 26px; border-top: 1px solid var(--beige-3); }

.ligne-panier { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--beige-3); }
.ligne-panier img { width: 74px; height: 74px; object-fit: cover; background: var(--sable); }
.ligne-panier__nom { font-family: var(--serif); font-size: 19px; color: var(--olive); }
.ligne-panier__var { font-size: 13px; color: var(--encre-2); }
.ligne-panier__sup { font-size: 12px; color: var(--encre-2); text-decoration: underline; margin-top: 4px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.total--fort { font-size: 20px; font-family: var(--serif); color: var(--olive); }
.total--remise { color: var(--olive-clair); }

/* ------------------------------------------------------------ code promo -- */
.promo { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--beige-3); }
.promo label {
  display: block; margin-bottom: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
}
.promo__ligne { display: flex; gap: 10px; }
.promo__ligne input {
  flex: 1; min-width: 0; padding: 11px 14px;
  background: var(--beige); border: 1px solid var(--beige-3); color: var(--encre);
  letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .25s var(--t-doux);
}
.promo__ligne input:focus { outline: none; border-color: var(--olive); }
.promo__ligne .btn { flex: none; padding-inline: 20px; }
.promo__note { margin: 10px 0 0; font-size: 13px; color: var(--olive-clair); }
.promo__note--erreur { color: #8c3b2a; }
@media (max-width: 480px) {
  .promo__ligne { flex-wrap: wrap; }
  .promo__ligne .btn { flex: 1 1 100%; }
}

/* ============================================================ FORMULAIRE = */
.champ { margin-bottom: 22px; }
.champ label {
  display: block; margin-bottom: 7px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
}
.champ input, .champ textarea, .champ select {
  width: 100%; padding: 12px 2px;
  background: none; border: 0; border-bottom: 1px solid var(--olive-clair);
  transition: border-color .25s var(--t-doux);
}
.champ textarea { min-height: 100px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--olive); }
.champ--erreur input, .champ--erreur textarea { border-bottom-color: #b3402f; }
.champ__erreur { font-size: 12.5px; color: #b3402f; margin-top: 5px; }

.panneau-beige { background: var(--beige-2); padding: 40px 36px; }
.avantage { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.avantage:not(:last-child) { border-bottom: 1px solid var(--beige-3); }
.avantage svg { width: 40px; height: 40px; color: var(--olive); flex: none; }
.avantage h3 { font-size: 21px; color: var(--olive); }

/* ============================================================= FOOTER ==== */
.pied { background: var(--olive); color: var(--creme); padding: 56px 0 34px; }
.pied__haut { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.pied__marque {
  font-family: var(--serif); font-size: clamp(46px, 6vw, 84px);
  letter-spacing: .1em; line-height: 1; color: var(--creme);
}
.pied h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 16px;
  color: rgba(251, 246, 238, .72);
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 10px; }
.pied a { font-size: 14.5px; color: rgba(251, 246, 238, .9); transition: color .2s; }
.pied a:hover { color: #fff; }
.pied__bas {
  margin-top: 42px; padding-top: 22px;
  border-top: 1px solid rgba(251, 246, 238, .2);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: rgba(251, 246, 238, .7);
}
.pied__reseaux { display: flex; gap: 16px; }
.pied__reseaux svg { width: 19px; height: 19px; }

/* ============================================================ ÉTATS ====== */
.vide { text-align: center; padding: 70px 20px; color: var(--encre-2); }
.vide h3 { font-family: var(--serif); font-size: 26px; color: var(--olive); margin-bottom: 8px; }

.squelette {
  background: linear-gradient(90deg, var(--beige-2) 25%, var(--beige-3) 37%, var(--beige-2) 63%);
  background-size: 400% 100%; animation: balayage 1.4s ease infinite;
}
@keyframes balayage { from { background-position: 100% 0 } to { background-position: 0 0 } }

.bulle {
  position: fixed; left: 50%; bottom: 30px; translate: -50% 0; z-index: 90;
  background: var(--olive); color: var(--creme);
  padding: 13px 24px; font-size: 14px; letter-spacing: .04em;
  box-shadow: var(--ombre-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--t-doux), transform .3s var(--t-doux);
}
.bulle.is-on { opacity: 1; transform: none; }
.bulle--erreur { background: #9d3826; }

/* ========================================================= ANIMATIONS ==== */
/* révélation au défilement, pilotée par IntersectionObserver */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--t-doux), transform .8s var(--t-doux);
  will-change: opacity, transform;
}
[data-anim].est-vu { opacity: 1; transform: none; }
[data-anim="gauche"]  { transform: translateX(-30px); }
[data-anim="droite"]  { transform: translateX(30px); }
[data-anim="zoom"]    { transform: scale(.96); }
[data-anim].est-vu    { transform: none; }
[data-delai="1"] { transition-delay: .09s }
[data-delai="2"] { transition-delay: .18s }
[data-delai="3"] { transition-delay: .27s }
[data-delai="4"] { transition-delay: .36s }

/* le hero se pose au chargement */
@keyframes monte { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }
.hero__titre { animation: monte 1.1s var(--t-doux) both .15s; }
.hero__cta   { animation: monte 1.1s var(--t-doux) both .45s; }
@keyframes zoomLent { from { transform: scale(1.08) } to { transform: scale(1) } }
.hero__media img { animation: zoomLent 9s var(--t-doux) both; }

/* ======================================================== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 48px); }
  .trio, .grille { grid-template-columns: repeat(2, 1fr); }
  .trio > *:nth-child(2) { margin-top: 0; }
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .fiche { grid-template-columns: 1fr; gap: 40px; }
  .pied__haut { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --h-bandeau: 32px; }
  .bandeau { font-size: 11px; letter-spacing: .1em; }

  /* Le menu passe en superposition, donc trois éléments restent dans la grille :
     burger, marque, outils. Des colonnes égales de part et d'autre gardent le
     logo réellement centré, quelle que soit la largeur des icônes. */
  .entete { padding: 16px 20px; grid-template-columns: 1fr auto 1fr; }
  .burger { justify-self: start; }
  .entete__outils { justify-self: end; }
  .marque { font-size: 22px; }
  .entete.is-collee { padding: 11px 20px; }
  .entete__nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--beige); color: var(--olive);
    transform: translateX(100%); transition: transform .4s var(--t-doux);
  }
  .entete__nav.is-on { transform: none; }
  .entete__nav a { font-size: 18px; }
  .burger { display: grid; place-items: center; z-index: 61; }
  .burger svg { width: 24px; height: 24px; }
  .trio, .grille, .grille--quatre { grid-template-columns: 1fr; }
  /* les engagements tiennent en une ligne de texte : deux colonnes valent mieux
     qu'une pile de quatre pavés presque vides */
  .engagements { grid-template-columns: 1fr 1fr; gap: 14px; }
  .duo, .colonnes { grid-template-columns: 1fr; columns: 1; gap: 34px; }
  .etapes { gap: 26px; flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
  .pied__haut { grid-template-columns: 1fr; gap: 26px; }

  /* --- hero : une photo composée pour le portrait, pas un panoramique rogné --
     Le <picture> sert ici la prise verticale. Le bloc adopte exactement sa
     proportion, donc `cover` n'a plus rien à tailler : l'image passe entière et
     le hero occupe l'écran. Le titre se pose dans le tiers bas, sur le sable
     laissé volontairement vide à la prise de vue. */
  .hero { height: auto; min-height: 0; aspect-ratio: 1400 / 2508; }
  .hero__contenu {
    align-self: end; padding: 0 20px 9%;
    display: grid; justify-items: center;
  }
  .hero__titre { font-size: 7.4vw; line-height: 1.1; text-wrap: balance; }
  .hero__cta { margin-top: 5vw; gap: 1.6vw; }
  .hero__rond { width: 13vw; height: 13vw; max-width: 62px; max-height: 62px; }
  .hero__rond svg { width: 5vw; height: 5vw; max-width: 22px; max-height: 22px; }
  .hero__cta span { font-size: 3.6vw; }

  /* --- bannières : elles restent des panoramiques, montrés entiers ---------
     Pas de hauteur imposée : l'image se pose dans le flux et donne sa taille au
     bloc, le titre repasse par-dessus, réduit. */
  .banniere { min-height: 0; display: block; position: relative; }
  .banniere__media { position: static; }
  .banniere__media img { height: auto; object-fit: fill; }
  .banniere h1 {
    position: absolute; inset: 0;
    display: grid; align-content: center; justify-items: center;
    padding: 52px 16px 8px; font-size: 6vw;
  }

  /* la fiche reprend la proportion du packshot : plus aucun rognage */
  .fiche__visuel img, .sq--visuel { aspect-ratio: 4 / 3; }
  .fiche { padding-top: 8px; }
  .fiche__vignettes img { width: 74px; height: 74px; }

  /* l'achat passe sur deux lignes plutôt que de déborder */
  .fiche__achat { flex-wrap: wrap; }
  .fiche__achat .btn { flex: 1 1 100%; letter-spacing: .12em; }

  .bande-olive__titre { font-size: 24px; }
  .etapes { align-items: flex-start; padding-inline: 8px; }
}

/* petits téléphones : on récupère de la largeur et on serre la typographie */
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .hero__titre { font-size: 7.8vw; }
  .carte__corps { padding: 18px 16px 20px; }
  .fiche__titre { font-size: clamp(29px, 8.6vw, 44px); }
  .titre-section { font-size: clamp(26px, 8vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
  /* les pseudo-éléments de transition ne sont pas atteints par le sélecteur * */
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
