/* ============================================================
   GETA Solutions Globale — Design System
   Palette: Deep Navy · Rich Blue · Amber Gold
   ============================================================ */

/* Barlow + Barlow Semi Condensed — self-hosted (OFL), latin subset */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/barlow-400-latin.81419bf5abb5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/barlow-500-latin.8e986e86d57e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/barlow-600-latin.a1e2a2d7d4c0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/barlow-semicond-600-latin.64a19a7cafc2.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/barlow-semicond-700-latin.d829c77621b7.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallbacks sized like Barlow: text keeps its width and line breaks when the web font arrives (no layout jump). */
@font-face { font-family: 'Barlow Fallback'; font-weight: 400 500; src: local('Arial'), local('Roboto'), local('Liberation Sans'); size-adjust: 97.5%; ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; font-weight: 600 700; src: local('Arial Bold'), local('Roboto Bold'), local('Liberation Sans Bold'); size-adjust: 91%; ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Head Fallback'; font-weight: 600 700; src: local('Arial Bold'), local('Roboto Bold'), local('Liberation Sans Bold'); size-adjust: 84%; ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Fonts */
  --font-head: 'Barlow Semi Condensed', 'Barlow Head Fallback', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', 'Barlow Fallback', Arial, Helvetica, sans-serif;

  /* Links: brand blue */
  --bs-link-color:       #20709a;
  --bs-link-hover-color: #195b7e;
  --bs-link-color-rgb:   32, 112, 154;
  /* Brand (logo navy #100840, logo blue #20709a) */
  --navy:       #120a44;
  --navy-deep:  #0d0733;
  --navy-mid:   #1b1456;
  --blue:       #20709a;
  --blue-dark:  #195b7e;
  --amber:      #4AA3D9;   /* light brand blue: accents on dark navy only */
  --amber-dark: #20709a;   /* brand blue: actions and links on light */
  --teal:       #0d9488;
  --teal-light: #14b8a6;

  /* Flat fills (tokens kept so existing rules resolve) */
  --gradient-navy:  #120a44;
  --gradient-amber: #20709a;
  --gradient-hero:  rgba(13, 7, 51, 0.84);

  /* Surfaces */
  --surface:    #ffffff;
  --surface-alt:#f8fafc;
  --surface-2:  #f1f5f9;
  --border:     #d8dee6;
  --border-mid: #c5ced9;

  /* Text */
  --text:       #141a2a;
  --text-muted: #5b6678;
  --text-light: #94a3b8;

  /* Misc */
  --radius:     6px;
  --radius-sm:  6px;

  /* Shadows: none at rest, one light shadow for hover and overlays */
  --shadow-xs:  none;
  --shadow:     none;
  --shadow-md:  0 2px 8px rgba(18, 10, 68, 0.10);
  --shadow-lg:  0 4px 16px rgba(18, 10, 68, 0.14);
  --shadow-xl:  0 4px 16px rgba(18, 10, 68, 0.14);
  --glow-amber: none;
  --glow-amber-strong: none;

  /* Glass tokens kept flat */
  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-blur:   none;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

/* ── Accessibilité ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.5rem;
  color: #fff;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-alt);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem); }

.display-4, .display-5 {
  letter-spacing: 0;
  font-weight: 700;
}

.text-balance { text-wrap: balance; }

.display-number {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar-modern {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: padding var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) var(--ease-out-expo);
}

.navbar-modern.is-scrolled {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  box-shadow: none;
  background: rgba(13, 7, 51, 0.97);
  
  
}

.navbar-modern .nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.navbar-modern .nav-link.is-active {
  color: #fff;
  background: rgba(74, 163, 217, 0.15);
}

.navbar-modern .nav-link-secondary {
  color: rgba(255, 255, 255, 0.62);
}

.brand-wordmark {
  display: block;
  height: 42px;
  width: auto;
}

.footer-wordmark {
  display: block;
  height: 40px;
  width: auto;
}

.navbar-brand {
  max-width: 72%;
}

.btn-help {
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

.btn-cart {
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  background: var(--amber);
  color: var(--navy);
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 1.3rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-icon-btn:hover,
.nav-icon-btn:focus { background: var(--paper-2); color: var(--navy); }
.nav-icon-btn .cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  padding: 0.1rem 0.35rem;
  font-size: 0.62rem;
  line-height: 1;
}

/* ── En-tête : une seule ligne à partir de xl ──────────────────────────────
   La barre passait sur deux lignes sur un portable 1440 px : « Pièces
   détachées » se coupait en deux et « Inscription » tombait sous le champ de
   recherche. Rien n'avait cassé, la ligne s'était simplement remplie —
   l'onglet Blog (#533) a été le lien de trop, et `flex-wrap` a fait ce qu'on
   lui demandait.

   La barre se replie donc au menu burger sous 1200 px (`navbar-expand-xl`) et
   non plus sous 992 px : entre les deux, les 960 px du conteneur ne peuvent
   pas tenir cinq rubriques et quatre boutons, et forcer la ligne unique ne
   ferait que pousser « Inscription » hors de l'écran.

   Trois leviers, dans cet ordre : aucun libellé ne se coupe, la rangée
   d'actions ne se replie plus, et c'est le champ de recherche qui cède la
   place puisque c'est le seul élément élastique. */
@media (min-width: 1200px) {
  .navbar-modern .navbar-nav .nav-link { white-space: nowrap; }
  .navbar-modern .navbar-collapse { flex-wrap: nowrap; }
  .navbar-modern .navbar-actions { flex-wrap: nowrap !important; }
  .navbar-modern .navbar-actions { flex-shrink: 0; }
  .navbar-modern .navbar-actions .btn { white-space: nowrap; flex-shrink: 0; }
  .navbar-modern .search-autocomplete-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 180px;   /* 240 px clipped the button labels at 1400+ */
  }
  .navbar-modern .search-autocomplete-wrapper .input-group { width: 100%; }
}

/* Entre lg et xl, resserrer ne suffit pas : cinq rubriques, un champ de
   recherche et quatre boutons ne tiennent pas dans les 1140 px du conteneur.
   C'est la recherche de l'en-tête qui part — elle fait doublon avec celle du
   bandeau d'accueil et celle du catalogue, alors qu'un lien de navigation
   supprimé, lui, serait introuvable. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-modern .nav-link { padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.85rem; }
  .navbar-modern .navbar-nav { margin-left: 0.5rem !important; }
  .navbar-modern .navbar-actions .btn { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
  .navbar-modern .search-autocomplete-wrapper { display: none !important; }
}

@media (max-width: 576px) {
  .brand-wordmark { height: 30px; }
  .navbar-brand { max-width: 60%; }
  .navbar-modern .btn-cart,
  .navbar-modern .btn-help { font-size: 0.8rem; padding: 0.35rem 0.6rem; }
}

@media (max-width: 380px) {
  .brand-wordmark { height: 24px; }
}

/* ── Btn-amber (CTA ambre) ────────────────────────────────── */
.btn-amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
  font-weight: 700;
}
.btn-amber:hover,
.btn-amber:focus {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
}
.btn-amber:active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}
.btn-amber::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: none;
  transition: left 0.5s;
}
.btn-amber:hover::after {
  left: 120%;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* Shimmer/shine effect on hover */
.btn-primary::after,
.btn-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: none;
  transition: left 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-dark:hover::after {
  left: 120%;
}

/* Primary = Amber — override Bootstrap 5.3 via ses propres variables CSS */
.btn-primary {
  --bs-btn-bg:                #20709a;
  --bs-btn-border-color:      #20709a;
  --bs-btn-color:             #fff;
  --bs-btn-hover-bg:          #195b7e;
  --bs-btn-hover-border-color:#195b7e;
  --bs-btn-hover-color:       #fff;
  --bs-btn-active-bg:         #195b7e;
  --bs-btn-active-border-color:#195b7e;
  --bs-btn-active-color:      #fff;
  --bs-btn-disabled-bg:       #20709a;
  --bs-btn-disabled-border-color:#20709a;
  --bs-btn-disabled-color:    rgba(255,255,255,0.65);
  --bs-btn-focus-shadow-rgb:  32, 112, 154;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
}

/* Icon-only button (cart, favori) */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* Loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}
.btn.is-loading .btn-text { visibility: hidden; }
.btn.is-loading::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Outline primary = navy outline (action secondaire confirmée) */
.btn-outline-primary {
  --bs-btn-color:              #141a2a;
  --bs-btn-border-color:       #141a2a;
  --bs-btn-hover-bg:           #141a2a;
  --bs-btn-hover-border-color: #141a2a;
  --bs-btn-hover-color:        #ffffff;
  --bs-btn-active-bg:          #0d0733;
  --bs-btn-active-border-color:#0d0733;
  --bs-btn-active-color:       #ffffff;
}

