/* ==========================================================================
   FlashFit — navbar
   Bandeau d'annonces, barre principale, menu mobile et tiroir du panier.
   Balisage : navbar.html — comportement : navbar.js

   ▶ ZOOM SUR ORDINATEUR : commun.css applique `html { zoom: 1.03 }` dès
     1024px. Toutes les tailles ci-dessous y sont donc rendues à 103 %
     (logo 24px → ≈ 25px à l'écran). Tablette et mobile ne sont pas concernés.
   ========================================================================== */

/* ============================================================
   TAILLES DE LA NAVBAR — modifier ICI, nulle part ailleurs.
   Une valeur par palier ; le reste du fichier lit ces variables.
   ============================================================ */
:root {
  /* ── Ordinateur ≥ 1024px (rendu à 103 %, voir ci-dessus) ── */
  --ff-topbar-h:   28px;   /* bandeau d'annonces : hauteur */
  --ff-topbar-fs:  12px;   /* bandeau d'annonces : taille du texte */
  --ff-topbar-px:  0px;    /* bandeau d'annonces : marge gauche/droite */
  --ff-nav-h:      64px;   /* barre principale : hauteur */
  --ff-nav-px:     32px;   /* barre principale : marge gauche/droite */
  --ff-logo-h:     24px;   /* logo : hauteur (largeur auto, ratio ≈ 6,9:1) */
  --ff-mm-logo-h:  13px;   /* logo dans l'en-tête du menu mobile */
  --ff-link-fs:    14px;   /* liens (Accueil, Boutique…) : taille du texte */
  --ff-link-gap:   30px;   /* liens : espace entre eux */
  --ff-btn:        30px;   /* boutons compte / panier / menu : zone cliquable */
  --ff-icon:       20px;   /* icônes compte / panier */
}

/* ── Tablette 768–1023px ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --ff-topbar-h:  32px;
    --ff-topbar-px: 16px;
    --ff-nav-h:     60px;
    --ff-nav-px:    20px;
    --ff-logo-h:    22px;
    --ff-link-fs:   12.5px;
    --ff-link-gap:  18px;
  }
}

/* ── Mobile ≤ 767px (logo centré, menu à gauche, panier à droite) ── */
@media (max-width: 767px) {
  :root {
    --ff-topbar-h:  28px;
    --ff-topbar-fs: 11.5px;
    --ff-topbar-px: 8px;
    --ff-nav-h:     58px;
    --ff-nav-px:    16px;
    --ff-logo-h:    21px;
    --ff-btn:       38px;
  }
}

/* ── Petit mobile ≤ 379px (bandeau d'annonces masqué) ── */
@media (max-width: 379px) {
  :root {
    --ff-nav-h:  56px;
    --ff-nav-px: 12px;
    --ff-logo-h: 18px;
    --ff-btn:    34px;
    --ff-icon:   21px;
  }
}

/* ── Paysage (téléphone couché) : logo réduit, bandeau masqué ── */
@media (max-height: 500px) and (max-width: 900px) {
  :root { --ff-logo-h: 15px; }
}

/* ============================================================
   COULEURS
   ============================================================ */
:root {
  --nav-ink:         #111111;
  --nav-muted:       #64748B;
  --nav-blue:        #1D4ED8;
  --nav-blue-bright: #3B82F6;
  --nav-blue-dark:   #1E3A8A;
  --nav-blue-cta:    #1741B8;
  --nav-blue-wash:   #DBEAFE;
  --nav-surface:     #FFFFFF;
  --nav-canvas:      #F5F5F5;
  --nav-line:        #E2E8F0;
  --nav-line-strong: #CBD5E1;
}

/* ============================================================
   TOPBAR — bandeau d'annonces rotatif
   ============================================================ */
