:root {
  --ink: #0f1412;
  --paper: #f3efe6;
  --sand: #e8e0d0;
  --amber: #e8a317;
  --amber-deep: #c4840a;
  --leaf: #1f6f54;
  --wa: #128c7e;
  --line: rgba(15, 20, 18, 0.12);
  --muted: #5c645f;
  --display: "Syne", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 18px;
  --page-pad: clamp(8px, 2.2vw, 20px);
  --market-gap: clamp(6px, 1.1vw, 14px);
  --dock-h: 62px;
  --reels-nav-offset: 72px;
  --safe-dock: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  --video-meta-h: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 163, 23, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 111, 84, 0.18), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 40%, #ebe4d6 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(31, 111, 84, 0.15);
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 230, 0.82);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo-gabmall {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo-gabmall--lg { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.logo-gabmall--sm { font-size: 1rem; }
.logo-gabmall__g { color: #1f6f54; }
.logo-gabmall__a { color: #0369a1; }
.logo-gabmall__rest { color: #e8a317; }
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
}
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__link { font-size: 0.9rem; font-weight: 600; opacity: 0.8; }
.nav__link:hover { opacity: 1; }
.cart-btn {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}
.cart-btn__n {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  height: 1.4em;
  margin-left: 4px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
}

#app { position: relative; z-index: 1; max-width: none; margin: 0 auto; padding: 0 var(--page-pad) 64px; }

/* Hero — plein écran, logo + texte (GABMALL classique) */
.hero {
  min-height: min(78vh, 720px);
  margin: 0 calc(-1 * var(--page-pad)) 28px;
  padding: clamp(48px, 8vw, 72px) clamp(20px, 4vw, 28px) clamp(36px, 6vw, 48px);
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  color: #fff;
  animation: heroIn 0.9s ease both;
  background:
    linear-gradient(165deg, rgba(15, 20, 18, 0.35) 0%, rgba(15, 20, 18, 0.82) 72%),
    url("/images/hero-gabmall-boutique.jpg") center 35% / cover no-repeat;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 100%, rgba(31, 111, 84, 0.35), transparent 55%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}
.hero__brand {
  margin: 0 0 14px;
  line-height: 0.92;
  width: 100%;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}
.hero__brand .logo-gabmall--lg {
  font-size: clamp(2.8rem, 10vw, 6rem);
}
.hero__lead {
  max-width: 36rem;
  margin: 0 0 22px;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.5;
  opacity: 0.94;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero__cta {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: rise 0.8s 0.2s ease both;
}
.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; margin-top: 8px; text-align: center; }
.btn--sm { padding: 8px 12px; font-size: 0.85rem; }
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

.section { margin: 28px 0; animation: rise 0.55s ease both; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.section p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Défilement produits */
.marquee {
  overflow: hidden;
  margin: 0 calc(-1 * var(--page-pad));
  padding: 8px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.product {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.marquee .product {
  width: clamp(160px, 42vw, 210px);
  flex: 0 0 auto;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 20, 18, 0.1); }
.product__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sand);
}
.product__body { padding: 10px 12px 12px; }
.product__shop {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--leaf);
  margin-bottom: 4px;
}
.product__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 6px;
  line-height: 1.25;
}
.product__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.btn--shop {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: center;
  font-size: 0.8rem;
  padding: 8px 10px;
}
.btn--shop:hover { border-color: var(--leaf); color: var(--leaf); }
.share-box {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
}
.share-box__label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.share-box__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.share-box__url {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
}
.shop-tile__link {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  opacity: 0.85;
}
.product__price { font-weight: 800; font-size: 0.95rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

/* Grille marché — plein écran, colonnes Taobao, scroll vertical */
.section--feed {
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--market-gap);
  width: 100%;
}
@media (min-width: 480px) {
  .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .market-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .market-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .market-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.market-grid .product {
  width: auto;
  max-width: none;
  border-radius: clamp(10px, 1.8vw, var(--radius));
  background: rgba(255, 255, 255, 0.78);
}
.market-grid .product__body { padding: 8px 10px 10px; }
.market-grid .product__shop {
  font-size: 0.68rem;
  margin-bottom: 2px;
}
.market-grid .product__name {
  font-size: clamp(0.78rem, 2.4vw, 0.9rem);
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-grid .product__price { font-size: clamp(0.82rem, 2.5vw, 0.92rem); }
.market-grid .product__row .btn--sm {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}
.market-grid .btn--shop {
  margin-top: 8px;
  font-size: 0.74rem;
  padding: 7px 8px;
}

.shop-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.shop-tile {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  position: relative;
  color: #fff;
  isolation: isolate;
}
.shop-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
.shop-tile:hover .shop-tile__bg { transform: scale(1.08); }
.shop-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.75));
  z-index: -1;
}
.shop-tile__body { padding: 100px 16px 16px; }
.shop-tile__count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--amber);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.shop-tile h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.25rem; }
.shop-tile p { margin: 0; opacity: 0.9; font-size: 0.88rem; }
.shop-hero__count {
  margin: 0 0 8px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(232, 163, 23, 0.95);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
}

