/* ======================================================================
   BEITIL YAKINE — Site de la boutique
   Vert nuit & or de la marque, arches de mihrab, étoile à huit branches.
   Police : Archivo variable (axes largeur 62–125 % et graisse 100–900),
   mêmes fichiers et même système typographique que le site de la
   formation Vibe Coding. Mobile d'abord.
   Mouvement « premium » : une courbe signature, trois durées.
   ====================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin.woff2') format('woff2-variations'), url('../fonts/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: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2-variations'), url('../fonts/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Police de secours aux proportions proches : limite les décalages au chargement */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 21%;
}

:root {
  --nuit: #062B19;
  --nuit-2: #0A3B22;
  --nuit-3: #0F4A2C;
  --vert: #0F5C32;
  --or: #D4A537;
  --or-clair: #EED58F;
  --or-texte: #7E5A0C;
  --or-pale: #F8EFD6;
  --ivoire: #FBF8EF;
  --sauge: #EDF2EC;
  --blanc: #FFFFFF;
  --encre: #0D1B13;
  --encre-2: #3A4A40;
  --encre-3: #56675C;
  --trait: #D5DFD6;
  --wa: #25D366;
  --wa-encre: #06301A;
  --danger: #B3261E;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ressort: cubic-bezier(.34, 1.4, .64, 1);
  --t1: 180ms;
  --t2: 420ms;
  --t3: 900ms;

  --font: 'Archivo', 'Archivo Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  /* Échelle typographique (Bringhurst) : 12 14 16 18 21 24 36 48 60 72 */
  --fs-12: .75rem;
  --fs-14: .875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-24: 1.5rem;
  --fs-h3: clamp(1.3125rem, 1.1rem + .8vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
  --fs-hero: clamp(2.3rem, 1.1rem + 5.4vw, 4.6rem);
  --fs-page: clamp(2.4rem, 1.3rem + 5vw, 4.8rem);

  --gouttiere: clamp(16px, 4.5vw, 40px);
  --entete-h: 64px;
  --large: 1240px;
  --arche-4-5: 50% 50% 16px 16px / 40% 40% 16px 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.6;
  font-kerning: normal;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.verrou { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 750; letter-spacing: -.01em; text-wrap: balance; }
code, kbd, pre { font-family: var(--mono); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.evitement {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--or); color: var(--nuit); font-weight: 700; text-decoration: none; transition: top var(--t1) var(--ease);
}
.evitement:focus { top: 12px; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }

.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; }

/* --------------------------------------------------------------- Typo -- */
.titre-xl { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.02em; }
.titre-l { font-size: var(--fs-h2); font-weight: 780; font-stretch: 100%; letter-spacing: -.025em; }
.titre-m { font-size: var(--fs-h3); font-weight: 720; }
.chapo { font-size: var(--fs-18); color: var(--encre-2); max-width: 40rem; }
@media (min-width: 900px) { .chapo { font-size: 1.2rem; line-height: 1.55; } }

/* Titres en largeurs variables : chaque ligne s'élargit et gagne en graisse */
.ht { display: block; }
.ht-1 { font-stretch: 70%; font-weight: 500; }
.ht-2 { font-stretch: 96%; font-weight: 700; }
.ht-3 { font-stretch: 112%; font-weight: 850; }
@media (min-width: 560px) { .ht-3 { font-stretch: 125%; } }
.sombre .ht-1, .heros .ht-1 { color: rgba(251, 248, 239, .78); }
.titre-page { font-size: var(--fs-page); line-height: 1.02; letter-spacing: -.025em; max-width: 16ch; }
.titre-page span { display: inline-block; }
.titre-page .tp-1 { font-stretch: 74%; font-weight: 550; color: rgba(251, 248, 239, .8); }
.titre-page .tp-2 { font-stretch: 116%; font-weight: 850; }
.titre-page--suivi { font-size: clamp(2rem, 1rem + 4.4vw, 4rem); max-width: none; }
.titre-page--suivi .tp-2 { white-space: nowrap; font-stretch: 100%; }
.titre-page--simple { font-weight: 780; font-stretch: 100%; max-width: 22ch; font-size: clamp(2.2rem, 1.2rem + 4vw, 3.8rem); }
@media (prefers-reduced-motion: no-preference) {
  .ht { animation: ht-in 760ms cubic-bezier(.05, .7, .1, 1) both; --from-w: 78%; }
  .ht-1 { animation-delay: 80ms; }
  .ht-2 { animation-delay: 200ms; }
  .ht-3 { animation-delay: 320ms; }
  .titre-page span { animation: ht-in 700ms cubic-bezier(.05, .7, .1, 1) both; --from-w: 78%; }
  .titre-page span + span { animation-delay: 110ms; }
}
@keyframes ht-in {
  from { opacity: 0; transform: translateY(.3em); font-stretch: var(--from-w); font-weight: 400; }
}
.sombre .chapo, .heros .chapo, .appel .chapo { color: rgba(251, 248, 239, .8); }
.prix { font-variant-numeric: tabular-nums; font-weight: 750; font-stretch: 108%; white-space: nowrap; }

/* ----------------------------------------------------------- Boutons -- */
/* Boutons : composant Bootstrap (assets/css/bootstrap-boutons.css), pleins et sans contour.
   Le site ne règle ici que leur taille, par les variables CSS de Bootstrap. */
.btn { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.35rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: .75rem; min-height: 48px; font-stretch: 100%; user-select: none; }
.btn:active { transform: scale(.98); }
.btn-ajout { --bs-btn-padding-y: .5rem; --bs-btn-padding-x: .85rem; --bs-btn-font-size: .92rem; min-height: 44px; flex: 1; gap: 6px; }
/* Bouton carré, icône seule (WhatsApp sur les cartes produit) : aucune marge intérieure, sinon l'icône est écrasée. */
.btn.btn-icon { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; width: 44px; min-height: 44px; padding: 0; flex: none; }
.btn .ic { width: 20px; height: 20px; flex: none; }

.ico-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; position: relative; transition: background-color var(--t1) var(--ease), transform var(--t1) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ico-btn:hover { background: rgba(251, 248, 239, .12); }
.ico-btn:active { transform: scale(.92); }

/* ------------------------------------------------------------ En-tête -- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ivoire);
  padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent;
  transition: background-color var(--t2) var(--ease), transform var(--t2) var(--ease), border-color var(--t2) var(--ease);
  view-transition-name: entete;
}
.entete.est-defile { background: rgba(6, 43, 25, .94); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: rgba(238, 213, 143, .16); }
.entete.est-cache { transform: translateY(-110%); }
.entete-in { height: var(--entete-h); display: flex; align-items: center; gap: 12px; max-width: var(--large); margin: 0 auto; padding: 0 calc(var(--gouttiere) - 6px) 0 var(--gouttiere); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.marque img { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(238, 213, 143, .6); }
.marque-nom { font-weight: 800; font-stretch: 116%; font-size: 1.06rem; letter-spacing: .01em; white-space: nowrap; }
.nav { display: none; }
.entete-actions { display: flex; align-items: center; gap: 2px; }
.pastille {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--or); color: var(--nuit); font-size: .72rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--nuit);
}
.pastille.pop { animation: pop 520ms var(--ressort); }
@keyframes pop { 0% { transform: scale(.4); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
.menu-btn { flex-direction: column; gap: 5px; display: inline-flex; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t2) var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 1060px) {
  :root { --entete-h: 76px; }
  .nav { display: flex; gap: 2px; margin-right: 10px; }
  .nav a { position: relative; padding: 10px 11px; text-decoration: none; font-weight: 600; font-size: .95rem; color: rgba(251, 248, 239, .82); transition: color var(--t1) var(--ease); }
  .nav a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform var(--t2) var(--ease); }
  .nav a:hover, .nav a[aria-current] { color: var(--ivoire); }
  .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
  .menu-btn { display: none; }
  .marque img { width: 48px; height: 48px; }
  .marque-nom { font-size: 1.15rem; }
}

/* Menu plein écran (mobile) */
.menu-mobile {
  position: fixed; inset: 0; z-index: 45; background: var(--nuit); color: var(--ivoire);
  padding: calc(var(--entete-h) + env(safe-area-inset-top) + 18px) var(--gouttiere) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background-image: radial-gradient(120% 70% at 100% 0%, rgba(212, 165, 55, .16), transparent 60%);
}
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile a { display: flex; align-items: center; gap: 12px; min-height: 54px; text-decoration: none; font-size: 1.45rem; font-weight: 750; font-stretch: 110%; border-bottom: 1px solid rgba(238, 213, 143, .14); }
.menu-mobile a.sous { font-size: 1.05rem; font-weight: 550; font-stretch: 100%; min-height: 48px; padding-left: 6px; color: rgba(251, 248, 239, .82); }
.menu-mobile .menu-wa { margin-top: 24px; border: 0; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--wa); color: var(--wa-encre); font-size: 1.05rem; }
.menu-mobile.ouvre a { animation: menu-in 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
.menu-mobile.ouvre { animation: fondu 260ms var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes fondu { from { opacity: 0; } }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--or)); flex: none; }

