/* =========================================================
   PARFUM53 - Systeme de design
   Reference : maquette noir & bleu electrique, "luxe accessible"
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --c-black: #050b18;
  --c-night: #101d35;
  --c-royal: #063b91;
  --c-electric: #00afff;
  --c-white: #ffffff;
  --c-silver: #a8b8d0;

  /* Derives */
  --c-bg: var(--c-black);
  --c-surface: #0a1428;
  --c-surface-2: var(--c-night);
  --c-line: rgba(0, 175, 255, 0.22);
  --c-line-strong: rgba(0, 175, 255, 0.55);
  --c-text: var(--c-white);
  --c-text-muted: var(--c-silver);
  --c-danger: #ff5c7a;
  --c-warning: #ffc861;

  --grad-electric: linear-gradient(135deg, #00afff 0%, #0a6fe0 55%, #063b91 100%);
  --grad-card: linear-gradient(180deg, rgba(16, 29, 53, 0.9) 0%, rgba(5, 11, 24, 0.95) 100%);
  --grad-section: radial-gradient(1200px 500px at 50% 0%, rgba(6, 59, 145, 0.28), transparent 70%);

  /* Lumiere */
  --glow-sm: 0 0 12px rgba(0, 175, 255, 0.35);
  --glow-md: 0 0 24px rgba(0, 175, 255, 0.35), 0 0 2px rgba(0, 175, 255, 0.8);
  --glow-lg: 0 0 48px rgba(0, 175, 255, 0.35), 0 0 4px rgba(0, 175, 255, 0.9);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.55);

  /* Typographie */
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-title: "Poppins", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-script: "Great Vibes", cursive;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  --fs-2xl: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);

  /* Espacements, rayons */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}
p {
  margin: 0;
}
ul,
ol.breadcrumb,
ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--c-electric);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--c-electric);
  color: var(--c-black);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Typographie ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--f-title);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-silver);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-silver);
  opacity: 0.6;
}
.text-electric {
  color: var(--c-electric);
}
.muted {
  color: var(--c-text-muted);
}

/* Titre de section avec filets lumineux */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 0 1 90px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-electric));
  box-shadow: var(--glow-sm);
}
.section-title::after {
  background: linear-gradient(90deg, var(--c-electric), transparent);
}

/* ---------- 4. Boutons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding: 0 1.6em;
  border-radius: var(--radius-pill);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn .icon {
  transition: transform 0.25s var(--ease);
}
.btn:hover .icon-chevron {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--grad-electric);
  color: var(--c-white);
  box-shadow: 0 0 0 1px rgba(0, 175, 255, 0.6), 0 8px 24px rgba(0, 175, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--c-electric), var(--glow-lg);
}
.btn-outline {
  border: 1.5px solid var(--c-electric);
  color: var(--c-white);
  background: rgba(0, 175, 255, 0.06);
  box-shadow: inset 0 0 18px rgba(0, 175, 255, 0.18), var(--glow-sm);
}
.btn-outline:hover {
  background: rgba(0, 175, 255, 0.16);
  box-shadow: inset 0 0 22px rgba(0, 175, 255, 0.3), var(--glow-md);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--c-silver);
  padding: 0 1em;
}
.btn-ghost:hover {
  color: var(--c-white);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--c-white);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.icon-btn .icon {
  width: 22px;
  height: 22px;
}
.icon-btn:hover {
  color: var(--c-electric);
  background: rgba(0, 175, 255, 0.08);
}
.icon-btn-round {
  border: 1px solid var(--c-line-strong);
  background: rgba(16, 29, 53, 0.7);
}
.icon-btn-round:hover {
  box-shadow: var(--glow-md);
}

/* ---------- 5. Barre superieure ---------- */
.topbar {
  background: linear-gradient(90deg, var(--c-black), var(--c-night), var(--c-black));
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-xs);
  color: var(--c-white);
}
.topbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
}
.topbar li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 clamp(16px, 3vw, 36px);
}
.topbar li + li {
  border-left: 1px solid var(--c-line-strong);
}
.topbar .icon {
  color: var(--c-electric);
  width: 18px;
  height: 18px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 24, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(5, 11, 24, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: clamp(12px, 2vw, 30px);
}
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 2px;
  font-family: var(--f-title);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-electric);
  box-shadow: var(--glow-sm);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--c-white);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.main-nav a[aria-current="page"] {
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-electric);
  color: var(--c-black);
  font: 700 11px/18px var(--f-body);
  text-align: center;
  box-shadow: var(--glow-sm);
}
.cart-count.bump {
  animation: bump 0.45s var(--ease);
}
@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}
.menu-toggle {
  display: none;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo-mark {
  width: 58px;
  height: 58px;
}
.logo-text {
  display: grid;
  line-height: 1;
  text-align: center;
}
.logo-top {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.22em;
}
.logo-main {
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #6fd3ff 0%, #00afff 45%, #0a6fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 175, 255, 0.35));
}
/* "53" du nom Parfum53 : blanc lumineux sur le degrade bleu */
.logo-num {
  color: var(--c-white);
  margin-left: 0.04em;
  text-shadow: 0 0 12px rgba(0, 175, 255, 0.75);
}
.logo-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--c-silver);
}
.logo-sub::before,
.logo-sub::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--c-silver);
}

