/* ==========================================================
   Maison Jasmin — site de démonstration (ProTech.media)
   Sommaire
     1. Réglages (couleurs, base)     7. Gâteau sur mesure
     2. Éléments communs              8. Galerie et avis
     3. Écran d'entrée et menu        9. Infos et pied de page
     4. Accueil et bandeau           10. Panier, aperçu du message, toast
     5. La carte                     11. Apparitions au défilement
     6. Savoir-faire                 12. Téléphone et accessibilité
   Règle maison : les apparitions utilisent « transform »,
   les effets au survol utilisent « translate / scale / rotate ».
   Pour adapter le site à un client : changez les 8 couleurs ci-dessous.
   ========================================================== */

/* ---------- 1. Réglages ---------- */
:root {
  --foret: #12332A;      /* vert profond : la couleur de la maison */
  --foret-nuit: #0B211B;
  --creme: #FAF3E7;
  --ivoire: #FFFCF6;
  --or: #C9A15A;
  --or-clair: #E9D3A3;
  --cacao: #2B1B12;      /* couleur du texte */
  --rose: #E9CDBF;
  --titres: 'Fraunces', Georgia, serif;
  --texte: 'DM Sans', system-ui, sans-serif;
  --doux: cubic-bezier(.2, .8, .2, 1);
  --rebond: cubic-bezier(.3, 1.4, .4, 1);
  --ombre: 0 1px 2px rgba(43, 27, 18, .06), 0 14px 34px -18px rgba(43, 27, 18, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; font-family: var(--texte); font-size: 1rem; line-height: 1.6;
  color: var(--cacao); background: var(--foret-nuit); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, dl, dd, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
em { font-style: italic; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 30px; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--or); color: var(--foret); }

/* ---------- 2. Éléments communs ---------- */
.conteneur { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) 0; overflow: clip; }
.creme { background: var(--creme); }
.ivoire { background: var(--ivoire); }
.foret { background: var(--foret); color: var(--creme); }