/* ------------------------------------------------------- Bandeaux nuit -- */
.sombre { background: var(--nuit); color: var(--ivoire); }
.motif-fond { position: relative; isolation: isolate; }
.motif-fond::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('../img/motif.svg') 0 0 / 56px 56px; opacity: .07;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.bandeau { padding: calc(var(--entete-h) + env(safe-area-inset-top) + 28px) 0 34px; }
.bandeau--court { padding-bottom: 26px; }
.bandeau--mini { padding-bottom: 18px; }

/* Image de fond choisie dans l'administration (assombrie pour la lisibilité) */
[data-fond] { position: relative; isolation: isolate; }
[data-fond]::after {
  content: ''; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: linear-gradient(rgba(6, 43, 25, var(--voile, .72)), rgba(6, 43, 25, var(--voile, .72))), var(--fond-m) center / cover no-repeat;
}
@media (min-width: 900px) {
  [data-fond]::after { background: linear-gradient(rgba(6, 43, 25, var(--voile, .72)), rgba(6, 43, 25, var(--voile, .72))), var(--fond) center / cover no-repeat; }
}
.appel[data-fond]::after { border-radius: inherit; }
.fil { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: rgba(251, 248, 239, .7); margin-bottom: 12px; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--or-clair); text-decoration: underline; }
.fil li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.bandeau h1 { color: var(--ivoire); }
.bandeau .chapo { margin-top: 1.1rem; }