.shop-hero {
  margin: 12px 0 22px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 260px;
  position: relative;
  color: #fff;
  display: grid;
  align-content: end;
  padding: 24px;
}
.shop-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
  z-index: -1;
}
.shop-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ——— Boutique mode fashion (LYNDA etc.) ——— */
.shop-hero--fashion {
  min-height: 320px;
  border: 1px solid rgba(131, 24, 67, 0.25);
  box-shadow: 0 24px 60px rgba(131, 24, 67, 0.12);
}
.shop-hero--fashion::after {
  background: linear-gradient(180deg, rgba(131, 24, 67, 0.15), rgba(15, 20, 18, 0.82));
}
.shop-hero--fashion .shop-hero__count {
  background: var(--shop-accent, #831843);
  color: #fff;
}
.shop-hero--fashion .btn--ghost {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.shop-fashion-tag {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
}
body.shop-fashion {
  background: linear-gradient(180deg, #faf5f7 0%, var(--paper) 220px);
}
.grid--fashion .product {
  border-color: rgba(131, 24, 67, 0.12);
}
.grid--fashion .product__shop {
  color: var(--shop-accent, #831843);
}
.shop-tile--fashion {
  outline: 2px solid rgba(131, 24, 67, 0.2);
}

/* ——— Accès admin discret (petit rond) ——— */
.admin-knob {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 9px;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.28;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.admin-knob--super {
  background: var(--ink);
}
.admin-knob--shop {
  grid-area: shop-admin;
  background: #fff;
  border: 1px solid rgba(15, 20, 18, 0.14);
  box-shadow: 0 1px 4px rgba(15, 20, 18, 0.06);
}
.admin-knob:hover,
.admin-knob:focus-visible {
  opacity: 0.65;
  transform: scale(1.15);
}
.nav--shop {
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas: "shop-admin brand search right";
}
.nav--shop .admin-knob--shop { grid-area: shop-admin; }
.nav--shop .logo.nav-market,
.nav--shop .logo.nav-shop { grid-area: brand; }
.nav--shop .search { grid-area: search; }
.nav--shop .nav__right { grid-area: right; }
.nav--isolated {
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "shop-admin brand right";
}
.nav--isolated .search { display: none; }
.nav--isolated {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(131, 24, 67, 0.1);
}
.nav--isolated .logo.nav-shop {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
body.shop-isolated {
  background: #faf8f6;
}
body.shop-isolated .noise { opacity: 0.02; }

/* ——— LYNDA boutique perso ——— */
.lynda-shop {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}
.lynda-profile {
  position: relative;
  margin: 8px 0 24px;
}
.lynda-profile__cover {
  height: 140px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.lynda-profile__card {
  margin: -56px 12px 0;
  background: #fff;
  border: 1px solid rgba(131, 24, 67, 0.12);
  border-radius: 22px;
  padding: 0 20px 20px;
  box-shadow: 0 20px 50px rgba(131, 24, 67, 0.08);
  text-align: center;
}
.lynda-avatar {
  width: 88px;
  height: 88px;
  margin: -44px auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shop-accent, #831843), #be185d);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(131, 24, 67, 0.25);
}
.lynda-profile__card h1 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.lynda-tagline {
  margin: 0 0 12px;
  color: var(--shop-accent, #831843);
  font-weight: 600;
  font-size: 0.92rem;
}
.lynda-bio {
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--muted);
}
.lynda-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.lynda-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.lynda-wa {
  background: var(--shop-accent, #831843) !important;
  border-color: var(--shop-accent, #831843) !important;
  color: #fff !important;
}
.lynda-chat {
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  background: #fff !important;
}
.lynda-section {
  margin-top: 28px;
}
.lynda-section h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 14px;
  text-align: center;
}
.lynda-grid .product {
  border-radius: 16px;
  overflow: hidden;
}
.lynda-empty {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  border: 1px dashed rgba(131, 24, 67, 0.25);
}
.lynda-empty p { margin: 0 0 8px; }
.lynda-pwa-tip {
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(131, 24, 67, 0.06);
  border: 1px solid rgba(131, 24, 67, 0.12);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}
.lynda-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
}
.product-page--lynda .product__price {
  color: var(--shop-accent, #831843);
}
.chat-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25em;
  height: 1.25em;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}
.pwa-shop-tip {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.45;
}
.shop-pwa-banner {
  margin-top: 14px;
  margin-bottom: calc(var(--safe-dock) + 8px);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--shop-accent, #1f6f54) 35%, var(--line));
  background: color-mix(in srgb, var(--shop-accent, #1f6f54) 8%, #fff);
  text-align: center;
}
.shop-pwa-banner__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
}
.shop-pwa-banner__text {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.shop-pwa-banner__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ——— Partage article (photo + texte) ——— */
.product-share {
  margin-top: 20px;
}
.product-share__preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}
.product-share__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.product-share__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.product-share__meta strong {
  font-size: 0.92rem;
  line-height: 1.3;
}
.product-share__price {
  font-weight: 800;
  color: var(--leaf, #1f6f54);
  font-size: 0.95rem;
}
.share-box__row--wrap {
  flex-wrap: wrap;
}
.product-share__hint {
  margin-top: 8px;
}
.product-share-btn {
  margin-top: 8px;
  width: 100%;
  font-size: 0.82rem;
  background: var(--ink);
  color: #fff;
}
.product-share-btn:hover {
  filter: brightness(1.08);
}
.prod-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.prod-share button {
  border: none;
  background: none;
  color: #0369a1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
}

/* ——— Localisation boutique ——— */
.shop-location {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.shop-location--lynda {
  background: #fff;
  border-color: rgba(131, 24, 67, 0.12);
  margin-top: 8px;
}
.location-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.location-gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
}
.location-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-location--lynda .location-gallery__item {
  border-color: rgba(131, 24, 67, 0.15);
  border-radius: 16px;
}

.drawer[hidden], .modal[hidden] { display: none !important; }
.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 20, 18, 0.45);
  display: grid;
  justify-items: end;
}
.modal { place-items: center; justify-items: center; }
.drawer__panel, .modal__panel {
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  padding: 16px;
  overflow: auto;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.modal__panel {
  height: auto;
  max-height: min(90vh, 640px);
  border-radius: 20px;
  width: min(440px, calc(100% - 24px));
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.drawer__head h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; }

.cart-group { margin-bottom: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.cart-group h3 { margin: 0 0 8px; font-size: 1rem; }
.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--sand);
}
.cart-line__meta { font-size: 0.85rem; color: var(--muted); }
.checkout-box label { display: block; font-size: 0.82rem; font-weight: 600; margin: 8px 0; }
.checkout-box input, .checkout-box textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.chat-body {
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.bubble--buyer { background: #fff; border: 1px solid var(--line); justify-self: start; }
.bubble--shop { background: #d9f5e8; justify-self: end; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
}

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

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.muted { color: var(--muted); font-size: 0.85rem; }
.back { display: inline-block; margin: 16px 0 8px; font-weight: 700; }
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.page-nav .back {
  margin: 0;
  font-size: 0.92rem;
}
.page-nav .back--market {
  color: var(--leaf, #1f6f54);
}
.page-nav .back--shop,
.page-nav .back--shops {
  color: var(--ink, #0f1412);
}
.page-nav--product {
  margin-bottom: 4px;
}
.lynda-foot .page-nav {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}
.product-page__img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sand);
}

@media (max-width: 820px) {
  .product-page { grid-template-columns: 1fr; }
  .cart-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
  .product__row .btn--sm {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .marquee__track {
    animation-duration: 72s;
  }
  .nav {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "shop-admin brand right"
      "search search search";
  }
  .nav--shop {
    grid-template-areas:
      "shop-admin brand right"
      "search search search";
  }
  .nav--isolated {
    grid-template-areas: "shop-admin brand right";
  }
  .admin-knob--shop { grid-area: shop-admin; }
  .logo.nav-market,
  .logo.nav-shop { grid-area: brand; }
  .search { grid-area: search; }
  .nav__right { grid-area: right; }
  .nav__link { display: none; }
  .nav--isolated .search { display: none; }
  .hero { min-height: 68vh; padding-top: 64px; }
}

/* ——— PWA install banner ——— */
.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  pointer-events: none;
}
body.has-dock .pwa-install {
  bottom: calc(var(--safe-dock) + 12px);
  z-index: 920;
}

.pwa-install[hidden] {
  display: none !important;
}

.pwa-install__card {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 20, 18, 0.28);
}
.pwa-install__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
}
.pwa-install__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-install__card--ios {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  background: #165a44;
}

.pwa-install__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.pwa-install__version {
  font-weight: 700;
  opacity: 0.85;
}

.pwa-install__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-install__btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--leaf);
  background: #fff;
  cursor: pointer;
}

.pwa-install__dismiss {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

html.pwa-standalone .pwa-install {
  display: none !important;
}

@media (min-width: 900px) {
  .pwa-install {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: min(360px, calc(100vw - 40px));
  }
}

/* ——— Effets pro (site + boutiques) ——— */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite;
}
.ambient__orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: rgba(31, 111, 84, 0.45);
}
.ambient__orb--2 {
  width: 360px;
  height: 360px;
  top: 35%;
  right: -10%;
  background: rgba(232, 163, 23, 0.35);
  animation-delay: -6s;
}
.ambient__orb--3 {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: 30%;
  background: rgba(3, 105, 161, 0.28);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.06); }
  66% { transform: translate(-16px, 12px) scale(0.94); }
}

.nav {
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.nav--scrolled {
  box-shadow: 0 8px 32px rgba(15, 20, 18, 0.1);
  background: rgba(243, 239, 230, 0.94);
  border-bottom-color: rgba(15, 20, 18, 0.08);
}

.logo-gabmall {
  animation: logoPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes logoPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.search input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.search input:focus {
  outline: none;
  border-color: rgba(31, 111, 84, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 111, 84, 0.12);
  transform: translateY(-1px);
}

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 20, 18, 0.12);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }

.cart-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 20, 18, 0.25);
}
.cart-btn--pulse {
  animation: cartPulse 0.55s ease;
}
@keyframes cartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.product {
  animation: cardIn 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
.product__img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(110deg, #ece7dc 8%, #f7f3ea 18%, #ece7dc 33%);
  background-size: 200% 100%;
  aspect-ratio: 1;
}
.product__img-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: imgShimmer 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.product__img-wrap.is-loaded .product__img-shimmer { opacity: 0; transition: opacity .35s ease; }
.product__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}
.product__img.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.product:hover .product__img.is-loaded { transform: scale(1.06); }
.product a:has(.product__img-wrap) { display: block; overflow: hidden; }