.ff-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: var(--ff-topbar-h);
  padding: 0 var(--ff-topbar-px);
  background: var(--nav-blue-cta);
  color: #fff;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--ff-topbar-fs);
  font-weight: 500;
  overflow: hidden;
}
.ff-topbar__track {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ff-topbar__item {
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
}
.ff-topbar__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ff-topbar__item strong { font-weight: 700; }
.ff-topbar__nav {
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.85;
  cursor: pointer;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.ff-topbar__nav:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.ff-topbar__nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  .ff-topbar__item { transition: none; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
#flashfit-nav * { margin: 0; padding: 0; box-sizing: border-box; }

#flashfit-nav {
  position: relative;
  width: 100%;
  z-index: 9000;
  background: #ffffff;
  border-bottom: 1px solid #ECECEC;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
#flashfit-nav.is-scrolled {
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.06);
}

/* `> nav` : ne cible que la barre principale, pas le <nav> du menu mobile */
#flashfit-nav > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--ff-nav-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ff-nav-px);
  gap: 20px;
}

/* Desktop / tablette : liens centrés sur la page (colonnes latérales de même largeur) */
@media (min-width: 768px) {
  #flashfit-nav > nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  #flashfit-nav .ff-nav-links { flex: none; }
  #flashfit-nav .ff-logo { justify-self: start; }
  #flashfit-nav .ff-nav-right { justify-self: end; }
}

/* Logo */
#flashfit-nav .ff-logo {
  height: var(--ff-logo-h);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--nav-ink);
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 8px;
}
#flashfit-nav .ff-logo img { height: 100%; width: auto; }
#flashfit-nav .ff-logo:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 3px; }

/* Logo texte de secours, affiché par navbar.js si l'image ne charge pas */
#flashfit-nav .ff-logo__fallback {
  display: none;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--nav-blue);
  letter-spacing: -0.02em;
}
#flashfit-nav .ff-logo__fallback-end { color: var(--nav-ink); }
#flashfit-nav .ff-logo.is-fallback img { display: none; }
#flashfit-nav .ff-logo.is-fallback .ff-logo__fallback { display: inline; }

/* Desktop links */
#flashfit-nav .ff-nav-links {
  display: flex;
  align-items: center;
  gap: var(--ff-link-gap);
  flex: 1;
  justify-content: center;
  align-self: stretch;
}
#flashfit-nav .ff-nav-links > a,
#flashfit-nav .ff-nav-links .ff-drop > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--ff-link-fs);
  font-weight: 500;
  color: #4B4B4B;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
}
#flashfit-nav .ff-nav-links > a::after,
#flashfit-nav .ff-nav-links .ff-drop > button::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--nav-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.4,0,0.2,1);
}
#flashfit-nav .ff-nav-links > a:hover,
#flashfit-nav .ff-nav-links .ff-drop > button:hover { color: var(--nav-ink); }
#flashfit-nav .ff-nav-links > a:hover::after,
#flashfit-nav .ff-nav-links .ff-drop > button:hover::after { transform: scaleX(1); }
#flashfit-nav .ff-nav-links > a.active { color: var(--nav-ink); font-weight: 600; }
#flashfit-nav .ff-nav-links > a.active::after { transform: scaleX(1); }
#flashfit-nav .ff-nav-links a:focus-visible,
#flashfit-nav .ff-nav-links button:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 4px; border-radius: 3px; }

/* ── Dropdown « Conseils » ───────────────────── */
#flashfit-nav .ff-drop {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
#flashfit-nav .ff-drop > button .ff-drop-chev {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
#flashfit-nav .ff-drop.is-open > button { color: var(--nav-ink); }
#flashfit-nav .ff-drop.is-open > button::after { transform: scaleX(1); }
#flashfit-nav .ff-drop.is-open > button .ff-drop-chev { transform: rotate(180deg); }

/* Panneau : carte blanche accrochée sous la navbar, alignée à gauche
   sur le lien. Le masquage vertical se fait via grid-template-rows,
   ce qui n'écrête jamais l'ombre portée. */
