/* Full Clim v2 (08/11/2026). DA : nuit glacée, matières glossy façon film d'animation, mascotte « le Givré ».
   Règles : un seul aplat menthe par écran (l'action) ; le givre pour tout le reste ; une propriété par rôle
   (transform = défilement, translate = flottement, scale = doigt) pour que rien ne s'écrase (SOP Pecandou). */
:root {
  --nuit: #071428;
  --nuit-2: #0c2140;
  --nuit-3: #12305c;
  --givre: #7FDBFF;
  --givre-pale: #c9f1ff;
  --menthe: #3DDC97;
  --menthe-2: #1fbf7c;
  --menthe-3: #0f8f5a;
  --frost: #F4FBFF;
  --soleil: #FFD23F;
  --doux: rgba(244, 251, 255, .68);
  --verre: linear-gradient(160deg, rgba(127, 219, 255, .16), rgba(127, 219, 255, .05) 55%, rgba(61, 220, 151, .06));
  --bord: rgba(160, 230, 255, .22);
  --rouge: #ff6b7d;
  --r: 22px;
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --ressort-doux: cubic-bezier(.2, 1.4, .4, 1);
  --sortie: cubic-bezier(.22, 1, .36, 1);
  --titre: "Baloo 2", system-ui, sans-serif;
  --texte: Inter, system-ui, sans-serif;
  --nav: calc(62px + env(safe-area-inset-bottom));
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--nuit); scroll-behavior: auto; }
body {
  min-height: 100vh; color: var(--frost); font: 15px/1.5 var(--texte);
  background:
    radial-gradient(120% 50% at 85% -8%, rgba(127, 219, 255, .22) 0, transparent 60%),
    radial-gradient(90% 40% at 0% 30%, rgba(61, 220, 151, .08) 0, transparent 60%),
    linear-gradient(180deg, var(--nuit-2) 0, var(--nuit) 45%) fixed, var(--nuit);
  padding-bottom: calc(var(--nav) + 90px);
  -webkit-user-select: none; user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
body.bloque { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--frost); }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
.hidden, [hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.neige { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .tete, .bande { position: relative; z-index: 1; }

/* ---------- Boutons glossy ---------- */
.btn {
  position: relative; overflow: hidden; display: block; width: 100%; padding: 16px 18px; border-radius: 18px;
  font: 800 19px/1.1 var(--titre); letter-spacing: .01em; color: #04251a;
  background: linear-gradient(180deg, #7ff0bf 0, var(--menthe) 45%, var(--menthe-2) 100%);
  box-shadow: 0 6px 0 var(--menthe-3), 0 14px 28px rgba(61, 220, 151, .35), inset 0 2px 0 rgba(255, 255, 255, .65), inset 0 -3px 6px rgba(0, 80, 50, .25);
  transition: box-shadow .15s, translate .15s;
}
/* Le reflet de bonbon : une bande claire en haut du bouton */
.btn::before { content: ""; position: absolute; left: 8%; right: 8%; top: 5px; height: 38%; border-radius: 99px; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn:active { translate: 0 4px; box-shadow: 0 2px 0 var(--menthe-3), 0 6px 14px rgba(61, 220, 151, .3), inset 0 2px 0 rgba(255, 255, 255, .6); }
.btn:disabled { filter: saturate(.3); opacity: .6; }
/* Balayage de lumière, comme les cartes Pecandou */
.btn-brille::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: balaie 3.8s 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes balaie { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.lien { color: var(--doux); font-size: 14px; padding: 12px; text-decoration: underline; text-underline-offset: 3px; }
.lien.centre { display: block; margin: 6px auto 0; }

/* Écrasement au doigt (Moelleux) : `scale` seulement */
.is-tenu { scale: 1.04 .93; transition: scale .1s ease-out; }
.is-rebond { animation: rebond .7s var(--ressort-doux); }
@keyframes rebond { 0% { scale: 1.04 .93; } 30% { scale: .97 1.04; } 55% { scale: 1.02 .985; } 80% { scale: .995 1.005; } 100% { scale: 1; } }

/* ---------- Entrée ---------- */
.entree { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; overflow: hidden; background: radial-gradient(90% 60% at 50% 35%, var(--nuit-3) 0, var(--nuit) 72%); transition: opacity .55s ease, visibility .55s; }
.entree.ouverte { opacity: 0; visibility: hidden; }
.entree-givre { position: absolute; inset: -10%; background: radial-gradient(circle at 20% 15%, rgba(201, 241, 255, .35), transparent 35%), radial-gradient(circle at 85% 80%, rgba(127, 219, 255, .25), transparent 40%), repeating-conic-gradient(from 10deg at 50% 50%, rgba(201, 241, 255, .035) 0 6deg, transparent 6deg 18deg); animation: givre-pousse 1.4s var(--sortie) both; }
@keyframes givre-pousse { from { opacity: 0; scale: 1.25; } }
/* Entrée déjà vue dans la session, ou passée d'un toucher : tout se pose d'un coup. */
.entree.rapide *, .entree.rapide { animation-duration: .01s !important; animation-delay: 0s !important; }
.entree-in { position: relative; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.entree-givre-perso { width: 150px; height: auto; margin-bottom: -26px; position: relative; z-index: 1; filter: drop-shadow(0 16px 24px rgba(127, 219, 255, .25)); animation: givre-salue 1s .9s var(--ressort) both, flotte 3.6s 1.9s ease-in-out infinite; }
@keyframes givre-salue { from { translate: 0 40px; scale: .5; opacity: 0; } }
.entree-logo { position: relative; z-index: 2; width: 92%; height: auto; filter: drop-shadow(0 14px 24px rgba(127, 219, 255, .35)); animation: logo-tombe 1s .15s var(--ressort) both; }
@keyframes logo-tombe { 0% { translate: 0 -60vh; scale: .6 1.3; } 60% { translate: 0 0; scale: 1.15 .82; } 80% { scale: .95 1.06; } 100% { translate: 0 0; scale: 1; } }
.entree-promesse { display: flex; align-items: center; gap: 10px; margin-top: 2px; font: 700 15px/1 var(--titre); color: var(--givre-pale); letter-spacing: .02em; animation: monte .6s .9s var(--sortie) both; }
.entree-promesse i { width: 6px; height: 6px; border-radius: 50%; background: var(--menthe); }
.entree-sous { color: var(--doux); margin-top: 18px; font-size: 14px; }
@keyframes monte { from { opacity: 0; translate: 0 14px; } }

/* ---------- En-tête et bande ---------- */
.notice { position: relative; z-index: 2; background: var(--soleil); color: var(--nuit); font-weight: 600; font-size: 13px; text-align: center; padding: 8px 16px; }
.tete {
  position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  background: rgba(7, 20, 40, .8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.tete-logo img { height: 40px; width: auto; filter: drop-shadow(0 4px 10px rgba(127, 219, 255, .3)); }
.tete-sac { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: var(--verre); border: 1px solid var(--bord); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.tete-sac svg { width: 22px; height: 22px; }
.tete-sac b { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--soleil); color: var(--nuit); font: 800 12px/21px var(--texte); box-shadow: 0 3px 8px rgba(255, 210, 63, .45); }
.hop { animation: hop .55s var(--ressort); }
@keyframes hop { 30% { scale: 1.32 .78; } 60% { scale: .9 1.14; } 100% { scale: 1; } }

.bande { overflow: hidden; border-block: 1px solid rgba(127, 219, 255, .14); background: linear-gradient(90deg, rgba(127, 219, 255, .1), rgba(61, 220, 151, .1)); }
.bande-in { display: flex; width: max-content; animation: defile 26s linear infinite; }
.bande-in span { display: flex; align-items: center; gap: 10px; padding: 8px 14px; white-space: nowrap; font: 700 13px/1 var(--titre); letter-spacing: .04em; color: var(--givre-pale); }
.bande-in span::after { content: "❄"; color: var(--menthe); font-size: 11px; }
@keyframes defile { to { transform: translateX(-50%); } }

main { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: 12px; border-radius: 30px; overflow: hidden; padding-bottom: 18px; background: radial-gradient(110% 70% at 70% 65%, rgba(127, 219, 255, .28), transparent 60%), linear-gradient(180deg, var(--nuit-3), var(--nuit-2)); border: 1px solid var(--bord); box-shadow: 0 30px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .15); }
.hero-txt { position: relative; z-index: 2; padding: 18px 20px 0; transform: translateY(calc(var(--p, 0) * -40px)); opacity: calc(1 - var(--p, 0) * 1.2); }
.note { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255, 210, 63, .14); color: var(--soleil); font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.hero h1 { font: 800 40px/.9 var(--titre); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; }
.hero h1 em .mot { background: linear-gradient(180deg, #fff 0, var(--givre) 60%, #4fc4f0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.mot { display: inline-block; animation: mot .75s calc(var(--k) * 110ms + var(--ent, 0s)) var(--ressort) both; }
/* Sans opacité : le titre reste lisible même si l'animation ne joue pas. */
@keyframes mot { from { translate: 0 26px; scale: .82 1.12; } }
.hero-sous { color: var(--doux); font-size: 14px; margin-top: 8px; max-width: 290px; animation: glisse .6s calc(.5s + var(--ent, 0s)) var(--sortie) both; }
.hero-scene { --h: min(270px, 33svh); position: relative; height: var(--h); display: grid; place-items: end center; }
.hero-halo { position: absolute; inset: 8% 14% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 219, 255, .5), rgba(61, 220, 151, .12) 60%, transparent); filter: blur(12px); animation: halo 4s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .6; scale: 1.08; } }
.hero-sol { position: absolute; bottom: 4px; width: 46%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 241, 255, .55), rgba(127, 219, 255, .15) 60%, transparent); filter: blur(3px); animation: sol 3.6s ease-in-out infinite; }
@keyframes sol { 50% { scale: .82 1; opacity: .7; } }
/* Le Givré : transform = défilement, translate = flottement, scale = doigt (une propriété par rôle) */
.givre-perso { position: relative; z-index: 2; height: var(--h); width: calc(var(--h) * .8); transform: translateY(calc(var(--p, 0) * 40px)) rotate(calc(var(--p, 0) * -6deg)); animation: givre-arrive .9s calc(.2s + var(--ent, 0s)) var(--sortie) both; touch-action: manipulation; transform-origin: 50% 60%; }
.givre-perso img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)) drop-shadow(0 0 22px rgba(127, 219, 255, .25)); animation: flotte-fort 3.6s 1.4s ease-in-out infinite; pointer-events: none; }
/* Apparition sur place : un pop depuis le centre, sans monter du bas (Timour, 08/11). */
@keyframes givre-arrive { from { scale: .55; } 55% { scale: 1.07; } 78% { scale: .97; } 100% { scale: 1; } }
@keyframes flotte-fort { 50% { translate: 0 -9px; } }
/* Retour sur l'accueil : le navigateur rejoue les animations d'arrivée (avec le délai de l'intro) ; on les coupe, tout est déjà en place. */
body.deja .mot, body.deja .hero-sous, body.deja .givre-perso:not(.is-rebond):not(.gele) { animation: none; }
.givre-perso.is-rebond, .givre-perso.gele { animation: givre-rebond 1.1s var(--ressort-doux); }
@keyframes givre-rebond { 0% { scale: 1.16 .78; } 25% { scale: .9 1.14; } 45% { scale: 1.06 .95; } 65% { scale: .98 1.03; } 100% { scale: 1; } }
.givre-perso.gele img { animation: gele .9s ease-out, flotte-fort 3.6s .9s ease-in-out infinite; }
@keyframes gele { 0% { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)) brightness(1.6) saturate(.4) hue-rotate(-10deg); } 100% { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)) drop-shadow(0 0 22px rgba(127, 219, 255, .25)); } }
.givre-bulle { position: absolute; z-index: 3; right: 6%; top: 10%; padding: 7px 12px; border-radius: 16px 16px 16px 4px; background: linear-gradient(180deg, #fff, var(--givre-pale)); color: var(--nuit); font: 800 14px/1 var(--titre); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); animation: bulle 2.4s 2.4s ease-in-out infinite both; transition: opacity .3s, scale .3s var(--ressort); pointer-events: none; }
@keyframes bulle { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -5px; rotate: -3deg; } }
.givre-bulle.partie { opacity: 0; scale: .6; }

/* Explosion de givre */
.givre-onde { position: fixed; z-index: 46; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none; border: 3px solid rgba(201, 241, 255, .9); box-shadow: 0 0 20px rgba(127, 219, 255, .9), inset 0 0 14px rgba(127, 219, 255, .7); animation: onde .8s var(--sortie) forwards; }
@keyframes onde { to { scale: 9; opacity: 0; border-width: 1px; } }
.eclat-givre { animation-duration: 1.15s; }
.cristal { position: fixed; z-index: 46; width: 10px; height: 22px; pointer-events: none; clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); background: linear-gradient(160deg, #fff, var(--givre) 55%, #3aa9d8); box-shadow: 0 0 10px rgba(127, 219, 255, .9); rotate: var(--rot); animation: cristal 1.1s var(--sortie) forwards; }
@keyframes cristal { from { translate: 0 0; scale: .3; opacity: 1; } 70% { opacity: 1; } to { translate: var(--dx) calc(var(--dy) + 60px); scale: 1; opacity: 0; rotate: calc(var(--rot) + 200deg); } }
.gel { position: fixed; inset: 0; z-index: 44; pointer-events: none; opacity: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(201, 241, 255, .35) 80%, rgba(255, 255, 255, .6) 100%); }
.gel.on { animation: gel 1s ease-out; }
@keyframes gel { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

.hero-cta { position: relative; z-index: 4; width: calc(100% - 36px); margin: 4px auto 0; animation: appel 2.6s 2.2s ease-in-out infinite; }
@keyframes appel { 0%, 100% { scale: 1; } 50% { scale: 1.03; } }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.atout { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px 12px; border-radius: 20px; background: var(--verre); border: 1px solid var(--bord); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.atout img { width: 58px; height: 58px; translate: 0 0; }
.atout.vu img { animation: flotte 4.4s calc(var(--i) * .5s) ease-in-out infinite; }
.atout b { font: 800 16px/1.1 var(--titre); margin-top: 4px; }
.atout span { font-size: 11.5px; color: var(--doux); line-height: 1.3; margin-top: 2px; }
@keyframes flotte { 50% { translate: 0 -5px; } }

/* ---------- Catégories ---------- */
.ancre { position: relative; top: -70px; }
.cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 18px -16px 0; padding: 4px 16px 6px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--verre); border: 1px solid var(--bord); font: 700 15px/1 var(--titre); color: var(--doux); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .25s, color .25s; }
.cat img { width: 34px; height: 34px; transition: scale .35s var(--ressort); }
.cat.is-on { background: linear-gradient(180deg, #fff, var(--givre-pale)); color: var(--nuit); border-color: #fff; }
.cat.is-on img { scale: 1.18; }

.sect-tete { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 2px 12px; }
.sect-tete h2 { font: 800 26px/1 var(--titre); }
.sect-tete span { color: var(--doux); font-size: 13px; }

/* ---------- Produits ---------- */
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.produit { position: relative; text-align: left; border-radius: var(--r); padding: 8px; overflow: hidden; background: var(--verre); border: 1px solid var(--bord); box-shadow: 0 14px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .16); }
.produit::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; }
.produit.vu::after { animation: reflet 6s calc(var(--i) * .45s + 1s) ease-in-out infinite; }
@keyframes reflet { 0%, 60% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
.vis { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 35%, rgba(127, 219, 255, .32), rgba(12, 33, 64, .3) 70%), var(--nuit-2); }
.vis img.photo-p { width: 100%; height: 100%; object-fit: cover; }
.vis img.picto-p { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); }
.produit.vu .vis img.picto-p { animation: flotte 4.4s calc(var(--i) * .3s) ease-in-out infinite; }
.produit-info { padding: 10px 4px 4px; min-height: 64px; padding-right: 46px; }
.produit h3 { font: 700 16px/1.15 var(--titre); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prix { color: var(--givre); font-weight: 700; font-size: 14px; margin-top: 3px; }
.prix small { color: var(--doux); font-weight: 500; font-size: 12px; }
.ajout-rapide { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font: 800 24px/1 var(--titre); color: #04251a; background: linear-gradient(180deg, #7ff0bf, var(--menthe) 50%, var(--menthe-2)); box-shadow: 0 4px 0 var(--menthe-3), 0 8px 16px rgba(61, 220, 151, .35), inset 0 2px 0 rgba(255, 255, 255, .6); }
.ajout-rapide.ok { background: linear-gradient(180deg, #fff, var(--givre-pale)); box-shadow: 0 4px 0 #6bb5d6, inset 0 2px 0 #fff; }

/* Révélation au défilement : cachée seulement quand le JS tourne */
.anime .rv { opacity: 0; translate: 0 24px; scale: .96; transition: opacity .6s var(--sortie), translate .7s var(--ressort-doux), scale .7s var(--ressort-doux); transition-delay: calc(var(--i, 0) * 70ms); }
.anime .rv.vu { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- Étapes et avis ---------- */
.etapes { margin-top: 26px; padding: 18px; border-radius: 26px; background: var(--verre); border: 1px solid var(--bord); }
.etapes h2 { font: 800 22px/1.1 var(--titre); margin-bottom: 12px; }
.etapes ol { list-style: none; display: grid; gap: 12px; }
.etapes li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.etapes li b { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font: 800 18px/1 var(--titre); color: var(--nuit); background: linear-gradient(180deg, #fff, var(--givre)); box-shadow: inset 0 -3px 0 rgba(0, 60, 90, .2); }
.etapes li span { color: var(--doux); font-size: 14px; }
.etapes li strong { display: block; color: var(--frost); font: 700 16px/1.2 var(--titre); }
.etapes em { font-style: normal; color: var(--givre); font-weight: 600; }

.avis-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 4px 16px; scroll-snap-type: x mandatory; }
.avis-rail::-webkit-scrollbar { display: none; }
.avis-rail .avis { flex: none; width: 78%; scroll-snap-align: start; margin: 0; }

/* ---------- Pages ---------- */
.page-tete { padding: 22px 2px 14px; }
.surtitre { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--givre); }
.page-tete h1 { font: 800 36px/1 var(--titre); margin-top: 4px; }
.carte { background: var(--verre); border: 1px solid var(--bord); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.carte .surtitre { margin-bottom: 8px; }
.texte-libre { white-space: pre-line; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--doux); margin-top: 10px; }
label input, label textarea, .promo input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; outline: none; background: rgba(4, 12, 26, .55); border: 1px solid var(--bord); resize: vertical; transition: border-color .2s, box-shadow .2s; }
label input:focus, label textarea:focus, .promo input:focus { border-color: var(--givre); box-shadow: 0 0 0 4px rgba(127, 219, 255, .15); }
::placeholder { color: rgba(244, 251, 255, .35); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-titre { font-size: 13px; font-weight: 600; color: var(--doux); margin: 14px 0 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 15px; background: rgba(4, 12, 26, .55); border: 1px solid var(--bord); }
.seg button { padding: 10px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--doux); transition: background .25s, color .25s; }
.seg button.is-on { background: linear-gradient(180deg, #fff, var(--givre-pale)); color: var(--nuit); }
.seg-mode { margin-bottom: 4px; }
.seg-mode button { font-size: 15px; font-weight: 700; }
.sur-place { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(127, 219, 255, .1); color: var(--givre-pale); font-size: 14px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puces button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--bord); font-size: 13px; }
.puces button.is-on { background: var(--frost); color: var(--nuit); }
.promo { display: flex; gap: 8px; }
.promo input { margin-top: 0; text-transform: uppercase; }
.promo button { flex: none; padding: 0 16px; border-radius: 14px; border: 1px solid var(--givre); color: var(--givre); font-weight: 700; }
.promo-etat { font-size: 13px; margin-top: 8px; font-weight: 600; }
.promo-etat.ok { color: var(--menthe); }
.promo-etat.ko { color: var(--rouge); }
.totaux div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--doux); }
.totaux .total { color: var(--frost); font: 800 24px/1.2 var(--titre); padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--bord); }
#envoyer { margin-top: 8px; }
.rassure { text-align: center; color: var(--doux); font-size: 13px; margin-top: 12px; }

.vide { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--doux); padding: 10px 12px 8px; }
.vide img { width: 210px; height: auto; margin-bottom: 4px; animation: flotte 4s ease-in-out infinite; filter: drop-shadow(0 16px 26px rgba(127, 219, 255, .22)); }
.vide b { display: block; font: 800 24px/1.2 var(--titre); color: var(--frost); margin-bottom: 4px; }
.vide .btn { margin-top: 18px; max-width: 260px; }

/* Panier */
.ligne { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 20px; background: var(--verre); border: 1px solid var(--bord); animation: glisse .45s var(--ressort) both; }
/* Sans opacité au départ : une ligne ne reste jamais invisible si l'animation ne joue pas (leçon Mr.Phone91). */
@keyframes glisse { from { translate: 0 16px; scale: .96; } }
.ligne-vis { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 35%, rgba(127, 219, 255, .32), var(--nuit-2)); }
.ligne-vis img { width: 100%; height: 100%; object-fit: cover; }
.ligne-vis img.picto-p { width: 78%; height: 78%; object-fit: contain; }
.ligne-nom { font: 700 16px/1.2 var(--titre); }
.ligne-opt { color: var(--doux); font-size: 12px; margin: 2px 0 6px; }
.ligne-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 700; white-space: nowrap; }
.ligne-retirer { font-size: 12px; color: var(--doux); text-decoration: underline; font-weight: 500; }
.qte { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; border: 1px solid var(--bord); padding: 2px; background: rgba(4, 12, 26, .35); }
.qte button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.qte button:active { background: rgba(244, 251, 255, .12); }
.qte span { min-width: 22px; text-align: center; font-weight: 700; }