/* Outline secondary = tertiaire (retour, annuler) */
.btn-outline-secondary {
  --bs-btn-color:              #374151;
  --bs-btn-border-color:       #d1d5db;
  --bs-btn-hover-bg:           #f9fafb;
  --bs-btn-hover-border-color: #9ca3af;
  --bs-btn-hover-color:        #111827;
  --bs-btn-active-bg:          #f3f4f6;
  --bs-btn-active-color:       #111827;
}

/* Dark/Navy button */
.btn-dark {
  --bs-btn-bg:                 #141a2a;
  --bs-btn-border-color:       #141a2a;
  --bs-btn-color:              #ffffff;
  --bs-btn-hover-bg:           #0d0733;
  --bs-btn-hover-border-color: #0d0733;
  --bs-btn-hover-color:        #ffffff;
}

.btn-outline-light:hover {
  color: var(--navy);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-control,
.form-select {
  font-family: var(--font-body);
  border-color: var(--border-mid);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(74, 163, 217, 0.18);
  background-color: var(--surface);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

/* ── Sous-navbar accès rapide ──────────────────────────────── */
.subnav-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
  font-size: 0.82rem;
}

.subnav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  transition: color 0.15s;
  white-space: nowrap;
}

.subnav-link:hover {
  color: var(--amber-dark);
}

.subnav-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

.subnav-cta {
  font-size: 0.78rem !important;
  padding: 0.3rem 0.85rem !important;
  border-radius: var(--radius-sm) !important;
}

@media (max-width: 576px) {
  .subnav-strip .container { gap: 0.75rem; }
  .subnav-cta { display: none !important; }
}

/* ── Page shell ────────────────────────────────────────────── */
.page-shell {
  min-height: 80vh;
  background: transparent;
}

/* ── Hero plein écran ──────────────────────────────────────── */
.hero-fullbleed {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: #0d0733;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

/* Radial vignette effect */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

/* Grain texture */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* Logo */
.hero-logo-wrap {
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 6px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.hero-logo-img {
  width: min(520px, 80vw);
  height: auto;
  display: block;
}

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(74, 163, 217, 0.18);
  border: 1px solid rgba(74, 163, 217, 0.45);
  color: #4AA3D9 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 4px;
}

/* Titre */
.hero-title {
  font-size: clamp(2.4rem, 3.5vw + 1rem, 3.8rem);
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0;
  line-height: 1.12;
}
.hero-title span {
  display: block;
}

/* Lead */
.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82) !important;
  max-width: none;
  line-height: 1.65;
}

/* Formulaire — enhanced glassmorphism */
.hero-finder {
  position: relative;
  background: rgba(255, 255, 255, 0.18);
  
  
  border: 2px solid rgba(74, 163, 217, 0.55);
  border-radius: 6px;
  padding: 2.5rem 2.75rem;
  box-shadow:
    none;
}

.hero-finder::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  padding: 2px;
  background: rgba(74, 163, 217, 0.7);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

.hero-finder-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(74, 163, 217, 0.18);
  border: 1px solid rgba(74, 163, 217, 0.45);
  color: var(--amber) !important;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}

/* Centered hero variant */
.hero-title--centered {
  font-size: clamp(2.6rem, 4.5vw + 1rem, 4.2rem);
}
.hero-finder--centered {
  max-width: 820px;
}

.hero-finder .form-label {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Bootstrap 5.3 utilise --bs-body-bg pour les inputs, on override */
.hero-finder .form-control,
.hero-finder .form-select {
  --bs-body-bg: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  border-radius: 6px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.hero-finder .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.6)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-image: var(--bs-form-select-bg-img) !important;
}

.hero-finder .form-select.qf-placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

.hero-finder .form-select option {
  background-color: #1a1a2e;
  color: #ffffff;
}

.hero-finder .form-control::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

.hero-finder .form-control:focus,
.hero-finder .form-select:focus {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: #4AA3D9 !important;
  box-shadow: 0 0 0 3px rgba(74, 163, 217, 0.28) !important;
  color: #ffffff !important;
}

.hero-finder-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

.hero-finder-hint strong {
  color: rgba(255, 255, 255, 0.7);
}

.hero-finder .btn-primary {
  box-shadow: none;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
}

.hero-finder .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
}

/* Badges de confiance */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 2rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.83rem;
  font-weight: 500;
}

.hero-trust-item i {
  color: #4AA3D9;
  font-size: 0.9rem;
}

.hero-trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Hero stats row (replaces trust badges) */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--amber);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Hero inline stats (compact single-line variant) */
.hero-stats-inline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-stat-inline {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.hero-stat-inline-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0;
  line-height: 1;
}

.hero-stat-inline-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.hero-stat-inline-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Floating amber particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1.5s; animation-duration: 9s; }
.hero-particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 3s; animation-duration: 6s; }
.hero-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 0.5s; animation-duration: 10s; }
.hero-particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 2s; animation-duration: 8s; }
.hero-particle:nth-child(6) { left: 40%; top: 80%; animation-delay: 4s; animation-duration: 7.5s; }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-60px) scale(1.5); }
  80% { opacity: 0.5; }
}

/* Hero stagger entry animations */
.hero-stagger-1 { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.1s both; }
.hero-stagger-2 { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.25s both; }
.hero-stagger-3 { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.4s both; }
.hero-stagger-4 { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.55s both; }
.hero-stagger-5 { animation: heroFadeUp 0.8s var(--ease-out-expo) 0.7s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .hero-fullbleed { min-height: auto; }
  .hero-finder { padding: 1.5rem 1.25rem; height: auto; }
  .hero-lead { max-width: none; }
  .hero-stats-inline { justify-content: center; }
}

@media (max-width: 576px) {
  .hero-logo-img { width: min(340px, 88vw); }
  .hero-content { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-stats-row { gap: 1rem 2rem; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}

/* ── Cards produit ─────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Gradient amber top border on hover */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
  z-index: 2;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 163, 217, 0.3);
}

.product-thumb {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  min-height: 180px;
  overflow: hidden;
}