.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.surtitre { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem; font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--or); }
.surtitre::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.surtitre.clair { color: var(--or-clair); }
.titre { font-family: var(--titres); font-size: clamp(2.2rem, 4vw + .8rem, 4.2rem); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.titre em { color: var(--or); font-weight: 400; }
.chapo { max-width: 30rem; font-size: 1.06rem; opacity: .75; }
.tete-centre { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.tete-centre .chapo { margin: 1.2rem auto 0; }
.tete-centre .surtitre::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.tete-partagee { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  translate: var(--ax, 0px) var(--ay, 0px);
  transition: translate .4s var(--doux), box-shadow .35s, scale .2s, background .3s, color .3s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -120% 0; transition: translate .7s var(--doux); }
.btn:hover::before { translate: 120% 0; }
.btn:active { scale: .96; }
.btn .ico { transition: translate .3s var(--doux); }
.btn:hover .ico:last-child { translate: 4px 0; }
.btn-or { background: var(--or); color: var(--foret-nuit); box-shadow: 0 14px 34px -12px rgba(201, 161, 90, .8); }
.btn-contour { color: var(--creme); box-shadow: inset 0 0 0 1px rgba(250, 243, 231, .4); }
.btn-contour:hover { background: var(--creme); color: var(--foret); }
.btn-contour-sombre { box-shadow: inset 0 0 0 1px rgba(43, 27, 18, .3); }
.btn-contour-sombre:hover { background: var(--cacao); color: var(--creme); }
.btn-foret { background: var(--foret); color: var(--creme); box-shadow: 0 16px 34px -14px rgba(18, 51, 42, .8); }
.btn-whatsapp { background: #25D366; color: #06301a; box-shadow: 0 14px 30px -14px rgba(37, 211, 102, .9); }
.btn-large { width: 100%; }
.rond { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(43, 27, 18, .07); transition: background .25s, rotate .4s var(--doux); }
.rond:hover { background: var(--cacao); color: var(--creme); rotate: 90deg; }

.pastille { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--or); color: var(--foret-nuit); font-size: .72rem; font-weight: 700; line-height: 1; }
.pastille.saute { animation: saute .5s var(--rebond); }
@keyframes saute { 40% { scale: 1.5; } }

/* Le curseur glissant (onglets, choix) : app.js lui donne sa position */
.curseur { position: absolute; left: 0; top: 0; width: var(--l, 0); height: var(--h, 0); border-radius: 99px; pointer-events: none; background: var(--foret); transform: translate(var(--x, 0), var(--y, 0)); transition: transform .5s var(--rebond), width .5s var(--rebond); }

/* Pastille « ouvert / fermé », calculée d'après l'heure de Tunis */
.statut { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; }
.statut i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #9aa39f; }
.statut.ouvert i { background: #3ED27F; }
.statut.ouvert i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #3ED27F; animation: pouls 1.8s ease-out infinite; }
@keyframes pouls { to { transform: scale(3.6); opacity: 0; } }
.statut-grand { margin: 1.8rem 0 1.4rem; padding: .6rem 1.1rem; border-radius: 99px; background: var(--creme); }

/* ---------- 3. Écran d'entrée et menu ---------- */
.rideau { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--foret-nuit); animation: rideau-sortie 1s cubic-bezier(.7, 0, .2, 1) 1.25s forwards; }
.monogramme { width: 130px; }
.monogramme circle { fill: none; stroke: var(--or); stroke-width: 1.5; stroke-dasharray: 327; stroke-dashoffset: 327; transform-origin: center; transform: rotate(-90deg); animation: tracer 1.1s var(--doux) forwards; }
.monogramme text { fill: var(--creme); font-family: var(--titres); font-size: 40px; font-style: italic; opacity: 0; animation: apparaitre .7s ease .35s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }
@keyframes rideau-sortie { from { clip-path: circle(150% at 50% 50%); } to { clip-path: circle(0% at 50% 50%); visibility: hidden; } }

.progression { position: fixed; top: 0; left: 0; z-index: 150; width: 100%; height: 3px; background: var(--or); transform-origin: left; transform: scaleX(var(--p, 0)); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 3rem); color: var(--creme);
  transition: padding .4s var(--doux), background .4s, color .4s, box-shadow .4s;
  animation: nav-entree 1s var(--doux) 1.9s backwards;
}
@keyframes nav-entree { from { opacity: 0; transform: translateY(-100%); } }
.nav.defile { padding-block: .7rem; background: rgba(250, 243, 231, .88); backdrop-filter: blur(14px) saturate(150%); color: var(--cacao); box-shadow: 0 1px 0 rgba(43, 27, 18, .08); }
.marque { font-family: var(--titres); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.marque em { color: var(--or); }
.nav-liens { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); font-size: .9rem; font-weight: 500; }
.nav-liens a { position: relative; padding: .3rem 0; opacity: .82; transition: opacity .25s; }
.nav-liens a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--doux); }
.nav-liens a:hover, .nav-liens a.actif { opacity: 1; }
.nav-liens a:hover::after, .nav-liens a.actif::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.btn-panier { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem .55rem 1rem; border-radius: 99px; font-size: .88rem; font-weight: 700; box-shadow: inset 0 0 0 1px currentColor; transition: background .3s, color .3s, box-shadow .3s; }
.btn-panier:hover { background: var(--or); color: var(--foret-nuit); box-shadow: inset 0 0 0 1px var(--or); }
.nav-burger { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--doux), top .35s var(--doux); }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 24px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
body.menu-ouvert .nav { background: none; color: var(--creme); box-shadow: none; backdrop-filter: none; }

.menu-plein { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: 6rem 1.5rem 2rem; background: var(--foret-nuit); color: var(--creme); }
.menu-plein[hidden] { display: none; }
.menu-plein a { padding: .3rem 0; font-family: var(--titres); font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.2; animation: monter-doux .6s var(--doux) both; animation-delay: calc(var(--i) * 70ms); }