#flashfit-nav .ff-drop-panel {
  position: absolute;
  top: calc(100% + 1px);          /* pile sur la bordure de la navbar */
  left: -9px;                     /* aligne le texte du menu sur celui du lien */
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .26s cubic-bezier(.22,.61,.36,1),
              opacity .16s ease,
              visibility 0s linear .26s;
}
#flashfit-nav .ff-drop.is-open .ff-drop-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows .26s cubic-bezier(.22,.61,.36,1),
              opacity .16s ease,
              visibility 0s;
}

#flashfit-nav .ff-drop-panel__inner {
  overflow: hidden;
  min-width: 188px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 1px 0 #ECECEC inset,
              -1px 0 0 #ECECEC inset,
              1px 0 0 #ECECEC inset,
              0 -1px 0 #ECECEC inset,
              0 14px 30px -14px rgba(10,22,40,.20);
}
#flashfit-nav .ff-drop-panel__list { padding: 8px; display: grid; gap: 1px; }

#flashfit-nav .ff-drop-panel a {
  display: block;
  padding: 10px 13px;
  border-radius: 7px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #4B4B4B;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
#flashfit-nav .ff-drop-panel a:hover { background: #F5F7FA; color: var(--nav-ink); }
#flashfit-nav .ff-drop-panel a.active { color: var(--nav-blue); font-weight: 600; }

/* Menu « Mon compte » : même panneau, aligné à droite sous l'icône */
#flashfit-nav .ff-drop--account .ff-drop-panel { left: auto; right: -12px; width: max-content; }
#flashfit-nav .ff-drop--account .ff-drop-panel__main {
  font-weight: 600;
  color: var(--nav-ink);
  border-bottom: 1px solid #ECECEC;
  border-radius: 7px 7px 0 0;
  margin-bottom: 4px;
}

/* Right side */
#flashfit-nav .ff-nav-right {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}

/* Compte — icône seule, même registre que le panier */
#flashfit-nav .ff-account-btn {
  width: var(--ff-btn); height: var(--ff-btn);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-ink);
  transition: color 0.15s ease, transform 0.1s ease;
}
#flashfit-nav .ff-account-btn:hover { color: var(--nav-blue); }
#flashfit-nav .ff-account-btn:active { transform: scale(0.92); }
#flashfit-nav .ff-account-btn:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 3px; border-radius: 6px; }
#flashfit-nav .ff-account-btn svg {
  width: var(--ff-icon); height: var(--ff-icon);
  stroke: currentColor; fill: none; stroke-width: 1.7; pointer-events: none;
}

/* Cart button — icône seule */
#flashfit-nav .ff-cart-btn {
  position: relative;
  width: var(--ff-btn); height: var(--ff-btn);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-ink);
  transition: color 0.15s ease, transform 0.1s ease;
}
#flashfit-nav .ff-cart-btn:hover { color: var(--nav-blue); }
#flashfit-nav .ff-cart-btn:active { transform: scale(0.92); }
#flashfit-nav .ff-cart-btn:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 3px; border-radius: 6px; }
#flashfit-nav .ff-cart-btn svg {
  width: var(--ff-icon); height: var(--ff-icon);
  stroke: currentColor; fill: none; stroke-width: 1.7; pointer-events: none;
}

/* Cart badge — pastille */
#flashfit-nav .ff-cart-badge {
  position: absolute; top: -3px; right: -4px;
  background: var(--nav-blue); color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  display: none; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
#flashfit-nav .ff-cart-badge.visible { display: flex; animation: ff-pop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes ff-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Hamburger */
#flashfit-nav .ff-hamburger {
  display: none;
  width: var(--ff-btn); height: var(--ff-btn);
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; flex-shrink: 0;
}
#flashfit-nav .ff-hamburger:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 2px; border-radius: 6px; }
#flashfit-nav .ff-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--nav-ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
#flashfit-nav .ff-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#flashfit-nav .ff-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#flashfit-nav .ff-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile : panneau latéral (ouvert à gauche, cf. MOBILE) ── */
#flashfit-nav .ff-mobile-menu {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(88vw, 380px);
  height: 100dvh;
  z-index: 9999;
  flex-direction: column;
  background: #fff;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  box-shadow: -8px 0 48px rgba(0,0,0,0.16);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.32s;
}
#flashfit-nav .ff-mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s;
}