/* --------------------------------------------------------------- Héros -- */
.heros {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--entete-h) + env(safe-area-inset-top) + 26px) 0 44px;
  background: radial-gradient(90% 60% at 50% 100%, rgba(212, 165, 55, .22), transparent 70%), var(--nuit);
}
.heros::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('../img/motif.svg') 0 0 / 64px 64px; opacity: .08;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%);
  animation: fondu 1200ms var(--ease) both, derive 90s linear infinite;
}
@keyframes derive { to { background-position: 64px 128px; } }
.heros-grille { display: grid; }
.heros-texte { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.heros h1 { color: var(--ivoire); margin-bottom: 0; }
.heros .chapo { margin-top: 1.2rem; font-size: var(--fs-18); animation: apparait 460ms ease-out 460ms both; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.7rem; align-self: stretch; animation: apparait 460ms ease-out 540ms both; }
.heros-actions .btn { flex: 1 1 auto; }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* Accès direct aux deux rayons les plus demandés */
.heros-acces { display: grid; gap: 8px; margin-top: 18px; align-self: stretch; animation: apparait 460ms ease-out 620ms both; }
.heros-acces a { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; border-radius: 12px; background: rgba(15, 74, 44, .82); color: var(--ivoire); text-decoration: none; transition: background-color var(--t1) var(--ease); }
.heros-acces a:hover { background: #17603A; }
.heros-acces a > .ic:first-child { width: 24px; height: 24px; color: var(--or-clair); flex: none; }
.heros-acces a > .ic-sm { color: var(--or-clair); flex: none; transition: transform var(--t2) var(--ease); }
.heros-acces a:hover > .ic-sm { transform: translateX(4px); }
.heros-acces span { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.heros-acces strong { font-size: .98rem; font-weight: 700; font-stretch: 100%; }
.heros-acces small { font-size: .8rem; color: rgba(251, 248, 239, .72); }
@media (min-width: 520px) { .heros-acces { grid-template-columns: 1fr 1fr; } }

/* Fond animé : les photos changent derrière le titre (assets/js/diaporama.js) */
.heros--diapo { --clair: clamp(230px, 42svh, 380px); padding-top: calc(var(--entete-h) + env(safe-area-inset-top) + var(--clair)); background: var(--nuit); }
.heros--diapo::before { display: none; }
.diapo { position: absolute; inset: 0 0 auto; height: calc(var(--entete-h) + env(safe-area-inset-top) + var(--clair) + 150px); z-index: -1; background: var(--nuit-2); }
.diapo::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 43, 25, .66) 0, rgba(6, 43, 25, 0) 26%, rgba(6, 43, 25, 0) 50%, rgba(6, 43, 25, .88) 84%, var(--nuit) 100%);
}
.diapo-panneaux { position: absolute; inset: 0; display: flex; }
.diapo-panneau { position: relative; flex: 1 1 0; min-width: 0; display: block; overflow: hidden; }
.diapo-panneau + .diapo-panneau { border-left: 1px solid rgba(238, 213, 143, .42); }
.diapo-couche { position: absolute; inset: 0; overflow: hidden; }
.diapo-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.diapo-etiquette { position: absolute; left: var(--gouttiere); bottom: 162px; z-index: 3; max-width: calc(100% - var(--gouttiere) * 2); padding: 6px 12px; border-radius: 999px; background: rgba(6, 43, 25, .78); color: var(--ivoire); font-size: .8rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diapo-poussiere { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.diapo-barre { display: flex; align-items: center; gap: 4px; order: -1; align-self: flex-end; height: 44px; margin: 0 -6px 4px 0; }
.diapo-barre[hidden] { display: none; }
.diapo-reperes { display: flex; align-items: center; }
.diapo-repere { position: relative; width: 24px; height: 44px; padding: 0; border: 0; background: none; transition: width var(--t2) var(--ease); }
.diapo-repere::before, .diapo-repere i { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.diapo-repere::before { background: rgba(251, 248, 239, .32); }
.diapo-repere i { background: var(--or); transform: scaleX(0); transform-origin: left; }
.diapo-repere.est-vu i { transform: scaleX(1); opacity: .5; }
.diapo-repere.est-actif { width: 42px; }
.diapo-repere:hover::before { background: rgba(251, 248, 239, .6); }
.diapo-pause { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 74, 44, .85); color: var(--ivoire); transition: background-color var(--t1) var(--ease); }
.diapo-pause:hover { background: #17603A; }
.diapo-pause svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diapo-pause .i-lecture, .diapo-pause[aria-pressed="true"] .i-pause { display: none; }
.diapo-pause[aria-pressed="true"] .i-lecture { display: block; }

/* Fumée (bande encens) */
.fumee { position: absolute; left: 50%; width: 120px; height: 160px; transform: translateX(-50%); z-index: 3; pointer-events: none; filter: blur(1.6px); }
.fumee path { fill: none; stroke: rgba(251, 248, 239, .55); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: fumee 7s var(--ease-io) infinite; }
.fumee path:nth-child(2) { animation-duration: 8.5s; animation-delay: 1.8s; stroke-width: 1.6; }
.fumee path:nth-child(3) { animation-duration: 10s; animation-delay: 3.6s; stroke-width: 1.2; }
@keyframes fumee {
  0% { stroke-dashoffset: 1; opacity: 0; transform: translateY(26px) scaleX(.8); }
  25% { opacity: .75; }
  70% { opacity: .35; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-46px) scaleX(1.25); }
}

@media (min-width: 900px) {
  .heros { padding-bottom: 64px; }
  .heros .chapo { font-size: var(--fs-21); line-height: 1.5; }
  .heros .titre-xl { font-size: clamp(2.5rem, .6rem + 3.4vw, 3.75rem); }
  .heros .ht-3 { font-stretch: 112%; }
  .heros-actions .btn { flex: 0 0 auto; }
  .heros--simple .heros-texte { max-width: 46rem; }
  .heros--diapo { --clair: 0px; display: flex; align-items: center; min-height: clamp(620px, 88vh, 800px); padding-top: calc(var(--entete-h) + 56px); padding-bottom: 56px; }
  .heros--diapo .heros-grille { width: 100%; }
  .heros--diapo .heros-texte { max-width: 47%; }
  .diapo { inset: 0 0 0 auto; width: 48%; height: auto; }
  .diapo::after {
    background: linear-gradient(to right, var(--nuit) 0, rgba(6, 43, 25, 0) 16%),
      linear-gradient(to bottom, rgba(6, 43, 25, .7) 0, rgba(6, 43, 25, 0) 24%),
      linear-gradient(to top, rgba(6, 43, 25, .6) 0, rgba(6, 43, 25, 0) 24%);
  }
  .diapo-etiquette { left: 20px; bottom: 88px; max-width: calc(100% - 40px); font-size: .84rem; }
  .diapo-panneau:first-child .diapo-etiquette { left: 16%; max-width: 80%; }
  .diapo-barre { order: 0; align-self: flex-start; margin: 26px 0 0 -3px; }
}
@media (min-width: 1600px) {
  .heros--diapo .heros-texte { max-width: 44%; }
  .diapo { width: 52%; }
}

/* --------------------------------------------------------- Défilement -- */
.defile { overflow: hidden; background: var(--or); color: var(--nuit); border-block: 1px solid rgba(6, 43, 25, .2); }
.defile-piste { display: flex; width: max-content; animation: defile 46s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile ul { display: flex; align-items: center; }
.defile li { display: flex; align-items: center; gap: 18px; padding: 13px 0 13px 18px; font-weight: 750; font-stretch: 112%; font-size: .98rem; white-space: nowrap; }
.defile li::after { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: url('../img/motif.svg') center / 26px 26px; mask: url('../img/motif.svg') center / 26px 26px; opacity: .8; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ Sections -- */
.section { padding: clamp(52px, 10vw, 104px) 0; }
.section--sauge { background: var(--sauge); }
.section-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 4vw, 36px); }
.section-tete p { color: var(--encre-2); max-width: 34rem; margin-top: 8px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 680; text-decoration: none; padding: 10px 0; border-bottom: 2px solid var(--or); }
.lien-fleche:hover { color: var(--vert); }

/* Familles : défilement horizontal sur mobile */
.rayons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62%, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: 4px var(--gouttiere) 18px; margin: 0 calc(var(--gouttiere) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rayons::-webkit-scrollbar { display: none; }
.rayon { scroll-snap-align: start; display: block; text-decoration: none; position: relative; }
.rayon-visuel { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arche-4-5); background: var(--sauge); background: color-mix(in srgb, var(--c) 22%, var(--sauge)); }
.rayon-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.rayon-visuel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 43, 25, .82), rgba(6, 43, 25, 0) 55%); }
.rayon-visuel .ic { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; color: var(--c); opacity: .9; }
.rayon-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px; color: var(--ivoire); z-index: 1; }
.rayon-txt strong { display: block; font-size: 1.12rem; font-weight: 750; font-stretch: 104%; line-height: 1.2; }
.rayon-txt span { font-size: .86rem; opacity: .82; }
.rayon:hover img { transform: scale(1.06); }
.rayon::before { content: ''; position: absolute; inset: -6px -6px 0; border: 1.5px solid var(--c); border-bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0; opacity: 0; transform: translateY(8px); transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); pointer-events: none; }
.rayon:hover::before, .rayon:focus-visible::before { opacity: 1; transform: none; }
@media (min-width: 760px) {
  .rayons { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; margin: 0; padding: 4px 0 0; }
}

