/* ============================================================================
   Albatroz Golfe — système de design partagé (« A pro shop do fornecedor »)
   ----------------------------------------------------------------------------
   Chargé par index.html, produto.html, legal.html, privacidade.html.
   Règle : aucune couleur en dur dans une règle. Tout passe par les tokens.

   Thème : les composants lisent des variables SÉMANTIQUES (--fg, --bg, --card,
   --line…). La classe .on-dark redéfinit ces variables — donc un même composant
   s'adapte automatiquement à une section claire ou sombre, sans variante.
   ========================================================================== */

:root {
  /* --- palette brute --- */
  --ink:        #0A140F;   /* graphite verdi : sections sombres + texte sur clair */
  --ink-2:      #12211A;   /* élévation sur sombre */
  --ink-3:      #1B3025;
  --paper:      #F3F7F3;   /* blanc froid verdi : fond des sections claires */
  --paper-2:    #FFFFFF;   /* cartes */
  --paper-3:    #E7EFE8;   /* panneaux / puits */
  --steel:      #5B6A60;   /* texte secondaire sur clair */
  --steel-dim:  #94A69A;   /* texte secondaire sur sombre */

  --accent:       #0C8F49;
  --accent-dark:  #05623A;
  --accent-light: #4FD08A;
  --accent2:      #9BE04F;
  /* composantes de --accent, pour les rgba() des pages (aucune couleur en dur) */
  --accent-rgb:   12, 143, 73;

  /* Hero : profondeur sobre, dérivée du graphite et du vert de marque. */
  --hero-gradient-start:  #0A140F;
  --hero-gradient-middle: #0C2318;
  --hero-gradient-end:    #0F4A2C;

  --gold: #F2C14E;   /* étoiles des avis */
  --go:   #3BC97F;   /* disponibilité / statut en ligne */

  /* --- variables sémantiques (thème clair par défaut) --- */
  --bg:          var(--paper);
  --fg:          var(--ink);
  --fg-dim:      var(--steel);
  --card:        var(--paper-2);
  --card-sunken: var(--paper-3);
  --line:        rgba(10, 20, 15, .11);
  --line-strong: rgba(10, 20, 15, .22);
  --shadow:      0 1px 2px rgba(10, 20, 15, .05), 0 12px 32px -18px rgba(10, 20, 15, .28);
  --shadow-lift: 0 2px 4px rgba(10, 20, 15, .06), 0 28px 56px -24px rgba(10, 20, 15, .38);

  /* --- Liquid Glass ---
     Matière optique partagée : les composants ne connaissent que ces tokens,
     que .on-dark rebascule comme les autres variables sémantiques. */
  --glass-surface:        rgba(255, 255, 255, .62);
  --glass-surface-strong: rgba(255, 255, 255, .82);
  --glass-surface-soft:   rgba(255, 255, 255, .34);
  --glass-border:         rgba(255, 255, 255, .78);
  --glass-border-dim:     rgba(10, 20, 15, .10);
  --glass-highlight:      rgba(255, 255, 255, .92);
  --glass-highlight-soft: rgba(255, 255, 255, .42);
  --glass-shadow:         0 1px 0 rgba(255, 255, 255, .88) inset,
                          0 -1px 0 rgba(10, 20, 15, .06) inset,
                          0 22px 46px -30px rgba(10, 20, 15, .42);
  --glass-shadow-lift:    0 1px 0 rgba(255, 255, 255, .94) inset,
                          0 -1px 0 rgba(10, 20, 15, .08) inset,
                          0 30px 64px -28px rgba(10, 20, 15, .48);
  --glass-green:          rgba(12, 143, 73, .22);
  --glass-green-soft:     rgba(12, 143, 73, .08);
  --glass-lime-soft:      rgba(155, 224, 79, .07);
  --glass-fixed-dark:     rgba(10, 20, 15, .82);
  --scrim:                rgba(10, 20, 15, .42);
  --glass-metal:          linear-gradient(112deg, #929C95 0%, #F7FAF7 24%, #B9C6BC 48%, #FFFFFF 64%, #8D9A90 100%);

  /* --- rythme --- */
  --shell:   1240px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius:  18px;
  --radius-s: 11px;

  /* --- typographie ---
     Une seule famille neo-grotesque, sobre et ample ; la hiérarchie vient du
     poids et de l'espacement, pas d'un changement de famille. */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui:   'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- courbes --- */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* Inversion du thème : posée sur une section sombre, elle rebascule tous les
   composants qu'elle contient. */
.on-dark {
  --bg:          var(--ink);
  --fg:          #F1F6F2;
  --fg-dim:      var(--steel-dim);
  --card:        rgba(255, 255, 255, .045);
  --card-sunken: rgba(255, 255, 255, .03);
  --line:        rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --shadow:      0 20px 50px -30px rgba(0, 0, 0, .9);
  --shadow-lift: 0 30px 70px -30px rgba(0, 0, 0, 1);
  --glass-surface:        rgba(21, 40, 30, .50);
  --glass-surface-strong: rgba(19, 36, 27, .72);
  --glass-surface-soft:   rgba(255, 255, 255, .055);
  --glass-border:         rgba(255, 255, 255, .16);
  --glass-border-dim:     rgba(255, 255, 255, .08);
  --glass-highlight:      rgba(255, 255, 255, .28);
  --glass-highlight-soft: rgba(255, 255, 255, .10);
  --glass-shadow:         0 1px 0 rgba(255, 255, 255, .16) inset,
                          0 -1px 0 rgba(0, 0, 0, .30) inset,
                          0 24px 54px -30px rgba(0, 0, 0, .90);
  --glass-shadow-lift:    0 1px 0 rgba(255, 255, 255, .22) inset,
                          0 -1px 0 rgba(0, 0, 0, .38) inset,
                          0 34px 72px -28px rgba(0, 0, 0, 1);
  color: var(--fg);
  background: var(--bg);
}

/* ============================ base ======================================== */

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] { scroll-margin-top: 96px; }

/* ============================ typographie ================================= */

/* Titres : casse naturelle, graisse franche mais pas massive, approche serrée
   et interligne compact. */
.display {
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.t-hero { font-size: clamp(2.25rem, 5.8vw, 4.55rem); }
.t-h2   { font-size: clamp(1.85rem, 3.8vw, 3rem); }
.t-h3   { font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.05; }

.t-h4 {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.lede {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.62;
  color: var(--fg-dim);
  max-width: 46ch;
}

.mono {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Bandeirola — la hampe et le fanion plantés dans le green.
   C'est le motif structurel du site : il ouvre chaque section.
   Dessin en masque, pas en background-image : la couleur reste un token. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow::before {
  content: '';
  width: 11px;
  height: 16px;
  flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 16'%3E%3Cpath d='M0 1.2A1.2 1.2 0 0 1 1.2 0a1.2 1.2 0 0 1 1.2 1.2V16H0z'/%3E%3Cpath d='M3.1 1.1 10.4 4 3.1 6.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 16'%3E%3Cpath d='M0 1.2A1.2 1.2 0 0 1 1.2 0a1.2 1.2 0 0 1 1.2 1.2V16H0z'/%3E%3Cpath d='M3.1 1.1 10.4 4 3.1 6.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.accent { color: var(--accent); }
.on-dark .accent { color: var(--accent-light); }

/* ============================ structure =================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1440px; }

.section {
  position: relative;
  padding-block: var(--section);
}
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--dark  { background: var(--ink); }
.section--light {
  background:
    radial-gradient(circle at 8% 18%, var(--glass-green-soft), transparent 30rem),
    radial-gradient(circle at 92% 72%, var(--glass-lime-soft), transparent 28rem),
    var(--paper);
}
.section--panel {
  background:
    radial-gradient(circle at 78% 22%, var(--glass-green-soft), transparent 32rem),
    var(--paper-3);
}

/* Séparateur entre deux sections claires */
.section + .section--light { border-top: 1px solid var(--line); }

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
/* en rem, pas en ch : l'unité ch se calcule sur la fonte du conteneur, pas sur
   celle du titre qu'il contient */
.head__text { max-width: 42rem; }
.head .eyebrow { margin-bottom: 1rem; }
.head .lede { margin-top: 1.15rem; }

/* ============================ boutons ===================================== */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid var(--glass-highlight-soft);
  box-shadow: 0 1px 0 var(--glass-highlight-soft) inset;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background:
    radial-gradient(circle at 24% -55%, var(--glass-highlight), transparent 42%),
    linear-gradient(112deg, var(--accent-dark), var(--accent) 42%, var(--accent-light) 62%, var(--accent) 78%, var(--accent-dark));
  background-size: 100% 100%, 180% 100%;
  background-position: center, 0 0;
  border-color: var(--glass-highlight-soft);
  box-shadow: 0 1px 0 var(--glass-highlight) inset, 0 -1px 0 var(--accent-dark) inset, 0 16px 34px -14px var(--accent);
}
.btn--primary:hover {
  background-position: center, 100% 0;
  box-shadow: 0 1px 0 var(--glass-highlight) inset, 0 -1px 0 var(--accent-dark) inset, 0 20px 42px -14px var(--accent);
}

/* Reflet balayant : une seule fois au survol, pas en boucle. */
.btn--primary::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
}
@media (hover: hover) {
  .btn--primary:hover::after { animation: btn-sweep .8s var(--ease-out); }
}
@keyframes btn-sweep { from { left: -80%; } to { left: 135%; } }

.btn--ghost {
  background: var(--glass-surface-soft);
  color: var(--fg);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
}
.btn--ghost:hover { background: var(--card); box-shadow: 0 0 0 1px var(--accent) inset; color: var(--accent); }
.on-dark .btn--ghost:hover { color: var(--accent-light); }

/* Un bouton pleine largeur ne doit jamais imposer sa largeur de min-content à son
   conteneur : le `white-space: nowrap` de .btn ferait déborder la fiche produit sur
   téléphone (libellés de packs très longs). Voir learning.md §H4. */
.btn--block { width: 100%; white-space: normal; text-wrap: balance; }
.btn--lg { padding: 1.15rem 2rem; font-size: .78rem; }

/* Sur téléphone, le libellé d'un CTA à 12 px se lit mal : on remonte l'échelle des
   boutons, qui sont les éléments les plus sollicités du parcours d'achat. */
@media (max-width: 899px) {
  .btn    { font-size: .82rem; padding: 1rem 1.6rem; }
  .btn--lg { font-size: .86rem; padding: 1.15rem 1.8rem; }
}

/* ============================ navigation ================================== */

/* Barre claire flottante, y compris au-dessus du hero sombre : le wordmark est
   écrit en HTML pour suivre le thème — seule la marque (balle) est un dessin. */
.nav {
  position: fixed;
  z-index: 60;
  /* viewport-fit=cover : sans les env(), la barre passe sous l'encoche en paysage
     et sous la barre d'état en mode autonome (PWA / plein écran). */
  top: max(.55rem, env(safe-area-inset-top));
  left: max(.55rem, env(safe-area-inset-left));
  right: max(.55rem, env(safe-area-inset-right));
  transition: transform .35s var(--ease), box-shadow .3s ease;
  will-change: transform;
}
.nav.is-hidden { transform: translateY(calc(-100% - .8rem)); }

.nav__bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 58px;
  padding-inline: .7rem .7rem;
  border-radius: 999px;
  background:
    linear-gradient(115deg, var(--glass-highlight-soft), transparent 26%, transparent 68%, var(--glass-green-soft)),
    var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(30px) saturate(1.75) contrast(1.03);
  -webkit-backdrop-filter: blur(30px) saturate(1.75) contrast(1.03);
  box-shadow: var(--glass-shadow-lift);
  color: var(--ink);
  max-width: var(--shell);
  margin-inline: auto;
}
.nav__bar::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24% 95% at 18% -48%, var(--glass-highlight), transparent 72%),
    radial-gradient(ellipse 26% 120% at 88% 150%, var(--glass-green), transparent 72%);
}
.nav__bar > * { position: relative; z-index: 1; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-left: .35rem;
  flex: none;
}
.nav__brand img, .nav__brand svg { height: 30px; width: 30px; }
.nav__wordmark {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.nav__wordmark b { color: var(--accent); font-weight: 700; }

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  padding-block: .4rem;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  top: -.9rem;
  left: 50%;
  translate: -50% 0;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--accent);
  transition: height .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { height: 11px; }