#flashfit-nav .ff-mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid #ECECEC;
}
#flashfit-nav .ff-mm-logo { display: flex; height: var(--ff-mm-logo-h); }
#flashfit-nav .ff-mm-logo img { height: 100%; width: auto; }
#flashfit-nav .ff-mm-close {
  width: 40px; height: 40px;
  border: 1px solid var(--nav-line); border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--nav-ink);
  display: flex; align-items: center; justify-content: center;
}
#flashfit-nav .ff-mm-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
#flashfit-nav .ff-mm-close:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 2px; }

#flashfit-nav .ff-mm-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 20px 20px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Liens principaux */
#flashfit-nav .ff-mm-main { display: flex; flex-direction: column; }
#flashfit-nav .ff-mm-main a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--nav-ink); text-decoration: none;
  border-bottom: 1px solid #F1F1F1;
}
#flashfit-nav .ff-mm-main a::after { content: '›'; font-size: 22px; font-weight: 400; color: #C4C9D2; }
#flashfit-nav .ff-mm-main a.active { color: var(--nav-blue); }
#flashfit-nav .ff-mm-main a.active::after { color: var(--nav-blue); }

/* Liens secondaires — liste discrète sous les liens principaux */
#flashfit-nav .ff-mm-grid { display: flex; flex-direction: column; }
#flashfit-nav .ff-mm-grid a {
  padding: 9px 2px;
  font-size: 15px; font-weight: 500; color: #4B5563; text-decoration: none;
}
#flashfit-nav .ff-mm-grid a:hover,
#flashfit-nav .ff-mm-grid a.active { color: var(--nav-blue); }

/* Pied collant : CTA + panier */
#flashfit-nav .ff-mm-foot {
  display: flex; gap: 10px;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #ECECEC;
  background: #fff;
}
#flashfit-nav .ff-mm-cta {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 999px;
  background: var(--nav-blue); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(29,78,216,.55);
  transition: background .15s ease;
}
#flashfit-nav .ff-mm-cta:hover { background: #1740AF; }
#flashfit-nav .ff-mm-cart {
  position: relative;
  width: 52px; height: 52px; flex-shrink: 0;
  border: 1px solid var(--nav-line); border-radius: 999px;
  background: #fff; color: var(--nav-ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#flashfit-nav .ff-mm-cart svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; fill: none; }
#flashfit-nav .ff-mm-cart__count {
  position: absolute; top: 2px; right: 0;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; border: 2px solid #fff;
  background: var(--nav-blue); color: #fff;
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
#flashfit-nav .ff-mm-cart__count[hidden] { display: none; }
#flashfit-nav .ff-mobile-menu a:focus-visible,
#flashfit-nav .ff-mm-cart:focus-visible { outline: 2px solid var(--nav-blue); outline-offset: 2px; border-radius: 8px; }

/* Overlay */
#flashfit-nav .ff-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 8998;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#flashfit-nav .ff-overlay.is-open { display: block; opacity: 1; }

/* Cart Drawer */
#flashfit-nav .ff-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 410px;
  background: #fff; z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  box-shadow: -8px 0 48px rgba(0,0,0,0.16);
  overflow: hidden;
  zoom: 1;
}
#flashfit-nav .ff-cart-drawer.is-open { transform: translateX(0); }
#flashfit-nav .ff-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #ECECEC;
}
#flashfit-nav .ff-cart-head h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: var(--nav-ink);
}
#flashfit-nav .ff-cart-head h2 svg { width: 20px; height: 20px; stroke: var(--nav-blue); fill: none; stroke-width: 1.6; }
#flashfit-nav .ff-cart-close {
  width: 34px; height: 34px;
  border: 1px solid var(--nav-line); border-radius: 8px;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--nav-muted);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