/* Étapes de commande (vraie séquence) */
.etapes { display: grid; gap: 14px; counter-reset: etape; position: relative; }
.etape { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: start; padding: 20px; background: var(--blanc); border-radius: 18px; border: 1px solid var(--trait); }
.etape-num { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--nuit); color: var(--or-clair); font-weight: 800; font-stretch: 120%; font-size: 1.25rem; }
.etape h3 { font-size: var(--fs-21); font-weight: 720; }
.etape p { color: var(--encre-2); font-size: .97rem; }
.etape--wa .etape-num { background: var(--wa); color: var(--wa-encre); }
@media (min-width: 860px) {
  .etapes { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .etapes::before { content: ''; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--or), var(--wa), var(--or)); transform-origin: left; z-index: 0; }
  .etape { grid-template-columns: 1fr; text-align: left; padding: 22px 22px 26px; z-index: 1; }
  .etape-num { grid-row: auto; margin-bottom: 10px; }
  @supports (animation-timeline: view()) {
    .etapes::before { animation: trait-x linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}
@keyframes trait-x { from { transform: scaleX(0); } }

/* -------------------------------------------------------- Cartes produit -- */
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
@media (min-width: 720px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; } }
@media (min-width: 1080px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.carte { position: relative; display: flex; flex-direction: column; min-width: 0; }
.carte-visuel { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arche-4-5); background: var(--sauge); background: color-mix(in srgb, var(--c) 14%, #F4F6F3); }
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.carte-motif { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c); background: url('../img/motif.svg') center / 44px 44px; }
.carte-motif::before { content: ''; position: absolute; inset: 0; background: rgba(244, 246, 243, .85); background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 18%, #F4F6F3) 30%, color-mix(in srgb, var(--c) 10%, #F4F6F3cc)); }
.carte-motif .ic { position: relative; width: 56px; height: 56px; stroke-width: 1.4; }
.carte-visuel::after { content: ''; position: absolute; inset: 7px 7px 0; border: 1.2px solid rgba(255, 255, 255, .0); border-bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0; transition: border-color var(--t2) var(--ease); pointer-events: none; }
.carte:hover .carte-visuel img { transform: scale(1.05); }
.carte:hover .carte-visuel::after { border-color: rgba(238, 213, 143, .95); }
.carte-txt { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; flex: 1; }
.carte-famille { font-size: .8rem; color: var(--encre-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-nom { font-size: .98rem; font-weight: 650; font-stretch: 100%; line-height: 1.28; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.56em; }
.carte-nom a { text-decoration: none; }
.carte-nom a::before { content: ''; position: absolute; inset: 0 0 56px; }
.carte-nom a:focus-visible { outline: none; }
.carte:has(.carte-nom a:focus-visible) .carte-visuel { outline: 3px solid var(--or); outline-offset: 3px; }
.carte-bas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: auto; padding-top: 4px; }
.carte-bas .prix { font-size: 1.06rem; }
.dispo { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; }
.dispo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dispo--oui { color: #17763E; }
.dispo--wa { color: var(--or-texte); }
.dispo--non { color: #A8322B; }
.carte--rupture .carte-visuel img { filter: grayscale(.7); opacity: .78; }
.top-vente { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: .76rem; font-weight: 700; color: var(--or-texte); }
.top-vente .ic { width: 13px; height: 13px; }
.top-vente--plein, .top-vente--fiche { padding: 6px 12px; border-radius: 999px; background: var(--or-pale); font-size: .84rem; }
.top-vente--fiche { margin-bottom: 10px; }
.carte-actions { display: flex; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
@media (max-width: 380px) { .btn-ajout span { display: none; } }

/* Apparition au défilement (si JavaScript) */
html.js .revele { opacity: 0; transform: translateY(10px); transition: opacity 380ms ease-out, transform 380ms ease-out; transition-delay: calc(min(var(--i, 0), 4) * 40ms); }
html.js .revele.vu { opacity: 1; transform: none; }
html.js .revele .carte-visuel img { transition: transform 300ms ease-out; }
html.js .revele.vu:hover .carte-visuel img { transform: scale(1.03); }

/* ----------------------------------------------------- Meilleures ventes -- */
.phare { display: grid; gap: 22px; align-items: center; padding: clamp(16px, 4vw, 36px); border: 1px solid var(--trait); border-radius: 28px; background: var(--ivoire); }
.phare-visuel { position: relative; display: block; width: 100%; max-width: 250px; justify-self: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arche-4-5); background: var(--nuit); }
.phare-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--ease); }
.phare:hover .phare-visuel img { transform: scale(1.04); }
.phare-typo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24% 10% 12%; text-align: center; background: radial-gradient(80% 55% at 50% 100%, rgba(212, 165, 55, .3), transparent 70%), var(--nuit); }
.phare-typo svg { position: absolute; left: 50%; top: 52%; width: 92%; height: auto; transform: translate(-50%, -50%); color: var(--or); opacity: .3; }
.phare-typo-nom { position: relative; font-size: clamp(1.9rem, 8.4vw, 2.9rem); font-weight: 850; font-stretch: 122%; line-height: 1; letter-spacing: -.02em; color: var(--ivoire); text-wrap: balance; }
.phare-typo-marque { position: relative; font-size: .84rem; font-weight: 600; color: var(--or-clair); }
.phare-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.phare-nom { margin: 14px 0 10px; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; font-stretch: 108%; line-height: 1.08; letter-spacing: -.02em; }
.phare-nom a { text-decoration: none; }
.phare-nom a:hover { text-decoration: underline; text-decoration-color: var(--or); }
.phare-desc { color: var(--encre-2); max-width: 34rem; }
.phare-prix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0; }
.phare-prix .prix { font-size: 1.7rem; }
.phare-actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: stretch; }
.phare-actions .btn { flex: 1 1 auto; }
@media (min-width: 800px) {
  .phare { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; }
  .phare-visuel { max-width: 400px; }
  .phare-actions .btn { flex: 0 0 auto; }
}
.rangee-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: clamp(30px, 5vw, 48px) 0 18px; padding-top: 20px; border-top: 1px solid var(--trait); }
.rangee-tete h3 { display: flex; align-items: center; gap: 10px; }

/* -------------------------------------------------------------- Affiches -- */
.affiches { display: grid; align-items: start; grid-auto-flow: column; grid-auto-columns: minmax(76%, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: 4px var(--gouttiere) 18px; margin: 0 calc(var(--gouttiere) * -1); scrollbar-width: none; }
.affiches::-webkit-scrollbar { display: none; }
.affiche { scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--trait); border-radius: 20px; background: var(--blanc); }
.affiche-visuel { display: block; background: var(--sauge); }
.affiche-visuel img { width: 100%; height: auto; }
.affiche-txt { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 16px 18px; }
.affiche-txt h3 { font-size: 1.14rem; font-weight: 720; line-height: 1.25; }
.affiche-txt h3 a { text-decoration: none; }
.affiche-txt h3 a:hover { text-decoration: underline; text-decoration-color: var(--or); }
.affiche-txt p { color: var(--encre-2); font-size: .94rem; }
.affiche-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.affiche-bas .btn-ajout { flex: 0 1 auto; }
.affiche-bas .btn-success.btn-ajout { flex: 1; }
@media (max-width: 380px) { .affiche-bas .btn-success.btn-ajout span { display: inline; } }
@media (min-width: 620px) { .affiches { grid-auto-columns: minmax(44%, 1fr); } }
@media (min-width: 900px) { .affiches { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; overflow: visible; margin: 0; padding: 0; } }