/* Navigation mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: min(86vw, 360px) 1fr;
  visibility: hidden;
}
.mobile-nav-panel {
  background: linear-gradient(180deg, var(--c-night), var(--c-black));
  border-right: 1px solid var(--c-line-strong);
  box-shadow: var(--glow-md);
  padding: var(--space-5);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.35s;
}
.mobile-nav.is-open {
  visibility: visible;
}
.mobile-nav.is-open .mobile-nav-panel {
  transform: none;
}
.mobile-nav.is-open .mobile-nav-backdrop {
  opacity: 1;
}
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.mobile-nav-panel nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.mobile-nav-panel nav a[aria-current="page"] {
  color: var(--c-electric);
}
.mobile-nav-panel nav .icon {
  color: var(--c-electric);
}

/* ---------- 7. Recherche (overlay) ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  padding-top: clamp(60px, 12vh, 140px);
}
.search-overlay.is-open {
  display: block;
  animation: fade 0.25s var(--ease);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 2px solid var(--c-electric);
  box-shadow: 0 10px 30px -18px var(--c-electric);
  padding: var(--space-3) 0;
}
.search-box .icon {
  width: 28px;
  height: 28px;
  color: var(--c-electric);
}
.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-family: var(--f-title);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.search-box input::placeholder {
  color: rgba(168, 184, 208, 0.6);
}
.search-results {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-2);
  max-height: 60vh;
  overflow-y: auto;
}
.search-hit {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.search-hit:hover,
.search-hit:focus-visible {
  border-color: var(--c-line-strong);
  background: rgba(0, 175, 255, 0.06);
}
.search-hit .thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
}
.search-hit strong {
  font-family: var(--f-title);
  font-weight: 600;
}

/* ---------- 8. Sections, reveal ---------- */
.section {
  padding-block: clamp(48px, 7vw, 88px);
  position: relative;
  isolation: isolate;
}
.section::before {
  /* Fumee bleue laterale */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(min(520px, 40%) 46% at 0% 50%, rgba(0, 110, 255, 0.14), transparent),
    radial-gradient(min(520px, 40%) 46% at 100% 45%, rgba(0, 110, 255, 0.14), transparent);
}
.section-glow {
  background: var(--grad-section);
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-electric) 30%, #bdf0ff 50%, var(--c-electric) 70%, transparent);
  box-shadow: 0 0 14px 1px rgba(0, 175, 255, 0.45);
  opacity: 0.7;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(900px 520px at 72% 45%, rgba(0, 175, 255, 0.22), transparent 65%),
    radial-gradient(700px 400px at 10% 20%, rgba(6, 59, 145, 0.35), transparent 70%), var(--c-black);
}
@keyframes drift {
  to {
    transform: translate3d(-1.5%, 1%, 0) scale(1.04);
  }
}
@keyframes spark {
  to {
    stroke-dashoffset: -1900;
  }
}

/* Couche d'effets lumineux (injectee par app.js) */
.fx-waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.fx-spark {
  stroke-dasharray: 90 1810;
  stroke-dashoffset: 0;
  opacity: 0.9;
  animation: spark 11s linear infinite;
  animation-delay: calc(var(--i) * -1.9s);
}
.hero::after {
  /* Fondu vers la section suivante */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--c-black));
  pointer-events: none;
}
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero .fx-waves {
  opacity: 0.55;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: var(--space-5);
  min-height: clamp(480px, 66vh, 640px);
  padding-block: var(--space-7) var(--space-8);
}
.hero-slides {
  display: grid;
  position: relative;
  z-index: 1;
}
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hero-title {
  margin: var(--space-4) 0 var(--space-5);
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}
.hero-title .l1 {
  display: block;
  font-size: calc(var(--fs-hero) * 0.56);
  font-style: italic;
  letter-spacing: 0.01em;
}
.hero-title .l2 {
  display: block;
  font-size: var(--fs-hero);
  font-style: italic;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #8fe0ff 0%, #00afff 40%, #0668d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 175, 255, 0.45));
}
.hero-title .l3 {
  display: block;
  margin-top: -0.12em;
  margin-left: 0.9em;
  font-family: var(--f-script);
  font-weight: 400;
  text-transform: none;
  font-size: calc(var(--fs-hero) * 0.95);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}
.hero-text {
  max-width: 400px;
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}
.hero-visual {
  position: relative;
  margin-right: calc(-1 * var(--gutter));
}
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1258 / 700;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 84%, transparent);
  mask-composite: intersect;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.hero-visual::after {
  /* Socle lumineux */
  content: "";
  position: absolute;
  left: 14%;
  right: 10%;
  bottom: 4%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 175, 255, 0.45), transparent 70%);
  filter: blur(18px);
  z-index: -1;
}
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--c-silver);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hero-dots button[aria-current="true"] {
  background: var(--c-electric);
  border-color: var(--c-electric);
  box-shadow: var(--glow-md);
}

/* ---------- 10. Collections ---------- */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.collection-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  background: linear-gradient(110deg, rgba(6, 59, 145, 0.35), rgba(16, 29, 53, 0.9) 55%, rgba(5, 11, 24, 1));
  box-shadow: inset 0 0 30px rgba(0, 175, 255, 0.1), 0 0 18px rgba(0, 175, 255, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-electric);
  box-shadow: inset 0 0 40px rgba(0, 175, 255, 0.18), var(--glow-lg);
}
.collection-card .media {
  align-self: stretch;
  overflow: hidden;
}
.collection-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent);
  mask-image: linear-gradient(90deg, #000 60%, transparent);
  transition: transform 0.6s var(--ease);
}
.collection-card:hover .media img {
  transform: scale(1.06);
}
.collection-card .media-icon {
  display: grid;
  place-items: center;
}
.collection-card .media-icon svg {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 10px rgba(0, 175, 255, 0.6));
}
.collection-card .label {
  padding: var(--space-4);
  font-family: var(--f-title);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
}
.collection-card .label small {
  display: block;
  font-size: clamp(1rem, 0.8rem + 0.6vw, 1.3rem);
}
.collection-card .label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
}
.collection-card .label .icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease);
}
.collection-card:hover .label .icon {
  transform: translateX(4px);
  color: var(--c-electric);
}

/* ---------- 11. Engagements ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: var(--space-7);
}
.perk {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  line-height: 1.2;
}
.perk + .perk {
  border-left: 1px solid var(--c-line-strong);
}
.perk .icon {
  width: 40px;
  height: 40px;
  color: var(--c-electric);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(0, 175, 255, 0.55));
}

/* ---------- 12. Cartes produit ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--grad-card);
  border: 1px solid var(--c-line-strong);
  box-shadow: inset 0 0 24px rgba(0, 175, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-electric);
  box-shadow: inset 0 0 30px rgba(0, 175, 255, 0.14), var(--glow-lg);
}
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-media img {
  transform: scale(1.05);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(5, 11, 24, 0.8);
  border: 1px solid var(--c-electric);
  box-shadow: var(--glow-sm);
}
.badge .icon {
  width: 14px;
  height: 14px;
  color: #ffc861;
  fill: #ffc861;
  stroke: none;
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: var(--space-3) var(--space-4) var(--space-4);
}
.product-name {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: 1.25;
}
.product-brand {
  color: var(--c-silver);
  font-size: var(--fs-sm);
}
.product-meta {
  font-size: var(--fs-xs);
  color: rgba(168, 184, 208, 0.75);
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.price strong {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.25rem;
}
.price s {
  color: var(--c-silver);
  font-size: var(--fs-xs);
}
.price-tbc {
  font-size: var(--fs-sm);
  color: var(--c-silver);
}
.add-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--grad-electric);
  color: var(--c-white);
  box-shadow: 0 0 0 1px rgba(0, 175, 255, 0.6), var(--glow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.add-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px var(--c-electric), var(--glow-md);
}
.add-btn.is-added {
  background: var(--c-white);
  color: var(--c-royal);
}

/* Silhouette "visuel a venir" */
.placeholder-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 55%, rgba(0, 175, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0b1a35, #050b18);
}
.placeholder-visual svg {
  width: 42%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0, 175, 255, 0.5));
}
.placeholder-visual span {
  position: absolute;
  bottom: 10%;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-silver);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* ---------- 13. Marques ---------- */