.nav__end { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
/* sous lg, le libellé long passait sous le bord droit de la barre */
.nav__cta { padding: .8rem 1.1rem; }
.nav__cta-lg { display: none; }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface-soft);
  box-shadow: 0 1px 0 var(--glass-highlight-soft) inset, 0 8px 18px -14px var(--ink);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
  flex: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--glass-surface-strong); }

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

/* Sous 360 px (iPhone SE, petits Android), la barre doit loger la marque, l'icône
   panier à 44 px et le CTA : on resserre les écarts et le libellé du CTA plutôt que
   de sacrifier l'un des trois. */
@media (max-width: 359px) {
  .nav__bar { gap: .45rem; padding-inline: .45rem; }
  .nav__brand { padding-left: 0; gap: .45rem; }
  .nav__wordmark { font-size: .95rem; }
  .nav__end { gap: .4rem; }
  .nav__cta { padding: .8rem .95rem; font-size: .76rem; }
}

@media (min-width: 1024px) {
  .nav { top: 1rem; left: 1rem; right: 1rem; }
  .nav__bar { height: 64px; padding-inline: 1.1rem .8rem; }
  .nav__links { display: flex; }
  .nav__brand img, .nav__brand svg { height: 34px; width: 34px; }
  .nav__wordmark { font-size: 1.12rem; }
  .nav__cta { padding: .95rem 1.6rem; }
  .nav__cta-lg { display: inline; }
  .nav__cta-sm { display: none; }
}