.product-thumb img {
  max-height: 140px;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-thumb.compact {
  min-height: 140px;
  padding: 1rem;
}

.product-thumb.compact img {
  max-height: 110px;
}

/* Actions reveal on hover */
.product-card .product-actions {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Badges with backdrop-blur */
.product-card .badge {
  
  
}

/* Delivery estimate on product cards */
.delivery-estimate {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}
.delivery-estimate i {
  font-size: 0.72rem;
  margin-right: 0.2rem;
}

/* ── Cards génériques (panier, checkout, etc.) ─────────────── */
.card-elevated {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}

.card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 163, 217, 0.3);
}

.shadow-soft { box-shadow: none; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-soft {
  background: rgba(15, 23, 42, 0.07);
  color: var(--navy-mid);
  border-radius: 4px;
}

.badge.bg-soft-primary {
  background: rgba(15, 23, 42, 0.07);
  color: var(--navy-mid);
}

.badge.bg-soft-success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.badge.bg-soft-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.badge.bg-soft-dark {
  background: rgba(15, 23, 42, 0.07);
  color: var(--navy-mid);
}

.badge.bg-amber {
  background: rgba(74, 163, 217, 0.12);
  color: #92400e;
}

/* ── Product marketing badges (overlays on cards) ─────────── */
.product-badge {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 2;
  padding: 4px 14px 4px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: 0 20px 20px 0;
  box-shadow: none;
}

.product-badge-promo {
  background: #dc2626;
}

.product-badge-clearance {
  background: var(--blue);
  color: #1e1e1e;
}

.product-badge-new {
  background: var(--navy);
}

/* ── Section helpers ───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-weight: 700;
  letter-spacing: 0;
}

/* Ligne décorative sous un titre */
.title-underline {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── Offre strip (homepage) ────────────────────────────────── */
.offer-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.offer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: block;
}

.offer-card:hover {
  border-color: rgba(74, 163, 217, 0.45);
  box-shadow: var(--shadow-md);
}

/* ── Category cards (hero catégories) ─────────────────────── */
.category-card {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: none;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 163, 217, 0.4);
  color: #fff;
}

.category-media {
  position: relative;
  overflow: hidden;
}

.category-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 51, 0.6);
}

.category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.category-card:hover .category-image {
  transform: scale(1.04);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 1;
}

.category-overlay .btn {
  align-self: flex-start;
  font-size: 0.82rem;
}

@media (max-width: 576px) {
  .category-image { height: 160px; }
}

/* ── Season cards ──────────────────────────────────────────── */
.season-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.season-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 163, 217, 0.35);
}

.season-card__media {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.season-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 51, 0.2);
}

.season-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.season-card:hover .season-card__image {
  transform: scale(1.04);
}

.season-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-mid);
}

.season-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

@media (max-width: 576px) {
  .season-card__media { height: 140px; }
}

/* ── Hover lift générique ──────────────────────────────────── */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── Section logistique (fond image) ──────────────────────── */
.logistics-visual {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  overflow: hidden;
  background-color: var(--navy);
  position: relative;
}

.logistics-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 51, 0.84);
}

.logistics-visual .container { color: #fff; }

/* ── Partner logos ─────────────────────────────────────────── */
.partner-logos-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1rem 0;
}

.logo-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  width: max-content;
  min-width: 200%;
  animation: marquee 28s linear infinite;
  align-items: center;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.logo-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 0.75rem;
}

.logo-scroll .logo-item { scroll-snap-align: center; }
.logo-scroll::-webkit-scrollbar { height: 0; }

.partner-logo-wrap {
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.partner-logo-wrap:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.partner-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (max-width: 576px) {
  .partner-logo { height: 32px; max-width: 120px; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── About section ─────────────────────────────────────────── */
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.about-image-large {
  max-width: 520px;
  min-height: 260px;
  object-fit: cover;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: none;
}

.faq-section .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
  margin-bottom: 0.75rem;
}

.faq-section .accordion-item + .accordion-item { margin-top: 0; }

.faq-section .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.75rem;
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  transition: background 0.15s;
}

.faq-section .accordion-button:focus { box-shadow: none; }

.faq-section .accordion-button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.faq-section .accordion-button:not(.collapsed) {
  background: rgba(74, 163, 217, 0.05);
  color: var(--navy-mid);
  box-shadow: none;
  border-left: 3px solid var(--amber);
}

.faq-section .accordion-body {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-icon svg { width: 16px; height: 16px; }
.faq-question-text { flex: 1; }
.faq-link { color: var(--amber-dark); font-weight: 600; text-decoration: none; }
.faq-link:hover { color: var(--blue); text-decoration: underline; }
.faq-list { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.faq-list li + li { margin-top: 0.3rem; }
.faq-note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }

@media (max-width: 576px) {
  .faq-section { padding: 1.5rem 1.1rem; }
}

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: none;
}

.cta-section h3, .cta-section p { color: #fff; }
.cta-section .text-muted { color: rgba(255, 255, 255, 0.6) !important; }

/* ── Guides section ────────────────────────────────────────── */
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guide-card:hover {
  border-color: rgba(74, 163, 217, 0.35);
  box-shadow: var(--shadow-md);
}

/* ── Icon badges ───────────────────────────────────────────── */
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(74, 163, 217, 0.1);
  color: var(--amber);
}

.icon-badge .bi { font-size: 1.35rem; }

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ── Cart table ────────────────────────────────────────────── */
.cart-table-responsive { overflow-x: auto; }

.cart-table {
  min-width: 720px;
}

.cart-table th,
.cart-table td { white-space: nowrap; }

.cart-table .cart-product { white-space: normal; min-width: 240px; }
.cart-table .cart-qty { min-width: 170px; }
.price-nowrap { white-space: nowrap; }

.thumb-sm { width: 72px; height: 72px; }

/* ── Checkout summary ──────────────────────────────────────── */
.checkout-summary p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.checkout-summary p span,
.checkout-summary p strong { white-space: nowrap; }

@media (max-width: 576px) {
  .checkout-summary p { flex-wrap: wrap; }
  .checkout-summary p strong { margin-left: auto; }
}

/* ── Toolbar card (catalogue) ──────────────────────────────── */
.toolbar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: none;
}

/* ── Product detail ────────────────────────────────────────── */
.product-visual { min-height: 320px; }

.product-delivery-line { margin-top: 0.35rem; color: var(--text-muted); white-space: nowrap; }
.product-delivery-line i { color: var(--blue); }

/* Compare block: a swipe row on phones instead of three stacked full cards. */
@media (max-width: 767.98px) {
  .pd-compare-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .pd-compare-row > .col { flex: 0 0 78%; max-width: 78%; scroll-snap-align: start; }
  .pd-compare-img { --bs-aspect-ratio: 60%; }
}

.product-reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.product-reassurance-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-alt);
  font-size: 0.88rem;
}

.benefit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: var(--surface);
}

.benefit-card i { color: var(--blue); font-size: 1.2rem; }

