/* ==========================================================================
   Ciao VIP • espace client. Deux univers repris du Sondage Ciao :
   Kombucha (crème, brun, une couleur pastel par saveur) et Energy (noir, halo de saveur, italique majuscule).
   ========================================================================== */

body[data-space="vip"] { background: var(--brown); color: var(--cream); }

/* ==========================================================================
   Porte d'entrée (connexion, invitation, mot de passe) : deux univers en diagonale
   ========================================================================== */

.gate {
  --split: 50%;
  --slant: 6vw;
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #000;
}
.gate__stage { position: fixed; inset: 0; pointer-events: none; }
.gate__half { position: absolute; inset: 0; overflow: hidden; }
.gate__half--k {
  clip-path: polygon(0 0, calc(var(--split) + var(--slant)) 0, calc(var(--split) - var(--slant)) 100%, 0 100%);
  background: linear-gradient(#8cc3ea, #9fd06a 60%, #4d8a2c);
}
.gate__half--e { clip-path: polygon(calc(var(--split) + var(--slant)) 0, 100% 0, 100% 100%, calc(var(--split) - var(--slant)) 100%); background: #000; }
.gate__scene { position: absolute; inset: 0; width: calc(56% + var(--slant)); height: 100%; max-width: none; object-fit: cover; object-position: 54% 35%; }
.gate__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 42, 28, .12), rgba(14, 42, 28, 0) 30%, rgba(12, 34, 22, .55) 100%); }
.gate__glow {
  position: absolute;
  left: 82%;
  top: 46%;
  width: 70vmin;
  height: 70vmin;
  translate: -50% -50%;
  background-color: var(--gate-glow, #6b5eb9);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
  opacity: .85;
  transition: background-color 1.2s var(--ease);
}
.gate__product { position: absolute; top: 50%; display: grid; place-items: center; translate: -50% -50%; }
.gate__bottle { left: 16%; }
.gate__can { left: 84%; }
.gate__bottle .bottle-img { --bottle-img-h: clamp(240px, 54vh, 520px); rotate: 7deg; }
.gate__can .can-img { --can-h: clamp(200px, 44vh, 440px); rotate: -8deg; }
.gate__bottle .product3d-host { left: 50%; top: 50%; width: 320%; height: 125%; translate: -50% -50%; }
.gate__can .product3d-host { left: 50%; top: 50%; width: 300%; height: 135%; translate: -50% -50%; }

.gate__card {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  display: grid;
  gap: 20px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: 32px;
  background: var(--cream);
  color: var(--brown);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  animation: card-in .8s var(--spring) both;
}
@keyframes card-in { from { transform: translateY(26px) scale(.96) rotate(-1deg); } }
.gate__card.is-shaking { animation: shake .45s ease; }
@keyframes shake {
  20%, 60% { translate: -8px 0; }
  40%, 80% { translate: 8px 0; }
}
.gate__ring {
  position: absolute;
  top: -46px;
  right: -34px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  rotate: 10deg;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
}
.gate__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; font: 700 10.5px var(--k-body); letter-spacing: .06em; animation: ring 22s linear infinite; }
.gate__ring b { font: 800 1.55rem/1 var(--k-display); font-variation-settings: 'wdth' 85; letter-spacing: -.02em; }
@keyframes ring { to { rotate: 360deg; } }

.brandmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brandmark svg { width: 92px; height: auto; }
.vip-badge {
  display: inline-grid;
  place-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: currentColor;
  font: 800 .8rem/1 var(--k-display);
  letter-spacing: .08em;
}
.vip-badge span { color: var(--cream); }
.gate__body { display: grid; gap: 18px; animation: body-in .5s var(--spring); }
@keyframes body-in { from { transform: translateY(12px); } }
.gate__title { font: 800 clamp(1.9rem, 1.3rem + 2vw, 2.5rem)/1.02 var(--k-display); font-variation-settings: 'wdth' 88, 'opsz' 96; letter-spacing: -.025em; text-wrap: balance; }
.gate__lead { font-size: 1.05rem; line-height: 1.5; opacity: .85; text-wrap: pretty; }
.gate__form { display: grid; gap: 16px; }
.gate__form .btn--primary { width: 100%; min-height: 54px; font-size: 1.05rem; }
.gate__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .95rem; }
.gate__links a { font-weight: 600; text-underline-offset: 3px; }
.gate__fine { font-size: .85rem; line-height: 1.5; opacity: .7; }
.gate__state { display: grid; justify-items: start; gap: 14px; }
.gate__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: #f1e6d4; }
.gate__icon svg { width: 28px; height: 28px; }