#flashfit-nav .ff-cart-close:hover { background: var(--nav-canvas); color: var(--nav-ink); border-color: var(--nav-line-strong); }
#flashfit-nav .ff-cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
#flashfit-nav .ff-cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 14px; padding: 40px 0; text-align: center;
}
#flashfit-nav .ff-cart-empty-icon {
  width: 66px; height: 66px;
  border: 2px solid var(--nav-line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: #94A3B8;
}
#flashfit-nav .ff-cart-empty p { font-size: 14px; color: var(--nav-muted); font-weight: 500; }
#flashfit-nav .ff-cart-empty-btn {
  background: var(--nav-ink); color: #fff;
  border: none; border-radius: 999px;
  padding: 11px 26px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background 0.15s ease;
}
#flashfit-nav .ff-cart-empty-btn:hover { background: #333; }
/* Liste et pied du panier : masqués par défaut, affichés (flex) par navbar.js */
#flashfit-nav .ff-cart-items { display: none; flex-direction: column; gap: 0; }
#flashfit-nav .ff-cart-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid #ECECEC;
}
#flashfit-nav .ff-cart-item:last-child { border-bottom: none; }
#flashfit-nav .ff-item-img {
  width: 72px; height: 72px; background: #F7F7F5;
  border-radius: 12px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
#flashfit-nav .ff-item-img img { width: 100%; height: 100%; object-fit: cover; }
#flashfit-nav .ff-item-info { flex: 1; min-width: 0; }
#flashfit-nav .ff-item-name { font-size: 14px; font-weight: 600; color: var(--nav-ink); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#flashfit-nav .ff-item-variant { font-size: 12px; color: #94A3B8; margin-bottom: 8px; }
#flashfit-nav .ff-item-price { font-size: 15px; font-weight: 700; color: var(--nav-ink); margin-bottom: 10px; }
#flashfit-nav .ff-item-actions { display: flex; align-items: center; justify-content: space-between; }
#flashfit-nav .ff-qty { display: flex; align-items: center; border: 1px solid var(--nav-line); border-radius: 8px; overflow: hidden; }
#flashfit-nav .ff-qty button {
  width: 30px; height: 30px; background: #fff; border: none; cursor: pointer;
  font-size: 16px; color: #475569;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: background 0.1s ease;
}
#flashfit-nav .ff-qty button:hover { background: #F8FAFC; }
#flashfit-nav .ff-qty-num {
  width: 32px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--nav-ink);
  border-left: 1px solid var(--nav-line); border-right: 1px solid var(--nav-line);
}
#flashfit-nav .ff-item-del {
  width: 30px; height: 30px; background: transparent; border: none; cursor: pointer;
  color: var(--nav-line-strong); display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: color 0.15s ease, background 0.15s ease;
}
#flashfit-nav .ff-item-del:hover { color: var(--nav-blue); background: var(--nav-blue-wash); }
#flashfit-nav .ff-item-del svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
#flashfit-nav .ff-cart-foot {
  border-top: 1px solid #ECECEC; padding: 18px 24px;
  display: none; flex-direction: column; gap: 8px;
}
#flashfit-nav .ff-foot-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--nav-muted); }
#flashfit-nav .ff-foot-row.is-total { font-size: 16px; font-weight: 700; color: var(--nav-ink); padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--nav-line); }
#flashfit-nav .ff-checkout-btn {
  width: 100%; background: var(--nav-blue); color: #fff;
  border: none; border-radius: 999px;
  padding: 15px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s ease; margin-top: 6px;
}
#flashfit-nav .ff-checkout-btn:hover { background: #1740AF; }
#flashfit-nav .ff-view-cart-btn {
  width: 100%; background: #fff; color: var(--nav-ink);
  border: 1px solid var(--nav-line); border-radius: 999px;
  padding: 12px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background 0.15s ease, border-color 0.15s ease;
}
#flashfit-nav .ff-view-cart-btn:hover { background: #F8FAFC; border-color: var(--nav-line-strong); }
#flashfit-nav .ff-progress-wrap { background: #F0F6FF; border-radius: 10px; padding: 11px 13px; margin-bottom: 4px; }
#flashfit-nav .ff-progress-label { font-size: 12px; color: var(--nav-blue); font-weight: 600; margin-bottom: 7px; }
#flashfit-nav .ff-progress-bar-bg { height: 5px; background: var(--nav-blue-wash); border-radius: 99px; overflow: hidden; }
#flashfit-nav .ff-progress-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--nav-blue), var(--nav-blue-bright)); border-radius: 99px; transition: width 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  #flashfit-nav *, #flashfit-nav *::after { transition: none !important; animation: none !important; }
}