@media (max-width: 768px) {
  .product-reassurance-grid { grid-template-columns: 1fr; }

  .product-detail-main {
    margin-top: -0.25rem;
  }

  .product-visual {
    min-height: 220px !important;
  }

  .product-visual img {
    max-height: 210px !important;
  }

  .product-purchase-panel {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: var(--radius) !important;
  }

  .product-purchase-panel .price-block {
    width: 100%;
  }

  .product-purchase-panel .ms-auto {
    width: 100%;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .product-buy-form {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .product-buy-form .qty-selector {
    width: 100%;
    justify-content: space-between;
  }

  .product-buy-form .qty-selector input {
    flex: 1;
  }
}

/* ── Listing pages: compact header + one toolbar ────────────── */
.listing-head { padding: 0.25rem 0 1rem; border-bottom: 1px solid var(--border); }
.listing-eyebrow { margin: 0 0 0.3rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-dark); }
.listing-title { margin: 0 0 0.4rem; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.15; }
.listing-intro { margin: 0 0 0.6rem; max-width: 62ch; color: var(--text-muted); }
.listing-facts { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.listing-facts strong { color: var(--text); }
.listing-body { padding: 1rem 0 2.5rem; scroll-margin-top: 90px; }
.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-bottom: 1.25rem; }
.listing-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 0; }
.listing-chips-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-right: 0.15rem; }
.listing-chip { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 0.82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.listing-chip:hover { border-color: var(--amber); color: var(--text); }
.listing-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.listing-sort { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.listing-sort .form-select { min-width: 170px; }

@media (max-width: 576px) {
  .listing-page { padding-top: 0.75rem !important; }
  .listing-page .breadcrumb { margin-bottom: 0; }
  .listing-head { padding-bottom: 0.75rem; }
  .listing-title { font-size: 1.35rem; }
  .listing-intro { font-size: 0.92rem; }
  .listing-toolbar { gap: 0.55rem; }
  .listing-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .listing-chips::-webkit-scrollbar { display: none; }
  .listing-sort { margin-left: 0; flex: 1; }
  .listing-sort .form-select { flex: 1; min-width: 0; }
}

.product-advice-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  color: #166534;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.product-advice-strip i {
  color: #16a34a;
  font-size: 1rem;
}

.product-advice-strip {
  justify-content: center;
  flex-wrap: wrap;
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}

.product-advice-strip a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}


.product-card-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 0.75rem;
}

.product-card-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 24px;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.product-card-reassurance i {
  color: var(--blue);
  font-size: 0.8rem;
}

/* Alma 3x/4x sans frais badge */
.alma-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border, #d8dee6);
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.05);
  color: var(--blue, #20709a);
  font-size: 0.82rem;
  line-height: 1.3;
}

.alma-badge__icon {
  font-size: 1rem;
  flex: 0 0 auto;
}

.alma-badge__text {
  font-weight: 500;
}

.alma-badge__detail {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.alma-badge--compact {
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
}

/* ── Recherche rapide — vehicle choice card ────────────────── */
.vehicle-choice-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}

.vehicle-choice-card:hover {
  border-color: var(--amber);
  background: rgba(74, 163, 217, 0.04);
}

.vehicle-choice-card.is-selected {
  border-color: var(--amber);
  background: rgba(74, 163, 217, 0.08);
  color: var(--navy-mid);
}

.vehicle-choice-card .form-check-input {
  display: none;
}

/* ── Search product cards ──────────────────────────────────── */
.search-product-card .card-body { padding: 0.9rem; }

.search-card-image {
  max-height: 130px;
  object-fit: contain;
  padding: 0.9rem;
  background: var(--surface-alt);
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-hero-card,
.contact-info-card,
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-info-highlight {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

/* ── Sticky CTA mobile ─────────────────────────────────────── */
.sticky-shop-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
  z-index: 1030;
}

@media (min-width: 768px) {
  .sticky-shop-cta { display: none !important; }
}

/* ── Pièces détachées ─────────────────────────────────────── */
.parts-cat-card {
  box-shadow: none;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.parts-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.parts-cat-card:hover .parts-cat-card__img {
  opacity: 0.9;
}

.parts-product-card {
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.parts-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ── Transport ────────────────────────────────────────────── */
.transport-hero {
  position: relative;
  overflow: hidden;
}
.transport-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.transport-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.transport-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 51, 0.84);
  z-index: 1;
}
.transport-hero__visual {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.transport-hero__visual:hover {
  transform: translateY(-4px);
}

.transport-service-card {
  box-shadow: none;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.transport-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.transport-advantage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal);
}
.transport-advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}

/* ── Location ─────────────────────────────────────────────── */
.location-hero {
  position: relative;
  overflow: hidden;
}
.location-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.location-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 7, 51, 0.84);
  z-index: 1;
}
.location-vehicle-card {
  box-shadow: none;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.location-vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── Chatbot ───────────────────────────────────────────────── */
.chatbot-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10000;
}

.chatbot-toggle {
  border-radius: 6px;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: #fff;
}

@media (max-width: 1199.98px) {
  /* Round icon on phones and tablets: the pill covered form fields. */
  .chatbot-toggle { width: 3.25rem; height: 3.25rem; padding: 0; display: inline-grid; place-items: center; font-size: 1.35rem; }
  .chatbot-toggle-label { display: none; }
}

.chatbot-toggle:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chatbot-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  width: min(380px, 92vw);
  height: min(520px, calc(100vh - 7rem));
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.chatbot-panel.is-open {
  display: flex;
  flex-direction: column;
}