/* Jauge de progression de lecture, collée sous la barre */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent2));
  z-index: 70;
}

/* ============================ panneau panier ============================== */

.cart-backdrop { display: none; }

.cart-panel {
  position: fixed;
  z-index: 65;
  width: min(92vw, 350px);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--glass-highlight-soft), transparent 34%),
    var(--glass-surface-strong);
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lift);
  color: var(--ink);
}
.cart-panel[hidden] { display: none; }
.cart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem .9rem 1.15rem;
  border-bottom: 1px solid rgba(10, 20, 15, .1);
}
.cart-panel__head .label { color: var(--ink); }
.cart-panel__body { max-height: 44vh; overflow-y: auto; }
.cart-panel__foot { padding: 1rem; border-top: 1px solid rgba(10, 20, 15, .1); }
.cart-panel__summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .9rem;
}
.cart-panel__subtotal-label { font-size: .82rem; color: var(--steel); }
.cart-panel__subtotal-value { font-weight: 600; }
.cart-empty { padding: 2.2rem 1rem; text-align: center; color: var(--steel); font-size: .88rem; }

.cart-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(10, 20, 15, .07);
}
.cart-row__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: none;
  background: var(--paper-3) center / cover no-repeat;
  border: 1px solid rgba(10, 20, 15, .08);
  display: grid;
  place-items: center;
}
.cart-row__thumb svg { width: 30px; height: 30px; }
.cart-row__body { flex: 1; min-width: 0; }
.cart-row__title { font-size: .84rem; font-weight: 600; line-height: 1.2; }
.cart-row__price { font-size: .74rem; color: var(--steel); margin-top: .15rem; }
.cart-row__qty { display: flex; align-items: center; gap: .3rem; flex: none; }
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(10, 20, 15, .16);
  display: grid;
  place-items: center;
  font-size: .8rem;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-row__x { color: var(--steel); padding: .25rem; transition: color .2s; }