/* ---------- 4. Accueil et bandeau ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 0;
  color: var(--creme);
  background: radial-gradient(900px 600px at 78% 30%, #1E5444 0%, transparent 65%), radial-gradient(700px 500px at 10% 90%, #17463A 0%, transparent 70%), var(--foret-nuit);
}
.poussiere { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grille { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); flex: 1; }

/* Les éléments de l'accueil arrivent l'un après l'autre, après l'écran d'entrée */
.entree { animation: monter-doux 1.1s var(--doux) backwards; animation-delay: calc(1.9s + var(--i) * .1s); }
@keyframes monter-doux { from { opacity: 0; transform: translateY(30px); } }

.hero-titre { font-family: var(--titres); font-size: clamp(2.9rem, 6.2vw + .6rem, 6.6rem); font-weight: 500; line-height: .98; letter-spacing: -.03em; }
.hero-titre .ligne { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; white-space: nowrap; }
.hero-titre .ligne > span { display: inline-block; animation: monter-ligne 1.2s var(--doux) backwards; animation-delay: calc(1.85s + var(--i) * .14s); }
@keyframes monter-ligne { from { transform: translateY(118%) rotate(4deg); } }
.hero-titre em { color: var(--or); font-weight: 400; }
.hero-chapo { max-width: 31rem; margin-top: 1.8rem; font-size: clamp(1rem, .6vw + .9rem, 1.18rem); color: rgba(250, 243, 231, .76); }
.hero-boutons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero .statut { margin-top: 2rem; color: rgba(250, 243, 231, .8); }

.hero-visuel { position: relative; justify-self: center; width: min(400px, 100%); }
.arche { position: relative; aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: 999px 999px 26px 26px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7); animation: devoiler 1.5s var(--doux) 2s backwards; }
@keyframes devoiler { from { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); } to { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); } }
.arche img { width: 100%; height: 116%; object-fit: cover; translate: 0 var(--py, 0px); animation: dezoomer 2.4s var(--doux) 2s backwards; }
@keyframes dezoomer { from { scale: 1.35; } }
.hero-visuel::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(201, 161, 90, .55); border-radius: 999px 999px 36px 36px; pointer-events: none; }
.medaillon { position: absolute; left: -64px; bottom: 54px; width: 150px; aspect-ratio: 1; overflow: hidden; border: 6px solid var(--foret-nuit); border-radius: 50%; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .6); animation: flotter 7s ease-in-out infinite; }
.medaillon img { width: 100%; height: 100%; object-fit: cover; }
@keyframes flotter { 50% { translate: 0 -14px; } }
.sceau { position: absolute; top: 6%; right: -58px; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: var(--or); color: var(--foret-nuit); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); }
.sceau svg:first-child { position: absolute; inset: 0; animation: tourner 20s linear infinite; }
.sceau text { fill: currentColor; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; }
.sceau .ico { width: 34px; height: 34px; }
@keyframes tourner { to { rotate: 360deg; } }
.carte-flottante { position: absolute; right: -70px; bottom: 8%; display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem .55rem .55rem; border-radius: 99px; background: rgba(250, 243, 231, .94); color: var(--cacao); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .55); animation: flotter 8s -3s ease-in-out infinite; }
.carte-flottante img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.carte-flottante b { display: block; font-size: .84rem; line-height: 1.2; white-space: nowrap; }
.carte-flottante small { font-size: .72rem; opacity: .65; white-space: nowrap; }

.hero-bas { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem clamp(1.5rem, 5vw, 4rem); width: min(1200px, 100% - 2.5rem); margin: clamp(2.5rem, 6vh, 4rem) auto 0; padding: 1.4rem 0 2.6rem; border-top: 1px solid rgba(250, 243, 231, .14); font-size: .9rem; color: rgba(250, 243, 231, .8); }
.hero-bas li { display: flex; align-items: center; gap: .55rem; }
.hero-bas .ico { color: var(--or); font-size: 1.15rem; }