.encore { margin: 4px 0 14px; }
.encore-titre { font: 800 21px/1.1 var(--titre); margin: 2px 2px 10px; }
.encore-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.encore-rail::-webkit-scrollbar { display: none; }
.encore-carte { position: relative; flex: none; width: 132px; text-align: left; padding: 7px; border-radius: 18px; background: var(--verre); border: 1px solid var(--bord); }
.encore-carte .vis { border-radius: 12px; }
.encore-carte b { display: block; font: 700 14px/1.15 var(--titre); margin-top: 6px; padding-right: 34px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.encore-carte small { color: var(--givre); font-weight: 700; }
.encore-carte .ajout-rapide { width: 32px; height: 32px; border-radius: 11px; font-size: 20px; right: 8px; bottom: 8px; }

/* Avis */
.avis-note { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.score { font: 800 48px/1 var(--titre); }
.etoiles-txt { color: var(--soleil); letter-spacing: 2px; }
.avis-note small { color: var(--doux); }
.avis { padding: 14px 16px; margin-bottom: 10px; border-radius: 20px; background: var(--verre); border: 1px solid var(--bord); }
.avis-haut { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.avis small { color: var(--doux); font-size: 12px; }
.etoiles { display: flex; gap: 4px; }
.etoiles button { font-size: 30px; color: rgba(244, 251, 255, .25); transition: scale .3s var(--ressort), color .2s; }
.etoiles button.is-on { color: var(--soleil); scale: 1.08; }
#avisForm .btn { margin-top: 14px; }

/* Contact */
.contact-accroche { color: var(--givre-pale); font: 700 16px/1.3 var(--titre); margin: -4px 2px 14px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border-radius: 20px; background: var(--verre); border: 1px solid var(--bord); color: inherit; text-decoration: none; }
.contact-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(127, 219, 255, .16); color: var(--givre); }
.contact-ico svg { width: 20px; height: 20px; }
.contact b { display: block; font: 700 16px/1.2 var(--titre); }
.contact small { color: var(--doux); }
.fleche { margin-left: auto; color: var(--givre); }
.pied { text-align: center; color: rgba(244, 251, 255, .4); font-size: 12px; padding: 28px 0 8px; }

/* ---------- Barre panier ---------- */
.barre-panier {
  position: fixed; z-index: 21; left: 12px; right: 12px; bottom: calc(var(--nav) + 10px); max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 20px; text-align: left; color: #04251a;
  background: linear-gradient(180deg, #7ff0bf, var(--menthe) 50%, var(--menthe-2)); overflow: hidden;
  box-shadow: 0 5px 0 var(--menthe-3), 0 18px 34px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .6);
  translate: 0 160%; transition: translate .5s var(--ressort);
}
.barre-panier.on { translate: 0 0; }
.barre-panier::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: balaie 4.5s 1s ease-in-out infinite; }
.bp-compte { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: var(--nuit); color: var(--frost); font: 800 18px/1 var(--titre); }
.bp-txt { flex: 1; min-width: 0; }
.bp-txt b { display: block; font: 800 18px/1.05 var(--titre); }
.bp-txt small { font-size: 12px; font-weight: 600; opacity: .75; }
.bp-total { font: 800 20px/1 var(--titre); white-space: nowrap; }
body[data-vue="panier"] .barre-panier { translate: 0 160%; }

/* ---------- Barre du bas ---------- */
.nav { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; height: var(--nav); display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px 6px env(safe-area-inset-bottom); background: rgba(7, 20, 40, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(127, 219, 255, .12); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: rgba(244, 251, 255, .5); transition: color .2s; }
.nav svg { width: 23px; height: 23px; transition: scale .35s var(--ressort), translate .35s var(--ressort); }
.nav button.is-on { color: var(--menthe); }
.nav button.is-on svg { scale: 1.12; translate: 0 -2px; }

/* ---------- Fiche produit ---------- */
.voile { position: fixed; inset: 0; z-index: 30; background: rgba(2, 8, 18, .62); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.voile.on { opacity: 1; visibility: visible; }
.fiche { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; max-width: 560px; margin: 0 auto; border-radius: 30px 30px 0 0; background: linear-gradient(180deg, var(--nuit-3), var(--nuit-2) 40%); border-top: 1px solid var(--bord); transform: translateY(105%); transition: transform .45s var(--ressort-doux); padding-bottom: env(safe-area-inset-bottom); }
.fiche.on { transform: none; }
.fiche .vis { border-radius: 0; aspect-ratio: 1.15; }
.fiche.on .vis img { animation: gelee .9s var(--ressort-doux); }
@keyframes gelee { 0% { scale: .7; } 50% { scale: 1.08 .94; } 75% { scale: .97 1.03; } 100% { scale: 1; } }
.fermer { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(7, 20, 40, .7); backdrop-filter: blur(8px); font-size: 16px; }
.fiche-corps { padding: 18px 18px 22px; }
.fiche h2 { font: 800 30px/1.02 var(--titre); margin-top: 4px; }
.desc { color: var(--doux); margin-top: 8px; white-space: pre-line; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats button { padding: 10px 14px; border-radius: 15px; border: 1px solid var(--bord); text-align: left; background: rgba(4, 12, 26, .35); transition: background .25s, scale .35s var(--ressort); }
.formats button span { display: block; font-weight: 700; }
.formats button small { color: var(--givre); }
.formats button.is-on { background: linear-gradient(180deg, #fff, var(--givre-pale)); color: var(--nuit); border-color: #fff; scale: 1.04; }
.formats button.is-on small { color: var(--nuit-3); }
.qte-ligne { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.fiche-prix { font: 800 30px/1 var(--titre); white-space: nowrap; }

/* ---------- Toast, envoi, coupure, particules ---------- */
.toast { position: fixed; z-index: 40; left: 16px; right: 16px; top: calc(70px + env(safe-area-inset-top)); max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: var(--frost); color: var(--nuit); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); translate: 0 -20px; opacity: 0; pointer-events: none; transition: translate .4s var(--ressort), opacity .3s; }
.toast.on { translate: 0 0; opacity: 1; }
.toast img { width: 34px; height: 34px; border-radius: 50%; }
.toast span { display: block; font-weight: 700; font-size: 14px; }
.toast small { color: #3a5a7a; font-size: 12px; }
.toast.ko { background: #ffe3e7; }

.vole { position: fixed; z-index: 45; width: 54px; height: 54px; pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.eclat { position: fixed; z-index: 46; pointer-events: none; font-size: 16px; color: var(--givre-pale); text-shadow: 0 0 8px rgba(127, 219, 255, .9); animation: eclat .95s var(--sortie) forwards; }
@keyframes eclat { from { translate: 0 0; scale: .4; opacity: 1; } to { translate: var(--dx) var(--dy); scale: 1.1; opacity: 0; rotate: 160deg; } }

.envoye, .coupe { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(90% 60% at 50% 35%, var(--nuit-3) 0, var(--nuit) 72%); animation: apparait .3s ease; }
.envoye img, .coupe img { width: 230px; height: auto; margin: 0 auto 8px; animation: arrive .9s var(--ressort) both, flotte 3s .9s ease-in-out infinite; }
@keyframes arrive { from { translate: 0 60px; scale: .6; opacity: 0; } }
.envoye h2 { font: 800 38px/1 var(--titre); animation: mot .7s .25s var(--ressort) both; }
.envoye p, .coupe p { color: var(--doux); margin-top: 8px; max-width: 300px; animation: monte .6s .4s var(--sortie) both; }
.coupe small { display: block; color: var(--givre); margin-top: 10px; }
@keyframes apparait { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anime .rv { opacity: 1; translate: none; scale: none; }
  .hero-txt, .givre-perso { transform: none !important; }
}

/* L'app ne zoome pas et ne glisse pas de côté sur téléphone (05/11/2026, règle 0 quinquies) : l'iPhone zoome tout seul
   sur un champ en moins de 16 px et la page reste de travers. */
html, body { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; touch-action: pan-x pan-y; }
@media (max-width: 1024px) { input, select, textarea { font-size: 16px !important; } }