@keyframes imgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.market-load { text-align: center; margin: 20px 0 8px; }
.market-sentinel { height: 1px; }

/* ——— Mise à jour app ——— */
.update-bar {
  position: sticky;
  top: 0;
  z-index: 45;
  background: linear-gradient(90deg, #1f6f54, #0369a1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 20, 18, 0.18);
}
.update-bar__inner {
  max-width: none;
  margin: 0 auto;
  padding: 10px var(--page-pad);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.update-bar__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1 1 220px;
}
.update-bar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.update-bar .btn {
  background: #fff;
  color: var(--ink);
}
.update-bar .btn--ghost.update-bar__later {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

/* ——— Annonces marché ——— */
.announce-section {
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding: 0 var(--page-pad);
}
.announce-list {
  display: grid;
  gap: 10px;
}
.announce-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 20, 18, 0.06);
  animation: cardIn 0.45s ease both;
}
.announce-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(31,111,84,0.15), rgba(232,163,23,0.2));
  font-size: 1.15rem;
}
.announce-card__title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.announce-card__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.announce-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--leaf);
}
.announce-card__dismiss {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
}
@media (max-width: 560px) {
  .announce-card { grid-template-columns: auto 1fr; }
  .announce-card__dismiss { grid-column: 2; justify-self: end; margin-top: -4px; }
}