/* ══════════ RESPONSIVE — STRUCTURE ══════════
   Les TAILLES (hauteurs, logo, textes, boutons) sont dans le bloc
   « TAILLES DE LA NAVBAR » tout en haut du fichier. Ici : uniquement
   la disposition propre à chaque palier. */

/* ── TABLETTE 768–1023 ── */
@media (min-width: 768px) and (max-width: 1023px) {
  #flashfit-nav > nav { max-width: 100%; }
  #flashfit-nav .ff-nav-links > a,
  #flashfit-nav .ff-nav-links .ff-drop > button { padding: 5px 2px; }
  #flashfit-nav .ff-nav-right { gap: 10px; }
  #flashfit-nav .ff-hamburger { display: none; }
}

/* ── MOBILE ≤ 767px ── */
@media (max-width: 767px) {
  .ff-topbar { gap: .25rem; }
  .ff-topbar__track { max-width: none; }
  #flashfit-nav > nav { position: relative; max-width: 100%; gap: 12px; }
  #flashfit-nav .ff-nav-links { display: none; }
  #flashfit-nav .ff-drop--account { display: none; }   /* liens déjà dans le menu latéral */

  /* Disposition : menu à gauche, logo à gauche juste après, panier à droite */
  #flashfit-nav .ff-nav-right { display: contents; }
  #flashfit-nav .ff-hamburger { order: -1; display: flex; margin-left: -8px; }
  #flashfit-nav .ff-cart-btn { margin-right: -6px; }
  #flashfit-nav .ff-logo {
    margin-right: auto;            /* pousse le panier à droite */
    min-width: 0;
    max-width: calc(100% - 100px);
    font-size: 20px; gap: 8px;
  }
  #flashfit-nav .ff-logo img { max-width: 100%; object-fit: contain; }

  /* Le panneau du menu s'ouvre du côté du bouton, à gauche */
  #flashfit-nav .ff-mobile-menu {
    display: flex;
    right: auto; left: 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 48px rgba(0,0,0,0.16);
  }

  /* Accueil (body.has-hero) : barre transparente posée sur la photo,
     elle redevient blanche dès qu'on fait défiler la page */
  body.has-hero #site-header { background: transparent; }
  body.has-hero #flashfit-nav { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
  body.has-hero #flashfit-nav:not(.is-scrolled) { background: transparent; border-color: transparent; }
  body.has-hero #flashfit-nav .ff-logo img { transition: filter .25s ease; }
  body.has-hero #flashfit-nav:not(.is-scrolled) .ff-logo img { filter: brightness(0) invert(1); }
  body.has-hero #flashfit-nav:not(.is-scrolled) .ff-cart-btn { color: #fff; }
  body.has-hero #flashfit-nav:not(.is-scrolled) .ff-hamburger span { background: #fff; }
  #flashfit-nav .ff-cart-drawer { width: 100vw; }
  #flashfit-nav .ff-cart-head { padding: 16px 20px; }
  #flashfit-nav .ff-cart-body { padding: 12px 20px; }
  #flashfit-nav .ff-cart-foot { padding: 16px 20px; }
}

/* ── PETIT MOBILE ≤ 379px ── */
@media (max-width: 379px) {
  .ff-topbar { display: none; }
  #flashfit-nav > nav { gap: 8px; }
  #flashfit-nav .ff-logo { font-size: 18px; gap: 7px; }
}

/* ── PAYSAGE mobile ── */
@media (max-height: 500px) and (max-width: 900px) {
  .ff-topbar { display: none; }
  #flashfit-nav .ff-cart-drawer { height: 100dvh; }
}
