/* ==========================================================================
   ALPISTE — Design System
   Boutique e-commerce premium mono-produit (SAC 4810)
   Charte : Noir #000 · Blanc Alpin #F4F4F4 · Vert Conifère #9EA989 · Rouge Balise #EC1C24
   Typo   : IBM Plex Sans (titres) · Inter (corps) · IBM Plex Mono (labels/prix/coords)
   Principes : LISIBILITÉ · SIMPLICITÉ · marges franches · contraste maîtrisé (WCAG AA)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette charte ALPISTE */
  --bg:           #F4F4F4;   /* Blanc Alpin — respiration */
  --paper:        #FFFFFF;
  --ink:          #000000;   /* Noir Céleste — dominante */
  --ink-2:        #0B0B0B;
  --ink-3:        #161616;
  --ink-muted:    rgba(0,0,0,0.58);
  --ink-faint:    rgba(0,0,0,0.40);
  --line:         rgba(0,0,0,0.14);
  --line-soft:    rgba(0,0,0,0.08);

  --green:        #9EA989;   /* Vert Conifère — secondaire, aplats/détails */
  --green-deep:   #7F8B6B;
  --green-faint:  rgba(158,169,137,0.16);

  --red:          #EC1C24;   /* Rouge Balise — accent, oriente (~10%) */
  --red-hover:    #C9151C;

  /* Sur fond sombre */
  --on-dark:        #F4F4F4;
  --on-dark-muted:  rgba(244,244,244,0.66);
  --on-dark-line:   rgba(244,244,244,0.18);

  /* Typographies */
  --font-head: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Rayons — volontairement minimes (look technique / carto, anti card-soup) */
  --r-xs: 1px;
  --r-sm: 2px;
  --r-md: 3px;

  /* Layout — conteneur + marges latérales FRANCHES */
  --container: 1240px;
  --gutter: clamp(20px, 6vw, 88px);
  --nav-h: 76px;

  /* Rythme vertical */
  --section-y: clamp(72px, 11vw, 152px);
  --block-gap: clamp(40px, 6vw, 72px);

  /* Mouvement — discret */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); letter-spacing: -0.018em; }
h4 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--ink); }
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

strong { font-weight: 600; }

/* Eyebrow / kicker — signature carto, IBM Plex Mono + // */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow::before {
  content: "//";
  color: var(--red);
  font-weight: 600;
}

/* Labels mono (specs, prix, coordonnées, repères) */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-feature-settings: "tnum" 1;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--on-dark-muted); }

.section--paper { background: var(--paper); }

/* En-tête de section éditorial */
.section-head { max-width: 56ch; margin-bottom: var(--block-gap); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }

/* Grilles éditoriales asymétriques */
.grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.grid--2     { grid-template-columns: 1fr 1fr; }
.grid--editorial { grid-template-columns: 1.15fr 0.85fr; }
.grid--editorial-rev { grid-template-columns: 0.85fr 1.15fr; }
.grid--3     { grid-template-columns: repeat(3, 1fr); }
.grid--4     { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Accent — Précommander (rouge balise : il oriente) */
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }

.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-3); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }

/* Sur fond sombre / photo */
.btn--white { background: var(--bg); color: var(--ink); }
.btn--white:hover { background: #fff; }
.btn--ghost-white { border-color: var(--on-dark-line); color: var(--on-dark); }
.btn--ghost-white:hover { border-color: var(--on-dark); background: rgba(244,244,244,0.08); }

.btn--block { width: 100%; }

/* Lien fléché texte */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color var(--dur) var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--red); gap: 0.85em; font-style: italic; }

/* --------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */
/* .nav / .nav.is-scrolled : voir bloc autoritaire « NAV — barre sombre » plus bas */

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.99rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { padding: 0.78em 1.4em; font-size: 0.76rem; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
  justify-self: end;
}
.nav-burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 8px; }
.nav-mobile a {
  font-family: var(--font-head);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.nav-mobile .mono-label { color: var(--on-dark-muted); margin-bottom: 18px; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark); }