.bandeau { position: relative; z-index: 3; padding: 1.1rem 0; overflow: hidden; background: var(--or); color: var(--foret-nuit); }
.bandeau-piste { display: flex; width: max-content; animation: defiler 34s linear infinite; }
.bandeau-piste span { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-family: var(--titres); font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 500; white-space: nowrap; }
.bandeau-piste em { font-weight: 400; }
.bandeau-piste i { font-style: normal; font-size: .55em; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* ---------- 5. La carte ---------- */
.onglets { position: relative; display: inline-flex; max-width: 100%; margin-bottom: 2.4rem; padding: 5px; overflow-x: auto; border-radius: 99px; background: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(43, 27, 18, .08); scrollbar-width: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets button { position: relative; z-index: 1; padding: .6rem 1.2rem; border-radius: 99px; font-size: .9rem; font-weight: 500; white-space: nowrap; color: rgba(43, 27, 18, .7); transition: color .35s; }
.onglets button.actif { color: var(--creme); }

.produits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.6rem; }
.produit[hidden] { display: none; }
.produit-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: #EADFCB; }
.produit-image img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--doux); }
.produit:hover .produit-image img { scale: 1.09; }
.produit-badge { position: absolute; top: 14px; left: 14px; padding: .32rem .8rem; border-radius: 99px; background: var(--ivoire); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.produit-ajout { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; height: 50px; min-width: 50px; padding: 0 15px; border-radius: 99px; background: var(--ivoire); color: var(--foret); font-size: .86rem; font-weight: 700; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); transition: background .3s, color .3s, scale .25s var(--rebond); }
.produit-ajout span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .5s var(--doux), opacity .4s, margin .5s var(--doux); }
.produit:hover .produit-ajout span, .produit-ajout:focus-visible span { max-width: 90px; margin-left: .5rem; opacity: 1; }
.produit-ajout:hover { background: var(--or); scale: 1.06; }
.produit-ajout.fait { background: var(--foret); color: var(--creme); }
.produit-texte { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.produit h3 { font-family: var(--titres); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.produit-texte p { margin-top: .25rem; font-size: .88rem; opacity: .68; }
.produit-prix { text-align: right; white-space: nowrap; }
.produit-prix b { font-family: var(--titres); font-size: 1.15rem; font-weight: 500; }
.produit-prix small { display: block; font-size: .72rem; opacity: .6; }
/* L'image qui « vole » vers le panier quand on ajoute un produit */
.volant { position: fixed; left: 0; top: 0; z-index: 180; overflow: hidden; border-radius: 20px; pointer-events: none; }
.volant img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 6. Savoir-faire ---------- */
.sf-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.sf-visuel { position: sticky; top: 12vh; }
.sf-cadre { position: relative; aspect-ratio: 4 / 5.1; max-height: 74vh; overflow: hidden; border-radius: 999px 999px 26px 26px; background: var(--foret-nuit); }
.sf-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); scale: 1.2; transition: clip-path 1.1s var(--doux), scale 1.6s var(--doux); }
.sf-cadre img.actif { clip-path: inset(0); scale: 1; }
.sf-compteur { display: flex; align-items: baseline; gap: .5rem; margin-top: 1.2rem; color: var(--or-clair); }
.sf-compteur b { font-family: var(--titres); font-size: 2.4rem; font-weight: 400; font-style: italic; line-height: 1; }
.sf-tete { padding-bottom: clamp(2rem, 6vh, 4rem); }
.sf-etape { padding: clamp(2rem, 9vh, 5.5rem) 0; border-top: 1px solid rgba(250, 243, 231, .14); }
.js .sf-etape { opacity: .28; transition: opacity .6s; }
.js .sf-etape.actif { opacity: 1; }
.sf-chiffre { font-family: var(--titres); font-size: 1rem; font-style: italic; color: var(--or-clair); }
.sf-etape h3 { margin: .3rem 0 .8rem; font-family: var(--titres); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.sf-etape p { max-width: 26rem; font-size: 1.08rem; color: rgba(250, 243, 231, .78); }
.sf-photo { display: none; }

/* ---------- 7. Gâteau sur mesure ---------- */
.mesure { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mesure-apercu { position: relative; justify-self: center; width: min(430px, 100%); padding-bottom: 3.5rem; }
.mesure-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 26px 26px; background: var(--creme); box-shadow: var(--ombre); }
.mesure-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, scale 1s var(--doux); }
.mesure-photo.change img { opacity: 0; scale: 1.1; }
.plaque { position: absolute; left: 34%; bottom: 12%; max-width: 60%; padding: .55rem 1.3rem; border-radius: 12px; background: #3B2416; color: var(--or-clair); font-family: var(--titres); font-size: 1.1rem; font-style: italic; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(233, 211, 163, .35); translate: -50% 0; rotate: -2deg; transition: opacity .3s, scale .4s var(--rebond); }
.plaque.vide { opacity: 0; scale: .8; }
.plaque.tape { animation: tape .3s var(--rebond); }
@keyframes tape { 40% { scale: 1.07; } }
.ticket { position: absolute; right: -24%; bottom: 0; width: min(260px, 74%); padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--ivoire); box-shadow: 0 24px 44px -18px rgba(43, 27, 18, .45); rotate: 2deg; }
.ticket-titre { font-family: var(--titres); font-size: 1.15rem; font-style: italic; }
.ticket dl { margin: .7rem 0; padding: .7rem 0; border-block: 1px dashed rgba(43, 27, 18, .25); }
.ticket dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .16rem 0; font-size: .82rem; }
.ticket dt { opacity: .6; }
.ticket dd { font-weight: 700; text-align: right; }
.ticket-prix { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.ticket-prix b { font-family: var(--titres); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.mesure-reglages { display: grid; gap: 1.8rem; }
.mesure-reglages legend { margin-bottom: .8rem; padding: 0; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(43, 27, 18, .6); }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { padding: .58rem 1.15rem; border-radius: 99px; font-size: .9rem; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(43, 27, 18, .2); transition: background .3s, color .3s, box-shadow .3s, scale .25s var(--rebond); }
.puce:hover { scale: 1.05; }
.puce.actif { background: var(--foret); color: var(--creme); box-shadow: inset 0 0 0 1px var(--foret); }
.parfums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.parfum { display: flex; align-items: center; gap: .8rem; padding: .5rem .9rem .5rem .5rem; border-radius: 99px; text-align: left; box-shadow: inset 0 0 0 1px rgba(43, 27, 18, .16); transition: background .3s, box-shadow .3s, translate .3s var(--doux); }
.parfum:hover { translate: 3px 0; }
.parfum img { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; transition: scale .4s var(--rebond); }
.parfum b { display: block; font-size: .9rem; line-height: 1.2; }
.parfum small { font-size: .74rem; opacity: .62; }
.parfum.actif { background: var(--creme); box-shadow: inset 0 0 0 2px var(--or); }
.parfum.actif img { scale: 1.12; }
.reglette output { display: block; font-family: var(--titres); font-size: 3rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.reglette input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 1rem 0 .5rem; border-radius: 99px; background: linear-gradient(90deg, var(--or) var(--rempli, 20%), rgba(43, 27, 18, .14) var(--rempli, 20%)); cursor: pointer; }
.reglette input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border: 6px solid var(--ivoire); border-radius: 50%; background: var(--foret); box-shadow: 0 4px 12px rgba(43, 27, 18, .35); transition: scale .2s var(--rebond); }
.reglette input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 6px solid var(--ivoire); border-radius: 50%; background: var(--foret); box-shadow: 0 4px 12px rgba(43, 27, 18, .35); }
.reglette input[type="range"]:active::-webkit-slider-thumb { scale: 1.25; }
.reglette-bornes { display: flex; justify-content: space-between; font-size: .76rem; opacity: .55; }
.champ { width: 100%; padding: .9rem 1.2rem; border: 1px solid rgba(43, 27, 18, .2); border-radius: 99px; background: none; font-size: .98rem; transition: border-color .25s, box-shadow .25s; }
.champ:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(201, 161, 90, .22); }