.shop-tile--more {
  display: grid;
  place-items: center;
  min-height: 140px;
  background: rgba(255,255,255,.55);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--leaf);
  font-weight: 800;
}
.shop-tile--more span { font-size: 1.6rem; display: block; }
.shop-tile--more p { margin: 4px 0 0; font-size: .85rem; font-weight: 600; }

.product--reveal {
  animation: cardIn 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.market-grid .product:nth-child(1),
.grid .product:nth-child(1) { --i: 0; }
.market-grid .product:nth-child(2),
.grid .product:nth-child(2) { --i: 1; }
.market-grid .product:nth-child(3),
.grid .product:nth-child(3) { --i: 2; }
.market-grid .product:nth-child(4),
.grid .product:nth-child(4) { --i: 3; }
.market-grid .product:nth-child(5),
.grid .product:nth-child(5) { --i: 4; }
.market-grid .product:nth-child(6),
.grid .product:nth-child(6) { --i: 5; }
.market-grid .product:nth-child(7),
.grid .product:nth-child(7) { --i: 6; }
.market-grid .product:nth-child(8),
.grid .product:nth-child(8) { --i: 7; }

.shop-tile {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(15, 20, 18, 0.08);
}
.shop-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 20, 18, 0.18);
}

.shop-hero {
  animation: heroCardIn 0.65s ease both;
  box-shadow: 0 20px 50px rgba(15, 20, 18, 0.15);
}
.shop-hero__bg {
  animation: kenBurns 16s ease-in-out infinite alternate;
  transform: scale(1.05);
}
.shop-hero h1,
.shop-hero p,
.shop-hero__count,
.shop-actions {
  animation: rise 0.7s ease both;
}
.shop-hero h1 { animation-delay: 0.1s; }
.shop-hero p { animation-delay: 0.18s; }
.shop-hero__count { animation-delay: 0.05s; }
.shop-actions { animation-delay: 0.26s; }