.footer-band {
  border-bottom: 1px solid var(--on-dark-line);
  padding-block: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.footer-band img { width: 100%; height: auto; opacity: 0.92; }

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(56px, 8vw, 96px);
}
.footer-brand-logo { height: 34px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-brand .footer-sign {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--on-dark); font-size: 0.94rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--green); }

.footer-news p { color: var(--on-dark-muted); font-size: 0.92rem; margin-bottom: 16px; }
.footer-form { display: flex; gap: 8px; }
.footer-form input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  padding: 0.85em 1em;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.footer-form input::placeholder { color: rgba(244,244,244,0.4); }
.footer-form input:focus { border-color: var(--green); outline: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--on-dark-line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
}
.footer-bottom a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   8. CARTES / MODULES
   -------------------------------------------------------------------------- */
/* Carte techno (linéaire, pas de card-soup) */
.tech-card {
  border-top: 1px solid var(--on-dark-line);
  padding-top: 26px;
}
.tech-card .tech-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--green);
}
.tech-card .tech-icon { width: 46px; height: 46px; margin: 20px 0 18px; }
.tech-card .tech-icon img { width: 100%; height: 100%; object-fit: contain; }
.tech-card h3 { margin-bottom: 10px; }
.tech-card p { font-size: 0.96rem; }

/* Engagement (liste éditoriale) */
.engage {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.engage-icon { width: 40px; height: 40px; }
.engage-icon img { width: 100%; height: 100%; object-fit: contain; }
.engage h4 { margin-bottom: 6px; }
.engage p { color: var(--ink-muted); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   9. SCRIM (texte sur photo — contraste garanti)
   -------------------------------------------------------------------------- */
.scrim { position: absolute; inset: 0; }
.scrim--bottom { background: linear-gradient(to top, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.05) 100%); }
.scrim--full   { background: rgba(0,0,0,0.5); }
.scrim--left   { background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 55%, transparent 100%); }

/* --------------------------------------------------------------------------
   10. ACCORDÉON (specs détaillées)
   -------------------------------------------------------------------------- */
.accordion-item { border-top: 1px solid var(--line); }
.accordion-item:last-child { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.accordion-trigger .acc-sign {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.accordion-trigger .acc-sign::before,
.accordion-trigger .acc-sign::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--red);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion-trigger .acc-sign::before { width: 14px; height: 1.5px; transform: translate(-50%,-50%); }
.accordion-trigger .acc-sign::after  { width: 1.5px; height: 14px; transform: translate(-50%,-50%); }
.accordion-item.is-open .acc-sign::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p { color: var(--ink-muted); padding-bottom: 24px; font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   11. FORMULAIRES
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.95em 1.1em;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 140px; }

/* --------------------------------------------------------------------------
   12. POPUP EMAIL (early access)
   -------------------------------------------------------------------------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  will-change: transform;
}
.popup-overlay.is-open { opacity: 1; pointer-events: auto; }
.popup {
  background: var(--paper);
  width: min(560px, 92vw);
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  border-radius: 2px;
}
.popup-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--ink-muted);
}
.popup-close:hover { color: var(--red); }
.popup-eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 10px;
}
.popup h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 24px; }
.popup-options { display: flex; flex-direction: column; gap: 24px; }
.popup-option-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px;
}
.popup-option-desc { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 12px; }
.popup-divider {
  text-align: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--ink-faint); letter-spacing: 0.1em;
  position: relative;
}
.popup-divider::before, .popup-divider::after {
  content: ""; position: absolute; top: 50%; width: 42%;
  height: 1px; background: var(--line);
}
.popup-divider::before { left: 0; }
.popup-divider::after { right: 0; }
.btn--ink { background: var(--ink); color: var(--on-dark); border: none; }
.btn--ink:hover { background: #222; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.popup-decline {
  display: block; text-align: center; margin-top: 20px;
  font-size: 0.8rem; color: var(--ink-faint); text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. UTILITAIRES
   -------------------------------------------------------------------------- */
.is-fade { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: transform; }
.is-fade.in-view { opacity: 1; transform: none; }

.divider { height: 1px; background: var(--line); border: 0; }
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--ink-muted); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 2.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   STYLEGUIDE (page de prévisualisation du design system — non publiée)
   ========================================================================== */