/* ---------- 8. Galerie et avis ---------- */
.galerie-section { padding-bottom: clamp(4rem, 8vw, 7rem); }
.indice-glisser { display: flex; align-items: center; gap: .6rem; }
.indice-glisser .ico { font-size: 1.5rem; color: var(--or-clair); animation: balancer 1.6s ease-in-out infinite; }
@keyframes balancer { 50% { translate: 8px 0; } }
.galerie { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.galerie.tire { cursor: grabbing; }
.galerie-piste { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); width: max-content; padding: 1rem clamp(1.25rem, 4vw, 3rem); will-change: transform; }
.galerie-piste figure { flex: none; width: clamp(220px, 26vw, 360px); aspect-ratio: var(--forme, 4 / 5); overflow: hidden; border-radius: 22px; background: var(--foret-nuit); }
.galerie-piste figure:nth-child(even) { margin-top: clamp(2rem, 6vw, 5rem); }
.galerie-piste img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: scale 1.2s var(--doux); }
.galerie-piste figure:hover img { scale: 1.07; }
.curseur-rond { position: fixed; left: 0; top: 0; z-index: 160; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--or); color: var(--foret-nuit); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; opacity: 0; scale: .3; transition: opacity .3s, scale .4s var(--rebond); }
.curseur-rond.visible { opacity: 1; scale: 1; }
.curseur-rond.serre { scale: .78; }

