/* Innovation Services — vitrine type Vepaar (mobile-first) */
:root,
html[data-theme="dark"] {
  --primary: #1c20f1;
  --primary-600: #191dd9;
  --secondary: #ff3202;
  --wa: #25d366;
  --bg: #0b1220;
  --bg-elevated: #111827;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.22);
  --header-bg: rgba(11, 18, 32, 0.92);
  --topbar-bg: #020617;
  --font-display: "Bentham", Georgia, serif;
  --font-body: "Akaya Kanadaka", system-ui, sans-serif;
  --header-h: 4rem;
  --topbar-h: 2.5rem;
  --bottom-h: 4.25rem;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #eef2f7;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.12);
  --header-bg: rgba(238, 242, 247, 0.94);
  --topbar-bg: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --orbit-opacity: 0.55;
  color-scheme: light;
}

html[data-theme="dark"] {
  --orbit-opacity: 0.78;
  --light-band-a: color-mix(in srgb, var(--primary) 42%, transparent);
  --light-band-b: color-mix(in srgb, var(--secondary) 28%, transparent);
  --light-band-c: color-mix(in srgb, #38bdf8 22%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* clip = pas de barre horizontale (mieux que hidden sur mobile) */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 80%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 60%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 50%),
    var(--bg);
  /* fixed = saccadé sur iOS Safari / WebView WhatsApp → scroll par défaut mobile */
  background-attachment: scroll;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Bloque le scroll de la page derrière modales / sheets / lightbox */
html.scroll-locked,
html.scroll-locked body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  /* top: -scrollY posé par JS */
}

/* Conteneurs scrollables dans les overlays : ne pas propager le scroll */
.sheet,
.scene-modal,
.lightbox-panel,
.lightbox-stage,
.product-session,
.editor-panel .body,
.modal-card,
.type-picker,
.type-stack {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  body {
    background-attachment: fixed;
  }
  html[data-theme="dark"] body {
    background-attachment: fixed;
  }
}

/* Mode sombre : bandes / faisceaux de lumière (évite l'effet fade) */
html[data-theme="dark"] body {
  background:
    /* bandes diagonales lumineuses */
    linear-gradient(
      118deg,
      transparent 0%,
      transparent 38%,
      var(--light-band-a) 46%,
      transparent 54%,
      transparent 100%
    ),
    linear-gradient(
      152deg,
      transparent 0%,
      transparent 58%,
      var(--light-band-b) 64%,
      transparent 72%,
      transparent 100%
    ),
    linear-gradient(
      95deg,
      transparent 0%,
      transparent 12%,
      var(--light-band-c) 18%,
      transparent 26%,
      transparent 100%
    ),
    /* lueurs douces */
    radial-gradient(ellipse 70% 45% at 15% 20%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 40% at 88% 70%, color-mix(in srgb, var(--secondary) 26%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 35% at 55% 100%, color-mix(in srgb, #38bdf8 18%, transparent), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% -5%, color-mix(in srgb, #818cf8 22%, transparent), transparent 55%),
    var(--bg);
  background-attachment: scroll;
}

/* Couche de bandes animées (léger balayage) */
.bg-light-bands {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  opacity: 0;
}

html[data-theme="dark"] .bg-light-bands {
  opacity: 1;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 42%,
      rgba(255, 255, 255, 0.045) 49%,
      rgba(99, 102, 241, 0.14) 50.5%,
      rgba(255, 255, 255, 0.04) 52%,
      transparent 60%,
      transparent 100%
    ),
    linear-gradient(
      155deg,
      transparent 0%,
      transparent 20%,
      rgba(255, 50, 2, 0.08) 28%,
      transparent 36%,
      transparent 100%
    );
  background-size: 220% 220%, 180% 180%;
  animation: light-band-sweep 14s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes light-band-sweep {
  0% {
    background-position: 0% 40%, 100% 0%;
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    background-position: 100% 60%, 0% 100%;
    opacity: 0.7;
  }
}

/* Couche décorative derrière tout le contenu */
.bg-orbit {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  opacity: var(--orbit-opacity, 0.55);
}

.app-shell,
.loading {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.bg-orbit-item {
  position: absolute;
  left: var(--x, 50%);
  bottom: -10%;
  width: var(--size, 28px);
  max-width: min(72px, 18vw);
  height: var(--size, 28px);
  max-height: min(72px, 18vw);
  color: var(--c, var(--primary));
  opacity: var(--o, 0.85);
  animation: orbit-rise var(--dur, 16s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
  /* glow plus léger : les gros drop-shadow élargissent le scrollWidth */
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c, var(--primary)) 55%, transparent));
  pointer-events: none;
}

.bg-orbit-item svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

html[data-theme="dark"] .bg-orbit-item {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 75%, transparent));
}

@keyframes orbit-rise {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--scale, 1));
    opacity: 0;
  }
  6% {
    opacity: var(--o, 0.85);
  }
  50% {
    /* drift limité pour ne jamais pousser hors écran (scroll horizontal) */
    transform: translate3d(var(--drift, 8px), -50vh, 0) rotate(180deg) scale(var(--scale, 1));
    opacity: var(--o, 0.85);
  }
  90% {
    opacity: calc(var(--o, 0.85) * 0.85);
  }
  100% {
    transform: translate3d(calc(var(--drift, 8px) * -0.35), -112vh, 0) rotate(360deg) scale(var(--scale, 1));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orbit-item {
    animation: none;
    opacity: 0.45;
    bottom: auto;
    top: var(--y-static, 40%);
  }
  .bg-light-bands {
    animation: none !important;
    opacity: 0.5 !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
  pointer-events: none !important;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 0.5rem;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .container {
    padding-inline: 0.75rem;
  }
}

/* Chaîne flex/grid : toujours pouvoir rétrécir (anti overflow) */
.topbar,
.site-header,
.session-bar,
.main-content,
.site-footer,
.bottom-nav,
.view,
.product-grid,
.header-inner,
.topbar-inner,
.footer-grid {
  min-width: 0;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.muted {
  color: var(--muted);
}

.full {
  width: 100%;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-h);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.3rem 0;
  min-height: var(--topbar-h);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Mini scène rue — occupe toute la largeur jusqu'aux boutons (langue / info / thème) */
.topbar-scene {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 30px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg-elevated) 88%, #000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: auto;
  user-select: none;
  margin-right: 0.15rem;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.topbar-scene:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}

.topbar-scene:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.topbar-scene-svg {
  width: 100%;
  height: 100%;
  display: block;
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}

html[data-theme="light"] .topbar-scene {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, #fff), #e2e8f0 55%, #cbd5e1);
}

html[data-theme="light"] .topbar-scene-svg {
  color: #64748b;
}

html[data-theme="light"] .ts-road {
  fill: #475569;
}

/* Mini piste — véhicules & animations (réglable admin → Apparence) */
.topbar-scene,
.scene-modal-stage {
  --ts-speed: 1;
}

.topbar-scene.is-hidden-scene {
  display: none !important;
}

.ts-car,
.ts-car2,
.ts-truck,
.ts-moto {
  transform-box: view-box;
  transform-origin: 0 0;
}

/* Par défaut : car2 / truck masqués (modes spécifiques les affichent) */
.ts-car2,
.ts-truck {
  display: none;
}

.ts-rain {
  opacity: 0;
  pointer-events: none;
}

/* —— Ville (défaut) —— */
.topbar-scene[data-ts-anim="city"] .ts-car ,
.scene-modal-stage[data-ts-anim="city"] .ts-car {
  animation: ts-drive-right calc(7.2s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="city"] .ts-moto ,
.scene-modal-stage[data-ts-anim="city"] .ts-moto {
  animation: ts-drive-left calc(8.6s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(3.4s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="city"] .ts-lane ,
.scene-modal-stage[data-ts-anim="city"] .ts-lane {
  animation: ts-lane-scroll calc(0.5s / var(--ts-speed, 1)) linear infinite;
}

/* —— Circulation dense —— */
.topbar-scene[data-ts-anim="traffic"] .ts-car ,
.scene-modal-stage[data-ts-anim="traffic"] .ts-car {
  animation: ts-drive-right calc(5s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="traffic"] .ts-car2 ,
.scene-modal-stage[data-ts-anim="traffic"] .ts-car2 {
  display: inline;
  animation: ts-drive-right calc(5.8s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(2.2s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="traffic"] .ts-moto ,
.scene-modal-stage[data-ts-anim="traffic"] .ts-moto {
  animation: ts-drive-left calc(4.8s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(1s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="traffic"] .ts-lane ,
.scene-modal-stage[data-ts-anim="traffic"] .ts-lane {
  animation: ts-lane-scroll calc(0.32s / var(--ts-speed, 1)) linear infinite;
}

/* —— Autoroute (rapide) —— */
.topbar-scene[data-ts-anim="highway"] .ts-car ,
.scene-modal-stage[data-ts-anim="highway"] .ts-car {
  animation: ts-drive-right calc(3.2s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="highway"] .ts-car2 ,
.scene-modal-stage[data-ts-anim="highway"] .ts-car2 {
  display: inline;
  animation: ts-drive-right calc(2.8s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(1.1s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="highway"] .ts-moto ,
.scene-modal-stage[data-ts-anim="highway"] .ts-moto {
  animation: ts-drive-left calc(2.6s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(0.6s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="highway"] .ts-lane ,
.scene-modal-stage[data-ts-anim="highway"] .ts-lane {
  animation: ts-lane-scroll calc(0.18s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="highway"] .ts-city ,
.scene-modal-stage[data-ts-anim="highway"] .ts-city {
  opacity: 0.28;
}

/* —— Balade (lent, une voiture) —— */
.topbar-scene[data-ts-anim="cruise"] .ts-car ,
.scene-modal-stage[data-ts-anim="cruise"] .ts-car {
  animation: ts-drive-right calc(14s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="cruise"] .ts-moto ,
.scene-modal-stage[data-ts-anim="cruise"] .ts-moto {
  display: none;
}
.topbar-scene[data-ts-anim="cruise"] .ts-lane ,
.scene-modal-stage[data-ts-anim="cruise"] .ts-lane {
  animation: ts-lane-scroll calc(0.9s / var(--ts-speed, 1)) linear infinite;
}

/* —— Course (deux voitures même sens) —— */
.topbar-scene[data-ts-anim="race"] .ts-car ,
.scene-modal-stage[data-ts-anim="race"] .ts-car {
  animation: ts-drive-right calc(4s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="race"] .ts-car2 ,
.scene-modal-stage[data-ts-anim="race"] .ts-car2 {
  display: inline;
  animation: ts-drive-right calc(3.6s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(0.35s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="race"] .ts-moto ,
.scene-modal-stage[data-ts-anim="race"] .ts-moto {
  display: none;
}
.topbar-scene[data-ts-anim="race"] .ts-lane ,
.scene-modal-stage[data-ts-anim="race"] .ts-lane {
  animation: ts-lane-scroll calc(0.28s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="race"] .ts-car .ts-body ,
.scene-modal-stage[data-ts-anim="race"] .ts-car .ts-body {
  fill: #ef4444;
}
.topbar-scene[data-ts-anim="race"] .ts-car2 .ts-body ,
.scene-modal-stage[data-ts-anim="race"] .ts-car2 .ts-body {
  fill: #3b82f6;
}

/* —— Nuit —— */
.topbar-scene[data-ts-anim="night"] ,
.scene-modal-stage[data-ts-anim="night"] {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85) 55%, #0f172a) !important;
  border-color: #1e293b;
  color: #64748b;
}
.topbar-scene[data-ts-anim="night"] .ts-city ,
.scene-modal-stage[data-ts-anim="night"] .ts-city {
  opacity: 0.35;
}
.topbar-scene[data-ts-anim="night"] .ts-lane ,
.scene-modal-stage[data-ts-anim="night"] .ts-lane {
  stroke: #fbbf24;
  opacity: 0.55;
  animation: ts-lane-scroll calc(0.55s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="night"] .ts-car ,
.scene-modal-stage[data-ts-anim="night"] .ts-car {
  animation: ts-drive-right calc(8s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="night"] .ts-moto ,
.scene-modal-stage[data-ts-anim="night"] .ts-moto {
  animation: ts-drive-left calc(9s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(4s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="night"] .ts-car .ts-body ,
.scene-modal-stage[data-ts-anim="night"] .ts-car .ts-body {
  fill: #1d4ed8;
}
.topbar-scene[data-ts-anim="night"] .ts-moto .ts-body ,
.scene-modal-stage[data-ts-anim="night"] .ts-moto .ts-body {
  fill: #b91c1c;
}

/* —— Pluie —— */
.topbar-scene[data-ts-anim="rain"] ,
.scene-modal-stage[data-ts-anim="rain"] {
  background:
    linear-gradient(180deg, color-mix(in srgb, #64748b 25%, transparent), color-mix(in srgb, var(--bg-elevated) 90%, #334155)) !important;
}
.topbar-scene[data-ts-anim="rain"] .ts-rain ,
.scene-modal-stage[data-ts-anim="rain"] .ts-rain {
  opacity: 1;
  animation: ts-rain-fall calc(0.55s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="rain"] .ts-car ,
.scene-modal-stage[data-ts-anim="rain"] .ts-car {
  animation: ts-drive-right calc(9s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="rain"] .ts-moto ,
.scene-modal-stage[data-ts-anim="rain"] .ts-moto {
  animation: ts-drive-left calc(10s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(3s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="rain"] .ts-lane ,
.scene-modal-stage[data-ts-anim="rain"] .ts-lane {
  animation: ts-lane-scroll calc(0.65s / var(--ts-speed, 1)) linear infinite;
  opacity: 0.55;
}
.topbar-scene[data-ts-anim="rain"] .ts-city ,
.scene-modal-stage[data-ts-anim="rain"] .ts-city {
  opacity: 0.4;
}

/* —— Cortège coloré —— */
.topbar-scene[data-ts-anim="parade"] .ts-car ,
.scene-modal-stage[data-ts-anim="parade"] .ts-car {
  animation: ts-drive-right calc(10s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="parade"] .ts-car2 ,
.scene-modal-stage[data-ts-anim="parade"] .ts-car2 {
  display: inline;
  animation: ts-drive-right calc(10s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(3.3s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="parade"] .ts-truck ,
.scene-modal-stage[data-ts-anim="parade"] .ts-truck {
  display: inline;
  animation: ts-drive-right calc(10s / var(--ts-speed, 1)) linear infinite;
  animation-delay: calc(6.6s / var(--ts-speed, 1));
}
.topbar-scene[data-ts-anim="parade"] .ts-moto ,
.scene-modal-stage[data-ts-anim="parade"] .ts-moto {
  display: none;
}
.topbar-scene[data-ts-anim="parade"] .ts-lane ,
.scene-modal-stage[data-ts-anim="parade"] .ts-lane {
  animation: ts-lane-scroll calc(0.7s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="parade"] .ts-car .ts-body ,
.scene-modal-stage[data-ts-anim="parade"] .ts-car .ts-body {
  fill: #a855f7;
}
.topbar-scene[data-ts-anim="parade"] .ts-car2 .ts-body ,
.scene-modal-stage[data-ts-anim="parade"] .ts-car2 .ts-body {
  fill: #ec4899;
}
.topbar-scene[data-ts-anim="parade"] .ts-truck .ts-body ,
.scene-modal-stage[data-ts-anim="parade"] .ts-truck .ts-body {
  fill: #14b8a6;
}

/* —— Livraison (camionnette) —— */
.topbar-scene[data-ts-anim="delivery"] .ts-car ,
.scene-modal-stage[data-ts-anim="delivery"] .ts-car {
  display: none;
}
.topbar-scene[data-ts-anim="delivery"] .ts-moto ,
.scene-modal-stage[data-ts-anim="delivery"] .ts-moto {
  display: none;
}
.topbar-scene[data-ts-anim="delivery"] .ts-truck ,
.scene-modal-stage[data-ts-anim="delivery"] .ts-truck {
  display: inline;
  animation: ts-drive-right calc(11s / var(--ts-speed, 1)) linear infinite;
}
.topbar-scene[data-ts-anim="delivery"] .ts-lane ,
.scene-modal-stage[data-ts-anim="delivery"] .ts-lane {
  animation: ts-lane-scroll calc(0.75s / var(--ts-speed, 1)) linear infinite;
}

/* —— Figé (sans mouvement) —— */
.topbar-scene[data-ts-anim="pause"] .ts-car,
.topbar-scene[data-ts-anim="pause"] .ts-moto,
.topbar-scene[data-ts-anim="pause"] .ts-lane,
.topbar-scene[data-ts-anim="pause"] .ts-car2,
.topbar-scene[data-ts-anim="pause"] .ts-truck,
.topbar-scene[data-ts-anim="pause"] .ts-rain ,
.scene-modal-stage[data-ts-anim="pause"] .ts-car,
.topbar-scene[data-ts-anim="pause"] .ts-moto,
.topbar-scene[data-ts-anim="pause"] .ts-lane,
.topbar-scene[data-ts-anim="pause"] .ts-car2,
.topbar-scene[data-ts-anim="pause"] .ts-truck,
.topbar-scene[data-ts-anim="pause"] .ts-rain {
  animation: none !important;
}
.topbar-scene[data-ts-anim="pause"] .ts-car ,
.scene-modal-stage[data-ts-anim="pause"] .ts-car {
  transform: translateX(28%);
  opacity: 0.95;
}
.topbar-scene[data-ts-anim="pause"] .ts-moto ,
.scene-modal-stage[data-ts-anim="pause"] .ts-moto {
  transform: translateX(62%) scaleX(-1);
  opacity: 0.9;
}

@keyframes ts-drive-right {
  0% {
    transform: translateX(-18%);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(102%);
    opacity: 0;
  }
}

@keyframes ts-drive-left {
  0% {
    transform: translateX(102%) scaleX(-1);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-18%) scaleX(-1);
    opacity: 0;
  }
}

@keyframes ts-lane-scroll {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -11;
  }
}

@keyframes ts-rain-fall {
  from {
    transform: translateY(-4px);
  }
  to {
    transform: translateY(8px);
  }
}

@media (max-width: 380px) {
  .topbar-scene {
    height: 26px;
    /* reste en flex 1 : occupe l'espace avant les boutons */
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-car,
  .ts-car2,
  .ts-truck,
  .ts-moto,
  .ts-lane,
  .ts-rain {
    animation: none !important;
  }
  .ts-car {
    transform: translateX(28%);
    opacity: 0.95;
  }
  .ts-moto {
    transform: translateX(62%) scaleX(-1);
    opacity: 0.9;
  }
  .ts-car2,
  .ts-truck {
    display: none !important;
  }
}

.topbar-chip {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  min-height: 36px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.topbar-chip .ico,
.topbar-chip .theme-ico,
.topbar-chip svg {
  display: block;
  flex-shrink: 0;
}

.topbar-chip.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.theme-ico {
  display: inline-flex;
  align-items: center;
}

.store-announcement {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 45;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--card);
}

.brand-text {
  min-width: 0;
  max-width: min(42vw, 11rem);
  overflow: hidden;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.search-wrap {
  flex: 1;
  min-width: 0;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--primary);
}

/* Session bar (retour) — mobile / tablette / sessions */
.session-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 44;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.session-bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.35rem 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-back:hover {
  border-color: var(--primary);
}

.session-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-spacer {
  width: 4.5rem;
}

.sheet-head {
  margin-bottom: 0.5rem;
}

.sheet-back {
  margin-bottom: 0.35rem;
}

/* Main */
.main-content {
  padding: 0.85rem 0 1.5rem;
}

body.in-session .main-content {
  min-height: calc(100vh - var(--topbar-h) - 3.5rem - var(--bottom-h) - 1rem);
}

body.in-subsession .main-content {
  min-height: calc(100vh - var(--topbar-h) - 3.5rem - 1rem);
}

.view {
  animation: session-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes session-in {
  from {
    opacity: 0.35;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Product session */
.product-session {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .product-session {
    grid-template-columns: minmax(0, 380px) 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .product-session {
    grid-template-columns: minmax(0, 420px) 1fr;
  }
}

.product-session-media {
  position: relative;
  border-radius: var(--card-radius, var(--radius));
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  max-width: 100%;
}

.ps-media-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--bg-elevated);
  cursor: zoom-in;
  aspect-ratio: 1;
  max-height: min(380px, 50vh);
  overflow: hidden;
  box-sizing: border-box;
}

.ps-media-main img,
.ps-media-main video,
.product-session-media > img,
.product-session-media > video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
  background: var(--bg-elevated);
}

.ps-media-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(100%, min(380px, 50vh));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.ps-nav {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.ps-media-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem 0.55rem;
}

.ps-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  cursor: pointer;
}

.ps-dot.is-on {
  width: 18px;
  background: var(--primary);
}

.ps-thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ps-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}

.ps-thumb.is-on {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
}

.ps-thumb img,
.ps-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox plein écran — image centrée, responsive */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 3.25rem 2.75rem 2.75rem;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
}

.lightbox-stage {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: min(960px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-stage img,
.lightbox-stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78dvh, calc(100% - 0.5rem));
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  background: transparent;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: max(0.5rem, env(safe-area-inset-top, 0px));
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.lightbox-nav.prev {
  left: max(0.4rem, env(safe-area-inset-left, 0px));
}

.lightbox-nav.next {
  right: max(0.4rem, env(safe-area-inset-right, 0px));
}

.lightbox-counter {
  position: absolute;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (max-width: 640px) {
  .lightbox-panel {
    padding: 3rem 0.5rem 2.5rem;
  }

  .lightbox-stage img,
  .lightbox-stage video {
    max-width: 100%;
    max-height: min(72dvh, calc(100% - 0.25rem));
    border-radius: 6px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }
}

@media (min-width: 900px) {
  .lightbox-stage {
    max-width: min(900px, 100%);
  }

  .lightbox-stage img,
  .lightbox-stage video {
    max-width: 100%;
    max-height: min(82dvh, calc(100% - 0.5rem));
  }
}

.product-session-body {
  display: grid;
  gap: 0.75rem;
}

.product-session-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.ps-desc {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.ps-service-actions {
  display: grid;
  gap: 0.5rem;
}

.ps-service-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ps-service-btns .btn {
  flex: 1 1 140px;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-warning {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, #f59e0b 55%, var(--border));
  background: color-mix(in srgb, #f59e0b 12%, var(--card));
  color: var(--text);
}

.ps-warning strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  color: #b45309;
}

html[data-theme="dark"] .ps-warning strong {
  color: #fbbf24;
}

.ps-warning p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: pre-wrap;
  color: var(--muted);
}

/* Cart session — page entière responsive */
.cart-session {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .cart-session {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
    gap: 1.5rem;
  }
}

.cart-session-items {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.cart-session-summary {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  position: sticky;
  top: calc(var(--topbar-h) + 3.75rem);
}

.cart-session-summary .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-checkout-form {
  margin-top: 0.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.65rem;
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 64px 1fr;
  }
  .cart-item > strong {
    grid-column: 2;
    justify-self: start;
  }
}

.section-head-desktop {
  display: flex;
}

@media (max-width: 720px) {
  body.in-session .section-head-desktop {
    display: none;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* Compte client désactivé : 3 onglets bottom nav (Accueil / Catégories / Panier) */
body.no-client-account .bottom-nav {
  grid-template-columns: repeat(3, 1fr);
}

body.no-client-account .bnav-item[data-nav="account"] {
  display: none !important;
}

/* Fond boutique — presets (pas d’import photo) */
#store-bg-layer,
.store-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.has-store-bg .app,
body.has-store-bg .main-content,
body.has-store-bg main {
  position: relative;
  z-index: 1;
}

/* 10 fonds préconfigurés (gradients riches) */
.bg-preset--none {
  background: transparent !important;
}
.bg-preset--aurora {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(56, 189, 248, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(167, 139, 250, 0.5), transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 90%, rgba(52, 211, 153, 0.35), transparent 55%),
    linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0c4a6e 100%);
}
.bg-preset--ocean {
  background:
    radial-gradient(ellipse 90% 70% at 10% 80%, rgba(14, 165, 233, 0.45), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(45, 212, 191, 0.4), transparent 45%),
    linear-gradient(180deg, #0c4a6e 0%, #075985 40%, #164e63 100%);
}
.bg-preset--sunset {
  background:
    radial-gradient(ellipse 80% 55% at 30% 20%, rgba(251, 146, 60, 0.55), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(244, 63, 94, 0.4), transparent 50%),
    linear-gradient(145deg, #7c2d12 0%, #9a3412 35%, #be123c 70%, #4c1d95 100%);
}
.bg-preset--midnight {
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.25), transparent 40%),
    linear-gradient(180deg, #020617 0%, #1e1b4b 55%, #0f172a 100%);
}
.bg-preset--emerald {
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(52, 211, 153, 0.5), transparent 50%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(16, 185, 129, 0.35), transparent 45%),
    linear-gradient(160deg, #022c22 0%, #064e3b 45%, #0f766e 100%);
}
.bg-preset--lavender {
  background:
    radial-gradient(ellipse 75% 60% at 25% 30%, rgba(192, 132, 252, 0.5), transparent 50%),
    radial-gradient(ellipse 65% 50% at 75% 70%, rgba(244, 114, 182, 0.35), transparent 50%),
    linear-gradient(150deg, #2e1065 0%, #4c1d95 40%, #701a75 100%);
}
.bg-preset--citrus {
  background:
    radial-gradient(ellipse 70% 55% at 20% 20%, rgba(250, 204, 21, 0.55), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(249, 115, 22, 0.4), transparent 45%),
    linear-gradient(160deg, #713f12 0%, #a16207 40%, #c2410c 100%);
}
.bg-preset--graphite {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(148, 163, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(71, 85, 105, 0.4), transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}
.bg-preset--candy {
  background:
    radial-gradient(ellipse 65% 55% at 15% 40%, rgba(244, 114, 182, 0.5), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(56, 189, 248, 0.4), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(167, 139, 250, 0.35), transparent 50%),
    linear-gradient(145deg, #4a044e 0%, #831843 40%, #1e3a8a 100%);
}
.bg-preset--mesh {
  background:
    radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.45) 0, transparent 45%),
    radial-gradient(at 80% 10%, rgba(14, 165, 233, 0.4) 0, transparent 40%),
    radial-gradient(at 70% 80%, rgba(244, 63, 94, 0.3) 0, transparent 45%),
    radial-gradient(at 20% 90%, rgba(52, 211, 153, 0.35) 0, transparent 40%),
    linear-gradient(180deg, #111827 0%, #1f2937 100%);
}

/* Catalogue : grille (défaut) ou liste */
#product-grid.is-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

#product-grid.is-list .product-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  text-align: left;
  align-items: stretch;
}

#product-grid.is-list .product-card .thumb {
  aspect-ratio: 1;
  width: 88px;
  min-height: 88px;
  max-height: 88px;
  border-radius: var(--card-radius, var(--radius)) 0 0 var(--card-radius, var(--radius));
}

#product-grid.is-list .product-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 0.75rem;
}

/* Banners — cadre fixe ; l’image se réduit À L’INTÉRIEUR (object-fit: contain) */
.banners {
  position: relative;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  contain: paint;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, #000 12%);
  /* hauteur de cadre stable — pas d’étirement de l’image */
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  aspect-ratio: auto;
}

/* display sur .banners écraserait l'UA [hidden] — forcer le masquage */
.banners[hidden],
.banners.is-hidden {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  border: none !important;
}

.banner-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
  /* opacity seule : aucune transform qui déborde */
  transition: opacity 0.5s ease, visibility 0.5s;
  pointer-events: none;
  display: block;
  background: var(--bg-elevated);
  overflow: hidden;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.banner-slide.is-exit {
  opacity: 0;
  visibility: visible;
  z-index: 0;
}

.banner-slide img,
.banner-slide video {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  /* l’image entière est réduite pour tenir dans le cadre — pas de crop agressif */
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.banner-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.85;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.banner-nav:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.7);
}

.banner-nav.prev {
  left: 0.5rem;
}

.banner-nav.next {
  right: 0.5rem;
}

.banner-nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: auto;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.banner-dot.is-active {
  width: 22px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

/* Category chips (home filter) */
.chip-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: rgba(28, 32, 241, 0.18);
  border-color: var(--primary);
  color: var(--text);
}

/* Category grid with images */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.cat-card:hover,
.cat-card:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
  outline: none;
}

.cat-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

.cat-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card .label {
  padding: 0.55rem 0.7rem 0.15rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.25;
}

.cat-card .cat-count {
  padding: 0 0.7rem 0.65rem;
  font-size: 0.75rem;
}

/* Products — cartes compactes, image contenue dans le cadre */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

.product-card {
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius, var(--radius));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  text-align: left;
  padding: 0;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.product-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 180px;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .product-card .thumb {
    max-height: 160px;
  }
}

.product-card .thumb img,
.product-card .thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card .thumb .thumb-file {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
}

.product-card .body {
  padding: 0.5rem 0.55rem 0.6rem;
  display: grid;
  gap: 0.22rem;
  flex: 1;
  min-width: 0;
}

.product-card h3 {
  margin: 0;
  font-size: 0.84rem;
  font-family: var(--font-display);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 900px) {
  .product-card h3 {
    font-size: 0.86rem;
  }
  .product-card .price {
    font-size: 0.86rem;
  }
}

.price {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.92rem;
}

.price.muted {
  color: var(--muted);
  font-weight: 500;
}

.pill {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 50, 2, 0.14);
  color: var(--secondary);
  width: fit-content;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
}

.bnav-item {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.15rem;
  min-height: 48px;
  font-size: 0.68rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bnav-item.active {
  color: var(--primary);
}

.bnav-icon {
  display: grid;
  place-items: center;
}

.bnav-item .badge-count {
  position: absolute;
  top: 0;
  right: calc(50% - 22px);
  background: var(--secondary);
  color: #fff;
  font-size: 0.62rem;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Modal scène rue (invitation produits) — mobile-first WhatsApp */
.scene-modal-backdrop {
  z-index: 95;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scene-modal {
  position: relative;
  width: 100%;
  max-height: min(92dvh, 92vh);
  border-radius: 18px 18px 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  transform: translateY(110%);
  opacity: 1;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

.scene-modal-backdrop.is-open .scene-modal {
  transform: translateY(0);
  opacity: 1;
}

.scene-modal-close {
  position: absolute;
  top: max(0.45rem, env(safe-area-inset-top, 0px));
  right: 0.55rem;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  touch-action: manipulation;
}

.scene-modal-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(42vw, 200px);
  min-height: 140px;
  background: #0f172a;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.scene-modal-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animations scène agrandie : mêmes classes .ts-* que la mini-piste (data-ts-anim) */

.scene-modal-body {
  padding: 1rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 0.55rem;
}

.scene-modal-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.scene-modal-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.5vw, 1.45rem);
  line-height: 1.3;
}

.scene-modal-text {
  margin: 0;
  font-size: clamp(0.88rem, 3.5vw, 0.98rem);
  line-height: 1.5;
}

.scene-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.scene-modal-actions .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  touch-action: manipulation;
}

@media (min-width: 480px) {
  .scene-modal-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .scene-modal-actions .btn {
    flex: 1 1 auto;
    width: auto;
    min-width: min(140px, 100%);
  }
}

@media (min-width: 640px) {
  .scene-modal-backdrop {
    align-items: center;
    padding: 0.85rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }
  .scene-modal {
    width: min(520px, 100%);
    max-height: min(88dvh, 720px);
    border-radius: 18px;
    transform: translateY(24px) scale(0.97);
  }
  .scene-modal-backdrop.is-open .scene-modal {
    transform: translateY(0) scale(1);
  }
  .scene-modal-stage {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
  .scene-modal-body {
    padding: 1.15rem 1.25rem 1.4rem;
  }
}

html[data-theme="light"] .scene-modal-stage {
  background: linear-gradient(180deg, #93c5fd 0%, #c7d2fe 40%, #e2e8f0 70%);
}

html[data-theme="light"] .scene-modal-stage svg rect[fill="url(#sm-sky)"] {
  opacity: 0.35;
}

/* reduced-motion pour .ts-* déjà géré plus haut */

/* Overlays coulissants — toujours en flex pour animer, invisibles quand fermés */
.modal-backdrop,
.sheet-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-backdrop {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.sheet-backdrop {
  align-items: flex-end;
  justify-content: center;
  z-index: 90;
}

.drawer-backdrop {
  display: block;
}

.modal-backdrop.is-open,
.sheet-backdrop.is-open,
.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
    padding: 0.75rem;
  }
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow);
  pointer-events: auto;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.modal-backdrop.is-open .modal {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal {
    border-radius: 16px;
    transform: translateY(24px) scale(0.98);
    opacity: 0.96;
  }
  .modal-backdrop.is-open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-grid {
  display: grid;
}

@media (min-width: 700px) {
  .modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg);
}

.modal-content {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.modal-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.modal-content p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.variants button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font: inherit;
}

.variants button.active {
  border-color: var(--primary);
  background: rgba(28, 32, 241, 0.16);
}

/* Modes d’affichage variantes (variable_display) */
.variants.display-radio {
  flex-direction: column;
  gap: 0.35rem;
}

.variant-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

.variant-radio.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
}

.variant-radio input {
  accent-color: var(--primary);
}

.variant-radio .variant-price {
  margin-left: auto;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--muted);
}

.variants.display-select,
.variants.display-menu {
  flex-direction: column;
}

.variant-select-label {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  font: inherit;
}

.variant-select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  min-height: 44px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-row button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
}

.btn-whatsapp .wa-ico {
  flex-shrink: 0;
}

/* Sheets — coulissent du bas */
.sheet {
  pointer-events: auto;
  width: min(480px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 0.75rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.sheet-backdrop.is-open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin: 0.2rem auto 0.85rem;
}

.sheet h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.wa-choices {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
}

.wa-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
}

.wa-choice:hover {
  border-color: var(--wa);
}

.wa-choice .dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

/* Cart drawer — coulisse depuis la droite */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 85;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  will-change: transform;
  overflow: hidden;
  visibility: hidden;
}

.drawer.open {
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.drawer-head,
.drawer-foot {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
}

.drawer .items {
  padding: 1rem;
  overflow: auto;
  flex: 1;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.drawer .line {
  display: flex;
  justify-content: space-between;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
}

.cart-item h4 {
  margin: 0;
  font-size: 0.9rem;
}

.cart-item .meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 0.5rem;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.field-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Account — espace client */
.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.account-tabs button {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
  font-weight: 600;
}

.account-tabs button.active {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(28, 32, 241, 0.12);
}

.account-form {
  display: grid;
  gap: 0.55rem;
}

.account-form input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.account-error {
  color: #f87171;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.client-orders {
  display: grid;
  gap: 0.55rem;
}

.client-order {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: var(--bg-elevated);
}

.client-order strong {
  display: block;
}

.client-order .meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.phone-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.phone-list a {
  color: var(--wa);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--topbar-bg);
  padding: 2rem 0 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  margin: 0.2rem 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-elevated));
}

.socials a img,
.socials a svg {
  width: 20px;
  height: 20px;
  display: block;
}

.socials a svg {
  fill: currentColor;
}

/* Icônes SVG export (souvent monochromes) : forcer contraste */
.socials a img {
  object-fit: contain;
  /* monochrome lisible clair/sombre */
  filter: none;
}

[data-theme="dark"] .socials a img {
  /* SVG noirs exportés → blancs en dark */
  filter: invert(1) brightness(1.15);
}

.socials-lg a {
  width: 48px;
  height: 48px;
}

.socials-lg a img,
.socials-lg a svg {
  width: 24px;
  height: 24px;
}

.social-mono {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

/* teintes marque (optionnel) */
.social-whatsapp:hover { color: #25d366; }
.social-facebook:hover { color: #1877f2; }
.social-tiktok:hover { color: #fe2c55; }
.social-linkedin:hover { color: #0a66c2; }
.social-twitter:hover,
.social-x:hover { color: #1d9bf0; }
.social-telegram:hover { color: #26a5e4; }

/* --- Session Info (profil boutique type Vepaar) --- */
#view-info.view {
  padding: 0;
  max-width: none;
}

.info-profile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1.25rem;
}

.info-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 140px;
  max-height: 280px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 55%, #111) 0%, color-mix(in srgb, var(--secondary) 45%, #222) 100%);
  background-size: cover;
  background-position: center;
}

.info-cover.has-image {
  background-color: #1a1a1a;
}

.info-cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.info-body {
  position: relative;
  padding: 0 1.15rem 1.35rem;
  display: grid;
  gap: 0.55rem;
}

.info-logo-wrap {
  margin-top: -48px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.info-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.info-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.info-tagline {
  margin: 0;
  font-size: 0.92rem;
}

.info-desc {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.info-address {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.info-address:empty {
  display: none;
}

.info-block {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.5rem;
}

.info-block h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

@media (min-width: 720px) {
  .info-cover {
    aspect-ratio: 21 / 7;
    min-height: 180px;
  }

  .info-logo-wrap {
    width: 112px;
    height: 112px;
    margin-top: -56px;
  }

  .info-body {
    padding: 0 1.5rem 1.75rem;
  }

  .info-title {
    font-size: 1.55rem;
  }
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottom-h) + 0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 65;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  border: 0;
  cursor: pointer;
}

.wa-float:hover {
  filter: brightness(1.05);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  grid-column: 1 / -1;
}

.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* Desktop: bottom nav still useful but can sit as bar */
@media (min-width: 900px) {
  .brand-text {
    max-width: 280px;
  }
}

/* ========== Responsive WhatsApp / mobile-first ========== */
@media (max-width: 720px) {
  :root,
  html[data-theme="dark"],
  html[data-theme="light"] {
    --topbar-h: 2.65rem;
    --header-h: 3.6rem;
    --bottom-h: 4.1rem;
  }

  .topbar-inner {
    gap: 0.35rem;
    padding: 0.28rem 0;
  }

  .topbar-actions {
    gap: 0.28rem;
  }

  .topbar-scene {
    height: 28px;
    min-width: 48px; /* garde une zone cliquable même si étroit */
  }

  /* Libellés topbar masqués sur petit écran : icônes seules */
  .topbar-chip {
    padding: 0.4rem;
    min-width: 40px;
    min-height: 40px;
  }

  .topbar-chip > span:not(.theme-ico):not(.ico) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* garder FR/EN visible (court) */
  #lang-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    clip: auto !important;
    overflow: visible !important;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .header-inner {
    gap: 0.5rem;
    padding: 0.45rem 0;
    flex-wrap: nowrap;
  }

  .brand-text {
    max-width: 34vw;
  }

  .brand-text strong {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text span {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-wrap input {
    font-size: 16px; /* évite zoom iOS au focus */
    min-height: 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .product-card h3 {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .product-card .body {
    padding: 0.5rem 0.55rem 0.65rem;
  }

  .banner-nav {
    width: 40px;
    height: 40px;
  }

  .section-head h2 {
    font-size: 1.05rem;
  }

  .wa-float {
    right: 0.75rem;
    width: 52px;
    height: 52px;
    bottom: calc(var(--bottom-h) + 0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: 0.5rem;
  }

  .phone-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-list a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .topbar-actions {
    gap: 0.2rem;
  }

  .topbar-chip {
    min-width: 36px;
    min-height: 36px;
    padding: 0.32rem;
  }

  .topbar-scene {
    height: 26px;
  }

  .bnav-item {
    font-size: 0.62rem;
    padding: 0.3rem 0.05rem;
  }

  .product-card h3 {
    font-size: 0.78rem;
  }

  .scene-modal-body h2 {
    font-size: 1.05rem;
  }
}

/* Boutons tactiles génériques */
.btn {
  min-height: 44px;
  touch-action: manipulation;
}

input,
select,
textarea {
  max-width: 100%;
  font-size: 16px; /* iOS: pas de zoom auto */
}

/* Cartes produit : ne pas déborder */
.product-card,
.account-card,
.info-profile {
  max-width: 100%;
}

/* Images et grilles fluides — ne pas toucher .banner-slide img */
.info-logo {
  max-width: 100%;
  height: auto;
}

/* thumbs produit : toujours contenus dans le cadre (pas de height:auto) */
.product-card .thumb img,
.product-card .thumb video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

/* Service : panier / qty masqués */
#ps-add-cart.is-service-hidden,
#ps-add-cart[hidden],
.product-session-body .qty-row[hidden] {
  display: none !important;
}

#ps-price.is-service {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 520px) {
  .banners {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }
}

/* PC / tablette : pleine largeur du container (pas d’espace vide à droite) */
@media (min-width: 768px) {
  .banners {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (min-width: 1100px) {
  .banners {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    width: 100%;
    max-width: 100%;
  }
}

/* Session plein écran mobile */
@media (max-width: 720px) {
  .session-view .account-card,
  #view-cart .account-card,
  #view-account .account-card {
    border-radius: 12px;
  }

  .main-content {
    padding-bottom: 0.75rem;
  }
}

/* Landscape mobile court */
@media (max-height: 480px) and (orientation: landscape) {
  .scene-modal-stage {
    max-height: 100px;
    min-height: 80px;
  }
  .scene-modal {
    max-height: 96dvh;
  }
  .wa-float {
    width: 46px;
    height: 46px;
  }
}