.sg-section { padding-block: clamp(40px, 6vw, 72px); }
.sg-section + .sg-section { border-top: 1px solid var(--line); }
.sg-title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 28px; }
.sg-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sg-swatch { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.sg-swatch-color { height: 120px; }
.sg-swatch-meta { padding: 14px; }
.sg-swatch-meta strong { display: block; font-size: 0.95rem; }
.sg-swatch-meta span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }
.sg-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sg-stack > * + * { margin-top: 18px; }
.sg-grid-demo > div { background: var(--green-faint); border: 1px dashed var(--green-deep); padding: 24px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-deep); }

/* ==========================================================================
   PAGE COMPONENTS
   ========================================================================== */

/* --- HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(40px, 7vh, 80px);
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}
.hero-content { position: relative; z-index: 2; width: 100%; color: var(--on-dark); }
.hero-content .eyebrow { color: rgba(244,244,244,0.8); margin-bottom: 1.4rem; }
.hero-content .eyebrow::before { color: var(--red); }
.hero h1 { color: var(--on-dark); max-width: 16ch; }
.hero-lead {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(244,244,244,0.82);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: clamp(40px, 8vh, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-line);
}
.hero-coord {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,244,244,0.66);
}
.hero-coord .balise { color: var(--red); }

/* --- TICKER / BANDE SIGNATURE ---------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--on-dark);
  border-block: 1px solid var(--on-dark-line);
  overflow: hidden;
  padding-block: 16px;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-inline: 28px;
}
.ticker-track .dot { color: var(--red); padding-inline: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- FIGURE ÉDITORIALE (image + tag mono) ---------------------------------- */
.figure { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.figure img { width: 100%; display: block; }
.figure--product { background: var(--bg); }

/* --- SECTION MOTIF (fond topo subtil) -------------------------------------- */
.section--motif { position: relative; overflow: hidden; }
.section--motif .motif-bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.10;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}
.section--motif > .container { position: relative; z-index: 1; }

/* --- BLEED (visuel pleine largeur + citation) ------------------------------ */
.bleed {
  position: relative;
  min-height: clamp(440px, 70vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.bleed-media { position: absolute; inset: 0; z-index: 0; }
.bleed-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.bleed-content { position: relative; z-index: 2; color: var(--on-dark); max-width: 600px; }
.bleed-content .eyebrow { color: rgba(244,244,244,0.8); margin-bottom: 1.2rem; }
.bleed blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.bleed blockquote + .btn { margin-top: 2.2rem; }

/* --- PRÉCOMMANDE (bloc CTA produit) ---------------------------------------- */
.preorder { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.preorder .eyebrow { color: rgba(244,244,244,0.78); }
.preorder-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.preorder-figure { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; background: #0d0d0d; border-radius: var(--r-sm); padding: clamp(24px, 4vw, 48px); }
.preorder-figure img { max-height: 460px; width: auto; filter: grayscale(1) contrast(1.05); }
.preorder h2 { color: var(--on-dark); }
.preorder p { color: var(--on-dark-muted); margin-top: 1.2rem; max-width: 42ch; }
.preorder-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  margin: 2rem 0 0.4rem;
  font-family: var(--font-mono);
}
.preorder-price .amount { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.preorder-price .note { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,244,244,0.6); }
.preorder-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.preorder-reassure { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--on-dark-line); }
.preorder-reassure li { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244,244,244,0.7); display: flex; gap: 9px; align-items: center; }
.preorder-reassure li::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 1px; }

/* --- INNER HERO (pages secondaires) ---------------------------------------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 110px)); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head .eyebrow { margin-bottom: 1.2rem; }
.page-head p { margin-top: 1.2rem; max-width: 56ch; }
.crumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.6rem; }
.crumb a:hover { color: var(--red); }
.crumb .sep { color: var(--ink-faint); padding-inline: 8px; }

/* --- FORM STATES ----------------------------------------------------------- */
.form-msg { display: none; font-family: var(--font-mono); font-size: 0.82rem; padding: 14px 16px; border-radius: var(--r-sm); margin-top: 8px; }
.form-msg.is-show { display: block; }
.form-msg--ok { background: var(--green-faint); color: var(--green-deep); }
.form-msg--err { background: rgba(236,28,36,0.1); color: var(--red); }