.mention-demo { display: inline-block; margin-top: 1.2rem; padding: .4rem 1rem; border-radius: 99px; background: rgba(201, 161, 90, .18); font-size: .8rem; }
.avis-rangees { display: grid; gap: 1.2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.avis-rangee { display: flex; width: max-content; animation: defiler 60s linear infinite; }
.avis-rangee:nth-child(2) { animation-direction: reverse; animation-duration: 70s; }
.avis-rangees:hover .avis-rangee { animation-play-state: paused; }
.avis-carte { flex: none; width: min(360px, 78vw); margin-right: 1.2rem; padding: 1.5rem; border-radius: 24px; background: var(--ivoire); box-shadow: var(--ombre); }
.avis-etoiles { display: flex; gap: .15rem; color: var(--or); }
.avis-carte blockquote { margin: .8rem 0 1.1rem; font-family: var(--titres); font-size: 1.12rem; font-style: italic; line-height: 1.4; }
.avis-auteur { display: flex; align-items: center; gap: .7rem; font-size: .86rem; }
.avis-auteur i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--foret); color: var(--or-clair); font-family: var(--titres); font-style: italic; }
.avis-auteur small { display: block; opacity: .6; }

/* ---------- 9. Infos et pied de page ---------- */
.infos-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.horaires li { display: flex; align-items: baseline; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(43, 27, 18, .1); }
.horaires li span:first-child { min-width: 6.5rem; }
.horaires li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted rgba(43, 27, 18, .3); }
.horaires li span:last-child { order: 2; font-variant-numeric: tabular-nums; }
.horaires li.aujourdhui { font-weight: 700; }
.horaires li.aujourdhui span:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--or); }
.infos-carte { position: relative; }
.infos-photo { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 28px; }
.infos-photo img { width: 100%; height: 118%; object-fit: cover; translate: 0 var(--py, 0px); }
.infos-contact { position: relative; width: min(400px, 92%); margin: -4.5rem 0 0 auto; padding: 1.5rem; border-radius: 24px; background: var(--creme); box-shadow: var(--ombre); }
.infos-contact p { display: flex; align-items: center; gap: .7rem; padding: .3rem 0; }
.infos-contact .ico { color: var(--or); font-size: 1.15rem; }
.infos-boutons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.infos-boutons .btn { padding: .8rem 1.3rem; }