@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes kenBurns {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.share-box {
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: rise 0.6s 0.15s ease both;
}
.share-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 20, 18, 0.08);
}

.section.reveal:not(.is-visible) {
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.section.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .section.reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

.back {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.back:hover {
  transform: translateX(-4px);
  opacity: 0.85;
}

.drawer:not([hidden]) {
  animation: overlayIn 0.3s ease both;
}
.drawer:not([hidden]) .drawer__panel {
  animation: drawerIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal:not([hidden]) {
  animation: overlayIn 0.3s ease both;
}
.modal:not([hidden]) .modal__panel {
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: none; }
}

.toast {
  animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 12px 32px rgba(15, 20, 18, 0.28);
}
.toast.is-out {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translate(-50%, 10px); }
}

.bubble {
  animation: bubbleIn 0.35s ease both;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.product-page__img {
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  box-shadow: 0 16px 40px rgba(15, 20, 18, 0.12);
}
.product-page__img:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 50px rgba(15, 20, 18, 0.16);
}

.location-gallery__item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.location-gallery__item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(15, 20, 18, 0.12);
}
.location-gallery__item img {
  transition: transform 0.45s ease;
}
.location-gallery__item:hover img { transform: scale(1.08); }

.lynda-profile__card {
  animation: heroCardIn 0.7s ease both;
}
.lynda-avatar {
  animation: logoPop 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lynda-profile__cover {
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform: scale(1.02);
}

body.shop-isolated .shop-hero,
body.shop-isolated .share-box,
body.shop-isolated .product {
  --shop-glow: var(--shop-accent, var(--leaf));
}
body.shop-isolated .shop-hero {
  box-shadow: 0 24px 56px color-mix(in srgb, var(--shop-glow) 25%, transparent);
}
body.shop-isolated .product:hover {
  box-shadow: 0 14px 32px color-mix(in srgb, var(--shop-glow) 18%, transparent);
}

.hero__brand .logo-gabmall--lg span {
  display: inline-block;
  animation: letterPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__brand .logo-gabmall__g { animation-delay: 0.05s; }
.hero__brand .logo-gabmall__a { animation-delay: 0.12s; }
.hero__brand .logo-gabmall__rest { animation-delay: 0.2s; }
@keyframes letterPop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.skeleton-row {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 4px 0;
}
.skeleton-row--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  overflow: visible;
}
.skeleton {
  background: linear-gradient(90deg, var(--sand) 25%, #f5f0e6 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius);
}
.skeleton--shop {
  flex: 0 0 min(280px, 80vw);
  height: 180px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 40vh;
  color: var(--muted);
  font-weight: 600;
}
.page-loading__spin {
  width: 36px;
  height: 36px;
  border: 3px solid var(--sand);
  border-top-color: var(--leaf);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.page-loading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}
.page-loading__retry {
  margin-top: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.shop-videos__hero {
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.shop-videos__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
}
.shop-videos__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.shop-videos__now {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.shop-owner__card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.shop-owner__card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--sand);
}

body.has-dock {
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

.app-update-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(135deg, #1f6f54, #165a43);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 20, 18, 0.2);
}
.app-update-bar__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.app-update-bar__meta {
  display: block;
  opacity: 0.92;
  font-weight: 500;
}
.app-update-bar__btn {
  flex-shrink: 0;
  background: #fff !important;
  color: #1f6f54 !important;
  border: none;
  font-weight: 800;
}
body.has-app-update-bar {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
}
.section--dock-page {
  padding-bottom: calc(var(--safe-dock) + 12px);
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  min-height: var(--dock-h);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(15, 20, 18, 0.1);
}
body:not(.has-dock) .dock {
  display: none;
}
.dock__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  min-height: 48px;
}
.dock__btn.is-active {
  color: var(--green);
  background: rgba(31, 111, 84, 0.08);
}
.dock__icon {
  font-size: 1.25rem;
  line-height: 1;
}
.compte-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.compte-auth__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.compte-auth__tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-soft, #f4f6f5);
}
.compte-auth__tab.is-active {
  color: var(--green);
  background: rgba(31, 111, 84, 0.1);
}
.compte-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.compte-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.compte-order {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.compte-order header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.compte-order__items {
  margin: 8px 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
.dock__btn .dock__label {
  font-size: 0.62rem;
}
.dock__badge {
  position: absolute;
  top: 2px;
  right: 18%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ——— Page Reels (Vidéos) ——— */
body.page-reels {
  background: #0f172a;
  overflow: hidden;
  padding-bottom: 0;
}
body.page-reels .pwa-install {
  display: none !important;
}
body.page-reels .ambient,
body.page-reels .noise {
  opacity: 0.15;
}
body.page-reels .nav {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.page-reels .nav .logo,
body.page-reels .nav .nav__link,
body.page-reels .nav .cart-btn {
  color: #f8fafc;
}
body.page-reels .search input {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
body.page-reels .dock {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: rgba(255, 255, 255, 0.1);
}
body.page-reels .dock__btn {
  color: rgba(248, 250, 252, 0.65);
}
body.page-reels .dock__btn.is-active {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.12);
}

#app.app--reels {
  margin: 0;
  padding: 0;
  max-width: none;
  height: calc(100dvh - var(--reels-nav-offset, 72px) - var(--safe-dock));
  max-height: calc(100dvh - var(--reels-nav-offset, 72px) - var(--safe-dock));
  overflow: hidden;
}

.reels-feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.reels-feed::-webkit-scrollbar {
  display: none;
}

.reels-slide {
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
  flex-shrink: 0;
  box-sizing: border-box;
}
.reels-slide__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.reels-slide__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  background: #000;
}
.video-feed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.2s ease;
}
.video-feed__poster.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.video-feed__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.video-feed__player iframe {
  width: 100% !important;
  height: 100% !important;
}
.video-feed__yt-open {
  margin-bottom: 8px;
}
.video-feed__link-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 2;
}
.video-feed__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.compte-profile .checkout-box label {
  margin-bottom: 10px;
}
.video-yt-gate {
  padding: 24px 18px calc(var(--safe-dock) + 16px);
  color: #e2e8f0;
  max-width: 420px;
  margin: 0 auto;
}
.video-yt-gate h2 {
  margin: 0 0 12px;
  font-family: var(--display);
}
.video-yt-gate__lead {
  margin: 16px 0 8px;
  line-height: 1.45;
}
.video-yt-gate__steps {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  line-height: 1.5;
  font-size: 0.92rem;
}
.video-yt-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.video-yt-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.video-yt-bar--ok {
  background: rgba(31, 111, 84, 0.35);
}
.video-yt-bar__text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.35;
}
.video-feed__shell--gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.video-feed__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.video-feed__head {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 14px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.video-feed__shell .reels-feed {
  flex: 1;
  min-height: 0;
}
.reels-slide__bar,
.reels-slide__overlay {
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  padding: 10px 14px 12px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  pointer-events: auto;
}
.reels-slide__bar .btn,
.reels-slide__bar a {
  position: relative;
  z-index: 5;
  touch-action: manipulation;
}
.video-feed__shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  margin-top: 6px;
}
.reels-empty {
  padding: 24px 20px;
  color: #cbd5e1;
}