.brands-section {
  padding-block: clamp(24px, 3vw, 40px);
}
.brands-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: clamp(14px, 2vw, 22px) clamp(10px, 2vw, 22px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 29, 53, 0.55), rgba(5, 11, 24, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px -40px rgba(0, 175, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Filets lumineux haut et bas, fondus aux extremites */
.brands-strip::before,
.brands-strip::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 175, 255, 0.8) 30%, #bdf0ff 50%, rgba(0, 175, 255, 0.8) 70%, transparent);
  box-shadow: 0 0 12px rgba(0, 175, 255, 0.6);
}
.brands-strip::before {
  top: 0;
}
.brands-strip::after {
  bottom: 0;
  opacity: 0.45;
}
.brands-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}
.brands-track::-webkit-scrollbar {
  display: none;
}
.brand-item {
  position: relative;
  flex: 0 0 calc(100% / 6);
  min-width: 150px;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  height: 88px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  transition: background 0.4s var(--ease);
}
.brand-item + .brand-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 175, 255, 0.55), transparent);
}
.brand-item img {
  max-height: 44px;
  max-width: 78%;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.brand-item:hover,
.brand-item:focus-visible {
  background: radial-gradient(closest-side, rgba(0, 175, 255, 0.16), transparent);
}
.brand-item:hover img,
.brand-item:focus-visible img {
  opacity: 1;
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 0 12px rgba(0, 175, 255, 0.85));
}

/* ---------- 14. Newsletter ---------- */
.newsletter-section {
  padding-block: clamp(16px, 3vw, 40px) var(--space-4);
}
.newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-5);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 175, 255, 0.22);
  background: radial-gradient(60% 120% at 50% 0%, rgba(0, 175, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(16, 29, 53, 0.92), rgba(5, 11, 24, 0.96));
  box-shadow: 0 40px 80px -40px rgba(0, 175, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Ligne de lumiere au sommet (effet "lamp") */
.newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00afff 25%, #e6faff 50%, #00afff 75%, transparent);
  box-shadow: 0 0 18px 2px rgba(0, 175, 255, 0.6);
  z-index: 1;
}
/* Bordure en mouvement (Border Beam) */
.nl-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(from var(--fx-angle), transparent 0deg 290deg, rgba(0, 175, 255, 0.9) 325deg, #ffffff 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-spin 7s linear infinite;
}
.nl-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 175, 255, 0.5);
  background: radial-gradient(circle at 50% 35%, rgba(0, 175, 255, 0.3), rgba(6, 59, 145, 0.2) 60%, transparent);
  box-shadow: 0 0 24px rgba(0, 175, 255, 0.35), inset 0 0 14px rgba(0, 175, 255, 0.25);
  color: var(--c-white);
}
.nl-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}
.newsletter h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nl-text p {
  color: var(--c-silver);
}
.nl-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(168, 184, 208, 0.25);
  background: rgba(5, 11, 24, 0.85);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nl-input:focus-within {
  border-color: var(--c-electric);
  box-shadow: 0 0 0 3px rgba(0, 175, 255, 0.15), var(--glow-sm);
}
.nl-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 1.1rem;
  background: none;
  border: 0;
  outline: 0;
}
.nl-input input::placeholder {
  color: rgba(168, 184, 208, 0.7);
}
.nl-input .btn {
  --btn-h: 44px;
  flex: none;
}
.nl-form .form-note {
  padding-left: 1.1rem;
}
.field {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 184, 208, 0.35);
  background: rgba(5, 11, 24, 0.75);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field::placeholder {
  color: rgba(168, 184, 208, 0.7);
}
.field:focus {
  outline: 0;
  border-color: var(--c-electric);
  box-shadow: var(--glow-sm);
}
textarea.field {
  padding-block: 0.75rem;
  min-height: 120px;
  resize: vertical;
}
select.field {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300AFFF' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
select.field option {
  background: var(--c-night);
}
.form-note {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--c-silver);
  min-height: 1.2em;
}
.form-note.is-ok {
  color: var(--c-electric);
}
.form-note.is-error {
  color: var(--c-danger);
}

/* ---------- 15. Footer ---------- */
.site-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--c-line);
  background: radial-gradient(800px 300px at 50% 100%, rgba(6, 59, 145, 0.3), transparent 70%), var(--c-black);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) 1.3fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
.footer-col h3 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
}
.footer-col li + li {
  margin-top: var(--space-2);
}
.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--c-electric);
}
.socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
/* Boutons reseaux : pastilles de verre a liseré lumineux */
.socials .icon-btn {
  /* annule le inline-flex de .footer-col a : icone centree dans la pastille */
  display: inline-grid;
  place-items: center;
  gap: 0;
  width: 46px;
  height: 46px;
  color: var(--c-silver);
  border: 1px solid rgba(0, 175, 255, 0.28);
  background: radial-gradient(circle at 50% 0%, rgba(0, 175, 255, 0.16), transparent 70%), rgba(16, 29, 53, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.socials .icon-btn .icon {
  width: 21px;
  height: 21px;
  transition: filter 0.3s var(--ease);
}
.socials .icon-btn:hover,
.socials .icon-btn:focus-visible {
  color: var(--c-white);
  border-color: var(--c-electric);
  background: radial-gradient(circle at 50% 0%, rgba(0, 175, 255, 0.3), transparent 75%), rgba(16, 29, 53, 0.8);
  box-shadow: 0 0 18px rgba(0, 175, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}
.socials .icon-btn:hover .icon,
.socials .icon-btn:focus-visible .icon {
  filter: drop-shadow(0 0 6px rgba(0, 175, 255, 0.9));
}
.secure-pay {
  display: grid;
  gap: var(--space-4);
  padding-left: var(--space-6);
  border-left: 1px solid var(--c-line);
}
.secure-pay-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--f-title);
  font-weight: 600;
  line-height: 1.25;
}
.secure-pay-head .icon {
  width: 46px;
  height: 46px;
  color: var(--c-electric);
  stroke-width: 1.4;
}
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pay-methods span {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--c-white);
  color: #1a1f71;
  font: italic 800 13px/1 var(--f-display);
}
.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding-block: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--c-silver);
}