/* ==========================================================================
   FICHE DE COURSE — couche concept (carte topo + fiche technique)
   ========================================================================== */

/* --- BALISE (repère rouge/blanc, élément graphique récurrent) -------------- */
.balise { display: inline-flex; flex: none; vertical-align: middle; }
.balise i { display: block; width: 22px; height: 11px; }
.balise i:first-child { background: var(--red); }
.balise i:last-child { border: 1px solid currentColor; border-left: 0; }
.balise--sm i { width: 16px; height: 8px; }

/* --- TAG MONO / COORDONNÉES ------------------------------------------------ */
.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tag .slash { color: var(--red); }

/* --- KICKER DE SECTION (// 0X · TITRE) + NUMÉRO GÉANT EN CONTOUR ----------- */
.sect-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sect-kicker .num { color: var(--red); }
.sect-kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .4; }

.ghost-num {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 0.74;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.16);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.section--dark .ghost-num { -webkit-text-stroke-color: rgba(244,244,244,0.16); }

/* --- CHAMP TOPOGRAPHIQUE (courbes de niveau) ------------------------------ */
.topo-field { position: relative; overflow: hidden; }
.topo-field > .topo-bg {
  position: absolute; inset: -2%;
  background: url('assets/svg/carte-topo.svg') center / cover no-repeat;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}
.section--dark .topo-field > .topo-bg,
.topo-field--dark > .topo-bg { opacity: 0.14; filter: invert(1); }
.topo-field > .container,
.topo-field > * { position: relative; z-index: 1; }

/* --- POINTS COTÉS (altitudes dispersées, façon carte IGN) ----------------- */
.spot {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244,244,244,0.30);
  white-space: nowrap;
  z-index: 0;
}
.spot::before { content: "▲ "; color: var(--green); }
.spot--dot::before { content: "· "; color: var(--green); }
.section--paper .spot { color: rgba(0,0,0,0.28); }

/* --- CARTOUCHE (cartouche blanc titre posé sur photo) --------------------- */
.cartouche {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  padding: clamp(16px, 2vw, 26px) clamp(20px, 2.6vw, 34px);
}
.cartouche .mono-label { color: var(--ink-muted); display: block; margin-bottom: 10px; }
.cartouche h2, .cartouche h3 { color: var(--ink); }

/* --- LIGNE DE FICHE (spec row avec leader pointillé) ---------------------- */
.specline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.specline:last-child { border-bottom: 1px solid var(--line); }
.specline .k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.specline .lead { border-bottom: 1px dotted var(--line); transform: translateY(-4px); font-size: 0; }
.specline .v { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink); }
.section--dark .specline { border-color: var(--on-dark-line); }
.section--dark .specline .v { color: var(--on-dark); }

/* --- RAIL / NAV (conservé : .nav-inner utilisé par des pages prototypes) -- */
.nav-inner { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }

/* --- ALTIMÈTRE (repère d'altitude qui monte au scroll) -------------------- */
.altimeter {
  position: fixed;
  right: clamp(14px, 2.4vw, 34px);
  top: 50%; transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  mix-blend-mode: difference;
  color: #fff;
}
.alt-target, .alt-now {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; white-space: nowrap;
}
.alt-target { color: rgba(255,255,255,0.7); }
.alt-track { position: relative; width: 1px; height: clamp(120px, 22vh, 200px); background: rgba(255,255,255,0.35); }
.alt-fill { position: absolute; left: 0; bottom: 0; width: 1px; background: var(--red); height: 0; }
.alt-cursor {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  width: 9px; height: 9px; background: var(--red);
}
@media (max-width: 980px) { .altimeter { display: none; } }