.cart-row__x:hover { color: var(--accent); }

/* Sur téléphone, le panier devient une bottom sheet : il ne dépend plus de la
   position de l'icône dans la nav et reste intégralement dans le viewport. */
@media (max-width: 699px) {
  body.has-cart-open { overflow: hidden; }

  .cart-backdrop {
    position: fixed;
    z-index: 64;
    inset: 0;
    background: var(--scrim);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .cart-backdrop:not([hidden]) {
    display: block;
    animation: cart-backdrop-in .22s ease-out both;
  }

  .cart-panel {
    left: calc(.65rem + env(safe-area-inset-left)) !important;
    right: calc(.65rem + env(safe-area-inset-right));
    top: auto !important;
    /* addition, pas max() : la marge de 0,65 rem doit rester visible AU-DESSUS de
       l'indicateur d'accueil, pas être absorbée par lui. */
    bottom: calc(.65rem + env(safe-area-inset-bottom));
    width: auto;
    max-height: 76vh;
    max-height: min(76dvh, 620px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    animation: cart-sheet-in .32s var(--ease) both;
  }
  .cart-panel::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
    transform: translateX(-50%);
  }
  .cart-panel[hidden] { display: none; }

  .cart-panel__head {
    flex: none;
    padding: 1.25rem 1rem .9rem 1.15rem;
  }
  .cart-panel__head .label { font-size: .72rem; }
  .cart-panel__head .cart-row__x {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: -.5rem;
  }
  .cart-panel__body {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cart-panel__foot {
    flex: none;
    padding: .95rem 1rem 1rem;
    background: var(--glass-surface-strong);
  }
  .cart-panel__summary { margin-bottom: .8rem; }
  .cart-panel__subtotal-label { font-size: .88rem; }
  .cart-panel__subtotal-value { font-size: .95rem; }
  .cart-panel__foot .btn { min-height: 52px; }
  .cart-empty { padding: 2.8rem 1rem 3rem; }

  .cart-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: .15rem .8rem;
    padding: 1rem 3.25rem 1rem 1rem;
  }
  .cart-row__thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }
  .cart-row__thumb svg { width: 36px; height: 36px; }
  .cart-row__body { grid-column: 2; grid-row: 1; }
  .cart-row__title {
    font-size: .9rem;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .cart-row__price { margin-top: .2rem; font-size: .78rem; }
  .cart-row__qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    gap: .4rem;
    margin-top: .55rem;
  }
  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .cart-row > .cart-row__x {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
  }

  @keyframes cart-backdrop-in { from { opacity: 0; } }
  @keyframes cart-sheet-in {
    from { opacity: 0; transform: translateY(24px) scale(.985); }
  }
}