/* ---------- 16. Pages internes ---------- */
.page-hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px);
  background: var(--grad-section);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  text-transform: uppercase;
  margin-top: var(--space-3);
}
.page-hero p {
  color: var(--c-silver);
  margin-top: var(--space-3);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
.breadcrumb a:hover {
  color: var(--c-electric);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  opacity: 0.5;
}
.page-hero .breadcrumb {
  justify-content: center;
}

.panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  background: var(--grad-card);
  padding: var(--space-5);
}
.panel-title {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}

/* Bandeau "contenu provisoire" */
.placeholder-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 200, 97, 0.55);
  background: rgba(255, 200, 97, 0.06);
  color: #ffe2a8;
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.placeholder-note .icon {
  color: var(--c-warning);
  margin-top: 1px;
}

/* Catalogue */
.shop-layout {
  display: grid;
  grid-template-columns: clamp(280px, 24vw, 320px) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: var(--space-5);
}
.filter-group h3 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-sm);
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-black);
  display: grid;
  place-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.check input:checked {
  background: var(--c-electric);
  border-color: var(--c-electric);
  box-shadow: var(--glow-sm);
}
.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid var(--c-black);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check .count {
  margin-left: auto;
  color: var(--c-silver);
  font-size: var(--fs-xs);
}
.range {
  width: 100%;
  accent-color: var(--c-electric);
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.shop-actions {
  display: flex;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.shop-toolbar .field {
  width: auto;
  min-width: 210px;
}
.filters-toggle {
  display: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line-strong);
  font-size: var(--fs-xs);
  background: rgba(0, 175, 255, 0.08);
}
.chip .icon {
  width: 14px;
  height: 14px;
}
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--c-silver);
}
.empty-state .icon {
  width: 48px;
  height: 48px;
  color: var(--c-electric);
  margin: 0 auto var(--space-4);
}
.empty-state h2 {
  font-family: var(--f-title);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: var(--space-2);
}

/* Fiche produit */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.pdp-gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}
.pdp-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  box-shadow: inset 0 0 40px rgba(0, 175, 255, 0.12), var(--glow-md);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  justify-self: center;
  display: grid;
  place-items: center;
  background: radial-gradient(55% 50% at 50% 58%, rgba(0, 175, 255, 0.26), transparent 70%),
    linear-gradient(180deg, #0b1a35, #050b18);
}
/* Socle lumineux sous le flacon */
.pdp-media::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 9%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 175, 255, 0.55), transparent);
  filter: blur(10px);
  pointer-events: none;
}
/* Flacon a taille raisonnable (visuels source en basse definition), bords fondus */
.pdp-media img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: min(78%, 420px);
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.pdp-media .placeholder-visual {
  position: absolute;
  inset: 0;
}
.pdp-brand {
  font-family: var(--f-title);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-electric);
  font-size: var(--fs-sm);
}
.pdp h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  text-transform: uppercase;
  margin: var(--space-2) 0;
}
.pdp-sub {
  color: var(--c-silver);
}
.pdp .price strong {
  font-size: 2rem;
}
.pdp-block {
  margin-top: var(--space-5);
}
.pdp-label {
  display: block;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2);
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.size-options button {
  min-width: 80px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line-strong);
  font-weight: 500;
  transition: all 0.2s;
}
.size-options button[aria-pressed="true"] {
  border-color: var(--c-electric);
  background: rgba(0, 175, 255, 0.14);
  box-shadow: var(--glow-sm);
}
.stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}
.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-electric);
  box-shadow: var(--glow-sm);
}
.stock.is-unknown::before {
  background: var(--c-warning);
  box-shadow: none;
}
.buy-row {
  display: flex;
  gap: var(--space-3);
}
.buy-row .btn {
  flex: 1;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  height: 50px;
}
.qty button {
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--c-silver);
}
.qty button:hover {
  color: var(--c-electric);
}
.qty input {
  width: 36px;
  text-align: center;
  background: none;
  border: 0;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.qty.sm {
  height: 38px;
}
.qty.sm button {
  width: 34px;
}
.accordion {
  border-top: 1px solid var(--c-line);
  margin-top: var(--space-6);
}
.accordion details {
  border-bottom: 1px solid var(--c-line);
}
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-title);
  font-weight: 600;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary .icon {
  color: var(--c-electric);
  transition: transform 0.3s var(--ease);
}
.accordion details[open] summary .icon {
  transform: rotate(45deg);
}
.accordion .content {
  padding-bottom: var(--space-5);
  color: rgba(255, 255, 255, 0.86);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.notes-grid div {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: rgba(0, 175, 255, 0.04);
}
.notes-grid strong {
  display: block;
  font-family: var(--f-title);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-electric);
  margin-bottom: 4px;
}
.reassurance {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
}
.reassurance li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.reassurance .icon {
  color: var(--c-electric);
}

/* Panier (tiroir + page) */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr min(92vw, 420px);
  visibility: hidden;
}
.cart-drawer.is-open {
  visibility: visible;
}
.cart-drawer-backdrop {
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.35s;
}
.cart-drawer.is-open .cart-drawer-backdrop {
  opacity: 1;
}
.cart-drawer-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--c-night), var(--c-black));
  border-left: 1px solid var(--c-line-strong);
  box-shadow: var(--glow-md);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.cart-drawer.is-open .cart-drawer-panel {
  transform: none;
}
.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--c-line);
}
.cart-drawer-head h2 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) var(--space-5);
}
.cart-drawer-foot {
  padding: var(--space-5);
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: var(--space-3);
}
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-line);
}
.cart-line .thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.cart-line .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-line h3 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.cart-line p {
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
.cart-line .line-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 6px;
}
.cart-line .line-total {
  font-family: var(--f-title);
  font-weight: 600;
  text-align: right;
}
.remove-btn {
  color: var(--c-silver);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.remove-btn:hover {
  color: var(--c-danger);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 6px 0;
  font-size: var(--fs-sm);
}
.summary-row.total {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
  border-top: 1px solid var(--c-line);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
}
.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-6);
  align-items: start;
}
.cart-page .cart-line {
  grid-template-columns: 96px 1fr auto;
}
.cart-page .cart-line .thumb {
  width: 96px;
  height: 96px;
}
.sticky-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