.chatbot-body {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.chatbot-message {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.45;
}

.chatbot-message.user {
  background: var(--navy-mid);
  color: #fff;
  align-self: flex-end;
}

.chatbot-message.assistant { align-self: flex-start; }
.chatbot-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
.chatbot-message.user .chatbot-link { color: #fff; text-decoration: underline; }
.chatbot-link:hover { opacity: 0.8; }
.chatbot-sources { margin-top: 0.4rem; font-size: 0.75rem; color: var(--text-light); }

/* Inline confirm/cancel buttons for a pending agent action */
.chatbot-confirm {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.chatbot-confirm-btn {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.chatbot-confirm-btn.is-yes { background: var(--accent); color: #fff; }
.chatbot-confirm-btn.is-no {
  background: transparent;
  border-color: var(--border, #d0d4da);
  color: var(--text);
}
.chatbot-confirm-btn:hover { opacity: 0.85; }

/* Typing indicator (3 bouncing dots) */
.chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.chatbot-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chatbotBounce 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

@media (max-width: 576px) {
  .chatbot-widget { right: 1rem; bottom: 1rem; }
  .chatbot-panel {
    right: 0.5rem;
    bottom: 4rem;
    width: calc(100vw - 1rem);
    height: min(480px, calc(100vh - 5.5rem));
  }
}

/* ── Footer (redesigned — navy bg) ────────────────────────── */
footer.footer {
  background: var(--navy) !important;
  border-top: 3px solid var(--amber) !important;
  color: rgba(255, 255, 255, 0.7);
}

footer.footer h5,
footer.footer .fw-bold,
footer.footer .fw-semibold {
  color: #fff;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-link:hover { color: var(--amber); }

.footer-contact .footer-link {
  display: inline-flex;
  align-items: center;
}

.footer-newsletter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(74, 163, 217, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-payment-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-payment-icons i {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast);
}

.footer-payment-icons i:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Card hover shadow (pieces, categories) ──────────────── */
.card-hover-shadow {
  transition: box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
  border: 1px solid var(--border);
}
.card-hover-shadow:hover {
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
  transform: translateY(-2px);
}

/* ── Pièces détachées — catalogue pages ────────────────────── */
.parts-category-card .card-body {
  transition: background var(--duration-normal) ease;
}
.parts-category-card:hover .card-body {
  background: var(--surface-alt);
}
.parts-category-card .bi {
  color: var(--blue) !important;
  transition: transform var(--duration-normal) ease;
}
.parts-category-card:hover .bi {
  transform: scale(1.15);
}

.parts-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease, border-color var(--duration-normal) ease;
}
.parts-product-card:hover {
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
  transform: translateY(-3px);
  border-color: rgba(74, 163, 217, 0.3);
}
.parts-product-card .card-img-top,
.parts-product-card .parts-img-placeholder {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.parts-price {
  color: var(--blue) !important;
  font-weight: 700;
}
.parts-sidebar .card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}
.parts-sidebar h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.parts-sidebar a {
  color: var(--ink);
  font-size: 0.9rem;
}
.parts-sidebar a:hover {
  color: var(--blue);
}
.parts-sidebar a.fw-bold {
  color: var(--blue) !important;
}
.parts-vehicle-banner {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.parts-detail-refs .badge {
  background: var(--surface-alt) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
  font-weight: 500;
  font-size: 0.8rem;
}
.parts-compat-table thead {
  background: var(--surface-alt);
}
.parts-compat-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Full-bleed: break out of parent .container ───────────── */
.full-bleed {
  width: 100%;
  width: 100dvw;   /* dynamic viewport width, excludes scrollbar */
  position: relative;
  left: 50%;
  margin-left: -50%;
  margin-left: -50dvw;
}

/* ── Misc utilities ────────────────────────────────────────── */
.bg-soft { background: var(--surface-alt); }
.text-accent { color: var(--blue) !important; }
.subtle-link { color: var(--amber-dark); text-decoration: none; font-weight: 600; }
.subtle-link:hover { color: var(--blue); text-decoration: underline; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 0.3rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Override Bootstrap components ─────────────────────────── */

/* Pagination */
.page-link {
  color: var(--navy-mid);
  border-color: var(--border);
  background: var(--surface);
  font-weight: 500;
}
.page-link:hover {
  color: var(--navy);
  background: var(--surface-alt);
  border-color: var(--border-mid);
}
.page-item.active .page-link {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}
.page-item.disabled .page-link {
  color: var(--text-light);
  background: var(--surface-alt);
}

/* Form checkboxes */
.form-check-input:checked {
  background-color: var(--amber);
  border-color: var(--amber);
}
.form-check-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(74, 163, 217, 0.18);
}

/* Alerts */
.alert-info {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text-muted);
}
.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}
.alert-light {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}

/* Table */
.table-light > tr > th,
.table-light > tr > td,
thead.table-light > tr > th {
  background: var(--surface-alt);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Bootstrap badge overrides */
.badge.text-bg-primary {
  background-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--navy-mid) !important;
}
.badge.text-bg-success {
  background-color: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
}
.badge.text-bg-warning {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #92400e !important;
}
.badge.text-bg-danger {
  background-color: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
}
.badge.text-bg-secondary {
  background-color: rgba(15, 23, 42, 0.07) !important;
  color: var(--text-muted) !important;
}
.badge.text-bg-dark {
  background-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--navy-mid) !important;
}

/* Dropdown */
.dropdown-item:active,
.dropdown-item.active {
  background: rgba(74, 163, 217, 0.1);
  color: var(--navy-mid);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--surface-alt);
  color: var(--navy-mid);
}

.table thead th { border-bottom-width: 1px; }
.table td, .table th { vertical-align: middle; }

/* ── Améliorations UI ──────────────────────────────────────── */

/* Scrollbar customisation */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Admin dashboard — responsive mobile ─────────────────── */

/* Nav header: horizontal scroll on small screens */
.admin-dashboard-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Admin tables: ensure horizontal scroll works */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table-wrap > .table {
  min-width: 700px;
}
.admin-table-wrap .col-actions { white-space: nowrap; }
.admin-table-wrap .col-price   { white-space: nowrap; }

@media (max-width: 767.98px) {
  /* Compact admin nav on mobile */
  .admin-dashboard-nav .btn-sm {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }
  .admin-dashboard-nav .vr { display: none !important; }

  /* Hide non-essential columns on mobile */
  .admin-hide-mobile { display: none !important; }

  /* Tighter table cells */
  .admin-table-wrap > .table th,
  .admin-table-wrap > .table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
  }

  /* Filter forms: full width buttons */
  .admin-filters .btn { width: 100%; }

  /* Pagination: smaller on mobile */
  .admin-table-wrap + .border-top .pagination .page-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Focus-visible ring accessible (amber) */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* Texte sélectionné */
::selection {
  background: rgba(74, 163, 217, 0.2);
  color: var(--navy-mid);
}

/* Selection indicator product cards */
.product-card:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}
.breadcrumb-item.active { color: var(--text-muted); }

/* Accordion arrow amber */
.accordion-button::after {
  filter: none;
}
.accordion-button:not(.collapsed)::after {
  filter: none;
}

/* Stock indicator dot */
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.stock-dot.in-stock  { background: #16a34a; }
.stock-dot.low-stock { background: #d97706; }
.stock-dot.out-stock { background: #dc2626; }

/* Quantity input clean */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* Recherche sidebar filter sticky */
@media (max-width: 767px) {
  .recherche-filters { position: static !important; }
}

/* ── HTMX progress bar (NProgress-style) ─────────────────── */
.htmx-indicator-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-amber);
  z-index: 9999;
  transition: width 0.4s var(--ease-out-expo);
  box-shadow: none;
}

.htmx-indicator-bar.is-active {
  width: 80%;
}

.htmx-indicator-bar.is-done {
  width: 100%;
  opacity: 0;
  transition: width 0.2s, opacity 0.3s 0.2s;
}

/* Loading overlay on product grid */
.htmx-loading-overlay {
  position: relative;
}

.htmx-loading-overlay.htmx-request::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.7);
  
  z-index: 10;
  border-radius: var(--radius);
  animation: fadeIn 0.15s ease;
}

.htmx-loading-overlay.htmx-request::before {
  content: '';
  position: absolute;
  top: min(50%, 180px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  /* Tyre seen from the side: tread blocks, sidewall, rim, five wheel nuts. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='none' stroke='%230f172a' stroke-width='6' stroke-dasharray='3.3 2.04'/%3E%3Ccircle cx='20' cy='20' r='14' fill='%231e293b'/%3E%3Ccircle cx='20' cy='20' r='9.5' fill='none' stroke='%23334155' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='7.5' fill='%23e2e8f0'/%3E%3Cg fill='%23475569'%3E%3Ccircle cx='20' cy='15.5' r='1.2'/%3E%3Ccircle cx='24.28' cy='18.61' r='1.2'/%3E%3Ccircle cx='22.65' cy='23.64' r='1.2'/%3E%3Ccircle cx='17.35' cy='23.64' r='1.2'/%3E%3Ccircle cx='15.72' cy='18.61' r='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: tyreSpin 0.9s linear infinite;
  z-index: 11;
}

@keyframes tyreSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .htmx-loading-overlay.htmx-request::before { animation: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Skeleton shimmer (loading placeholder) ──────────────── */
.skeleton {
  background: var(--surface-2);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  height: 300px;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Toast notifications ─────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: toastSlideIn 0.35s var(--ease-out-expo);
}

.toast-item.is-leaving {
  animation: toastSlideOut 0.25s var(--ease-out-expo) forwards;
}

.toast-item.toast-success { border-left: 3px solid var(--teal); }
.toast-item.toast-error   { border-left: 3px solid #ef4444; }
.toast-item.toast-info    { border-left: 3px solid var(--blue); }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ── Product detail — zoom image ─────────────────────────── */
.product-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: crosshair;
}

.product-zoom-wrap img {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ── Product detail — tabs ───────────────────────────────── */
.product-tabs .tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

@media (max-width: 400px) {
  .product-tabs .tab-btn { padding: 0.7rem 0.7rem; font-size: 0.85rem; white-space: nowrap; }
  .product-tabs .tab-btn .bi { display: none; }
}

.product-tabs .tab-btn:hover {
  color: var(--text);
}

.product-tabs .tab-btn.is-active {
  color: var(--amber-dark);
  border-bottom-color: var(--amber);
}

.product-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.product-tab-content.is-active {
  display: block;
}

/* ── Product detail — sticky mobile CTA ──────────────────── */
.product-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
  padding: 0.75rem 1rem;
  display: none;
}

@media (max-width: 991px) {
  .product-sticky-cta { display: block; }
}

/* La barre collante passait SOUS la barre de navigation mobile (z-index 1030,
   78 px) : le bas du bouton « Ajouter » tombait sur la nav. Et la bulle
   « Assistant IA » flottait sur le contenu : elle cachait le total du panier,
   la fin de « Livraison offerte… » et les pastilles de dimension. */
@media (max-width: 991px) {
  body:has(.product-sticky-cta) .chatbot-widget { bottom: 96px; }
}
/* Sur la fiche produit, la barre d'achat remplace la nav du bas : deux barres
   empilées mangeaient un quart d'écran. */
@media (max-width: 767px) {
  body:has(.product-sticky-cta) .mobile-bottom-nav { display: none; }
  .product-sticky-cta { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
  body:has(.product-sticky-cta) { padding-bottom: 120px; }
  body:has(.product-sticky-cta) .chatbot-panel { bottom: 10rem; height: min(440px, calc(100vh - 12rem)); }
}

/* Téléphones : la bulle « Assistant IA » se pose DANS la barre du bas (nav ou
   barre d'achat collante) au lieu de flotter sur le contenu. Elle garde le
   chat à portée sans jamais recouvrir un prix, un total ou un bouton. On
   réserve sa place à droite dans chaque barre ; sur la fiche produit, la
   bulle disparaît quand la barre d'achat s'efface (bouton principal à
   l'écran), faute de barre pour l'accueillir. */
@media (max-width: 767px) {
  body:not(:has(.product-sticky-cta)) .mobile-bottom-nav { padding-right: 3.5rem; }
  body:not(:has(.product-sticky-cta)) .chatbot-widget { right: 0.5rem; bottom: 0.35rem; }
  body:has(.product-sticky-cta) .product-sticky-cta > .d-flex { padding-right: 3.75rem; }
  body:has(.product-sticky-cta) .chatbot-widget { right: 0.5rem; bottom: 0.75rem; }
  body:has(.product-sticky-cta.is-parked) .chatbot-widget { display: none; }
  .chatbot-toggle { width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }
}

/* ── Quantity selector ───────────────────────────────────── */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.qty-selector button:hover { background: var(--surface-2); }

.qty-selector input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
}

/* ── Price accent bar ────────────────────────────────────── */
.price-block {
  position: relative;
  padding-left: 1rem;
}

.price-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-amber);
  border-radius: 2px;
}

/* ── Favorite button animation ───────────────────────────── */
.favorite-btn.is-bouncing i {
  animation: heartBounce 0.4s var(--ease-out-expo);
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ── Checkout progress bar ───────────────────────────────── */
.checkout-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--duration-normal);
  flex-shrink: 0;
}