.video-feed__shop {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}
.video-feed__title {
  margin: 4px 0 8px;
  font-size: 0.88rem;
  opacity: 0.9;
}
body.page-reels .dock {
  z-index: 800;
}
body.page-reels .reels-slide__media,
body.page-reels .video-feed__player,
body.page-reels .video-feed__player iframe {
  pointer-events: auto;
  touch-action: manipulation;
}
.btn--light {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.shop-row--grid {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  display: grid;
  overflow: visible;
}

.accueil-gabmall--hero {
  margin: 0 calc(-1 * var(--page-pad)) 20px;
  min-height: clamp(240px, 52vw, 420px);
  border-radius: 0;
  box-shadow: none;
}
.accueil-gabmall--hero .accueil-gabmall__brand .logo-gabmall--lg {
  font-size: clamp(2.4rem, 11vw, 4.5rem);
}
.accueil-gabmall {
  position: relative;
  margin: 8px var(--page-pad) 4px;
  min-height: clamp(200px, 42vw, 320px);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  align-content: end;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(15, 20, 18, 0.88) 0%, rgba(15, 20, 18, 0.25) 55%, rgba(15, 20, 18, 0.15) 100%),
    url("/images/hero-gabmall-boutique.jpg") center 40% / cover no-repeat;
  box-shadow: var(--shadow-md);
}
.accueil-gabmall__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 100%, rgba(31, 111, 84, 0.45), transparent 60%);
  pointer-events: none;
}
.accueil-gabmall__content {
  position: relative;
  z-index: 1;
  padding: 28px 20px 24px;
  text-align: center;
}
.accueil-gabmall__brand {
  margin: 0 0 8px;
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}
.accueil-gabmall__brand .logo-gabmall--lg {
  font-size: clamp(2rem, 8vw, 3.2rem);
}
.accueil-gabmall__tagline {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.msg-inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-inbox__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.msg-inbox__row:hover {
  border-color: var(--green);
}
.msg-inbox__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.msg-inbox__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-inbox__body .muted {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-inbox__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient__orb { display: none; }
  .shop-hero__bg,
  .lynda-profile__cover { animation: none; }
}