/* ------------------------------------------------------- Bande encens -- */
.encens { display: grid; gap: 28px; align-items: center; }
.encens-visuel { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.encens-visuel .cadre { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arche-4-5); }
.encens-visuel img { width: 100%; height: 100%; object-fit: cover; }
.encens-visuel .fumee { top: -70px; width: 140px; height: 190px; }
.encens-txt .chapo { margin: 14px 0 24px; }
.liste-points { display: grid; gap: 10px; margin: 0 0 26px; }
.liste-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(251, 248, 239, .86); }
.liste-points .ic { color: var(--or); margin-top: 1px; }
@media (min-width: 880px) { .encens { grid-template-columns: 1fr 1.1fr; gap: 64px; } .encens-visuel { order: 0; } }

/* ------------------------------------------------------------ Galerie -- */
.galerie { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: 4px var(--gouttiere) 16px; margin: 0 calc(var(--gouttiere) * -1); scrollbar-width: thin; overscroll-behavior-x: contain; }
.galerie figure { margin: 0; flex: 0 0 auto; width: clamp(150px, 42vw, 220px); scroll-snap-align: start; }
.galerie .cadre { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: var(--sauge); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; font-weight: 650; font-size: .95rem; }
.galerie figcaption a { flex: none; }
.galerie-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .galerie-nav { display: flex; } .galerie { scrollbar-width: none; } .galerie::-webkit-scrollbar { display: none; } }
.ico-btn--clair { background: var(--sauge); color: var(--encre); }
.ico-btn--clair:hover { background: var(--sauge-2, #D5DED3); }

/* ------------------------------------------------------------ Appel WA -- */
.appel { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 6vw, 56px); border-radius: 28px; background: var(--nuit); color: var(--ivoire); position: relative; overflow: hidden; isolation: isolate; }
.appel::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; z-index: -1; background: url('../img/motif.svg') center / 64px 64px; opacity: .12; border-radius: 50%; }
.appel .chapo { margin-top: 10px; }
.appel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.appel-txt .appel-actions { margin-top: 22px; }
.appel-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: var(--nuit-3); }
.appel-photo img { width: 100%; height: 100%; object-fit: cover; }
.appel-photo figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgba(6, 43, 25, .8); font-size: .82rem; font-weight: 650; }
@media (min-width: 860px) { .appel--photo { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; } }

/* ------------------------------------------------------------- Boutique -- */
.barre-outils { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); transition: top var(--t2) var(--ease); }
body:has(.entete:not(.est-cache)) .barre-outils { top: calc(var(--entete-h) + env(safe-area-inset-top)); }
.barre-outils-in { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.recherche { display: flex; gap: 8px; }
.recherche .champ-ico { position: relative; flex: 1; }
.recherche .champ-ico .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--encre-3); pointer-events: none; }
.recherche input[type="search"] { padding-left: 44px; }
.recherche select { width: auto; max-width: 44%; }
.puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gouttiere) * -1); padding: 2px var(--gouttiere); }
.puces::-webkit-scrollbar { display: none; }
.puce { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: .75rem; border: 0; background: var(--sauge); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color var(--t1) var(--ease), border-color var(--t1) var(--ease), color var(--t1) var(--ease); }
.puce:hover { background: #DCE5DA; }
.puce[aria-current], .puce[aria-current]:hover { background: var(--nuit); color: var(--ivoire); }
.puce small { font-size: .78rem; opacity: .7; font-weight: 600; }
.resultats { padding: 22px 0 64px; }
.resultats-info { color: var(--encre-3); font-size: .92rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; margin-bottom: 18px; }
.vide { text-align: center; padding: 56px 16px; max-width: 30rem; margin: 0 auto; }
.vide .ic { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--or); stroke-width: 1.3; }
.vide h2 { font-size: 1.35rem; margin-bottom: 8px; }
.vide p { color: var(--encre-2); margin-bottom: 20px; }
.vide .btn + .btn { margin-top: 10px; }
@media (min-width: 900px) { .barre-outils-in { flex-direction: row-reverse; align-items: center; } .recherche { flex: 0 0 420px; } .puces { flex: 1; margin: 0; padding: 2px 0; } }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination .info { width: 100%; text-align: center; color: var(--encre-3); font-size: .9rem; margin-bottom: 6px; }
.pagination a, .pagination .cur, .pagination .muted { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 650; }
.pagination a { background: var(--sauge); }
.pagination a:hover { background: #DCE5DA; }
.pagination .cur { background: var(--nuit); color: var(--ivoire); }

/* --------------------------------------------------------------- Champs -- */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ .etiquette { font-weight: 650; font-size: .94rem; }
.champ .aide { font-size: .84rem; color: var(--encre-3); }
input[type="text"], input[type="tel"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--trait); border-radius: 14px;
  background: var(--blanc); font-size: 1rem; transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
  -webkit-appearance: none; appearance: none;
}
select { padding-right: 38px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2356675C' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(15, 92, 50, .14); }
.is-error { border-color: var(--danger) !important; }
.err { display: flex; gap: 6px; color: var(--danger); font-size: .88rem; font-weight: 550; animation: secoue 380ms var(--ease-io); }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(5px); } }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------- Produit -- */
.fiche { display: grid; gap: 26px; padding-top: 22px; padding-bottom: 56px; }
.fiche-visuel { position: relative; max-width: min(520px, 80vw); width: 100%; justify-self: center; }
.fiche-visuel .cadre { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arche-4-5); background: var(--sauge); background: color-mix(in srgb, var(--c) 14%, #F4F6F3); position: relative; }
.fiche-visuel img { width: 100%; height: 100%; object-fit: cover; }
.fiche-visuel .carte-motif .ic { width: 96px; height: 96px; }
.fiche-visuel::before { content: ''; position: absolute; inset: -10px -10px 0; border: 1.4px solid var(--or); border-bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0; pointer-events: none; animation: fondu 900ms var(--ease) 300ms both; }
.fiche-info { display: flex; flex-direction: column; gap: 14px; }
.fiche-famille { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .9rem; color: var(--encre-2); text-decoration: none; }
.fiche-famille:hover { color: var(--vert); }
.fiche h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.2rem); font-weight: 780; letter-spacing: -.025em; }
.fiche-ref { font-size: .86rem; color: var(--encre-3); }
.fiche-prix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fiche-prix .prix { font-size: clamp(1.7rem, 6vw, 2.2rem); }
.etat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: .86rem; font-weight: 650; }
.etat--oui { background: #E3F4E8; color: #135F31; }
.etat--wa { background: var(--or-pale); color: var(--or-texte); }
.etat--non { background: #FBEAEA; color: #8E211B; }
.etat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.etat--oui::before { animation: pouls 2.4s var(--ease-io) infinite; }
@keyframes pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(19, 95, 49, .35); } 50% { box-shadow: 0 0 0 6px rgba(19, 95, 49, 0); } }
.fiche-desc { color: var(--encre-2); font-size: 1.02rem; max-width: 38rem; }
.achat { display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: var(--sauge); }
.achat-ligne { display: flex; gap: 10px; }
.achat-ligne .btn { flex: 1; }
.qte { display: inline-flex; align-items: center; border: 1.5px solid var(--trait); border-radius: 999px; background: var(--blanc); flex: none; }
.qte button { width: 44px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 999px; }
.qte button:hover { background: var(--sauge); }
.qte button:disabled { opacity: .35; cursor: default; }
.qte input { width: 40px; min-height: 0; height: 46px; padding: 0; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; box-shadow: none !important; -moz-appearance: textfield; }
.qte input::-webkit-outer-spin-button, .qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.achat-note { font-size: .86rem; color: var(--encre-2); display: flex; gap: 8px; align-items: flex-start; }
.achat-note .ic { width: 18px; height: 18px; color: var(--vert); margin-top: 1px; }
.infos { display: grid; gap: 0; border-top: 1px solid var(--trait); }
.infos div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.infos .ic { color: var(--or-texte); margin-top: 2px; }
.infos strong { display: block; font-size: .95rem; }
.infos p { font-size: .92rem; color: var(--encre-2); }
@media (min-width: 900px) {
  .fiche { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 34px; }
  .fiche-visuel { position: sticky; top: calc(var(--entete-h) + 24px); }
}
.similaires, .rangee { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(46%, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); padding: 4px var(--gouttiere) 18px; margin: 0 calc(var(--gouttiere) * -1); scrollbar-width: none; }
.similaires::-webkit-scrollbar, .rangee::-webkit-scrollbar { display: none; }
.similaires .carte, .rangee .carte { scroll-snap-align: start; }
@media (min-width: 720px) { .similaires, .rangee { grid-auto-columns: minmax(30%, 1fr); } }
@media (min-width: 1080px) { .similaires, .rangee { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* Barre d'achat collante (mobile) */
.barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--trait);
  transform: translateY(110%); transition: transform var(--t2) var(--ease);
}
.barre-achat.visible { transform: none; }
.barre-achat .prix { font-size: 1.15rem; margin-right: auto; }
.barre-achat small { display: block; font-size: .8rem; color: var(--encre-3); font-weight: 600; font-stretch: 100%; }
.barre-achat .btn { min-height: 46px; }
@media (min-width: 900px) { .barre-achat { display: none; } }