.checkout-step.is-active .checkout-step-circle {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
}

.checkout-step.is-done .checkout-step-circle {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.checkout-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-step.is-active .checkout-step-label { color: var(--text); }

.checkout-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
}

.checkout-step-line.is-done {
  background: var(--teal);
}

/* Reserve d espace : le bouton IA flottant ne doit jamais recouvrir le contenu du footer (desktop). */
@media (min-width: 768px) {
  .footer { padding-bottom: 7rem; }
}

/* ── Mobile bottom nav ───────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: none;
  padding: 0.35rem 0;
}

@media (max-width: 767px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 128px; }
  /* The footer carries the tab-bar clearance, so no light band shows under it. */
  body:has(footer.footer) { padding-bottom: 0; }
  footer.footer { padding-bottom: calc(3rem + 128px) !important; }
  body:has(.product-sticky-cta):has(footer.footer) { padding-bottom: 0; }
  body:has(.product-sticky-cta) footer.footer { padding-bottom: calc(3rem + 120px) !important; }
  .chatbot-widget { bottom: 72px; }
  .chatbot-panel { bottom: 7.5rem; height: min(480px, calc(100vh - 9rem)); }
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  transition: color var(--duration-fast);
  min-width: 0;
}

.mobile-bottom-nav a i { font-size: 1.2rem; }

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.is-active {
  color: var(--amber-dark);
}

/* ── Mobile filter drawer ────────────────────────────────── */
.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.filter-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.filter-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 85vw);
  background: var(--surface);
  z-index: 1041;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  overflow-y: auto;
  padding: 1.5rem;
}

.filter-drawer.is-open {
  transform: translateX(0);
}

/* ── Newsletter success animation ────────────────────────── */
.newsletter-success .checkmark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.newsletter-success .checkmark svg {
  stroke: var(--teal);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter-success .checkmark-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.4s 0.2s var(--ease-out-expo) forwards;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* ── Mobile horizontal cards ─────────────────────────────── */
@media (max-width: 575px) {
  .product-card-horizontal {
    flex-direction: row;
  }

  .product-card-horizontal .product-thumb {
    width: 120px;
    min-height: auto;
    flex-shrink: 0;
  }

  .product-card-horizontal .product-thumb img {
    max-height: 80px;
  }
}

/* ── Cart empty state ────────────────────────────────────── */
.cart-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty-state i {
  font-size: 3rem;
  color: var(--border-mid);
  margin-bottom: 1rem;
  display: block;
}

/* ── Reveal animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.fade-up.is-visible,
.reveal.fade-up.reveal-visible {
  animation: fadeUp 0.6s ease forwards;
}

.reveal.slide-left.is-visible,
.reveal.slide-left.reveal-visible {
  animation: slideLeft 0.6s ease forwards;
}

.reveal.slide-right.is-visible,
.reveal.slide-right.reveal-visible {
  animation: slideRight 0.6s ease forwards;
}

.reveal.zoom-in.is-visible,
.reveal.zoom-in.reveal-visible {
  animation: zoomIn 0.6s ease forwards;
}

.reveal.blur-in.is-visible,
.reveal.blur-in.reveal-visible {
  animation: blurIn 0.6s ease forwards;
}

.reveal.scale-up.is-visible,
.reveal.scale-up.reveal-visible {
  animation: scaleUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hover-lift, .btn, .category-card,
  .product-card, .season-card,
  .hero-stagger-1, .hero-stagger-2, .hero-stagger-3, .hero-stagger-4, .hero-stagger-5,
  .hero-particle, .product-thumb img, .product-card::before,
  .toast-item, .checkmark-path {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .product-card .product-actions { opacity: 1; transform: none; }
}

/* ── Promo banner ──────────────────────────────────────────── */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1050;
  background: var(--navy);
  text-transform: uppercase;
}
.promo-banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.promo-banner-content::before {
  content: "\F193";
  font-family: "bootstrap-icons";
  font-size: 0.9rem;
  color: var(--amber);
}
.promo-banner-link {
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  background: var(--amber);
  color: var(--navy-deep) !important;
  padding: 0.15rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.promo-banner-link:hover {
  opacity: 0.9;
}
.promo-banner-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  padding: 0 0.25rem;
  transition: opacity 0.15s;
}
.promo-banner-close:hover {
  opacity: 1;
}