/* --- HERO (Fiche de course) ----------------------------------------------- */
.hero--fdc { align-items: stretch; }
.hero--fdc .hero-content {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(36px, 6vh, 72px);
}
.hero-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: auto;
  padding-top: clamp(20px, 5vh, 48px);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(244,244,244,0.82);
}
.hero-kicker .slash { color: var(--red); }
.hero--fdc h1 {
  color: var(--on-dark);
  font-size: clamp(2.7rem, 8.2vw, 6.4rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero--fdc .hero-lead { margin-top: 1.6rem; max-width: 44ch; color: rgba(244,244,244,0.82); font-size: clamp(1.02rem, 1.4vw, 1.24rem); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 2.2rem; }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(244,244,244,0.7);
}
.hero-scroll .arrow { animation: scrollArrow 1.8s var(--ease) infinite; }
@keyframes scrollArrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  margin-top: clamp(34px, 6vh, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: rgba(244,244,244,0.72);
}
.hero-foot .balise { color: #fff; }
.hero-foot .sep { color: var(--on-dark-line); }
.hero-foot .hl { color: #fff; }

.hero-ghost { right: clamp(6px, 2vw, 40px); bottom: clamp(-30px, -3vw, -10px); font-size: clamp(150px, 30vw, 460px); -webkit-text-stroke-color: rgba(244,244,244,0.14); }

/* Stagger reveal au chargement */
.stagger { opacity: 0; animation: fdcRise 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fdcRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .stagger { animation: none; opacity: 1; }
  .hero-scroll .arrow, .alt-fill { animation: none; }
}

/* --- Ancrage des numéros géants ------------------------------------------- */
.section, .preorder, .bleed { position: relative; }
.section > .container, .preorder > .container { position: relative; z-index: 1; }
.figure-cartouche { position: absolute; left: 18px; bottom: 18px; }
.figure-cartouche .mono-label { margin-bottom: 6px; }

/* --- SYSTÈME D'ICÔNES (masquées → prennent currentColor, s'adaptent au fond) */
.ic {
  display: inline-block;
  width: 21px; height: 21px;
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.ic--search  { --ic: url('assets/icons/jumelle.svg'); }   /* jumelles dans le menu */
.ic--loupe   { --ic: url('assets/icons/search.svg'); }    /* loupe dans la barre de recherche */
.ic--heart   { --ic: url('assets/icons/heart.svg'); }
.ic--account { --ic: url('assets/icons/account.svg'); width: 23px; height: 23px; }
.ic--bag     { --ic: url('assets/icons/bag.svg'); }
.ic--ruler   { --ic: url('assets/icons/ruler.svg'); }
/* Balise + croix : bichromie rouge/blanc conservée (vraies images, jamais masquées) */
.ic-img { width: 22px; height: auto; object-fit: contain; }

/* --- NAV — barre sombre permanente (verre fumé, plus sombre au scroll) ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(0,0,0,0.50);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  color: var(--on-dark);
  transition: background 0.3s ease;
}
.nav.is-scrolled { background: rgba(0,0,0,0.88); }
.nav-bar { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); width: 100%; }
.nav-logo { flex: none; display: flex; }
.nav-logo img { height: 26px; width: auto; }
.nav .nav-logo img { filter: none; } /* SVG LOGO-COMPLET-Blanc déjà blanc — aucun filtre */

.nav .nav-links { flex: 1; justify-content: center; }
.nav .nav-links a { color: var(--on-dark); opacity: 0.8; }
.nav .nav-links a:hover,
.nav .nav-links a[aria-current="page"] { opacity: 1; }
.nav .nav-links a::after { background: var(--red); }

.nav-tools { flex: none; display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px); }
.nav-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; color: var(--on-dark); opacity: 0.86;
  border-radius: var(--r-sm);
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-ic:hover { opacity: 1; color: var(--red); }
.nav-sep { width: 1px; height: 22px; background: currentColor; opacity: 0.2; margin-inline: 4px; }
.nav-cta { padding: 0.78em 1.4em; }
.btn-ico { width: 15px; height: 15px; flex: none; object-fit: contain; filter: brightness(0) invert(1); }
.nav-burger span { background: var(--on-dark); }

/* ==========================================================================
   FICHE PRODUIT — Le Sac 4810
   (layout 3 colonnes : voir bloc « PAGE PRODUIT » en fin de fichier)
   ========================================================================== */

/* Galerie — légende & index (visibles en mobile) */
.gallery-cap { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.gallery-index { position: absolute; right: 16px; top: 16px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-faint); }

/* Colonne d'achat */
.buy .sect-kicker { margin-bottom: 16px; }
.buy h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.buy-desc { margin-top: 1.1rem; color: var(--ink-muted); max-width: 42ch; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 1.8rem 0 0.3rem; font-family: var(--font-mono); }
.buy-price .amount { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 500; white-space: nowrap; }
.buy-price .note { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.buy .btn--block { margin-top: 1.6rem; }
.buy-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.buy-status .dotpulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-deep); animation: dotPulse 1.8s var(--ease) infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.buy-specs { margin-top: 1.8rem; }

/* Icône règle dans une specline */
.specline .k { display: inline-flex; align-items: center; gap: 9px; }
.specline .k .ic { width: 16px; height: 16px; color: var(--ink-muted); }

/* ==========================================================================
   PAGES SECONDAIRES (contact / légal)
   ========================================================================== */
.contact-aside { border-top: 2px solid var(--ink); padding-top: 8px; }
.buy-coords { display: flex; align-items: center; gap: 12px; margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-muted); }

.prose { max-width: 720px; }
.prose h3 { margin-top: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.prose h3:first-of-type { margin-top: 0; }
.prose p { margin-top: 1rem; color: var(--ink-muted); }
.prose p strong { color: var(--ink); }
.prose ul.dash { margin-top: 1rem; }
.prose ul.dash li { color: var(--ink-muted); padding-left: 20px; position: relative; margin-top: 9px; }
.prose ul.dash li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.legal-note {
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5; color: var(--green-deep);
  background: var(--green-faint); border-left: 2px solid var(--green-deep);
  padding: 12px 16px; margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--editorial, .grid--editorial-rev, .grid--3, .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main { gap: 40px 32px; }
  .footer-news { grid-column: 1 / -1; }
  .preorder-grid { grid-template-columns: 1fr; }
  .preorder-figure { order: -1; }
  .preorder-figure img { max-height: 360px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  body { font-size: 16px; }

  .nav-links, .nav-tools { display: none; }
  .nav-burger { display: flex; margin-left: auto; }

  .grid--2, .grid--editorial, .grid--editorial-rev,
  .grid--3, .grid--4, .footer-main { grid-template-columns: 1fr; }
  .footer-main { gap: 36px; }

  .sg-swatches { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .hero-meta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .preorder-reassure { gap: 12px 22px; }
}

/* ─── PRE-FOOTER HERO ANIMÉ ─────────────────────────────── */
.footer-hero {
  position: relative;
  height: clamp(180px, 22vw, 280px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-hero-media {
  position: absolute;
  inset: 03;
}
.footer-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(100%);
}
.footer-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%);
}
.footer-hero-text {
  position: relative;
  text-align: center;
  z-index: 1;
}
.fh-line {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.fh-line--1 {
  animation: fhPulse 3.5s ease-in-out infinite alternate;
}
.fh-line--2 {
  animation: fhPulse 3.5s ease-in-out infinite alternate-reverse;
  opacity: 0.5;
}
@keyframes fhPulse {
  0%   { opacity: 1;    transform: translateY(0); }
  100% { opacity: 0.4;  transform: translateY(-8px); }
}

/* ─── FOOTER V2 ──────────────────────────────────────────── */
.footer--v2 {
  background: var(--ink);
  color: rgba(244,244,244,0.7);
  padding: clamp(48px,6vw,80px) 0 0;
}
.footer-v2-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px,5vw,80px);
  padding-bottom: clamp(40px,5vw,64px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-v2-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.footer-coords {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(244,244,244,0.35);
  letter-spacing: 0.04em;
}
.footer-v2-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-v2-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-v2-col ul { list-style: none; }
.footer-v2-col ul li { margin-bottom: 10px; }
.footer-v2-col ul li a {
  color: rgba(244,244,244,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-v2-col ul li a:hover { color: #fff; }
.footer-v2-col--news p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: rgba(244,244,244,0.5);
}
.footer-v2-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(244,244,244,0.3);
  font-family: var(--font-mono);
}
@media (max-width: 960px) {
  .footer-v2-inner { grid-template-columns: 1fr; }
  .footer-v2-cols  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-v2-cols  { grid-template-columns: 1fr; }
}

/* ─── PAGE PRODUIT ─────────────────────────────────────────── */
.product-section {
  padding-top: var(--nav-h);
  height: 100vh;
}
.product-grid {
  display: grid;
  grid-template-columns: 80px 1fr 360px;
  height: 100%;
}

/* Rail de vignettes */
.gallery-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  background: var(--bg);
  overflow-y: auto;
}
.gallery-rail .gallery-thumb {
  width: 56px;
  height: 68px;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #f7f7f7;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery-rail .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-rail .gallery-thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}
.gallery-rail .gallery-thumb:hover { opacity: 0.75; }

/* Image principale */
.product-grid > .gallery-main {
  position: relative;
  height: 100%;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-grid > .gallery-main picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-grid > .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
}
.product-grid > .gallery-main .gallery-index,
.product-grid > .gallery-main .gallery-cap {
  display: none;
}

/* Colonne achat */
.product-grid > .buy {
  height: 100%;
  overflow-y: auto;
  padding: 32px 28px;
  background: var(--paper);
  position: static;
}

@media (max-width: 900px) {
  .product-section { height: auto; }
  .product-grid {
    display: block;
  }
  .gallery-rail {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    padding: 10px 16px;
  }
  .gallery-rail .gallery-thumb { width: 50px; height: 60px; opacity: 0.5; }
  .product-grid > .gallery-main {
    height: 70vw;
    max-height: 480px;
  }
  .product-grid > .gallery-main img { padding: 16px; }
  .product-grid > .gallery-main .gallery-index,
  .product-grid > .gallery-main .gallery-cap { display: block; }
  .product-grid > .buy { height: auto; }
}

/* ─── LOADER DE PAGE ──────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-logo {
  width: clamp(120px, 20vw, 200px);
  animation: loaderPulse 1.2s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  from { opacity: 0.4; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1);    }
}

/* ===== Recherche — modale verre dépoli ===================================== */
.search-modal{position:fixed;inset:0;z-index:300;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);opacity:0;visibility:hidden;transition:opacity .22s var(--ease),visibility .22s var(--ease)}
.search-modal.is-open{opacity:1;visibility:visible}
.search-bar{display:flex;align-items:center;width:min(600px,92vw);height:68px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border:1px solid rgba(255,255,255,.6);border-radius:999px;padding:0 8px 0 30px;box-shadow:0 14px 50px rgba(0,0,0,.3);transform:translateY(-8px) scale(.99);transition:transform .22s var(--ease)}
.search-modal.is-open .search-bar{transform:none}
.search-input,.search-input:focus,.search-input:hover{flex:1;border:0;outline:0;background:transparent;-webkit-appearance:none;appearance:none;height:auto;min-height:0;box-shadow:none;font-family:var(--font-body);font-size:1.3rem;color:#fff;padding:0 16px 0 0;margin:0}
.search-input::placeholder{color:rgba(255,255,255,.9)}
.search-input:-webkit-autofill{-webkit-text-fill-color:#fff;transition:background-color 9999s}
.search-go{box-sizing:border-box;flex:0 0 auto;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.7);box-shadow:inset 2px 2px 3px rgba(255,255,255,.6),inset -2px -3px 5px rgba(0,0,0,.14),0 2px 8px rgba(0,0,0,.18);color:#fff;cursor:pointer;transition:color .2s var(--ease),background .2s var(--ease)}
.search-go:hover{color:var(--red);background:rgba(255,255,255,.24)}
.search-go .ic{width:22px;height:22px}
.search-results{width:min(600px,92vw);margin-top:16px;list-style:none;padding:0;max-height:min(40vh,260px);overflow-y:auto;display:none}
.search-results.show{display:block}
.search-item{display:flex;align-items:baseline;gap:12px;padding:11px 16px;cursor:pointer;border-radius:var(--r-md);text-decoration:none}
.search-item.is-active{background:rgba(255,255,255,.13)}
.search-item .si-t{flex:1;font-family:var(--font-head);font-weight:500;font-size:.95rem;color:#fff}
.search-item .si-tag{flex:none;font-family:var(--font-mono);font-size:.68rem;letter-spacing:.09em;color:rgba(255,255,255,.62)}
.search-empty{padding:16px;text-align:center;color:rgba(255,255,255,.72);font-size:.85rem}
@media (max-width:560px){.search-input{font-size:1.1rem}}