/* Nom de code : un cadenas qui s'ouvre quand le code est bon */
.lock { width: 64px; height: 64px; margin: 2px 0 -4px; color: var(--brown); }
.lock__shackle { transform-box: view-box; transform-origin: 53px 36px; transition: transform .7s var(--spring); }
.lock__body { transition: fill .4s; }
.is-unlocked .lock__shackle { transform: translateY(-6px) rotate(24deg); }
.is-unlocked .lock__body { fill: #2f8f5b; }
.code-field {
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--brown) 35%, transparent);
  background: #fff;
  font: 800 1.45rem/1.2 var(--k-display);
  font-variation-settings: 'wdth' 85;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s;
}
.code-field::placeholder { color: rgba(47, 37, 33, .3); letter-spacing: .1em; }
.code-field:focus { outline: none; border-style: solid; border-color: var(--brown); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brown) 12%, transparent); }
.code-field[aria-invalid="true"] { border-color: var(--error); }
.is-unlocked .code-field { border-style: solid; border-color: #2f8f5b; color: #2f8f5b; }

.meter { height: 6px; border-radius: 99px; background: rgba(47, 37, 33, .1); overflow: hidden; }
.meter__fill { height: 100%; width: calc(var(--m, 0) * 100%); border-radius: inherit; background: var(--m-color, #c0392b); transition: width .4s var(--ease), background-color .3s; }

.steps { display: flex; gap: 6px; }
.steps span { height: 4px; flex: 1; border-radius: 99px; background: rgba(47, 37, 33, .12); }
.steps span.is-on { background: var(--brown); }

@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
  .gate { --slant: 5vw; align-items: end; padding-top: 0; }
  .gate__stage { position: absolute; height: 46svh; }
  .gate__scene { width: 100%; }
  .gate__bottle { left: 22%; top: 46%; }
  .gate__can { left: 78%; top: 46%; }
  .gate__bottle .bottle-img { --bottle-img-h: 30svh; }
  .gate__can .can-img { --can-h: 25svh; }
  .gate__glow { left: 78%; top: 44%; width: 90vmin; height: 70vmin; }
  .gate__card { margin-top: 38svh; border-radius: 30px; }
  .gate__ring { top: -40px; right: 12px; width: 88px; height: 88px; }
  .gate__ring b { font-size: 1.2rem; }
  .gate__ring svg { font-size: 9px; }
}

/* ==========================================================================
   Images et 3D des produits (reprises du sondage)
   ========================================================================== */

.product3d-host { position: absolute; pointer-events: none; }
.product3d { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.has-3d .product3d { opacity: 1; }
.has-3d > .can-img, .has-3d > .bottle-img { opacity: 0; }
.can-img {
  display: block;
  height: var(--can-h, 360px);
  width: auto;
  aspect-ratio: 360 / 760;
  flex: none;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .65));
  transition: rotate .7s var(--spring), scale .7s var(--spring), opacity .4s var(--ease);
  pointer-events: none;
}
.bottle-img {
  display: block;
  height: var(--bottle-img-h, 400px);
  width: auto;
  aspect-ratio: 360 / 1000;
  flex: none;
  filter: drop-shadow(0 26px 30px rgba(10, 30, 15, .45));
  transition: rotate .7s var(--spring), scale .7s var(--spring), opacity .4s var(--ease);
  pointer-events: none;
}
.is-switching { animation: pop .6s var(--spring); }
@keyframes pop { 0% { scale: .82; } 100% { scale: 1; } }

/* Bouteille-jauge du quota Kombucha (la bouteille SVG du sondage) */
.bottle { position: relative; height: var(--bottle-h, 60px); aspect-ratio: 120 / 324; flex: none; --level: calc(1.1% + var(--p) * 83.5%); }
.bottle__glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 8%, rgba(255, 255, 255, .45));
  -webkit-mask: var(--bottle-mask) center / 100% 100% no-repeat;
  mask: var(--bottle-mask) center / 100% 100% no-repeat;
}
.bottle__liquid { position: absolute; left: 0; right: 0; bottom: 0; height: max(0%, calc(var(--level) - 9%)); background-color: var(--liquid, var(--accent)); transition: background-color .6s var(--ease); }
.bottle__surface { position: absolute; left: -20%; right: -20%; height: 16%; bottom: calc(var(--level) - 14.24%); opacity: clamp(0, var(--p) * 40, 1); transform-origin: 50% 11%; }
.bottle__slosh { position: absolute; inset: 0; transform-origin: 50% 11%; }
.bottle__slosh.is-sloshing { animation: slosh 1.9s cubic-bezier(.3, .6, .4, 1); }
@keyframes slosh { 0% { rotate: 0deg; } 14% { rotate: -4deg; } 34% { rotate: 2.8deg; } 54% { rotate: -1.6deg; } 74% { rotate: .7deg; } 100% { rotate: 0deg; } }
.bottle__wave { position: absolute; top: 0; bottom: 0; left: 0; width: 200%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; }
.bottle__wave--back {
  background: linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)), var(--liquid, var(--accent));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%208C66%202%20134%202%20200%208S334%2014%20400%208V100H0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%208C66%202%20134%202%20200%208S334%2014%20400%208V100H0Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 50% 100%;
  mask-size: 50% 100%;
  animation: swell-back 9s linear infinite;
}
.bottle__wave--front {
  background: linear-gradient(rgba(255, 255, 255, .5) 4%, rgba(255, 255, 255, .12) 13%, rgba(255, 255, 255, 0) 22%), var(--liquid, var(--accent));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2011C66%205%20134%205%20200%2011S334%2017%20400%2011V100H0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20400%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2011C66%205%20134%205%20200%2011S334%2017%20400%2011V100H0Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 25% 100%;
  mask-size: 25% 100%;
  animation: swell-front 5.5s linear infinite;
}
@keyframes swell-front { to { transform: translateX(-50%); } }
@keyframes swell-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.bottle__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 10, .26) 0%, rgba(20, 8, 10, 0) 16%, rgba(255, 255, 255, .16) 26%, rgba(255, 255, 255, 0) 38%, rgba(20, 8, 10, 0) 72%, rgba(20, 8, 10, .28) 100%),
    linear-gradient(0deg, rgba(20, 8, 10, .18) 0%, rgba(20, 8, 10, 0) 45%);
}
.bottle__bubbles { position: absolute; inset: 0; opacity: clamp(0, (var(--p) - .06) * 12, 1); }
.bubble {
  position: absolute;
  bottom: 3%;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 60%, rgba(255, 255, 255, .1));
  animation: rise var(--d) cubic-bezier(.45, 0, .8, .6) infinite;
  animation-delay: var(--delay);
}
@keyframes rise {
  0% { bottom: 3%; opacity: 0; transform: translateX(0); }
  12% { opacity: .85; }
  35% { transform: translateX(var(--sway)); }
  65% { transform: translateX(calc(var(--sway) * -.6)); }
  90% { opacity: .75; }
  100% { bottom: calc(var(--level) - 2%); opacity: 0; transform: translateX(0); }
}
.bottle__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bottle__shape { fill: none; stroke: var(--ink); stroke-width: 2.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .6s var(--ease); }
.bottle__label-bg { fill: var(--ink); fill-opacity: .58; transition: fill .6s var(--ease); }
.bottle__logo { color: var(--bg); opacity: .92; transition: color .6s var(--ease); }
.bottle__shine { fill: rgba(255, 255, 255, .4); }
.cap__skirt, .cap__ring { stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }

/* ==========================================================================
   Boutique : univers Kombucha (pastel) et Energy (noir lumineux)
   ========================================================================== */

.shop {
  --bg: #c9e1b8;
  --ink: #006e4b;
  --accent: #428257;
  --liquid: #e8475f;
  --glow: #6b5eb9;
  --light: #bda1ff;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  transition: --p 1.1s var(--spring), background-color .7s var(--ease), color .5s var(--ease);
}
.shop--k { background-color: var(--bg); color: var(--brown); }
.shop--e { background-color: #000; color: #fff; font-family: var(--e-body); }
.shop__glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-color: var(--glow);
  -webkit-mask-image: radial-gradient(60% 45% at 70% 10%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
  mask-image: radial-gradient(60% 45% at 70% 10%, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
  opacity: 0;
  transition: opacity .7s var(--ease), background-color .8s var(--ease);
}
.shop--e .shop__glow { opacity: .7; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 10px var(--gutter);
  transition: background-color .7s var(--ease);
}
.shop--k .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.shop--e .topbar { background: linear-gradient(rgba(0, 0, 0, .9) 55%, rgba(0, 0, 0, 0)); }
.topbar .brandmark svg { width: clamp(72px, 9vw, 96px); }
.shop--e .brandmark svg { width: clamp(64px, 8vw, 84px); }
.shop--e .vip-badge { border-radius: 6px; font-family: var(--e-mono); font-weight: 500; letter-spacing: .14em; }
.shop--e .vip-badge span { color: #000; }
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .2s;
}
.shop--k .topbar__link[aria-current="page"] { background: rgba(255, 255, 255, .6); }
.shop--e .topbar__link { font: 500 .78rem/1 var(--e-mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 8px; }
.shop--e .topbar__link[aria-current="page"] { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
/* Retour à l'admin (comptes administrateurs) */
.topbar__link--admin { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); }
.topbar__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font: 700 .75rem/1 var(--k-body);
}
.shop--e .topbar__count { background: var(--light); color: #000; }
.topbar__me {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  font: 800 1rem/1 var(--k-display);
  text-decoration: none;
  transition: transform .3s var(--spring);
}
.topbar__me:hover { transform: rotate(-8deg) scale(1.05); }
.shop--e .topbar__me { background: #fff; color: #000; border-radius: 10px; font-family: var(--e-mono); }

.shop__main { position: relative; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px var(--gutter) 150px; }

/* Bonjour + jauges du mois */
.hello { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: clamp(10px, 3vh, 34px) 0 26px; }
.hello__kicker { font-weight: 700; font-size: 1.05rem; opacity: .75; }
.shop--e .hello__kicker { font: 500 .8rem/1 var(--e-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--light); opacity: 1; }
.hello__title { margin-top: 4px; text-wrap: balance; }
.shop--k .hello__title { font: 800 clamp(2.3rem, 1.2rem + 4vw, 4.6rem)/.98 var(--k-display); font-variation-settings: 'wdth' 88, 'opsz' 96; letter-spacing: -.03em; color: var(--ink); transition: color .6s var(--ease); }
.shop--e .hello__title { font: italic 900 clamp(2.3rem, 1.1rem + 4vw, 4.8rem)/.92 var(--e-display); text-transform: uppercase; letter-spacing: -.01em; }

/* Le mois en colis : un carton ou une barquette comptent chacun pour un. La bouteille (ou l'éclair côté Energy) se
   remplit ; une case par colis, bouteille pour un carton, éclair pour une barquette (déjà commandé : en retrait). */
.pool {
  --p: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  max-width: 760px;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .55);
  transition: background-color .4s, box-shadow .3s, border-radius .4s;
}
.shop--e .pool { border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pool__visual { display: grid; place-items: center; width: 34px; flex: none; }
.pool__visual .bottle { --bottle-h: 66px; rotate: -6deg; }
.pool__visual .quota__bolt, .shop--e .pool__visual .bottle { display: none; }
.shop--e .pool__visual .quota__bolt { display: block; }
.quota__bolt { width: 34px; flex: none; filter: drop-shadow(0 0 10px var(--light)); color: var(--light); }
.quota__bolt svg { width: 100%; fill: currentColor; }
.pool__text { display: grid; gap: 4px; flex: 1 1 210px; min-width: 0; }
.pool__kicker, .pool__detail { font-size: .9rem; opacity: .75; }
.pool__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pool__n { font: 800 2.2rem/1 var(--k-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.pool__unit { font: 800 1.1rem/1.1 var(--k-display); color: var(--ink); }
.shop--e .pool__n { font: italic 900 2.2rem/1 var(--e-display); color: #fff; }
.shop--e .pool__unit { font: 500 .78rem/1.3 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--light); }
.shop--e .pool__kicker { font: 500 .74rem/1.3 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.pool.is-full .pool__n { opacity: .5; }
.pool.is-unlimited .pool__n { font-size: 1.75rem; }
.pool__gauge { flex: 1 1 250px; min-width: 0; }
.pool.is-unlimited .pool__gauge { display: none; }

.slots { display: flex; gap: 6px; }
.slot {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  max-width: 34px;
  height: 44px;
  border: 2px dashed color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 10px;
  transition: opacity .3s, background-color .4s;
}
.slot svg { width: auto; height: 58%; }
.slot--kombucha, .slot--energy { border: 0; }
.slot--kombucha { background: var(--ink); }
.slot--kombucha svg { fill: var(--bg); }
.slot--energy { background: #000; box-shadow: 0 0 14px color-mix(in srgb, var(--light) 40%, transparent); }
.slot--energy svg { fill: var(--light); filter: drop-shadow(0 0 4px var(--light)); }
.shop--e .slot--kombucha { background: var(--bg); }
.shop--e .slot--kombucha svg { fill: var(--ink); }
.shop--e .slot--energy { background: var(--light); }
.shop--e .slot--energy svg { fill: #000; filter: none; }
.slot.is-used { opacity: .4; }
.slot.is-new { animation: slot-pop .5s var(--spring); }
@keyframes slot-pop { from { transform: scale(.3); } }
.pbar { display: flex; height: 14px; overflow: hidden; border-radius: 7px; box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 22%, transparent); }
.pbar__seg { display: block; height: 100%; transition: width .5s var(--spring); }
.pbar__seg--kombucha { background: var(--ink); }
.pbar__seg--energy { background: #000; }
.shop--e .pbar__seg--kombucha { background: var(--bg); }
.shop--e .pbar__seg--energy { background: var(--light); }
.pbar__seg.is-used { opacity: .4; }

/* Bascule entre les deux gammes */
.switch {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 560px);
  margin: 6px 0 22px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.shop--e .switch { border-radius: 12px; background: rgba(20, 20, 20, .75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.switch__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--brown);
  transition: translate .55s var(--spring), border-radius .4s, background-color .4s;
}
.shop--e .switch__thumb { translate: 100% 0; border-radius: 9px; background: #fff; box-shadow: 0 0 26px color-mix(in srgb, var(--light) 50%, transparent); }
.switch__btn {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 56px;
  padding: 6px 10px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 999px;
  transition: color .3s;
}
.switch__name { font: 800 1.02rem/1.05 var(--k-display); font-variation-settings: 'wdth' 90; }
.switch__sub { font-size: .76rem; font-weight: 600; opacity: .7; }
.shop--k .switch__btn--k { color: var(--cream); }
.shop--e .switch__btn--e { color: #000; }
.shop--e .switch__btn--k { color: #fff; }
.shop--e .switch__name { font-family: var(--e-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: .92rem; letter-spacing: .01em; }
.shop--e .switch__sub { font-family: var(--e-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .64rem; }

/* Une gamme : produit en 3D à côté des saveurs (grand écran) */
.range { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.range__stage { display: none; }
.range__note { margin-bottom: 18px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .55); font-weight: 600; }
.shop--e .range__note { border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-family: var(--e-body); font-weight: 500; }
.flavors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.flavors.is-entering > * { animation: card-pop .55s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes card-pop { from { transform: translateY(18px) scale(.94); } }

.flavor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 14px;
  text-align: center;
  transition: transform .4s var(--spring), box-shadow .3s, border-color .3s, background-color .3s, opacity .3s;
}
.flavor__visual { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(130px, 17vw, 180px); }
.flavor__img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .5s var(--spring), filter .3s; pointer-events: none; }
.flavor__name { line-height: 1.05; }
.flavor__units { min-height: 1.2em; font-size: .85rem; font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; }
/* Agent : prix public du colis et de l'unité, puis valeur de ce qui est choisi */
.flavor__price { font-size: .8rem; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.flavor__price b { font-weight: 800; }
.flavor__out {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 700;
}
.flavor.is-out .flavor__img { filter: grayscale(1); opacity: .45; }
.flavor.is-out { opacity: .82; }
.flavor.is-bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: translateY(-6px) scale(1.04) rotate(-1.5deg); } }

.shop--k .flavor {
  border-radius: 26px;
  background: var(--f-bg);
  color: var(--f-ink);
  border: 2px solid color-mix(in srgb, var(--f-ink) 18%, transparent);
}
.shop--k .flavor__img { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .18)); rotate: 4deg; }
.shop--k .flavor__name { font: 800 1.2rem/1.05 var(--k-display); font-variation-settings: 'wdth' 88; }
.shop--k .flavor__out { background: var(--f-ink); color: var(--f-bg); }
@media (hover: hover) {
  .shop--k .flavor:not(.is-out):hover { transform: translateY(-4px) rotate(.8deg); }
  .shop--k .flavor:not(.is-out):hover .flavor__img { transform: rotate(-9deg) scale(1.05); }
}
.shop--k .flavor.is-picked { border-color: var(--f-ink); box-shadow: 0 0 0 3px var(--f-ink), 0 18px 34px rgba(0, 0, 0, .14); transform: rotate(-1.5deg) scale(1.02); }
.shop--k .flavor.is-picked .flavor__img { transform: rotate(-11deg) scale(1.1); }

.shop--e .flavor {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(60% 50% at 50% 38%, color-mix(in srgb, var(--f-glow) 42%, transparent), transparent 75%),
    rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.shop--e .flavor__img { rotate: -8deg; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .65)); }
.shop--e .flavor__name { font: italic 900 1.02rem/1.05 var(--e-display); text-transform: uppercase; }
.shop--e .flavor__units { font: 500 .72rem/1.3 var(--e-mono); letter-spacing: .08em; text-transform: uppercase; }
.shop--e .flavor__price { font: 500 .7rem/1.3 var(--e-mono); letter-spacing: .06em; text-transform: uppercase; }
.shop--e .flavor__out { border-radius: 6px; background: #fff; color: #000; font: 500 .68rem/1 var(--e-mono); letter-spacing: .08em; text-transform: uppercase; }
@media (hover: hover) {
  .shop--e .flavor:not(.is-out):hover { border-color: var(--f-light); }
  .shop--e .flavor:not(.is-out):hover .flavor__img { transform: translateY(-6px) rotate(14deg); }
}
.shop--e .flavor.is-picked {
  border-color: var(--f-light);
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--f-light) 45%, transparent), transparent 75%),
    color-mix(in srgb, var(--f-glow) 38%, #000);
  box-shadow: 0 0 34px color-mix(in srgb, var(--f-glow) 60%, transparent);
}
.shop--e .flavor.is-picked .flavor__img { transform: scale(1.08) rotate(12deg); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--f-light) 70%, transparent)) drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }

/* Compteur − n + */
.stepper { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.stepper__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  font: 700 1.5rem/1 var(--k-body);
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--spring), background-color .2s, opacity .2s, box-shadow .2s;
}
.stepper__btn:active:not(:disabled) { transform: scale(.88); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper__btn.is-blocked { animation: shake .4s ease; }
.stepper__value { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.stepper__value.is-bump { animation: value-bump .45s var(--spring); }
@keyframes value-bump { 40% { transform: scale(1.45); } }
.shop--k .stepper__btn { border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--f-ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--f-ink) 30%, transparent); }
.shop--k .stepper__btn[data-step="1"]:not(:disabled) { background: var(--f-ink); color: var(--f-bg); box-shadow: none; }
.shop--k .stepper__value { font: 800 1.6rem/1 var(--k-display); }
.shop--e .stepper__btn { border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-family: var(--e-mono); font-weight: 500; }
.shop--e .stepper__btn[data-step="1"]:not(:disabled) { background: #fff; color: #000; box-shadow: 0 0 18px color-mix(in srgb, var(--f-light) 45%, transparent); }
.shop--e .stepper__value { font: italic 900 1.55rem/1 var(--e-display); }

/* Barre panier collée en bas */
.cartbar {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(calc(100% - 2 * var(--gutter)), 760px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .3);
  transition: transform .5s var(--spring), background-color .5s, border-radius .4s;
}
.cartbar.is-bump { animation: cart-bump .5s var(--spring); }
@keyframes cart-bump { 40% { transform: scale(1.04); } }
.cartbar__lines { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: .95rem; }
.cartbar__line { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cartbar__line b { font: 800 1.2rem/1 var(--k-display); font-variant-numeric: tabular-nums; }
.cartbar__line.is-pop b { animation: line-pop .45s var(--spring); }
@keyframes line-pop { 40% { transform: scale(1.4); } }
.cartbar__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cartbar__empty { opacity: .75; font-weight: 600; }
.cartbar .btn { flex: none; background: var(--cream); color: var(--brown); min-height: 52px; }
.shop--e .cartbar { border-radius: 14px; background: #fff; color: #000; box-shadow: 0 0 40px color-mix(in srgb, var(--light) 40%, transparent); }
.shop--e .cartbar .btn { background: #000; color: #fff; border-radius: 9px; font: 500 .85rem/1.1 var(--e-body); letter-spacing: .05em; text-transform: uppercase; }
.shop--e .cartbar__line b { font-family: var(--e-display); font-style: italic; font-weight: 900; }
/* Vider la sélection en cours (icône seule sur petit téléphone) */
.cartbar__clear { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 700 .9rem/1 var(--k-body); opacity: .75; cursor: pointer; transition: opacity .2s, background-color .2s; }
.cartbar__clear:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.cartbar__clear[hidden] { display: none; }
.cartbar__clear svg { width: 18px; height: 18px; flex: none; }
.shop--e .cartbar__clear { border-radius: 9px; font: 500 .75rem/1 var(--e-mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 480px) {
  .cartbar__clear { padding: 0 10px; }
  .cartbar__clear-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Agent : valeur de la sélection, au prix public */
.cartbar__value { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; opacity: .85; }
.cartbar__value b { font: 800 1.05rem/1 var(--k-display); font-variant-numeric: tabular-nums; }
.shop--e .cartbar__value b { font-family: var(--e-display); font-style: italic; }

.fly { position: fixed; z-index: 60; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

/* ==========================================================================
   Validation (feuille qui monte), confirmation
   ========================================================================== */

dialog.sheet {
  width: min(100%, 640px);
  max-width: 100%;
  max-height: min(94dvh, 900px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 30px 30px 0 0;
  background: var(--cream);
  color: var(--brown);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .3);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.sheet::backdrop { background: rgba(20, 14, 12, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: sheet-up .5s var(--spring); }
@keyframes sheet-up { from { transform: translateY(40%); opacity: .2; } }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border-radius: 30px; }
}
.sheet__inner { display: grid; gap: 22px; padding: 26px clamp(20px, 4vw, 34px) calc(26px + env(safe-area-inset-bottom)); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet__title { font: 800 clamp(1.8rem, 1.3rem + 2vw, 2.4rem)/1 var(--k-display); font-variation-settings: 'wdth' 88; letter-spacing: -.02em; }
.sheet__close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: rgba(47, 37, 33, .08); font-size: 1.4rem; cursor: pointer; }
.sheet__section { display: grid; gap: 12px; }
.sheet__label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.recap { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.recap__line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; }
.recap__img { height: 46px; width: 32px; object-fit: contain; flex: none; }
.recap__name { flex: 1; min-width: 0; font-weight: 700; }
.recap__brand { display: block; font-size: .8rem; font-weight: 600; opacity: .6; }
.recap__qty { text-align: right; font-weight: 700; white-space: nowrap; }
.recap__qty small { display: block; font-weight: 600; opacity: .6; }
/* Commande offerte : prix public barré, puis 0 € */
.recap__price { display: block; margin-top: 3px; font-size: .82rem; }
.recap__price s, .recap__sum s { opacity: .5; font-weight: 600; text-decoration-thickness: 1.5px; }
.recap__price b { margin-left: 2px; }
.recap__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px #c9e1b8; }
.recap__sum-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.recap__gift { padding: 5px 10px; border-radius: 999px; background: #c9e1b8; color: #006e4b; font-size: .78rem; font-weight: 800; }
.recap__sum-prices { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.recap__sum s { font-size: 1.05rem; text-decoration-thickness: 2px; }
.recap__sum b { font: 800 1.75rem/1 var(--k-display); }
.recap__chip { width: 12px; height: 12px; border-radius: 50%; flex: none; }
/* Encart de l'équipe (page Message de l'admin), sous le total : le quota du mois, par exemple. */
.recap__note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff3d1; color: #553800; box-shadow: inset 0 0 0 1.5px #edc35a; }
.recap__note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.recap__note-text { margin: 0; font-weight: 600; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.recap__note-preview { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.form-grid > * { grid-column: span 6; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .span-4 { grid-column: span 4; }
@media (max-width: 520px) {
  .form-grid .span-3 { grid-column: span 6; }
}
/* Agent : contact pour la livraison (le guest, lui-même, une autre personne) */
/* Agent : ses guests gardés et les sociétés inscrites, sous le champ « Nom du guest » */
.guest-suggest { display: grid; gap: 2px; max-height: 280px; margin-top: -4px; padding: 6px; overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(47, 37, 33, .16), inset 0 0 0 1.5px rgba(47, 37, 33, .1); }
.guest-suggest[hidden] { display: none; }
.guest-suggest__item { display: grid; gap: 2px; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.guest-suggest__item:hover, .guest-suggest__item:focus-visible { background: rgba(47, 37, 33, .07); outline: none; }
.guest-suggest__item small { font-size: .82rem; opacity: .65; }
/* Admin : « Personne à livrer » avec sa liste, puis le guest rattaché ou l'invitation à enregistrer son adresse. */
.recipient-pick { display: grid; gap: 8px; }
.pick-note { margin: 0; font-size: .9rem; line-height: 1.45; }
.pick-note[hidden] { display: none; }
.pick-note a { color: inherit; font-weight: 600; }
.contact-choice { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-choice legend { margin-bottom: 8px; padding: 0; }
.contact-choice__options { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-choice__options label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(47, 37, 33, .16); font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.contact-choice__options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.contact-choice__options label:has(input:checked) { background: var(--brown); color: var(--cream); box-shadow: none; }
.contact-choice__options label:has(input:focus-visible) { outline: 3px solid var(--brown); outline-offset: 2px; }
[data-contact-name][hidden] { display: none; }
.sheet__foot { display: grid; gap: 12px; }
.sheet__foot .btn--primary { width: 100%; min-height: 58px; font-size: 1.1rem; }

.done {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  background: color-mix(in srgb, var(--done-bg, var(--bg)) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade-in .4s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
.done__box { display: grid; justify-items: center; gap: 16px; width: min(100%, 520px); text-align: center; color: var(--brown); }
.done__check { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--brown); color: var(--cream); animation: pop-check .8s var(--spring) both; }
.done__check svg { width: 46px; height: 46px; }
.done__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .35s var(--ease) forwards; }
@keyframes pop-check { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { font: 800 clamp(2.6rem, 1.6rem + 5vw, 4.8rem)/.95 var(--k-display); font-variation-settings: 'wdth' 85, 'opsz' 96; letter-spacing: -.03em; }
.done__lead { font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.done--e { background: rgba(0, 0, 0, .9); }
.done--e .done__box { color: #fff; }
.done--e .done__check { background: var(--light); color: #000; box-shadow: 0 0 40px var(--light); }
.done--e .done__title { font: italic 900 clamp(2.6rem, 1.6rem + 5vw, 5rem)/.9 var(--e-display); text-transform: uppercase; }
.done--e .btn--primary { background: #fff; color: #000; }

.burst { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
.burst > * { position: absolute; left: 50%; top: 42%; }
.burst__item { height: clamp(58px, 8vw, 92px); width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.burst__dot { width: 14px; height: 14px; border-radius: 50%; }
.burst__bolt { width: clamp(24px, 3vw, 36px); }
.burst__bolt svg { fill: currentColor; filter: drop-shadow(0 0 6px currentColor); }
.burst__spark { width: 3px; height: 26px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ==========================================================================
   Pages : commandes, compte, informations
   ========================================================================== */

.page { display: grid; gap: 22px; max-width: 860px; padding-top: clamp(12px, 3vh, 30px); }
.page__title { font: 800 clamp(2.2rem, 1.3rem + 3.5vw, 4rem)/.98 var(--k-display); font-variation-settings: 'wdth' 88, 'opsz' 96; letter-spacing: -.03em; color: var(--ink); }
.page__lead { font-size: 1.08rem; line-height: 1.55; max-width: 60ch; }
.panel { display: grid; gap: 16px; padding: clamp(18px, 3vw, 26px); border-radius: 26px; background: rgba(255, 255, 255, .62); }
.panel__title { font: 800 1.35rem/1.1 var(--k-display); font-variation-settings: 'wdth' 90; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.empty { display: grid; justify-items: start; gap: 14px; padding: 28px; border-radius: 26px; background: rgba(255, 255, 255, .55); }
.empty__title { font: 800 1.6rem/1.1 var(--k-display); font-variation-settings: 'wdth' 90; color: var(--ink); }

/* Mes guests (agents et admins) : liste, puis fiche d'un guest avec ses chiffres */
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.back-link { justify-self: start; color: inherit; font-weight: 700; text-decoration: none; opacity: .7; }
.back-link:hover { opacity: 1; }
.guests { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .guests { grid-template-columns: 1fr 1fr; }
}
.guest { display: grid; align-content: start; gap: 6px; padding: clamp(18px, 3vw, 22px); border-radius: 24px; background: rgba(255, 255, 255, .66); color: inherit; text-decoration: none; transition: transform .25s var(--spring), background-color .2s; }
.guest:hover { background: rgba(255, 255, 255, .85); }
.guest:active { transform: scale(.985); }
.guest__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.guest__name { font: 800 1.25rem/1.15 var(--k-display); font-variation-settings: 'wdth' 90; overflow-wrap: anywhere; }
.guest__tag { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #e4ecfa; color: #1f4f9e; font-size: .74rem; font-weight: 800; }
.guest__by { font-size: .85rem; font-weight: 600; opacity: .62; }
.guest__line { font-size: .95rem; }
.guest__line--muted { font-style: italic; opacity: .6; }
.guest__sum { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed rgba(47, 37, 33, .2); font-size: .92rem; font-weight: 600; }
.guest__value { margin-left: auto; font-weight: 800; }
.guest__address { display: grid; font-style: normal; }
.guest__info { font-size: .92rem; font-style: italic; opacity: .75; white-space: pre-line; }
.guest__notes { font-size: .92rem; white-space: pre-line; }
.guests__none { opacity: .7; }
.gfigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gfig { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #f1f8ef; color: #1d6b39; }
.gfig--energy { background: #121016; color: #fff; }
.gfig__brand { font-size: .82rem; font-weight: 800; opacity: .8; }
.gfig__packs { font-weight: 700; }
.gfig__packs b { font: 800 2rem/1 var(--k-display); }
.gfig__units { font-size: .85rem; opacity: .75; }
.gmoney { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.gmoney div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.gmoney dt { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.gmoney dd { margin: 0; font: 800 1.3rem/1.1 var(--k-display); }
.gmoney .gmoney__sub { font: 600 .82rem/1.3 var(--k-body); opacity: .6; }
@media (max-width: 480px) {
  .gmoney { grid-template-columns: 1fr; }
}
.gorders { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gorder { display: grid; gap: 3px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.gorder__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gorder__status { margin-left: auto; font-size: .82rem; font-weight: 800; }
.gorder__status--livree { color: #1b6a3c; }
.gorder__status--annulee { opacity: .55; }
.gorder__items { font-size: .92rem; }
.gorder__meta { font-size: .85rem; opacity: .65; }
.order { display: grid; gap: 16px; padding: clamp(18px, 3vw, 24px); border-radius: 26px; background: rgba(255, 255, 255, .66); }
.order.is-new { animation: card-pop .6s var(--spring); }
.order__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.order__number { font: 800 1.3rem/1 var(--k-display); font-variation-settings: 'wdth' 90; }
/* Admin ou agent : pour qui est la commande */
.order__for { font-size: .95rem; }
.order__date { font-size: .9rem; opacity: .7; }
.order__items { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.order__item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; }
.order__item.is-short { box-shadow: inset 0 0 0 2px #e0a800; }
/* Kombucha : pastille pastel et bouteille ; Energy : pastille noire et éclair lumineux. */
.order__chip { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--chip); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.order__chip svg { width: auto; height: 13px; fill: rgba(0, 0, 0, .55); }
.order__item--energy { background: #000; color: #fff; font-family: var(--e-body); }
.order__item--energy .order__chip { background: #000; box-shadow: none; }
.order__item--energy .order__chip svg { fill: var(--chip); filter: drop-shadow(0 0 4px var(--chip)); }
.order__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: .92rem; }
.order__address { opacity: .75; }
.order__note { padding: 10px 14px; border-radius: 14px; background: #fff6d6; font-size: .92rem; }

.track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0; }
.track__step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 700; color: color-mix(in srgb, var(--brown) 50%, transparent); }
.track__dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px rgba(47, 37, 33, .18); transition: background-color .4s, box-shadow .4s, transform .5s var(--spring); }
.track__step.is-done { color: var(--brown); }
.track__step.is-done .track__dot { background: var(--brown); box-shadow: none; }
.track__step.is-current .track__dot { transform: scale(1.18); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brown) 14%, transparent); animation: beacon 2s ease-in-out infinite; }
@keyframes beacon { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brown) 4%, transparent); } }
.track__line { position: absolute; top: 10px; left: 16.6%; right: 16.6%; height: 3px; border-radius: 3px; background: rgba(47, 37, 33, .12); overflow: hidden; }
.track__line span { display: block; height: 100%; width: calc(var(--t, 0) * 100%); background: var(--brown); transition: width 1s var(--ease); }
.status-cancelled { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(47, 37, 33, .1); font-weight: 700; font-size: .85rem; }

.prose { display: grid; gap: 14px; max-width: 66ch; line-height: 1.6; }
.prose h2 { font: 800 1.3rem/1.2 var(--k-display); margin-top: 8px; color: var(--ink); }

/* Pages en dehors de la boutique (espace équipe, page introuvable) */
.solo { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); background: var(--cream); color: var(--brown); }
.solo__box { display: grid; gap: 16px; justify-items: start; width: min(100%, 520px); }
.solo__title { font: 800 clamp(2rem, 1.4rem + 2.5vw, 3rem)/1 var(--k-display); font-variation-settings: 'wdth' 88; letter-spacing: -.02em; }

/* ==========================================================================
   Grands écrans
   ========================================================================== */

@media (min-width: 640px) {
  .flavors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1000px) {
  .range { grid-template-columns: minmax(280px, .78fr) minmax(0, 1.4fr); align-items: start; }
  .range__stage {
    position: sticky;
    top: 150px;
    display: grid;
    place-items: center;
    height: min(66vh, 620px);
  }
  .range__product { position: relative; display: grid; place-items: center; }
  .range__product .product3d-host { left: 50%; top: 50%; translate: -50% -50%; }
  .range__product--k .bottle-img { --bottle-img-h: min(54vh, 500px); rotate: -5deg; }
  .range__product--k .product3d-host { width: 300%; height: 120%; }
  .range__product--e .can-img { --can-h: min(50vh, 470px); rotate: 9deg; }
  .range__product--e .product3d-host { width: 290%; height: 130%; }
  .range__halo { position: absolute; inset: 8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); }
  .shop--e .range__halo { background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 70%, transparent), transparent); }
  .flavors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar__label { display: none; }
  .topbar__link { padding: 0 11px; }
  .cartbar { border-radius: 24px; padding: 10px 10px 10px 16px; }
  .cartbar .btn { padding: 0 18px; }
  .cartbar__lines { flex-direction: column; font-size: .88rem; }
  .shop--k .flavor__name { font-size: 1.08rem; }
  .switch { top: 68px; }
  .pool { padding: 14px 16px; }
  .slots { gap: 4px; }
  .slot { height: 38px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble { display: none; }
}

/* Les messages passent au-dessus de la barre panier */
body[data-space="vip"] .toasts { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* Supprimer un guest : boutons de la fiche et choix pour ses commandes */
.page__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--danger-quiet { color: var(--error); }
.delete-choice { display: grid; gap: 10px; min-width: 0; margin: 0 0 8px; padding: 0; border: 0; }
.delete-choice legend { margin-bottom: 4px; padding: 0; }
.delete-choice__opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(47, 37, 33, .14); cursor: pointer; }
.delete-choice__opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brown); }
.delete-choice__opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brown); }
.delete-choice__opt span { display: grid; gap: 4px; }
.delete-choice__opt small { color: rgba(47, 37, 33, .7); font-size: .875rem; line-height: 1.4; }