.pied { padding: clamp(3rem, 8vw, 6rem) 0 2rem; background: var(--foret-nuit); color: var(--creme); }
.pied-marque { font-family: var(--titres); font-size: clamp(3.2rem, 14.5vw, 13rem); font-weight: 500; line-height: .9; letter-spacing: -.04em; text-align: center; white-space: nowrap; }
.pied-marque em { color: var(--or); font-weight: 400; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid rgba(250, 243, 231, .14); font-size: .86rem; color: rgba(250, 243, 231, .65); }
.pied-bas p:last-child { padding-right: 5rem; }
.pied-bas a { color: var(--or-clair); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 10. Panier, aperçu du message, toast ---------- */
.voile { position: fixed; inset: 0; z-index: 170; background: rgba(11, 33, 27, .6); backdrop-filter: blur(4px); animation: apparaitre-voile .4s ease; }
.voile[hidden] { display: none; }
@keyframes apparaitre-voile { from { opacity: 0; } }
.panier { position: fixed; top: 0; right: 0; bottom: 0; z-index: 175; display: flex; flex-direction: column; width: min(440px, 100%); background: var(--ivoire); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .5); transform: translateX(104%); transition: transform .65s var(--doux); }
.panier.ouvert { transform: none; }
.panier-tete { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid rgba(43, 27, 18, .08); }
.panier-tete h2 { font-family: var(--titres); font-size: 1.6rem; font-weight: 500; }
.panier-corps { flex: 1; overflow-y: auto; padding: .4rem 1.4rem; overscroll-behavior: contain; }
.panier-vide { display: grid; place-items: center; gap: .5rem; height: 100%; padding: 2rem 0; text-align: center; }
.panier-vide .ico { width: 54px; height: 54px; color: var(--or); stroke-width: 1.2; }
.panier-vide b { font-family: var(--titres); font-size: 1.4rem; font-weight: 500; }
.panier-vide p { max-width: 16rem; font-size: .9rem; opacity: .65; }
.ligne-panier { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid rgba(43, 27, 18, .08); }
.ligne-panier.nouvelle { animation: ligne-entree .5s var(--doux) backwards; }
@keyframes ligne-entree { from { opacity: 0; transform: translateX(30px); } }
.ligne-panier img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.ligne-panier b { display: block; font-size: .92rem; line-height: 1.25; }
.ligne-panier small { font-size: .78rem; opacity: .6; }
.ligne-total { font-family: var(--titres); font-size: 1.02rem; text-align: right; white-space: nowrap; }
.quantite { display: inline-flex; align-items: center; gap: .1rem; margin-top: .4rem; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(43, 27, 18, .16); }
.quantite button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: .8rem; transition: background .2s; }
.quantite button:hover { background: var(--creme); }
.quantite span { min-width: 1.4rem; font-size: .86rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.panier-pied { display: grid; gap: .9rem; padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid rgba(43, 27, 18, .08); background: var(--creme); }
.panier-pied[hidden] { display: none; }
.segments { position: relative; display: flex; padding: 4px; border-radius: 99px; background: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(43, 27, 18, .08); }
.segments button { position: relative; z-index: 1; flex: 1; padding: .55rem .6rem; border-radius: 99px; font-size: .84rem; font-weight: 500; white-space: nowrap; color: rgba(43, 27, 18, .7); transition: color .35s; }
.segments button.actif { color: var(--creme); }
.panier-total { display: flex; align-items: baseline; justify-content: space-between; }
.panier-total b { font-family: var(--titres); font-size: 1.9rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.panier-note { font-size: .78rem; text-align: center; opacity: .6; }

.panier-flottant { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 120; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--foret); color: var(--creme); font-size: 1.3rem; box-shadow: 0 18px 36px -12px rgba(11, 33, 27, .8); opacity: 0; scale: .4; pointer-events: none; transition: opacity .4s, scale .5s var(--rebond), background .3s; }
.panier-flottant.visible { opacity: 1; scale: 1; pointer-events: auto; }
.panier-flottant:hover { background: var(--or); color: var(--foret-nuit); }
.panier-flottant .pastille { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 3px var(--ivoire); }

.dialogue { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 1.25rem; background: rgba(11, 33, 27, .7); backdrop-filter: blur(6px); animation: apparaitre-voile .35s ease; }
.dialogue[hidden] { display: none; }
.dialogue-boite { position: relative; width: min(460px, 100%); max-height: 100%; overflow-y: auto; padding: 2rem 1.6rem 1.6rem; border-radius: 28px; background: var(--ivoire); animation: boite-entree .6s var(--rebond); }
@keyframes boite-entree { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.dialogue-boite .rond { position: absolute; top: 1rem; right: 1rem; }
.dialogue-boite h2 { font-family: var(--titres); font-size: 1.9rem; font-weight: 500; line-height: 1.1; }
.bulle-message { position: relative; margin: 1.3rem 0 1rem; padding: 1rem 1.1rem; border-radius: 18px 18px 4px 18px; background: #DCF8C6; color: #1d2b1f; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.dialogue-note { margin-bottom: 1.1rem; font-size: .82rem; opacity: .65; }

.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 165; display: flex; align-items: center; gap: .6rem; padding: .8rem 1.3rem; border-radius: 99px; background: var(--cacao); color: var(--creme); font-size: .9rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; translate: -50% 30px; transition: opacity .35s, translate .5s var(--rebond); }
.toast.visible { opacity: 1; translate: -50% 0; }
.toast .ico { color: #3ED27F; stroke-width: 3; }

/* ---------- 11. Apparitions au défilement (pilotées par app.js) ---------- */
.js [data-anim] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--doux) var(--d, 0s), transform 1s var(--doux) var(--d, 0s); }
.js [data-anim].vu { opacity: 1; transform: none; }
.js .produit { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--doux) var(--d, 0s), transform .9s var(--doux) var(--d, 0s); }
.js .produit.vu { opacity: 1; transform: none; }
.js .btn[data-anim] { transition: opacity 1s var(--doux), transform 1s var(--doux), translate .4s var(--doux), box-shadow .35s, scale .2s; }
/* Titres : chaque mot monte depuis une « fente » */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.mot > span { display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: left bottom; transition: transform 1s var(--doux); transition-delay: calc(var(--i) * 60ms); }
.vu .mot > span { transform: none; }