@media (max-width: 699px) and (prefers-reduced-motion: reduce) {
  .cart-backdrop:not([hidden]), .cart-panel { animation: none; }
}

/* ============================ barre d'achat mobile ======================== */

.buybar {
  position: fixed;
  z-index: 55;
  left: calc(.6rem + env(safe-area-inset-left));
  right: calc(.6rem + env(safe-area-inset-right));
  bottom: calc(.6rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .6rem .6rem 1.1rem;
  border-radius: 999px;
  background:
    linear-gradient(115deg, var(--glass-highlight-soft), transparent 38%, var(--glass-green-soft)),
    var(--glass-fixed-dark);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lift);
  color: #fff;
  transform: translateY(160%);
  transition: transform .4s var(--ease);
}
.buybar.is-in { transform: translateY(0); }
.buybar__price { line-height: 1.2; min-width: 0; }
.buybar__price b { font-weight: 700; font-size: 1.05rem; }
.buybar__price span {
  display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--steel-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buybar .btn { margin-left: auto; padding: .85rem 1.35rem; flex: none; }
@media (min-width: 900px) { .buybar { display: none; } }

/* La barre d'achat flotte au-dessus du contenu : sans réserve, elle masque la fin
   du pied de page. La hauteur réelle de la barre (~62 px) plus ses marges. */
@media (max-width: 899px) {
  body:has(.buybar) .foot { padding-bottom: calc(2rem + 4.6rem + env(safe-area-inset-bottom)); }
}

/* ============================ la balle (signature) ======================== */

.ball { width: 100%; height: auto; }
.ball-spin { transform-origin: 50% 50%; }

/* ============================ marquee ===================================== */

.marquee {
  /* Hauteur de référence du calibrage des logos. */
  --logo-h:   clamp(52px, 3.9vw, 56px);
  --logo-gap: clamp(2.75rem, 4.6vw, 4.25rem);

  overflow: hidden;
  /* Pas de fondu latéral : le masque délave les marques posées à même le fond
     sombre — la coupe nette au bord se lit mieux. */
  cursor: grab;
  touch-action: pan-y;
}
.marquee.is-drag { cursor: grabbing; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
}

/* Logos détourés, posés directement sur le fond sombre — aucune plaque.
   Ils n'ont PAS la même hauteur : ils ont le même *poids visuel*. Le facteur
   --k égalise l'aire de leur boîte englobante, puis corrige le contraste.
   Les sources officielles/noires sont unifiées en blanc pour rester lisibles sur le
   graphite sans plaque. Recalculer --k si un fichier change. */
.marquee__logo {
  flex: 0 0 auto;
  height: calc(var(--logo-h) * var(--k, 1));
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.m-titleist { --k: .926; }
.m-taylormade { --k: .753; }
.m-callaway { --k: 1.350; }
.m-ping { --k: .800; }
.m-mizuno { --k: 1.220; }
.m-scotty { --k: 1.060; }

/* ============================ cartes ====================================== */

.card {
  position: relative;
  background:
    linear-gradient(138deg, var(--glass-highlight-soft), transparent 34%),
    var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

/* La hampe de la bandeira, plantée depuis le haut de la carte au survol */
.card--marked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 3px;
  height: 0;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  transition: height .35s var(--ease);
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .card--marked:hover::before, .card--marked:focus-within::before { height: 22px; }
  .card:hover { box-shadow: var(--glass-shadow-lift); }
}

/* ============================ surfaces Liquid Glass ====================== */

/* Les sélecteurs sont volontairement qualifiés par body : ces surfaces ont
   aussi des règles de mise en page inline dans les pages, mais leur matière
   doit rester centralisée dans le système partagé. */
body .tile,
body .stage {
  border-color: var(--glass-border);
  background:
    radial-gradient(ellipse 72% 62% at 48% 34%, var(--glass-green), transparent 70%),
    linear-gradient(145deg, var(--glass-highlight-soft), transparent 36%),
    var(--glass-surface-soft);
  box-shadow: var(--glass-shadow-lift);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
}

body .tile__price,
body .stage__price {
  background: var(--glass-metal);
  border: 1px solid var(--glass-highlight);
  box-shadow: 0 1px 0 var(--glass-highlight) inset, 0 7px 18px -10px var(--ink);
}

body .tile__info {
  background:
    linear-gradient(125deg, var(--glass-green), transparent 48%),
    var(--glass-surface-strong);
  border-color: var(--glass-border);
  box-shadow: 0 1px 0 var(--glass-highlight-soft) inset, 0 14px 28px -18px var(--ink);
  backdrop-filter: blur(16px) saturate(1.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.55);
}

body .prod__vis,
body .avis__photo,
body .feat__ico,
body .slot__box,
body .swatch__box {
  background:
    radial-gradient(circle at 38% 30%, var(--glass-green-soft), transparent 62%),
    var(--glass-surface-soft);
  border-color: var(--glass-border-dim);
}

body .avis,
body .feat__card,
body .pack,
body .faq__box {
  background:
    linear-gradient(138deg, var(--glass-highlight-soft), transparent 34%),
    var(--glass-surface);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

body .pack--best,
body .avis.is-on {
  border-color: var(--accent-light);
  box-shadow: 0 1px 0 var(--glass-highlight) inset, 0 0 0 1px var(--glass-green), var(--glass-shadow-lift);
}

body .viewers,
body .trust span,
body .chip,
body .msg--a,
body .dial__node,
body .foot__social a {
  background:
    linear-gradient(135deg, var(--glass-highlight-soft), transparent 58%),
    var(--glass-surface-soft);
  border-color: var(--glass-border);
  box-shadow: 0 1px 0 var(--glass-highlight-soft) inset, 0 12px 26px -22px var(--ink);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

body .faq__chips {
  background:
    linear-gradient(180deg, var(--glass-surface-soft), transparent),
    var(--card-sunken);
}

body .legal-nav {
  background:
    linear-gradient(115deg, var(--glass-highlight-soft), transparent 42%, var(--glass-green-soft)),
    var(--glass-surface-strong);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
}

@media (hover: hover) and (pointer: fine) {
  body .feat__card,
  body .pack,
  body .avis { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease; }
  body .feat__card:hover,
  body .pack:hover,
  body .avis:hover { transform: translateY(-4px); border-color: var(--glass-highlight); box-shadow: var(--glass-shadow-lift); }
}

/* ============================ révélation au scroll ======================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================ avis ======================================== */

.stars { color: var(--gold); letter-spacing: .1em; font-size: .8rem; }

.verified {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--go);
}

/* ============================ FAQ ========================================= */

.chat-bubble-a { border-radius: 16px 16px 16px 4px; }
.chat-bubble-q { border-radius: 16px 16px 4px 16px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .3; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .16s; }
.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes typing { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ============================ matières ==================================== */

/* Grain : donne du corps aux aplats sombres, évite le dégradé « plastique ». */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

/* Trame technique — le quadrillage de la tonte du fairway, très en retrait. */
.gridlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000, transparent 78%);
}

/* ============================ divers ====================================== */

.hairline { height: 1px; background: var(--line); border: 0; }
.tabnum { font-variant-numeric: tabular-nums; }
.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;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10, 20, 15, .18); border-radius: 999px; }