/* ---------------------------------------------------------------- Panier -- */
.panier { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 64px; }
.panier-liste { display: grid; gap: 0; }
.ligne-panier { display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.ligne-panier .vign { grid-row: span 2; width: 76px; aspect-ratio: 4 / 5; border-radius: 40px 40px 10px 10px / 32px 32px 10px 10px; overflow: hidden; background: var(--sauge); display: grid; place-items: center; color: var(--vert); }
.ligne-panier .vign img { width: 100%; height: 100%; object-fit: cover; }
.ligne-panier .nom { font-weight: 650; line-height: 1.3; text-decoration: none; }
.ligne-panier .nom:hover { text-decoration: underline; }
.ligne-panier .meta { font-size: .84rem; color: var(--encre-3); }
.ligne-panier .actions { display: flex; align-items: center; gap: 8px; grid-column: 2; }
.ligne-panier .actions .total { margin-left: auto; white-space: nowrap; }
.ligne-panier .qte button { width: 36px; height: 38px; }
.ligne-panier .qte input { width: 32px; height: 38px; }
.ligne-panier .retirer { width: 40px; height: 40px; }
.ligne-panier .total { font-weight: 750; font-variant-numeric: tabular-nums; }
.ligne-panier .retirer { color: var(--encre-3); }
.ligne-panier .retirer:hover { color: var(--danger); background: #FBEAEA; }
.ligne-panier.sort { animation: sort 320ms var(--ease-in) forwards; }
@keyframes sort { to { opacity: 0; transform: translateX(40px); } }
.recap { display: grid; gap: 8px; padding: 18px 0 4px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; }
.recap .total-general { font-size: 1.3rem; font-weight: 800; font-stretch: 108%; padding-top: 8px; border-top: 1px solid var(--trait); }
.recap .note { font-size: .86rem; color: var(--encre-3); }
.encart-wa { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: 18px; background: #E6F8EC; }
.encart-wa p { font-size: .94rem; color: #123D24; }
.commande { display: grid; gap: 16px; padding: clamp(18px, 4vw, 30px); border-radius: 24px; background: var(--sauge); align-self: start; }
.commande h2 { font-size: var(--fs-24); font-weight: 750; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 0; padding: 0; }
.choix legend { font-weight: 650; font-size: .94rem; margin-bottom: 6px; padding: 0; }
.choix label { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--trait); border-radius: 16px; background: var(--blanc); cursor: pointer; transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease); }
.choix label strong { font-size: .98rem; }
.choix label span { font-size: .82rem; color: var(--encre-3); }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label:has(input:checked) { border-color: var(--nuit); box-shadow: 0 0 0 2px var(--nuit) inset; }
.choix label:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 2px; }
.deux-col { display: grid; gap: 16px; }
.repli { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t2) var(--ease), opacity var(--t2) var(--ease); }
.repli > div { overflow: hidden; }
.repli.ferme { grid-template-rows: 0fr; opacity: 0; }
.mentions { font-size: .84rem; color: var(--encre-3); }
@media (min-width: 600px) { .deux-col { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .panier { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; } .commande { position: sticky; top: calc(var(--entete-h) + 20px); } }

/* Position du client et envoi de la commande sur WhatsApp */
.lien { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.position { display: grid; gap: 8px; margin-top: 12px; }
.position > .aide { font-size: .84rem; color: var(--encre-3); }
.position-etat { padding: 10px 12px; border-radius: 12px; font-size: .92rem; background: var(--or-pale); color: var(--or-texte); }
.position-etat--ok { background: #E9F6EC; color: #135F31; }
.position-etat--non { background: #FDF1F0; color: #8E211B; }
.position-etat a { font-weight: 650; }
.envoi-wa { display: grid; gap: 8px; width: min(100%, 26rem); margin: 16px auto 0; }
.envoi-wa .aide { font-size: .88rem; color: var(--encre-3); }
.envoi-wa-note { font-weight: 600; }
.envoi-wa-note[hidden] { display: none; }

/* Réponse immédiate : stock vérifié dans l'application */
.verif { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin: 10px 0 6px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 16px; }
.verif[hidden] { display: none; }
.verif-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.verif-ico .ic + .ic, .verif--souci .verif-ico .ic:first-child { display: none; }
.verif--souci .verif-ico .ic + .ic { display: block; }
.verif strong { display: block; font-weight: 720; line-height: 1.3; }
.verif p { margin-top: 2px; font-size: .92rem; color: var(--encre-2); }
.verif .btn { grid-column: 1 / -1; margin-top: 8px; }
.verif--ok { background: #E9F6EC; border-color: #BFE3C8; }
.verif--ok .verif-ico { background: #17763E; color: #fff; }
.verif--souci { background: #FDF1F0; border-color: #F1C7C3; }
.verif--souci .verif-ico { background: var(--danger); color: #fff; }
.verif--wa { background: var(--or-pale); border-color: #E9D49A; }
.verif--wa .verif-ico { background: var(--or); color: var(--nuit); }
.ligne-panier .dispo { margin-top: 3px; }
.ligne-panier--souci .nom { color: #8E211B; }
.verdict { display: flex; align-items: flex-start; gap: 10px; max-width: 34rem; margin: 12px auto; padding: 12px 14px; border-radius: 14px; text-align: left; font-weight: 600; }
.verdict .ic { flex: none; margin-top: 1px; }
.verdict--ok { background: #E9F6EC; color: #135F31; }
.verdict--wa { background: var(--or-pale); color: var(--or-texte); }
.achat-note--ok { color: #135F31; }
.achat-note--rupture { color: #8E211B; }

/* ----------------------------------------------------------------- Suivi -- */
.suivi { padding-top: 24px; padding-bottom: 64px; display: grid; gap: 28px; }
.succes { text-align: center; padding: 8px 0 4px; }
.succes-ico { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; }
.succes-ico svg.cercle { width: 92px; height: 92px; }
.succes-ico .rond { fill: var(--or); transform-origin: center; animation: pop 640ms var(--ressort) both; }
.succes-ico .coche { fill: none; stroke: var(--nuit); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 520ms var(--ease) 380ms forwards; }
.eclats { position: absolute; inset: 0; pointer-events: none; }
.eclats i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; background: var(--or); -webkit-mask: url('../img/motif.svg') center / 22px 22px; mask: url('../img/motif.svg') center / 22px 22px; opacity: 0; animation: eclat 1100ms var(--ease) 260ms both; }
@keyframes eclat { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scale(1.1) rotate(160deg); } }
.succes h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.succes p { color: var(--encre-2); margin: 10px auto 0; max-width: 32rem; }
.nowrap { white-space: nowrap; }
.numero { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--nuit); color: var(--or-clair); font-weight: 800; font-stretch: 112%; letter-spacing: .02em; }
.etapes-suivi { display: grid; gap: 0; position: relative; }
.etapes-suivi li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 20px; }
.etapes-suivi li::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--trait); }
.etapes-suivi li:last-child::before { display: none; }
.etapes-suivi .pt { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--trait); background: var(--blanc); color: var(--encre-3); }
.etapes-suivi .pt .ic { width: 18px; height: 18px; }
.etapes-suivi strong { display: block; padding-top: 5px; }
.etapes-suivi p { font-size: .9rem; color: var(--encre-3); }
.etapes-suivi .fait .pt { background: var(--nuit); border-color: var(--nuit); color: var(--or-clair); }
.etapes-suivi .fait::before { background: var(--nuit); }
.etapes-suivi .encours .pt { border-color: var(--or); color: var(--or-texte); animation: halo 2s var(--ease-io) infinite; }
@keyframes halo { 50% { box-shadow: 0 0 0 7px rgba(212, 165, 55, .2); } }
.carte-blanche { padding: clamp(18px, 4vw, 28px); border-radius: 22px; border: 1px solid var(--trait); background: var(--blanc); }
.carte-blanche h2 { font-size: var(--fs-21); font-weight: 720; margin-bottom: 12px; }
.annulee { padding: 16px; border-radius: 16px; background: #FBEAEA; color: #7A1A14; font-weight: 600; }
@media (min-width: 960px) { .suivi { grid-template-columns: 1fr 1fr; align-items: start; } .suivi > .succes, .suivi > .plein { grid-column: 1 / -1; } }

/* -------------------------------------------------------- Pages (onglets) -- */
.page-contenu { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 72px; }
.prose { max-width: 42rem; font-size: var(--fs-18); line-height: 1.65; color: var(--encre-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); font-weight: 750; color: var(--encre); margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; color: var(--encre); margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--or); transform: rotate(45deg); }
.prose a { color: var(--vert); font-weight: 600; }
.prose strong { color: var(--encre); }
.page-aside { display: grid; gap: 12px; align-content: start; }
.page-aside .encart-wa { margin-top: 0; }
@media (min-width: 900px) { .page-contenu { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .page-aside { position: sticky; top: calc(var(--entete-h) + 24px); } }

/* --------------------------------------------------------------- Contact -- */
.contacts { display: grid; gap: 14px; padding-top: 26px; padding-bottom: 64px; }
.contact-carte { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; border: 1px solid var(--trait); text-decoration: none; transition: border-color var(--t1) var(--ease), transform var(--t2) var(--ease); }
a.contact-carte:hover { border-color: var(--encre-3); transform: translateY(-2px); }
.contact-carte .pastille-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sauge); color: var(--vert); }
.contact-carte--wa { background: #E6F8EC; border-color: #BDEBCB; }
.contact-carte--wa .pastille-ico { background: var(--wa); color: var(--wa-encre); }
.contact-carte strong { display: block; font-size: 1.08rem; }
.contact-carte p { color: var(--encre-2); font-size: .95rem; }
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details { border: 1px solid var(--trait); border-radius: 16px; background: var(--blanc); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 650; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform var(--t2) var(--ease); color: var(--or-texte); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--encre-2); }
.faq details[open] p { animation: apparait 420ms var(--ease) both; }
@media (min-width: 860px) { .contacts { grid-template-columns: 1fr 1fr; } .contacts > .plein { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ Pied page -- */
.pied { background: var(--nuit); color: rgba(251, 248, 239, .82); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.pied-in { display: grid; gap: 34px; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.pied-marque img { width: 88px; height: 88px; border-radius: 50%; background: #fff; margin-bottom: 14px; }
.pied-marque p { max-width: 22rem; }
.pied h2 { font-size: 1rem; font-weight: 750; font-stretch: 110%; color: var(--or-clair); margin-bottom: 12px; }
.pied li { padding: 0; }
.pied li > a { display: inline-block; padding: 10px 0; }
.pied li:not(:has(a)) { padding: 10px 0; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--ivoire); text-decoration: underline; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: var(--large); margin: 40px auto 0; padding: 18px var(--gouttiere) 0; border-top: 1px solid rgba(238, 213, 143, .16); font-size: .85rem; color: rgba(251, 248, 239, .6); }
@media (min-width: 640px) { .pied-in { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pied-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ------------------------------------------------------ WhatsApp flottant -- */
.wa-flottant {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35;
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--wa); color: var(--wa-encre); font-weight: 750; text-decoration: none; border: 2px solid var(--blanc);
  animation: wa-in 700ms var(--ressort) 1200ms both;
  transition: transform var(--t2) var(--ease), bottom var(--t2) var(--ease);
}
.wa-flottant:hover { transform: translateY(-3px); }
.wa-flottant::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: onde 2.8s var(--ease-io) 2.4s infinite; }
@keyframes onde { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }
.wa-flottant span { display: none; }
@media (min-width: 700px) { .wa-flottant span { display: inline; } .wa-flottant { padding: 0 20px 0 16px; } }
body.page-produit .wa-flottant { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.menu-ouvert .wa-flottant { visibility: hidden; }
@media (min-width: 900px) { body.page-produit .wa-flottant { bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------- Tiroir panier -- */
.voile { position: fixed; inset: 0; z-index: 60; background: rgba(4, 22, 13, .55); animation: fondu var(--t2) var(--ease) both; }
.voile.sort { animation: fondu 260ms var(--ease-in) reverse both; }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(92vw, 420px); display: flex; flex-direction: column;
  background: var(--blanc); border-left: 1px solid var(--trait);
  transform: translateX(105%); visibility: hidden; transition: transform 300ms var(--ease-in), visibility 0s linear 300ms;
  padding-bottom: env(safe-area-inset-bottom); outline: none;
}
.tiroir.ouvert { transform: none; visibility: visible; transition: transform 460ms var(--ease), visibility 0s; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 12px 14px 20px; border-bottom: 1px solid var(--trait); }
.tiroir-tete h2 { font-size: var(--fs-21); font-weight: 750; }
.tiroir-tete .ico-btn:hover { background: var(--sauge); }
.tiroir-liste { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.tiroir-liste .ligne-panier { grid-template-columns: 60px 1fr; }
.tiroir-liste .ligne-panier .vign { width: 60px; }
.tiroir.ouvert .tiroir-liste li { animation: menu-in 480ms var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.tiroir-vide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--encre-2); }
.tiroir-vide .ic { width: 52px; height: 52px; color: var(--or); stroke-width: 1.3; }
.tiroir-vide .btn-light { color: var(--encre); border-color: var(--trait); }
.tiroir-pied { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--trait); }
.tiroir-total { display: flex; justify-content: space-between; font-size: 1.15rem; }
.tiroir-total strong { font-stretch: 110%; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------- Avion vers le panier -- */
.vol { position: fixed; z-index: 80; pointer-events: none; overflow: hidden; border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; border: 2px solid var(--or); background: var(--sauge); }
.vol img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------- Toasts / flash -- */
.toasts, .flashes { position: fixed; left: 12px; right: 12px; top: calc(var(--entete-h) + env(safe-area-inset-top) + 10px); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast, .flash {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(100%, 440px); padding: 12px 12px 12px 16px;
  border-radius: 16px; background: var(--nuit); color: var(--ivoire); border: 1px solid rgba(238, 213, 143, .3);
  animation: toast-in 520ms var(--ease) both;
}
.toast.sort, .flash.sort { animation: toast-out 260ms var(--ease-in) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(.96); } }
.toast p, .flash p { flex: 1; font-size: .95rem; }
.toast .ic, .flash > .ic { color: var(--or-clair); }
.toast a { color: var(--or-clair); font-weight: 700; white-space: nowrap; }
.flash--erreur, .flash--alerte { background: #6E1A14; }
.flash-close { border: 0; background: transparent; color: inherit; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }

/* ------------------------------------------- Ouverture animée du logo -- */
/* Vidéo réalisée avec Remotion (assets/site/intro), jouée une fois par visite. */
.intro-ecran { display: none; }
html.intro-verrou { overflow: hidden; }
html.intro .intro-ecran {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: #062B19; cursor: pointer; overflow: hidden;
}
.intro-video {
  width: min(118vw, 80vh, 660px); max-width: none; aspect-ratio: 1; object-fit: contain; background: transparent;
  -webkit-mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
  opacity: 0; transition: opacity 240ms var(--ease);
}
.intro-ecran.joue .intro-video { opacity: 1; }
.intro-passer {
  position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); min-height: 44px; padding: 0 20px;
  border: 1.5px solid rgba(238, 213, 143, .4); border-radius: 999px; background: transparent; color: var(--ivoire);
  font-weight: 600; font-size: var(--fs-14); cursor: pointer; opacity: 0; transition: opacity 300ms var(--ease) 600ms, border-color var(--t1) var(--ease);
}
.intro-ecran.joue .intro-passer { opacity: 1; }
.intro-passer:hover { border-color: var(--or-clair); }
.intro-barre { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--or); transform-origin: left; transform: scaleX(0); }
.intro-ecran.joue .intro-barre { animation: intro-barre var(--duree-intro, 2.6s) linear forwards; }
@keyframes intro-barre { to { transform: scaleX(1); } }
html.intro-fin .intro-ecran { animation: intro-sortie 640ms cubic-bezier(.65, 0, .35, 1) forwards; pointer-events: none; }
html.intro-fin .intro-video { animation: intro-video-sortie 420ms cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes intro-sortie { to { clip-path: inset(0 0 100% 0); } }
@keyframes intro-video-sortie { to { opacity: 0; scale: .9; translate: 0 -24px; } }
/* La page attend la fin de l'ouverture pour jouer ses propres animations */
html.intro body > :not(.intro-ecran),
html.intro body > :not(.intro-ecran) *,
html.intro body > :not(.intro-ecran)::before,
html.intro body > :not(.intro-ecran)::after,
html.intro body > :not(.intro-ecran) *::before,
html.intro body > :not(.intro-ecran) *::after { animation-play-state: paused !important; }
html.intro-revele .marque img { animation: logo-arrivee 760ms var(--ressort) both; }
@keyframes logo-arrivee { 0% { scale: .5; rotate: -20deg; opacity: 0; } 60% { opacity: 1; } 100% { scale: 1; rotate: 0deg; } }

/* --------------------------------------------------------- Pages d'état -- */
.etat-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--entete-h) + 40px) var(--gouttiere) 64px; }
.etat-page .code { font-size: clamp(5rem, 24vw, 9rem); font-weight: 800; font-stretch: 125%; line-height: .9; color: var(--or); }
.etat-page h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 10px 0; }
.etat-page p { color: rgba(251, 248, 239, .8); max-width: 30rem; margin: 0 auto 26px; }
.etat-page .heros-actions { justify-content: center; }
.etat-page pre { text-align: left; max-width: 90vw; overflow: auto; font-size: .78rem; background: rgba(0, 0, 0, .3); padding: 12px; border-radius: 10px; }

/* --------------------------------------------------- Transitions de page -- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sort 150ms linear both; }
::view-transition-new(root) { animation: vt-entre 220ms linear both; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: var(--ease); }
::view-transition-group(entete) { animation: none; }
@keyframes vt-sort { to { opacity: 0; } }
@keyframes vt-entre { from { opacity: 0; } }

/* ---------------------------------------------------------- Mouvement réduit -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .defile-piste { animation: none; flex-wrap: wrap; width: auto; }
  .defile ul + ul { display: none; }
  .fumee, .diapo-poussiere { display: none; }
  html.js .revele, html.js .revele .carte-visuel img { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------- Impression -- */
@media print {
  .entete, .pied, .wa-flottant, .tiroir, .voile, .barre-achat, .menu-mobile, .toasts, .flashes { display: none !important; }
  .sombre { background: #fff; color: #000; }
}