/* ---------- 12. Téléphone et accessibilité ---------- */
@media (max-width: 1080px) {
  .hero-grille { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visuel { width: min(340px, 72%); }
  .medaillon { left: -52px; width: 124px; }
  .sceau { right: -46px; width: 108px; height: 108px; }
  .carte-flottante { right: -54px; }
}
@media (max-width: 900px) {
  .nav-liens { display: none; }
  .nav-burger { display: block; }
  .btn-panier span { display: none; }
  .btn-panier { padding: .55rem .6rem .55rem .8rem; }
  .produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .sf-grille, .mesure, .infos-grille { grid-template-columns: minmax(0, 1fr); }
  .sf-visuel { display: none; }
  .js .sf-etape { opacity: 1; }
  .sf-photo { display: block; width: 100%; margin-top: 1.4rem; border-radius: 22px; }
  .mesure-apercu { width: min(380px, 100%); padding-bottom: 0; }
  .ticket { position: relative; right: auto; width: min(280px, 82%); margin: -2.6rem 0 0 auto; }
  .plaque { left: 50%; bottom: 20%; max-width: 82%; }
  .infos-contact { margin-top: -3rem; }
}
@media (max-width: 560px) {
  .hero { padding-top: 6.5rem; }
  .hero-boutons .btn { width: 100%; }
  .produit-image { border-radius: 18px; }
  .produit-texte { flex-direction: column; gap: .3rem; }
  .produit h3 { font-size: 1.08rem; }
  .produit-texte p { display: none; }
  .produit-prix { text-align: left; }
  .produit-prix small { display: inline; margin-left: .3rem; }
  .produit-ajout { right: 10px; bottom: 10px; height: 44px; min-width: 44px; padding: 0 12px; }
  .produit-badge { top: 10px; left: 10px; font-size: .6rem; }
  .parfums { grid-template-columns: minmax(0, 1fr); }
  .pied-bas { justify-content: center; text-align: center; }
  .pied-bas p:last-child { padding: 0 0 4.5rem; }
  .toast { bottom: 5.6rem; }
}
/* Sur écran tactile, pas de survol : le bouton « + » reste compact */
@media (hover: none) {
  .produit:hover .produit-ajout span { max-width: 0; margin-left: 0; opacity: 0; }
  .curseur-rond { display: none; }
}

/* Si la personne a demandé « moins d'animations » sur son appareil, on les coupe toutes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rideau { display: none; }
  .js [data-anim], .js .produit, .mot > span { opacity: 1; transform: none; }
  .js .sf-etape { opacity: 1; }
}