/* Commande */
.steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  font-family: var(--f-title);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.steps li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-silver);
}
.steps li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-line-strong);
}
.steps li[aria-current="step"] {
  color: var(--c-electric);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-card:has(input:checked) {
  border-color: var(--c-electric);
  background: rgba(0, 175, 255, 0.08);
}
.radio-card input {
  accent-color: var(--c-electric);
}
.radio-card .grow {
  flex: 1;
}
.stack {
  display: grid;
  gap: var(--space-5);
}

/* Pages d'information */
.prose {
  max-width: 760px;
  margin-inline: auto;
}
.prose h2 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-xl);
  margin: var(--space-6) 0 var(--space-3);
}
.prose p,
.prose li {
  color: rgba(255, 255, 255, 0.86);
}
.prose p + p {
  margin-top: var(--space-3);
}
.brands-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.brand-tile {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line-strong);
  background: var(--grad-card);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.brand-tile:hover {
  transform: translateY(-4px);
  border-color: var(--c-electric);
  box-shadow: var(--glow-lg);
}
.brand-tile img {
  max-height: 64px;
  max-width: 80%;
  width: auto;
}
.brand-tile span {
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
/* Marque sans logo fourni : nom en capitales */
.brand-word {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
  color: var(--c-white);
  opacity: 0.75;
  transition: opacity 0.4s var(--ease), text-shadow 0.4s var(--ease);
}
.brand-tile .brand-word {
  font-size: 1.1rem;
  color: var(--c-white);
  opacity: 0.9;
}
.brand-item:hover .brand-word,
.brand-item:focus-visible .brand-word {
  opacity: 1;
  text-shadow: 0 0 12px rgba(0, 175, 255, 0.85);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-night);
  border: 1px solid var(--c-electric);
  box-shadow: var(--glow-md);
  font-size: var(--fs-sm);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast .icon {
  color: var(--c-electric);
}

.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mobile-only {
  display: none !important;
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: var(--space-5) var(--space-8);
    gap: var(--space-4);
  }
  .hero-visual {
    order: -1;
    max-width: 640px;
    margin-inline: auto;
  }
  .hero .eyebrow,
  .hero-text {
    margin-inline: auto;
  }
  .hero-title .l3 {
    margin-left: 0;
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-nav,
  .header-actions .hide-md {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .header-actions {
    margin-left: auto;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .secure-pay {
    grid-column: span 2;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  .topbar li:not(:first-child) {
    display: none;
  }

  .mobile-only {
    display: flex !important;
  }
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .collection-card {
    min-height: 120px;
  }
  .perks {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-5);
  }
  .perk:nth-child(4) {
    border-left: 0;
  }
  .product-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsletter {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .nl-form {
    grid-column: 1 / -1;
  }
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 85;
    width: min(88vw, 340px);
    padding: var(--space-5);
    overflow-y: auto;
    align-content: start;
    background: linear-gradient(180deg, var(--c-night), var(--c-black));
    border-left: 1px solid var(--c-line-strong);
    transform: translateX(100%);
    /* ferme : invisible, pour qu'iOS ne l'ajoute pas a la largeur de la page */
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .filters.is-open {
    visibility: visible;
    transition: transform 0.35s var(--ease);
    transform: none;
    box-shadow: var(--glow-md), -30px 0 60px rgba(0, 0, 0, 0.6);
  }
  .filters-toggle {
    display: inline-flex;
  }
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp-gallery {
    position: relative;
    top: 0;
  }
  .cart-page {
    grid-template-columns: 1fr;
  }
  .brands-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .logo-mark {
    width: 44px;
    height: 44px;
  }
  .logo-top {
    font-size: 13px;
  }
  .logo-main {
    font-size: 22px;
  }
  .logo-sub {
    font-size: 8px;
  }
  .header-actions .icon-btn {
    width: 40px;
    height: 40px;
  }
  .perks {
    grid-template-columns: repeat(2, 1fr);
  }
  .perk {
    border-left: 0 !important;
  }
  .perk:last-child {
    grid-column: 1 / -1;
  }
  .product-body {
    padding: var(--space-3);
  }
  .product-name {
    font-size: var(--fs-md);
  }
  .price strong {
    font-size: 1.05rem;
  }
  .add-btn {
    width: 40px;
    height: 36px;
  }
  .newsletter {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .nl-form {
    width: 100%;
  }
  .nl-input .btn {
    padding: 0 1.1em;
  }
  .nl-form .form-note {
    padding-left: 0;
  }
  .brand-item {
    flex-basis: 50%;
    min-width: 0;
    height: 72px;
  }
  .brands-strip {
    gap: var(--space-1);
    padding-inline: 6px;
  }
  .brands-strip .icon-btn {
    width: 36px;
    height: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand,
  .secure-pay {
    grid-column: 1 / -1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .buy-row {
    flex-direction: column;
  }
  .shop-actions {
    flex-basis: 100%;
  }
  .shop-actions .btn {
    flex: none;
  }
  .shop-toolbar .field {
    min-width: 0;
    width: 100%;
    flex: 1;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. Effets visuels (assets/js/fx.js) ---------- */
@property --fx-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Fonds : Dark Veil (WebGL) + particules */
.fx-veil,
.fx-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fx-veil {
  z-index: -2;
}
.fx-particles {
  z-index: -1;
}
.hero.has-veil {
  background: radial-gradient(700px 420px at 70% 55%, rgba(0, 175, 255, 0.12), transparent 70%), var(--c-black);
}
.hero.has-veil .fx-waves {
  opacity: 0.6;
}
.page-hero.has-veil {
  background: var(--c-black);
}
.page-hero.has-veil .fx-waves {
  opacity: 0.35;
}

/* Hero : halo dynamique et faisceaux derriere les flacons */
.hero-visual img {
  position: relative;
  z-index: 1;
}
.hero-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80%;
  aspect-ratio: 1.7;
  translate: -50% -46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 175, 255, 0.55), rgba(6, 59, 145, 0.35) 55%, transparent 100%);
  filter: blur(34px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.hero-beams {
  position: absolute;
  inset: -22% 8% 18% 8%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-beams i {
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(180deg, rgba(190, 240, 255, 0.05), rgba(0, 175, 255, 0.4) 65%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(12px);
  transform-origin: top center;
  animation: fx-beam 7s ease-in-out infinite alternate;
}
.hero-beams i:nth-child(1) {
  left: 14%;
  rotate: 16deg;
  animation-delay: -2.5s;
}
.hero-beams i:nth-child(2) {
  left: 40%;
}
.hero-beams i:nth-child(3) {
  left: 66%;
  rotate: -16deg;
  animation-delay: -5s;
}
@keyframes fx-beam {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 0.9;
  }
}

/* Spotlight (React Bits) sur cartes produits, collections, marques */
.product-card,
.collection-card,
.brand-tile {
  isolation: isolate;
}
.spot-light,
.spot-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.spot-light {
  z-index: 2;
  mix-blend-mode: screen;
}
.spot-edge {
  z-index: 3;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Cartes produits : profondeur 3D, reflet, mise en valeur des flacons */
.product-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.35s var(--ease), border-color 0.35s;
}
.product-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}
.product-media::after,
.collection-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.14) 47%, rgba(190, 240, 255, 0.3) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
}
.collection-card .media {
  position: relative;
}
.product-card:hover .product-media::after,
.collection-card:hover .media::after {
  transform: translateX(120%);
}
.product-media img {
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.product-card:hover .product-media img {
  filter: brightness(1.1) saturate(1.08) drop-shadow(0 0 18px rgba(0, 175, 255, 0.35));
}

/* Boutons : bordure en mouvement (Moving Border) + pulsation lumineuse */
.btn-primary,
.btn-outline {
  position: relative;
  isolation: isolate;
}
.btn-primary::before,
.btn-outline::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--fx-angle), transparent 0deg 250deg, rgba(0, 175, 255, 0.9) 300deg, #ffffff 330deg, rgba(0, 175, 255, 0.9) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-spin 4s linear infinite;
  pointer-events: none;
}
.btn-outline {
  border-color: rgba(0, 175, 255, 0.45);
}
@keyframes fx-spin {
  to {
    --fx-angle: 360deg;
  }
}
.hero .btn-outline,
.center-cta .btn-outline {
  animation: fx-pulse 3.2s ease-in-out infinite;
}
.hero .btn-outline:hover,
.center-cta .btn-outline:hover {
  animation: none;
}
@keyframes fx-pulse {
  50% {
    box-shadow: inset 0 0 22px rgba(0, 175, 255, 0.3), 0 0 26px rgba(0, 175, 255, 0.55);
  }
}

/* Apparitions pilotees par Motion */
.fx-motion .reveal.is-visible {
  opacity: 0;
}

@media (max-width: 900px) {
  .hero-beams {
    inset: -10% 8% 18% 8%;
  }
}

/* Lisibilite du titre sur le fond anime */
.hero-slides::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 11, 24, 0.55), transparent);
}
@media (max-width: 1100px) {
  .hero-slides::before {
    background: radial-gradient(closest-side, rgba(5, 11, 24, 0.82), rgba(5, 11, 24, 0.4) 70%, transparent);
  }
}

/* Texte non selectionnable sur ordinateur (les champs de formulaire restent utilisables) */
@media (hover: hover) and (pointer: fine) {
  body {
    -webkit-user-select: none;
    user-select: none;
  }
  input,
  textarea,
  [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
  }
}

/* ---------- 19. Flacons detoures (fond transparent) ---------- */
.product-media {
  background: radial-gradient(58% 52% at 50% 62%, rgba(0, 175, 255, 0.2), transparent 72%);
}
.product-media::before {
  /* socle lumineux sous le flacon */
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 8%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 175, 255, 0.55), transparent);
  filter: blur(6px);
  pointer-events: none;
}
.product-media img.bottle {
  position: relative;
  object-fit: contain;
  padding: 12% 16% 11%;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 0 14px rgba(0, 175, 255, 0.3)) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55));
}
.search-hit .product-media img.bottle,
.cart-line .product-media img.bottle {
  padding: 8%;
}
.search-hit .product-media::before,
.cart-line .product-media::before {
  display: none;
}
.pdp-media img.bottle {
  max-width: 68%;
  max-height: min(400px, 68vw);
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 0 26px rgba(0, 175, 255, 0.35)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.6));
}
.photo-credit {
  max-width: 540px;
  font-size: 0.75rem;
  color: var(--c-silver);
  text-align: center;
}
.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-credit a:hover {
  color: var(--c-electric);
}