/* ============================ affinages mobile ============================
   Trois familles de règles, toutes de forme :
   1. cibles tactiles portées à 44 px sur pointeur grossier ;
   2. retour d'appui, puisque -webkit-tap-highlight-color est neutralisé ;
   3. allègement du Liquid Glass là où il ne montre rien.                     */

/* --- 1. cibles tactiles ---------------------------------------------------- */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .qty-btn  { width: 44px; height: 44px; font-size: 1rem; }
}

/* --- 2. retour d'appui ----------------------------------------------------- */
/* Le site neutralise le halo de tap natif (`-webkit-tap-highlight-color`) ; sans
   remplacement, les surfaces qui n'ont qu'un état :hover ne réagissent pas du tout
   au doigt. On rend l'appui visible là où le survol l'était. */
@media (hover: none) {
  .icon-btn:active {
    background: var(--glass-surface-strong);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(.94);
  }
  .icon-btn { transition: border-color .2s, color .2s, background .2s, transform .12s var(--ease); }
  .card:active { box-shadow: var(--glass-shadow-lift); }
  .chip:active { border-color: var(--accent); background: var(--glass-surface-strong); }
}

/* --- 3. matière ------------------------------------------------------------
   `backdrop-filter` force le compositeur à refiltrer une copie du fond à chaque
   image. Une carte posée sur un aplat n'a rien à flouter : le rendu est identique
   sans le filtre. On le garde uniquement sur les surfaces qui passent réellement
   au-dessus du contenu : la nav, le panier, son voile et la barre d'achat. */
@media (max-width: 899px) {
  body .card,
  body .tile,
  body .stage,
  body .tile__info,
  body .prod__vis,
  body .avis__photo,
  body .feat__ico,
  body .slot__box,
  body .swatch__box,
  body .avis,
  body .feat__card,
  body .pack,
  body .faq__box,
  body .viewers,
  body .trust span,
  body .chip,
  body .msg--a,
  body .dial__node,
  body .foot__social a,
  body .btn--ghost,
  /* les boutons icône sont soit posés sur le verre de la nav — qui a déjà flouté le
     fond — soit sur un aplat de section : dans les deux cas le filtre ne montre rien */
  body .icon-btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* --- 4. défilements imbriqués ---------------------------------------------
   Les carrousels ne confinent que leur axe horizontal : une molette verticale
   posée dessus doit continuer de faire défiler la page. Les zones verticales,
   elles, gardent le confinement sur leur propre axe. */
.adv, .feat, .avis-viewport {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}
.faq__log, .cart-panel__body {
  overscroll-behavior-y: contain;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
