/* =========================================================
   Boutique — Telegram Web App
   ========================================================= */

:root {
  /* Palette néon bleue — reprise de l'enseigne et du lounge. */
  --lime: #8ec5ff;          /* accent principal (nom historique conservé) */
  --lime-dim: #5ba3f5;
  --violet: #7a5cff;
  --bg: #030711;
  --panel: #0b142a;
  --panel-2: #122142;
  --line: rgba(142, 197, 255, .16);
  --text: #eef4ff;
  --muted: #fff;
  --radius: 18px;
  --shadow-glow: 0 0 32px rgba(142, 197, 255, .45);
  --display: 'Unbounded', 'Anton', 'Archivo Black', system-ui, sans-serif;
  --body: 'Unbounded', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Assets de marque (déposés dans /public/brand) */
  --tex: url('/brand/texture.jpg');
  --bg-base: url('/brand/greenhouse.jpg');
  --bg-overlay: url('/brand/mockup2.jpg');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html { background: var(--bg); }
body { padding-bottom: 40px; background: transparent; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img, video { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- barre de localisation flottante ---------- */
.locpill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(3, 7, 17, .78);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.locpill .pin { color: var(--lime); display: flex; }
.locpill .flags { letter-spacing: .04em; opacity: .95; }
.locpill .sep { opacity: .35; }

/* Sur mobile la pastille passe sous le header pour ne pas croiser le logo. */
@media (max-width: 520px) {
  .locpill { top: 68px; font-size: 11px; padding: 8px 14px; gap: 8px; }
  .hero { padding-top: 128px; }
}

/* ---------- header ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand img { width: 86px; height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)); }
.brand .wordmark {
  font-family: var(--display);
  font-size: 17px;
  line-height: .95;
  max-width: 110px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.brand .wordmark span { color: var(--lime); display: block; }

.burger {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--lime);
  border-radius: 14px;
  background: rgba(3, 7, 17, .7);
  backdrop-filter: blur(10px);
  color: var(--lime);
}
.burger svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 20px 40px;
  overflow: hidden;
  isolation: isolate;
}
/* Le fond global (serre + mockup) sert de décor : pas d'image propre au hero. */
.hero-bg { display: none; }

.hero h1 {
  font-family: 'Unbounded', var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: clamp(22px, 7.2vw, 44px);
  line-height: 1.05;
  max-width: 96vw;
  white-space: nowrap;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9), 0 0 24px rgba(0, 0, 0, .6);
}
.hero p {
  font-family: var(--display);
  color: #fff;
  font-size: 19px;
  letter-spacing: .01em;
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 0 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9), 0 0 24px rgba(0, 0, 0, .7);
}
.hero p b { color: var(--lime); font-weight: 600; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 999px;
  background: #fff;
  color: #04122c;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 0 32px rgba(255, 255, 255, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cta:active { transform: scale(.96); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 34px;
}
.stat {
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 20, 42, .55);
  backdrop-filter: blur(8px);
  text-align: center;
}
.stat .v {
  font-family: var(--display);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.stat .v svg { width: 19px; height: 19px; color: var(--lime); }
.stat .k {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid rgba(142, 197, 255, .28);
  border-bottom: 1px solid rgba(142, 197, 255, .28);
  background: rgba(3, 7, 17, .92);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: #fff;
  padding: 0 20px;
  white-space: nowrap;
}
.marquee-track .star { font-style: normal; }
.marquee-track .star { color: var(--lime); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- section stock ---------- */
.stock { padding: 40px 16px 24px; }

.stock-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.stock-head h2 { font-size: clamp(38px, 12vw, 58px); line-height: .9; font-weight: 800; }
.stock-head h2 em { font-style: normal; color: var(--lime); }
.count-pill {
  flex: none;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- filtres ---------- */
.filters {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter {
  min-width: 74px;
  text-align: center;
  transition: transform .15s ease;
}
.filter:active { transform: scale(.94); }
.filter .disc {
  position: relative;
  width: 74px; height: 74px;
  margin: 0 auto 9px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #081327;
  border: 2px solid transparent;
  font-size: 32px;
  line-height: 1;
}
.filter[aria-selected="true"] .disc {
  background:
    linear-gradient(#081327, #081327) padding-box,
    conic-gradient(from 200deg, var(--lime), var(--violet), #35e0ff, var(--lime)) border-box;
  border-color: transparent;
}
.filter[aria-selected="true"] .label { color: var(--lime); }
/* Un libellé long ("Pays-Bas") ne doit pas passer sur deux lignes. */
.filter .label { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.filter .badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: #04122c;
  font-size: 11px;
  font-weight: 800;
}

/* ---------- grille produits ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 640px;
  margin: 0 auto;
}
.card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  overflow: hidden;
}
.card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #081327;
}
.card .media img,
.card .media video { width: 100%; height: 100%; object-fit: cover; }
.card .media .empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 54px;
  opacity: .5;
}
.card .media .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(3, 7, 17, .75);
  border: 1px solid var(--lime);
  color: var(--lime);
}
.card .media .play svg { width: 24px; height: 24px; margin-left: 3px; }

.origin-tag {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(3, 7, 17, .8);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.price-tag {
  position: absolute;
  right: 14px; bottom: -16px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--lime);
  color: #04122c;
  font-family: var(--display);
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.card .body { padding: 26px 18px 18px; }
.card .body h3 { font-size: 24px; margin-bottom: 12px; }

/* Article épuisé : visible mais clairement indisponible. */
.soldout-tag {
  position: absolute;
  right: 14px; bottom: -16px;
  padding: 11px 20px;
  border-radius: 12px;
  background: #ff5a5a;
  color: #2a0606;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 90, 90, .45);
}
.card.is-soldout { opacity: .55; filter: grayscale(.4); }
.card.is-soldout .media img,
.card.is-soldout .media video { filter: grayscale(.6); }

.card .tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tier {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 14px;
}
.tier .w { color: #fff; opacity: .7; }
.tier .p { color: var(--lime); font-weight: 800; }
.card .date { margin-top: 14px; font-size: 12px; color: #fff; opacity: .45; }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- footer ---------- */
.footer {
  margin-top: 30px;
  padding: 20px 20px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: transparent;
}
.footer .locpill-static {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; margin: 18px auto 14px;
  border: 1px solid var(--lime); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(3, 7, 17, .78);
  backdrop-filter: blur(14px);
}
.footer .locpill-static .pin { color: var(--lime); display: flex; }
.footer small { display: block; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------- FAB contact ---------- */
.fab-wrap {
  position: fixed;
  right: 18px; bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #04122c;
  box-shadow: var(--shadow-glow);
  transition: transform .2s ease;
}
.fab svg { width: 26px; height: 26px; }
.fab-wrap[data-open="true"] .fab { transform: rotate(45deg); }

.fab-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.fab-wrap[data-open="true"] .fab-links { opacity: 1; visibility: visible; transform: none; }
.fab-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
}
.ico svg { width: 15px; height: 15px; }
.ico.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ico.whatsapp { background: #25d366; }
.ico.telegram { background: #29a9eb; }
.ico.generic { background: var(--panel-2); border: 1px solid var(--line); }

/* ---------- menu latéral ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
}
.sheet[data-open="true"] { visibility: visible; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 5, 14, .72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.sheet[data-open="true"] .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  padding: 26px 22px;
  background: #060c1a;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.3, .8, .3, 1);
  overflow-y: auto;
}
.sheet[data-open="true"] .sheet-panel { transform: none; }
.sheet-close {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--muted);
}
.sheet-panel h3 { font-size: 22px; margin-bottom: 20px; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--panel-2);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.nav-item[aria-selected="true"] { background: var(--lime); color: #04122c; }
.nav-admin {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
}
.sheet-foot { margin-top: 30px; text-align: center; color: #fff; opacity: .5; font-size: 12px; }

/* ---------- modale produit ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
}
.modal[data-open="true"] { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 5, 14, .86); backdrop-filter: blur(8px); }
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 88svh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transform: scale(.94);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.modal[data-open="true"] .modal-card { transform: none; opacity: 1; }
.modal-media { background: #000; }
.modal-media img, .modal-media video { width: 100%; max-height: 52svh; object-fit: cover; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(3, 7, 17, .75);
  border: 1px solid var(--line);
  color: #fff;
}
.modal-body { padding: 22px 20px 26px; }
.modal-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.modal-meta .origin-tag { position: static; }
.modal-meta .maj { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.modal-body h2 { font-size: 28px; margin-bottom: 12px; }
.modal-body .desc { color: #fff; line-height: 1.6; margin: 12px 0 20px; font-size: 15px; }

.tarifs { display: grid; gap: 8px; margin-bottom: 20px; }
.tarif {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.tarif .w { font-size: 14px; color: #fff; opacity: .75; }
.tarif .p { font-family: var(--display); font-size: 20px; color: var(--lime); }

.modal-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #04122c;
  font-weight: 800;
  font-size: 16px;
}
.sheet-foot, .modal-foot { color: var(--muted); }

/* ---------- squelettes ---------- */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #0b142a 30%, #16294f 50%, #0b142a 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  height: 320px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================================================
   Marque — texture, mascotte, flottement
   ========================================================= */

/* Fond global : serre en photo, mockup en surimpression semi-transparente. */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -12;
  background: var(--bg-base) center/cover no-repeat, var(--bg);
  pointer-events: none;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -11;
  background: var(--bg-overlay) center/cover no-repeat;
  opacity: .7;
  pointer-events: none;
}
.marquee, .stock, .footer { position: relative; }

/* --- flottement générique -------------------------------------------- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(var(--lift, -14px)); }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(142, 197, 255, .45)); }
  50%      { filter: drop-shadow(0 0 38px rgba(142, 197, 255, .85)); }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%      { transform: translate3d(6px, -12px, 0) rotate(1.2deg); }
  66%      { transform: translate3d(-5px, -6px, 0) rotate(-1deg); }
}

.float      { animation: float-y 6s ease-in-out infinite; }
.float-slow { animation: float-y 9s ease-in-out infinite; --lift: -10px; }
.glow       { animation: glow-pulse 4.5s ease-in-out infinite; }

/* --- mascotte -------------------------------------------------------- */
.mascot {
  width: min(42vw, 210px);
  margin: -6px auto 4px;
  animation: drift 11s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55))
          drop-shadow(0 0 26px rgba(142, 197, 255, .35));
  will-change: transform;
}

/* Mascotte du hero : flottante, en remplacement du logo. */
.mascot-wrap--hero .mascot {
  width: min(58vw, 280px);
  margin: 0 auto 8px;
  animation: drift 11s ease-in-out infinite, float-y 7s ease-in-out infinite;
}

/* Halo posé derrière la mascotte. */
.mascot-wrap { position: relative; display: grid; place-items: center; }
.mascot-wrap::before {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 197, 255, .35), transparent 68%);
  filter: blur(18px);
  animation: glow-pulse 6s ease-in-out infinite;
}

/* Mascotte flottante dans le footer, plus discrète. */
.footer .mascot { width: min(38vw, 150px); opacity: .9; }

/* --- cartes produit : léger décollement ------------------------------ */
.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(142, 197, 255, .25);
}

/* --- pastilles de filtre : respiration sur l'onglet actif ------------ */
.filter[aria-selected="true"] .disc { animation: float-y 4.5s ease-in-out infinite; --lift: -6px; }

/* --- FAB : pulsation lente ------------------------------------------- */
.fab { animation: glow-pulse 3.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .float, .float-slow, .glow, .mascot,
  .mascot-wrap::before, .fab, .filter[aria-selected="true"] .disc { animation: none; }
  .card:hover { transform: none; }
}

/* Le hero doit tenir dans un écran : on comprime la mascotte sur mobile. */
@media (max-width: 520px) {
  .mascot { width: min(38vw, 168px); }
  .mascot-wrap--hero .mascot { width: min(52vw, 200px); }
  .hero h1 { font-size: clamp(18px, 6vw, 32px); margin-bottom: 12px; }
  .hero p { font-size: 15px; margin-bottom: 20px; }
  .stats { margin-top: 22px; }
}