/* ---------- 20. Fond ambiant de page (fx.js, toutes les pages) ---------- */
.fx-ambient {
  --amb-p: 0;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
/* Aurore : stries bleues floutees qui derivent lentement */
.amb-aurora {
  /* deborde de 20vh en haut et en bas : la parallaxe ne decouvre jamais de bord */
  position: absolute;
  inset: -20vh 0;
}
.amb-aurora i {
  position: absolute;
  inset: -30% -60%;
  background-image: repeating-linear-gradient(
      100deg,
      #050b18 0%,
      #050b18 7%,
      transparent 10%,
      transparent 12%,
      #050b18 16%
    ),
    repeating-linear-gradient(100deg, #063b91 10%, #00afff 15%, #0a6fe0 20%, #7fd8ff 25%, #063b91 30%);
  background-size: 200% 100%;
  filter: blur(26px);
  will-change: transform;
  animation: amb-aurora 46s linear infinite alternate;
}
.amb-aurora--a {
  mask-image: radial-gradient(ellipse 62% 38% at 90% 18%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 62% 38% at 90% 18%, #000 12%, transparent 72%);
  transform: translate3d(0, calc(var(--amb-p) * 14vh), 0);
}
.amb-aurora--a i {
  opacity: 0.42;
}
.amb-aurora--b {
  mask-image: radial-gradient(ellipse 58% 33% at 4% 84%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 58% 33% at 4% 84%, #000 10%, transparent 72%);
  transform: translate3d(0, calc(var(--amb-p) * -14vh), 0);
}
.amb-aurora--b i {
  opacity: 0.3;
  animation-duration: 62s;
  animation-direction: alternate-reverse;
}
@keyframes amb-aurora {
  from {
    transform: translate3d(-14%, 0, 0);
  }
  to {
    transform: translate3d(14%, 0, 0);
  }
}
/* Trame de points, visible au centre seulement */
.amb-dots {
  position: absolute;
  inset: -140px 0;
  background-image: radial-gradient(rgba(168, 184, 208, 0.2) 1px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 78%);
  transform: translate3d(0, calc(var(--amb-p) * -140px), 0);
}
/* Faisceaux : rails tres discrets parcourus par une lueur */
.amb-beams {
  position: absolute;
  left: 0;
  top: -60px;
  width: 100%;
  height: calc(100% + 120px);
  transform: translate3d(0, calc(var(--amb-p) * -60px), 0);
}
.amb-rail {
  stroke: rgba(0, 175, 255, 0.09);
  stroke-width: 1;
}
.amb-beam {
  stroke: #bdf0ff;
  stroke-width: 1.4;
  stroke-dasharray: 160 2600;
  stroke-dashoffset: 160;
  opacity: 0.5;
  animation: amb-beam 15s linear infinite;
  animation-delay: calc(var(--i) * -3.3s);
}
.amb-beam--glow {
  stroke: #00afff;
  stroke-width: 7;
  opacity: 0.12;
}
@keyframes amb-beam {
  to {
    stroke-dashoffset: -2600;
  }
}
/* Halo : suit le curseur (souris) ou derive lentement (tactile) */
.amb-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 780px;
  height: 780px;
  margin: -390px 0 0 -390px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 175, 255, 0.1), rgba(6, 59, 145, 0.07) 55%, transparent);
  transform: translate3d(50vw, 35vh, 0);
  will-change: transform;
}
.fx-ambient:not(.has-pointer) .amb-glow {
  animation: amb-wander 28s ease-in-out infinite alternate;
}
@keyframes amb-wander {
  from {
    transform: translate3d(20vw, 25vh, 0);
  }
  to {
    transform: translate3d(80vw, 70vh, 0);
  }
}
.fx-ambient .fx-particles {
  z-index: 2;
  opacity: 0.75;
}
/* Assombrit les bords pour garder le contenu lisible */
.amb-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse 120% 95% at 50% 45%, transparent 55%, rgba(5, 11, 24, 0.65));
}
/* Raccords avec le fond ambiant */
.site-footer {
  background: radial-gradient(800px 300px at 50% 100%, rgba(6, 59, 145, 0.3), transparent 70%), rgba(5, 11, 24, 0.78);
}
.hero.has-veil,
.page-hero.has-veil {
  mask-image: linear-gradient(180deg, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
}
@media (max-width: 900px) {
  .amb-aurora i {
    filter: blur(18px);
  }
  .amb-glow {
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
  }
  .amb-dots {
    background-size: 24px 24px;
  }
}
@media print {
  .fx-ambient {
    display: none;
  }
}
/* Halo de la section collections : centre abaisse pour eviter un bord net sous le hero */
.section-glow {
  background: radial-gradient(1200px 520px at 50% 40%, rgba(6, 59, 145, 0.24), transparent 70%);
}

/* ---------- 21. Espace client, discussion, espace vendeur (espace.js) ---------- */
[hidden] {
  display: none !important;
}
.account-dot {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-warning);
  color: var(--c-black);
  font: 700 11px/18px var(--f-body);
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 200, 97, 0.5);
}
.login-cta {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
.radio-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.account-line {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--c-silver);
}
.account-line strong {
  color: var(--c-white);
}
.form-hint {
  font-size: var(--fs-xs);
  color: var(--c-silver);
  margin-top: calc(var(--space-3) * -1);
}