/* Reassurance bar */
.reassurance-bar {
  background: var(--surface-alt, #f8f9fa);
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text-muted, #6b7280);
}
.reassurance-bar i { color: var(--amber, #4AA3D9); }

/* ── Search autocomplete ── */
.search-autocomplete-wrapper { min-width: 220px; }
.search-autocomplete-input {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--navy);
  border-radius: 0.5rem 0 0 0.5rem !important;
}
.search-autocomplete-input::placeholder { color: rgba(18,10,68,0.55); }
.search-autocomplete-input:focus {
  background: #fff;
  border-color: var(--amber);
  color: var(--navy);
  box-shadow: 0 0 0 0.15rem rgba(74,163,217,0.25);
}
.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1055;
  background: #fff;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}
.search-suggestions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--navy, #1e293b);
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}
.search-suggestion-item:hover,
.search-suggestion-item:focus {
  background: #f8f9fa;
  color: var(--navy, #1e293b);
  text-decoration: none;
}
.search-suggestion-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 0.375rem;
  flex-shrink: 0;
  background: #f1f5f9;
  padding: 2px;
}
.search-suggestion-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.1rem;
}
.search-suggestion-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.search-suggestion-name {
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestion-meta {
  font-size: 0.72rem;
  color: #6b7280;
}
.search-suggestion-price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--amber, #4AA3D9);
  white-space: nowrap;
}
.search-suggestions-empty {
  padding: 0.75rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* ── B2B Landing Page ── */
.b2b-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.b2b-hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.b2b-hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e0;
  margin-bottom: 2rem;
  max-width: 560px;
}
.b2b-advantage-card {
  border: 1px solid #d8dee6;
  border-radius: 6px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.b2b-advantage-card:hover {
  box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10);
  transform: translateY(-2px);
}
.b2b-advantage-icon {
  font-size: 2.2rem;
  color: var(--amber, #4AA3D9);
}
.b2b-pricing-section {
  background: #f8f9fa;
}
.b2b-pricing-table th {
  background: #1a202c;
  color: #fff;
  font-weight: 600;
}
.b2b-pricing-table td {
  vertical-align: middle;
}
.b2b-reassurance {
  background: #f8f9fa;
  border-top: 1px solid #d8dee6;
}
@media (max-width: 768px) {
  .b2b-hero { padding: 2.5rem 0 2rem; }
  .b2b-hero-title { font-size: 1.7rem; }
  .b2b-hero-subtitle { font-size: 1rem; }
}

/* ── Product share buttons ─────────────────────── */
.product-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.product-share-whatsapp {
  color: #25d366;
  border: 1px solid #25d366;
  background: transparent;
}
.product-share-whatsapp:hover {
  background: #25d366;
  color: #fff;
}
.product-share-facebook {
  color: #1877f2;
  border: 1px solid #1877f2;
  background: transparent;
}
.product-share-facebook:hover {
  background: #1877f2;
  color: #fff;
}
.product-share-email {
  color: #6b7280;
  border: 1px solid #d1d5db;
  background: transparent;
}
.product-share-email:hover {
  background: #374151;
  border-color: #374151;
  color: #fff;
}

/* Bannière cookies ouverte : remonter le widget Assistant IA au-dessus */
body.cookie-banner-open .chatbot-widget { bottom: 84px; }
/* Phones: the banner is ~200 px tall and hides the bottom bar, so there is no
   place left to dock the chat without covering content. Hide it until the
   visitor answers the banner. */
@media (max-width: 767px) { body.cookie-banner-open .chatbot-widget { display: none; } }
/* Checkout on phones: the bubble covered form fields; the phone number stays in the header and footer. */
@media (max-width: 991.98px) { body:has(#checkout-form) .chatbot-widget { display: none; } }

/* ---------- Comparateur de pneus ---------- */
.cmp-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 2px 8px 2px 26px;
  font-size: 0.75rem;
}
.cmp-check .form-check-label {
  cursor: pointer;
  user-select: none;
  color: var(--text-muted);
}

.comparator-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
  border-top: 2px solid var(--sky);
  box-shadow: none;
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.comparator-table .comparator-label-col { min-width: 170px; }
.comparator-table .comparator-product-col { min-width: 180px; }
.comparator-img { max-width: 90px; max-height: 90px; object-fit: contain; }

.badge-eu { color: #fff; font-size: 0.85rem; padding: 0.35em 0.65em; }
.badge-eu-a { background: #16a34a; }
.badge-eu-b { background: #65a30d; }
.badge-eu-c { background: #f59e0b; color: #1e1e1e; }
.badge-eu-d { background: #f97316; }
.badge-eu-e,
.badge-eu-f,
.badge-eu-g { background: #dc2626; }

/* ── Tyre marking decoder (product page) ─────────────────── */
.tm { margin: 0.75rem 0 0; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.tm-chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  min-width: 2.75rem; padding: 0.35rem 0.6rem 0.3rem;
  background: var(--surface-2); color: var(--navy-mid);
  border: 1px solid var(--border-mid); border-radius: 6px;
  font: inherit; line-height: 1.1; cursor: help;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tm-chip-text { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }
.tm-chip-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; }
.tm-chip:hover, .tm-chip.is-active { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }
.tm-chip:hover .tm-chip-label, .tm-chip.is-active .tm-chip-label { color: #cbd5e1; }
.tm-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tm-help { min-height: 2.6em; margin: 0.5rem 0 0; font-size: 0.85rem; color: #334155; }
.tm-help-idle { color: #64748b; }
[x-cloak] { display: none !important; }

/* ── EU tyre label (regulation 2020/740) ─────────────────── */
.eu-label { width: 100%; margin-top: 0.9rem; }
.eu-label-summary { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.eu-label-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.6rem;
  border: 1px solid var(--border-mid); border-radius: 6px; background: #fff; color: #141a2a; font-size: 0.95rem;
}
.eu-label-chip > i { color: #64748b; }
.eu-label-chip small { color: #64748b; font-size: 0.72rem; }
.eu-label-badge {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.45rem; padding: 0 0.55rem 0 0.35rem;
  background: var(--eu); color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgba(0,0,0,.25);
  clip-path: polygon(0 0, calc(100% - 0.4rem) 0, 100% 50%, calc(100% - 0.4rem) 100%, 0 100%);
}
.eu-label-full { margin-top: 0.4rem; }
.eu-label-full > summary { cursor: pointer; font-size: 0.78rem; color: #64748b; list-style: none; }
.eu-label-full > summary::before { content: '\25B8'; display: inline-block; margin-right: 0.3rem; transition: transform .15s; }
.eu-label-full[open] > summary::before { transform: rotate(90deg); }
.eu-label-full[open] > summary { margin-bottom: 0.4rem; }
.eu-label-full[open] {
  max-width: 240px; padding: 0.5rem 0.6rem 0.6rem; background: #fff; border: 2px solid #141a2a; border-radius: 6px;
}
.eu-label-head { display: flex; justify-content: space-between; padding-bottom: 0.3rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--border-mid); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #141a2a; }
.eu-label svg { display: block; width: 100%; height: auto; }
.eu-label-scale + .eu-label-scale, .eu-label-noise { margin-top: 0.4rem; }
.eu-label-title { font: 600 11px/1 system-ui, sans-serif; fill: #141a2a; }
.eu-label-letter { font: 700 13px/1 system-ui, sans-serif; fill: #141a2a; }
.eu-label-scale .is-dim { opacity: 0.35; }
.eu-label-marker { fill: #141a2a; }
.eu-label-marker-text { font: 800 20px/1 system-ui, sans-serif; fill: #fff; }
.eu-label-icon { fill: #141a2a; }
.eu-label-icon-wave { fill: none; stroke: #141a2a; stroke-width: 2; stroke-linecap: round; }
.eu-label-db { font: 800 24px/1 system-ui, sans-serif; fill: #141a2a; }
.eu-label-db-unit { font-size: 13px; font-weight: 600; }
.eu-label-noise { border-top: 1px solid var(--border-mid); padding-top: 0.3rem; }
.eu-label-link { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: #64748b; text-decoration: none; }
.eu-label-link:hover { color: var(--blue); }

/* ── Tread divider (truck tyre rib grooves) ──────────────── */
.tread-divider {
  height: 16px; width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cg fill='none' stroke='%230f172a' stroke-opacity='0.13' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolyline points='0,3 6,8 12,3 18,8 24,3'/%3E%3Cpolyline points='0,10 6,15 12,10 18,15 24,10'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 24px 16px;
}
.tread-divider--dark {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cg fill='none' stroke='%2364748b' stroke-opacity='0.35' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolyline points='0,3 6,8 12,3 18,8 24,3'/%3E%3Cpolyline points='0,10 6,15 12,10 18,15 24,10'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Dimension link blocks (maillage) ─────────────────────── */
.maillage-dimensions { margin-top: 1.5rem; }
.maillage-dim-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin-bottom: 0.75rem; }
.maillage-dim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.maillage-dim {
  display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-mid); border-radius: 4px; background: #fff;
  color: #141a2a; text-decoration: none; transition: border-color .15s, background .15s, transform .15s;
}
.maillage-dim:hover, .maillage-dim:focus-visible { border-color: #4AA3D9; color: #141a2a; }
.maillage-dim-size { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.88rem; letter-spacing: 0; white-space: nowrap; }
.maillage-dim-count { font-size: 0.72rem; color: #64748b; }
.maillage-dim-arrow { display: none; }

/* Home: best-sellers as a card grid. */
.maillage-dimensions--cards { margin-top: 0; }
.maillage-dimensions--cards .maillage-dim-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
@media (max-width: 1199.98px) { .maillage-dimensions--cards .maillage-dim-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767.98px) { .maillage-dimensions--cards .maillage-dim-list { grid-template-columns: repeat(3, 1fr); } }
.maillage-dimensions--cards .maillage-dim {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 0.15rem;
  padding: 1rem 1.1rem 1rem 1.3rem; border-radius: 6px; overflow: hidden;
  box-shadow: none;
}
.maillage-dimensions--cards .maillage-dim::before {
  /* Tread-block stripe on the left edge, echoes the tread dividers. */
  content: ''; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--navy);
  opacity: .18; transition: opacity .15s;
}
.maillage-dimensions--cards .maillage-dim-size { font-size: 1.05rem; grid-column: 1; }
.maillage-dimensions--cards .maillage-dim-count { grid-column: 1; grid-row: 2; font-size: 0.78rem; }
.maillage-dimensions--cards .maillage-dim-arrow { display: block; grid-column: 2; grid-row: 1 / span 2; color: #94a3b8; transition: transform .15s, color .15s; }
.maillage-dimensions--cards .maillage-dim:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(18, 10, 68, 0.10); }
.maillage-dimensions--cards .maillage-dim:hover::before { opacity: .55; background: #4AA3D9; }
.maillage-dimensions--cards .maillage-dim:hover .maillage-dim-arrow { transform: translateX(3px); color: #4AA3D9; }
@media (max-width: 575.98px) {
  .maillage-dimensions--cards .maillage-dim-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .maillage-dimensions--cards .maillage-dim { padding: 0.8rem 0.8rem 0.8rem 1.1rem; }
  .maillage-dimensions--cards .maillage-dim-size { font-size: 0.92rem; }
  .maillage-dimensions--cards .maillage-dim-arrow { display: none; }
}
@media (max-width: 360px) {
  .maillage-dimensions--cards .maillage-dim { padding: 0.75rem 0.6rem 0.75rem 0.95rem; }
  .maillage-dimensions--cards .maillage-dim-size { font-size: 0.84rem; }
}

/* Footer (dark): quiet outline pills. */
.footer .maillage-dim-title { color: rgba(255, 255, 255, .55); }
.footer .maillage-dim { background: transparent; border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
.footer .maillage-dim:hover, .footer .maillage-dim:focus-visible { border-color: rgba(255, 255, 255, .5); color: #fff; }
.footer .maillage-dim-count { color: rgba(255, 255, 255, .45); }
@media (prefers-reduced-motion: reduce) {
  .maillage-dim, .maillage-dim-arrow { transition: none; }
  .maillage-dimensions--cards .maillage-dim:hover { transform: none; }
}

/* ── Load per axle (product page) ────────────────────────── */
.axl{margin-top:14px;border:1px solid var(--border-mid,#d3deee);border-radius: 6px;background:#fff;padding:12px 14px}
.axl-t{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#334155;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.axl-t i{color:#20709a;font-size:1rem}
.axl-t small{margin-left:auto;font-weight:600;letter-spacing:.02em;text-transform:none;color:#64748b;font-family: var(--font-body); font-variant-numeric: tabular-nums}
.axl-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:10px}
.axl-row{display:flex;align-items:center;gap:12px;background:var(--surface-2,#eef3fa);border:1px solid var(--border-mid,#d3deee);border-radius: 6px;padding:9px 12px}
.axl-row svg{flex-shrink:0}
.axl-txt{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.axl-k,.axl-c{white-space:nowrap}
.axl-k{font-size:.8rem;font-weight:700;color:#120a44}
.axl-c{font-size:.75rem;color:#64748b}
.axl-v{margin-left:auto;text-align:right;font-size:1.08rem;color:#120a44;line-height:1.1;white-space:nowrap;font-weight: 700}
.axl-v small{display:block;font-size:.66rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#64748b;margin-top:2px}
.axl-n{margin:9px 0 0;font-size:.74rem;color:#64748b}

/* ── Free-shipping progress (cart) and line (product page) ── */
.fsp{margin:0 0 1rem}
.fsp-text{font-size:.85rem;font-weight:600;color:#120a44;margin:0 0 .4rem;display:flex;align-items:center;gap:.4rem}
.fsp-text i{color:#20709a}
.fsp-bar{height:6px;border-radius: 6px;background:var(--surface-2,#eef3fa);border:1px solid var(--border-mid,#d3deee);overflow:hidden}
.fsp-fill{display:block;height:100%;border-radius: 6px;background:var(--sky,#4aa3d9);transition:width .3s ease}
.fsp.is-done .fsp-fill{background:#16a34a}
.fsp.is-done .fsp-text i{color:#16a34a}
.product-free-ship{margin:.6rem 0 0;font-size:.85rem;color:#334155;display:flex;align-items:center;gap:.4rem}
.product-free-ship i{color:#20709a}
@media (prefers-reduced-motion:reduce){.fsp-fill{transition:none}}

/* Returns page: refund terms table, label above value on phones. */
.refund-table th { width: 250px; }
@media (max-width: 576px) {
  .refund-table th, .refund-table td { display: block; width: auto; }
  .refund-table th { border-bottom: 0; padding-bottom: 0; }
}

/* Checkout : la barre de paiement collante remplace la nav du bas. Les deux
   étaient fixées en bas avec le même z-index ; la nav, plus loin dans le DOM,
   recouvrait le bouton Payer sur téléphone. */
@media (max-width: 991px) {
  body:has(#mobile-pay-bar) .chatbot-widget { bottom: 96px; }
}
@media (max-width: 767px) {
  body:has(#mobile-pay-bar) .mobile-bottom-nav { display: none; }
}