/* Connexion / inscription */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 380px);
  justify-content: center;
  gap: var(--space-6);
  align-items: start;
}
.auth-card form > label:not(.check) {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  background: rgba(5, 11, 24, 0.6);
}
.auth-tabs button {
  min-height: 42px;
  border-radius: var(--radius-pill);
  font-family: var(--f-title);
  font-weight: 600;
  color: var(--c-silver);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-tabs button[aria-selected="true"] {
  color: var(--c-white);
  background: var(--grad-electric);
  box-shadow: var(--glow-sm);
}
.auth-steps h2 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}
.auth-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.auth-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--c-silver);
  font-size: var(--fs-sm);
}
.auth-steps li .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  background: rgba(0, 175, 255, 0.08);
  color: var(--c-electric);
}
.auth-steps strong {
  display: block;
  color: var(--c-white);
  font-family: var(--f-title);
  font-weight: 600;
}

/* Mon compte */
.account-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.account-card {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
}
.account-card .btn {
  margin-top: var(--space-2);
}
.avatar,
.chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--grad-electric);
  box-shadow: var(--glow-md);
  font-family: var(--f-display);
  font-weight: 800;
}
.avatar {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}
.account-card h2 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
}

/* Cartes commande */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}
.order-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  background: var(--grad-card);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.order-card:hover,
.order-card:focus-visible {
  border-color: var(--c-electric);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}
.order-card-head,
.order-card-foot,
.order-card-cta,
.order-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.order-card-head strong {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.order-card-customer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}
.order-card-customer .icon {
  color: var(--c-electric);
}
.order-card-items {
  color: var(--c-silver);
  font-size: var(--fs-sm);
}
.order-card-foot {
  font-size: var(--fs-xs);
}
.order-card-total {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.15rem;
}
.order-card-cta {
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-line);
  color: var(--c-electric);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.order-card-cta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.status-badge.is-new {
  color: var(--c-warning);
}
.status-badge.is-info {
  color: var(--c-electric);
}
.status-badge.is-ok {
  color: #4fe3b0;
}
.status-badge.is-done {
  color: var(--c-silver);
}
.status-badge.is-off {
  color: var(--c-danger);
}
.unread-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--c-warning);
  color: var(--c-black);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* Discussion */
.chat-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.order-summary {
  display: grid;
  gap: var(--space-3);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.order-summary .panel-title {
  margin: 0;
}
.status-control {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
}
.customer-box,
.order-meta > div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--c-silver);
}
.customer-box {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: rgba(0, 175, 255, 0.05);
}
.customer-box strong,
.order-meta strong {
  color: var(--c-white);
}
.customer-box .icon,
.order-meta .icon {
  color: var(--c-electric);
  margin-top: 2px;
}
.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.order-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.order-line .grow {
  flex: 1;
  min-width: 0;
}
.order-line .thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.order-line .product-media::before {
  display: none;
}
.order-line .product-media img.bottle {
  padding: 8%;
}
.order-meta {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-2);
}
.chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: min(72vh, 760px);
  padding: 0;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--c-line);
  background: rgba(5, 11, 24, 0.4);
  font-size: var(--fs-sm);
}
.chat-head strong {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1rem;
}
.chat-avatar {
  width: 42px;
  height: 42px;
}
.chat-log {
  list-style: none;
  margin: 0;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-strong) transparent;
}
.msg {
  max-width: min(78%, 560px);
  display: grid;
  gap: 4px;
}
.msg p {
  padding: 10px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  user-select: text;
}
.msg time,
.msg-who {
  font-size: 0.72rem;
  color: var(--c-silver);
}
.msg.is-other {
  align-self: flex-start;
}
.msg.is-other p {
  border: 1px solid var(--c-line);
  background: rgba(16, 29, 53, 0.9);
  border-bottom-left-radius: 4px;
}
.msg.is-mine {
  align-self: flex-end;
  justify-items: end;
}
.msg.is-mine p {
  background: var(--grad-electric);
  box-shadow: 0 6px 18px rgba(0, 110, 255, 0.25);
  border-bottom-right-radius: 4px;
}
.msg-system {
  align-self: center;
  max-width: 92%;
  justify-items: center;
  text-align: center;
}
.msg-system span {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--c-line-strong);
  background: rgba(0, 175, 255, 0.06);
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) 0;
  border-top: 1px solid var(--c-line);
}
.composer textarea.field {
  min-height: 48px;
  max-height: 160px;
  resize: none;
  border-radius: 24px;
  padding-inline: 1.2rem;
}
.composer-send {
  flex: none;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
}
.chat > .form-note {
  padding: 0 var(--space-5) var(--space-3);
}

/* Espace vendeur */
.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.stat {
  display: grid;
  gap: 4px;
}
.stat strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--c-electric);
  text-shadow: 0 0 18px rgba(0, 175, 255, 0.45);
}
.stat span {
  color: var(--c-silver);
  font-size: var(--fs-sm);
}
.seller-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.seller-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  color: var(--c-silver);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.seller-filters button[aria-pressed="true"] {
  color: var(--c-white);
  border-color: var(--c-electric);
  background: rgba(0, 175, 255, 0.12);
}
.seller-filters .count {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 175, 255, 0.15);
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .auth-wrap,
  .account-grid,
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-summary {
    position: static;
  }
}
@media (max-width: 600px) {
  .orders-grid,
  .seller-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat {
    height: 70vh;
  }
  .chat-log {
    padding: var(--space-4);
  }
  .msg {
    max-width: 88%;
  }
  .composer {
    padding-inline: var(--space-4);
  }
}

/* ---------- 22. Telephone : largeur de page et mode allege (html.fx-lite, fx.js) ---------- */
/* iOS : rien ne doit elargir la page (panneaux fermes hors ecran, effets qui debordent) */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
/* Mode allege : pas d'animation continue ni de flou recalcule a chaque image */
html.fx-lite .amb-aurora i,
html.fx-lite .amb-glow,
html.fx-lite .fx-waves,
html.fx-lite .fx-spark {
  animation: none;
}
html.fx-lite .amb-beams,
html.fx-lite .fx-spark {
  display: none;
}
html.fx-lite .site-header {
  background: rgba(5, 11, 24, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.fx-lite .brands-strip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- 23. Montant final (IA + confirmation) et espace administrateur ---------- */
.btn-sm {
  --btn-h: 38px;
  padding-inline: 1em;
  font-size: var(--fs-xs);
}
/* Cote vendeur, le recapitulatif est long : pas de position collante */
.order-summary.is-staff {
  position: static;
}
.amount-box {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-line-strong);
}
.amount-box h3 {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-lg);
}
.ai-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line-strong);
  background: radial-gradient(120% 80% at 0% 0%, rgba(0, 175, 255, 0.14), transparent 60%), rgba(5, 11, 24, 0.6);
  font-size: var(--fs-sm);
}
.ai-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.ai-head > .icon {
  color: var(--c-electric);
  filter: drop-shadow(0 0 6px rgba(0, 175, 255, 0.8));
}
.ai-head strong {
  margin-right: auto;
}
.ai-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.ai-total span {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--c-white);
  text-shadow: 0 0 18px rgba(0, 175, 255, 0.5);
}
.ai-total small {
  color: var(--c-silver);
}
.ai-lines {
  display: grid;
  gap: 4px;
  margin: 0;
}
.ai-lines div {
  display: flex;
  justify-content: space-between;
}
.ai-lines dt {
  color: var(--c-silver);
}
.ai-lines dd {
  margin: 0;
}
.ai-summary {
  color: var(--c-white);
  line-height: 1.5;
}
.ai-checks {
  margin: 0;
  padding-left: 1.2em;
  color: var(--c-warning);
  font-size: var(--fs-xs);
  display: grid;
  gap: 4px;
}
.ai-meta {
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ai-warning {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 0.72rem;
  color: var(--c-silver);
}
.ai-warning .icon {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.ai-wait::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid var(--c-electric);
  border-right-color: transparent;
  animation: spin 0.9s linear infinite;
  vertical-align: -1px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.confirm-form {
  display: grid;
  gap: var(--space-3);
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.amount-grid label,
.note-field {
  display: grid;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--c-silver);
}
.amount-grid .field {
  padding-inline: 0.7rem;
  text-align: right;
}
.confirm-form .form-hint {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.confirm-form .form-hint .icon {
  color: var(--c-electric);
  flex: none;
}

/* Espace administrateur */
.ai-status {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--c-silver);
}
.ai-status .icon {
  flex: none;
  color: var(--c-warning);
}
.ai-status.is-on .icon {
  color: var(--c-electric);
  filter: drop-shadow(0 0 6px rgba(0, 175, 255, 0.8));
}
.ai-status strong {
  color: var(--c-white);
}
.admin-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--c-line);
}
.admin-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-family: var(--f-title);
  font-weight: 600;
  color: var(--c-silver);
  transition: color 0.2s, border-color 0.2s;
}
.admin-tabs button[aria-selected="true"] {
  color: var(--c-white);
  border-bottom-color: var(--c-electric);
  box-shadow: 0 8px 14px -12px var(--c-electric);
}
.ledger-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.ledger-toolbar label {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  min-width: 240px;
}
.ledger-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.ledger-stats .stat strong {
  font-size: 1.45rem;
}
.stat.is-ok strong {
  color: #4fe3b0;
  text-shadow: 0 0 18px rgba(79, 227, 176, 0.4);
}
.stat.is-new strong {
  color: var(--c-warning);
  text-shadow: 0 0 18px rgba(255, 200, 97, 0.35);
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  background: var(--grad-card);
  margin-bottom: var(--space-4);
}
.ledger-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.ledger-table th,
.ledger-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.ledger-table th {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--c-silver);
  background: rgba(5, 11, 24, 0.5);
  white-space: nowrap;
}
.ledger-table tbody tr:hover {
  background: rgba(0, 175, 255, 0.05);
}
.ledger-table .num {
  text-align: right;
  white-space: nowrap;
}
.ledger-table .gap {
  font-size: 0.72rem;
  color: var(--c-warning);
}
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: var(--space-6);
  align-items: start;
}
.member {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  font-size: var(--fs-sm);
}
.member .grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.avatar.sm {
  width: 42px;
  height: 42px;
  font-size: 0.9rem;
  flex: none;
}
.role-select {
  width: auto;
  min-width: 170px;
}
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .amount-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .member {
    flex-wrap: wrap;
  }
  .role-select {
    width: 100%;
  }
  .ledger-toolbar label {
    min-width: 0;
    width: 100%;
  }
}
