/* ============================================================
   Garage Berntor - Stylesheet Principal
   Design Premium B2B | Blanc + Bleu foncé + Orange
   Polices: Ubuntu (texte) + Sofia Sans (titres)
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ─── Variables CSS ────────────────────────────────────────── */
:root {
  /* Palette principale */
  --color-primary:    #086788;   /* Cerulean */
  --color-primary-80: #043F54;   /* Cerulean foncé */
  --color-primary-60: #07A0C3;   /* Blue Green */
  --color-accent:     #F0C808;   /* Bright Amber */
  --color-accent-dark:#C4A406;
  --color-accent-light:#FFF1D0;  /* Papaya Whip */
  --color-white:      #ffffff;
  --color-bg:         #ffffff;
  --color-bg-soft:    #FFF8E9;
  --color-bg-grid:    #FFF1D0;

  /* Texte */
  --color-text:       #04303F;
  --color-text-mid:   #086788;
  --color-text-light: #07A0C3;
  --color-border:     #CDEAF1;
  --color-border-light:#E9F7FA;

  /* Statuts */
  --color-success:    #1a9b5e;
  --color-warning:    #F0C808;
  --color-error:      #DD1C1A;   /* Primary Scarlet */
  --color-info:       #07A0C3;

  /* Typographie */
  --font-display:     'Sofia Sans', sans-serif;
  --font-body:        'Ubuntu', sans-serif;

  /* Espacements */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Rayons */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full:9999px;

  /* Ombres */
  --shadow-xs:  0 1px 3px rgba(8,103,136,0.06);
  --shadow-sm:  0 2px 8px rgba(8,103,136,0.08);
  --shadow-md:  0 4px 16px rgba(8,103,136,0.10);
  --shadow-lg:  0 8px 32px rgba(8,103,136,0.12);
  --shadow-xl:  0 16px 48px rgba(8,103,136,0.14);

  /* Transitions */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-h:   72px;

  /* Container */
  --container:  1320px;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ─── Typographie ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ─── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

/* ─── Grid system ──────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
}

/* ─── Flex utils ───────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ─── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,200,8,0.35);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-60);
  border-color: var(--color-primary-60);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-soft);
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline-accent:hover {
  background: var(--color-accent);
  color: white;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.1rem 2.4rem; font-size: 1.05rem; font-weight: 600; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 0.6rem; border-radius: var(--radius-md); }
.btn-icon-round { padding: 0.6rem; border-radius: var(--radius-full); }

/* ─── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
  transition: box-shadow var(--transition);
}

/* Top bar */
.header-topbar {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding: 0.4rem 0;
}

.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.topbar-link:hover { color: var(--color-accent-light); }
.topbar-link svg { width: 13px; height: 13px; }

.gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 0.78rem;
  vertical-align: middle;
}

/* Header principal */
.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}
.header-logo img {
  height: 44px;
  width: auto;
}
.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.header-logo-text span {
  color: var(--color-accent);
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--color-bg-soft);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
  border-color: var(--color-primary-60);
  box-shadow: 0 0 0 3px rgba(8,103,136,0.08);
}

.search-input {
  flex: 1;
  padding: 0.62rem 1rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--color-text);
}
.search-input::placeholder { color: var(--color-text-light); }

.search-btn {
  padding: 0.62rem 1.1rem;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn:hover { background: var(--color-accent-dark); }
.search-btn svg { width: 18px; height: 18px; }

/* Suggestions de recherche */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-md);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--color-border-light);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--color-bg-soft); }
.suggestion-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg-grid);
}
.suggestion-name { font-size: 0.88rem; font-weight: 500; }
.suggestion-price { font-size: 0.8rem; color: var(--color-accent); font-weight: 600; }

/* Actions header */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  color: var(--color-text-mid);
  font-size: 0.7rem;
  font-weight: 500;
}
.header-action-btn:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.header-action-btn svg { width: 22px; height: 22px; }

/* Icône panier compacte — visible uniquement sur mobile, à côté du hamburger
   (sur desktop le panier est déjà dans .header-actions) */
.header-cart-mobile {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  color: var(--color-text-mid);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.header-cart-mobile:active { background: var(--color-border-light); color: var(--color-primary); }
.header-cart-mobile svg { width: 20px; height: 20px; }
.header-cart-mobile .header-badge { top: -4px; right: -4px; }

.header-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--color-accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ─── NAVIGATION ───────────────────────────────────────────── */
.header-nav {
  background: var(--color-primary);
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1rem 1.1rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}
.nav-link svg { width: 14px; height: 14px; opacity: 0.7; }

/* Mega-menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 640px;
  background: var(--color-white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 500;
  border-top: 3px solid var(--color-accent);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-group-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.mega-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--color-text);
  transition: color var(--transition);
}
.mega-link:hover { color: var(--color-accent); }
.mega-link svg { width: 14px; height: 14px; color: var(--color-text-light); }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Le menu mobile complet (.mobile-nav, .mobile-nav-close, .mobile-nav-link…)
   est défini plus bas, dans la section "Menu mobile (slide-in amélioré)". */

/* ─── HERO BANNER ──────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: var(--color-primary);
}

.hero-slider {
  position: relative;
  height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,103,136,0.88) 0%, rgba(8,103,136,0.5) 60%, transparent 100%);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 640px;
  padding: var(--space-xl) 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}
.hero-title span { color: var(--color-accent-light); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Contrôles slider */
.hero-controls {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: var(--space-sm);
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: var(--color-accent);
  width: 24px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  pointer-events: none;
}
.hero-arrow {
  pointer-events: all;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.hero-arrow svg { width: 20px; height: 20px; }

/* ─── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: var(--space-4xl) 0;
}
.section-sm { padding: var(--space-3xl) 0; }
.section-bg-soft { background: var(--color-bg-soft); }
.section-bg-grid {
  background-color: var(--color-bg-grid);
  background-image:
    linear-gradient(rgba(8,103,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,103,136,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section-primary {
  background: var(--color-primary);
  color: white;
}
.section-primary h2 { color: white; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}
.section-desc {
  font-size: 1rem;
  color: var(--color-text-mid);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── CARTES CATÉGORIES ────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1200px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .categories-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-primary);
}
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,103,136,0.85) 0%, rgba(8,103,136,0.2) 60%, transparent 100%);
  transition: opacity var(--transition);
}
.category-card:hover::after { opacity: 0.9; }
.category-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
  width: 100%;
}
.category-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}
.category-card-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.category-card-icon {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}
.category-card:hover .category-card-icon {
  opacity: 1;
  transform: scale(1);
}
.category-card-icon svg { width: 16px; height: 16px; color: white; }

/* ─── CARTES PRODUITS ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-border);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-new     { background: var(--color-accent); color: white; }
.badge-used    { background: var(--color-primary); color: white; }
.badge-promo   { background: var(--color-success); color: white; }
.badge-rental  { background: var(--color-info); color: white; }

.product-card-actions {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card-action-btn {
  width: 34px;
  height: 34px;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.product-card-action-btn:hover { background: var(--color-accent); color: white; }
.product-card-action-btn.active { background: var(--color-accent); color: white; }
.product-card-action-btn svg { width: 15px; height: 15px; }

.product-card-body {
  padding: var(--space-md);
}
.product-card-brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-name:hover { color: var(--color-primary); }

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-sm);
}
.product-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.15rem 0.5rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--color-text-mid);
}
.product-spec-tag svg { width: 11px; height: 11px; }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-soft);
}
.product-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.product-price-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}
.product-price-old {
  font-size: 0.78rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}
.product-price-vat {
  font-size: 0.7rem;
  color: var(--color-text-light);
}
.product-add-btn {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.product-add-btn:hover {
  background: var(--color-accent-dark);
  transform: scale(1.08);
}
.product-add-btn svg { width: 18px; height: 18px; }

/* ─── STATS ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  background: var(--color-white);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: background var(--transition);
}
.stat-item:hover { background: var(--color-bg-soft); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.stat-number span { color: var(--color-accent); }
.stat-label {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  font-weight: 500;
}

/* ─── MARQUES ──────────────────────────────────────────────── */
.brands-track {
  overflow: hidden;
  position: relative;
}
.brands-track::before,
.brands-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
}
.brands-track::before { left: 0; background: linear-gradient(to right, var(--color-bg-soft), transparent); }
.brands-track::after  { right: 0; background: linear-gradient(to left, var(--color-bg-soft), transparent); }

.brands-scroll {
  display: flex;
  gap: var(--space-2xl);
  animation: scroll-brands 30s linear infinite;
  width: max-content;
}
.brands-scroll:hover { animation-play-state: paused; }
@keyframes scroll-brands {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 var(--space-xl);
  filter: grayscale(1) opacity(0.5);
  transition: all var(--transition);
}
.brand-logo-item:hover { filter: grayscale(0) opacity(1); }
.brand-logo-item img { height: 40px; width: auto; object-fit: contain; }

/* ─── SERVICES ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: var(--color-bg-soft);
}
.service-icon svg { width: 28px; height: 28px; color: var(--color-primary); }
.service-card:hover .service-icon {
  background: var(--color-accent);
}
.service-card:hover .service-icon svg { color: white; }
.service-icon { transition: background var(--transition); }
.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.service-desc { font-size: 0.9rem; color: var(--color-text-mid); }

/* ─── AVIS ─────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
}
.review-stars svg {
  width: 16px;
  height: 16px;
  fill: #f4b800;
  color: #f4b800;
}

.review-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-name { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.review-date { font-size: 0.75rem; color: var(--color-text-light); }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  gap: var(--space-md);
}
.faq-item.open .faq-question { color: var(--color-primary); background: var(--color-bg-soft); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-accent); }
.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ─── NEWSLETTER ───────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-60) 100%);
  padding: var(--space-4xl) 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}
@media (max-width: 900px) {
  .newsletter-inner { flex-direction: column; text-align: center; }
}
.newsletter-text h2 { color: white; }
.newsletter-text p { color: rgba(255,255,255,0.75); }
.newsletter-form-wrap {
  flex: 1;
  min-width: 0;
}
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 1.25rem;
}
.newsletter-input {
  flex: 1;
  color: white;
  font-size: 0.9rem;
  background: transparent;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: var(--space-4xl) 0 var(--space-3xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}
@media (max-width: 1100px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  margin-bottom: var(--space-lg);
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-accent); color: white; }
.footer-social svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover { color: var(--color-accent-light); }
.footer-link svg { width: 13px; height: 13px; opacity: 0.6; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-md);
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ─── COOKIES POPUP ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-white);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -4px 32px rgba(8,103,136,0.15);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
@media (max-width: 768px) { .cookie-inner { flex-direction: column; align-items: flex-start; gap: var(--space-lg); } }

.cookie-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-icon svg { width: 24px; height: 24px; color: var(--color-accent); }

.cookie-text { flex: 1; min-width: 0; }
.cookie-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.cookie-text p { font-size: 0.85rem; color: var(--color-text-mid); margin: 0; }
.cookie-text a { color: var(--color-accent); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-settings {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8,103,136,0.6);
  backdrop-filter: blur(4px);
}
.cookie-settings.open { display: flex; }
.cookie-settings-modal {
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-2xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: var(--space-md);
}
.cookie-toggle-info { flex: 1; }
.cookie-toggle-info strong { font-size: 0.9rem; color: var(--color-text); }
.cookie-toggle-info p { font-size: 0.8rem; color: var(--color-text-mid); margin: 2px 0 0; }

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: var(--radius-full);
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: var(--shadow-xs);
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { background: var(--color-accent); cursor: not-allowed; opacity: 0.7; }

/* ─── FLASH MESSAGES ───────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  right: var(--space-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 380px;
}
.flash-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  animation: flash-in 0.3s ease;
}
@keyframes flash-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.flash-message.success { border-color: var(--color-success); }
.flash-message.error   { border-color: var(--color-error); }
.flash-message.info    { border-color: var(--color-info); }
.flash-message.warning { border-color: var(--color-warning); }
.flash-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.flash-message.success .flash-icon { color: var(--color-success); }
.flash-message.error   .flash-icon { color: var(--color-error); }
.flash-message.info    .flash-icon { color: var(--color-info); }
.flash-close {
  margin-left: auto;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* ─── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-sm) 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-mid); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-current { color: var(--color-text); font-weight: 500; }

/* ─── SIDEBAR FILTRES ──────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 992px) { .shop-layout { grid-template-columns: 1fr; } }

.sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
}
.sidebar-block {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}
.sidebar-block:last-child { border-bottom: none; }
.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* Bouton toggle filtres — visible uniquement sur mobile */
.sidebar-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
}
.sidebar-mobile-toggle svg { transition: transform .25s; flex-shrink: 0; }
.sidebar-mobile-toggle.open svg { transform: rotate(180deg); }
.sidebar-mobile-toggle .filter-count-badge {
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}

@media (max-width: 992px) {
  .sidebar-mobile-toggle { display: flex; }
  .sidebar {
    position: static;
    max-height: 0;
    border: none;
    margin-bottom: 0;
    transition: max-height .3s ease;
  }
  .sidebar.sidebar-expanded {
    max-height: 2000px;
    border: 1px solid var(--color-border-light);
    margin-bottom: 1.25rem;
  }
}

/* ─── FICHE PRODUIT ────────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 1100px) { .product-layout { grid-template-columns: 1fr; } }

.product-gallery { position: sticky; top: calc(var(--header-h) + var(--space-lg)); }
.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-soft);
  margin-bottom: var(--space-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Espace client (Mein Konto) : sidebar + contenu */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl, 2rem);
  align-items: start;
}
.account-sidebar {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
@media (max-width: 860px) {
  .account-layout  { grid-template-columns: 1fr; }
  .account-sidebar { position: static; top: auto; }
}

/* Page location (Vermietung) : contenu + formulaire de réservation */
.rental-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl, 2rem);
  align-items: start;
}
.rental-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
@media (max-width: 900px) {
  .rental-layout  { grid-template-columns: 1fr; }
  .rental-sidebar { position: static; top: auto; }
}

/* Prix produit */
.product-price-block {
  padding: var(--space-xl);
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}
.product-main-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}
.product-promo-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-display);
}

/* ─── PANIER SIDEBAR ───────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  background: white;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,103,136,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}
.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: var(--space-lg); }
.cart-drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

/* ─── ADMIN ────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-soft);
}
.admin-sidebar {
  width: 260px;
  background: var(--color-primary);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-content { padding: var(--space-xl); flex: 1; }

.admin-nav-brand {
  padding: var(--space-lg) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-nav-group-title {
  padding: var(--space-md) var(--space-lg) var(--space-xs);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem var(--space-lg);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.07); color: white; }
.admin-nav-link.active { background: rgba(255,255,255,0.1); color: white; border-left-color: var(--color-accent); }
.admin-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}
.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* KPI dashboard */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}
.kpi-label { font-size: 0.78rem; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.07em; }
.kpi-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--color-primary); }
.kpi-trend { font-size: 0.8rem; color: var(--color-success); font-weight: 500; }

/* Table */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 0.75rem var(--space-md);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-light);
}
.data-table td {
  padding: 0.9rem var(--space-md);
  font-size: 0.88rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--color-bg-soft); }

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pending  { background: rgba(212,160,23,0.1);  color: var(--color-warning); }
.status-success  { background: rgba(26,155,94,0.1);   color: var(--color-success); }
.status-error    { background: rgba(192,57,43,0.1);   color: var(--color-error); }
.status-info     { background: rgba(41,128,185,0.1);  color: var(--color-info); }

/* ─── FORMULAIRES ──────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.form-label .required { color: var(--color-error); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--color-primary-60);
  box-shadow: 0 0 0 3px rgba(8,103,136,0.08);
  outline: none;
}
.form-control::placeholder { color: var(--color-text-light); }
.form-control.error { border-color: var(--color-error); }
.form-hint { font-size: 0.78rem; color: var(--color-text-light); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--color-error); margin-top: 4px; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-2xl) 0;
  flex-wrap: wrap;
}
.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}
.page-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-item.active { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.page-item.disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── SIMULATEUR FINANCEMENT ───────────────────────────────── */
.financing-widget {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  color: white;
}
.financing-result {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
}
.financing-monthly {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
}
.financing-label { font-size: 0.85rem; opacity: 0.75; }

/* Slider financement */
.range-slider {
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ─── LOADER ───────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── UTILITAIRES ──────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-accent  { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-light); }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.font-bold    { font-weight: 700; }
.font-display { font-family: var(--font-display); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.5s ease forwards; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── INSTALL WIZARD ───────────────────────────────────────── */
.install-page {
  min-height: 100vh;
  background: var(--color-bg-grid);
  background-image:
    linear-gradient(rgba(8,103,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,103,136,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}
.install-card {
  width: 100%;
  max-width: 680px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.install-header {
  background: var(--color-primary);
  padding: var(--space-2xl);
  text-align: center;
}
.install-header h1 { color: white; font-size: 1.6rem; }
.install-header p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.install-body { padding: var(--space-2xl); }
.install-step {
  display: none;
  animation: fade-up 0.3s ease;
}
.install-step.active { display: block; }

.install-progress {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.install-step-dot {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  transition: background var(--transition);
}
.install-step-dot.done { background: var(--color-accent); }

/* ╔══════════════════════════════════════════════════════════════
   ║  RESPONSIVE MOBILE — Garage Berntor
   ║  Breakpoints : 1100 · 900 · 768 · 600 · 480 · 380
   ╚══════════════════════════════════════════════════════════════ */

/* ─── 1100px — tablet paysage ─────────────────────────────── */
@media (max-width: 1100px) {
  .kpi-grid             { grid-template-columns: repeat(2, 1fr); }
  .footer-top           { grid-template-columns: 1fr 1fr; }
  .product-layout       { grid-template-columns: 1fr; }
  .product-gallery      { position: static; top: auto; } /* la galerie sticky n'a de sens qu'en layout 2 colonnes */
  .pay4x-wrap           { grid-template-columns: 1fr; gap: 2rem; }
  .pay4x-visual         { order: -1; }
  .guarantee-grid       { grid-template-columns: repeat(2, 1fr); }
  .how-grid             { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .how-connector        { display: none; }
  .gallery-mosaic       { grid-template-rows: 320px 180px; }
}

/* ─── 900px — tablet portrait ────────────────────────────── */
@media (max-width: 900px) {
  .categories-grid      { grid-template-columns: repeat(2, 1fr); }
  .products-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-grid        { grid-template-columns: 1fr; }
  .reviews-grid         { grid-template-columns: 1fr; }
  .hero-slider          { height: 68vh; min-height: 380px; }
  .guarantee-trust      { gap: 1.25rem; }
  .guarantee-trust-sep  { display: none; }

  /* Galerie mosaic : colonne unique */
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 180px 220px;
  }
  .gallery-main  { grid-column: 1; grid-row: 1; }
  .gallery-col   { grid-column: 1; grid-row: 2; flex-direction: row; height: 180px; }
  .gallery-strip { grid-column: 1; grid-row: 3; }
}

/* ─── 768px — mobile large ───────────────────────────────── */
@media (max-width: 768px) {
  /* ── Variables mobiles ── */
  :root {
    --header-h:   60px;
    --space-3xl:  2.5rem;
    --space-4xl:  3.5rem;
  }

  /* ── Container ── */
  .container { padding: 0 1rem; }

  /* ── Typographie ── */
  .section-title  { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-desc   { font-size: 0.9rem; }
  .section        { padding: 2.5rem 0; }
  .section-header { margin-bottom: 1.75rem; }

  /* ── Header ── */
  .header-topbar  { display: none; }
  .header-actions { display: none; }
  .header-nav     { display: none; }
  .header-cart-mobile { display: flex; }
  .mobile-menu-btn{ display: flex; flex-shrink: 0; }

  .header-main .container {
    gap: 0.5rem;
    padding: 0 0.9rem;
  }
  .header-logo img       { height: 30px; }
  .header-logo-text      { font-size: 1.05rem; }

  /* Barre de recherche compacte */
  .header-search  { flex: 1; min-width: 0; max-width: none; }
  .search-input   { padding: 0.5rem 0.75rem; font-size: 0.82rem; border-radius: var(--radius-full) 0 0 var(--radius-full); }
  .search-btn     { padding: 0.5rem 0.9rem; border-radius: 0 var(--radius-full) var(--radius-full) 0; }
  .search-btn svg { width: 16px; height: 16px; }

  /* ── Hero ── */
  .hero-slider    { height: 65vh; min-height: 360px; max-height: 520px; }
  .hero-content   { padding-top: 60px; }
  .hero-eyebrow   { font-size: 0.7rem; padding: 4px 12px; }
  .hero-title     { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .hero-subtitle  { font-size: 0.88rem; max-width: 100%; }
  .hero-actions   { gap: 0.6rem; }
  .hero-actions .btn { padding: 0.7rem 1.25rem; font-size: 0.88rem; }
  .hero-btn-ghost { display: none; }  /* Masquer le 2e bouton pour gagner de la place */
  .hero-arrow     { display: none; }
  .hero-dots      { bottom: 1.25rem; }
  .hero-progress  { height: 2px; }

  /* ── Catégories ── */
  .cat-grid        { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat-card-visual { height: 130px; }
  .cat-icon-wrap   { width: 68px; height: 68px; }
  .cat-icon-wrap svg { width: 38px; height: 38px; }
  .cat-card-body   { padding: 0.8rem; }
  .cat-card-name   { font-size: 0.88rem; }

  /* ── Comment ça marche ── */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .how-step {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    margin-bottom: 0.75rem;
  }
  .how-icon-wrap { flex-shrink: 0; width: 52px; height: 52px; margin-bottom: 0; }
  .how-num       { display: none; }
  .how-title     { font-size: 0.92rem; margin-bottom: 4px; }
  .how-desc      { font-size: 0.8rem; }
  .how-img-strip { grid-template-columns: 1fr; }
  .how-img-item  { height: 180px; }
  .how-cta       { flex-direction: column; }
  .how-cta .btn  { width: 100%; justify-content: center; }

  /* ── Paiement 4× ── */
  .pay4x-wrap    { grid-template-columns: 1fr; gap: 1.5rem; }
  .pay4x-visual  { order: -1; }
  .pay4x-card    { padding: 1.25rem; }
  .pay4x-card > div:first-of-type { font-size: 0.7rem; }
  .pay4x-card > [style*="2rem"]   { font-size: 1.5rem; }
  .pay4x-steps   { gap: 0.5rem; }
  .pay4x-step    { padding: 0.6rem 0.8rem; }

  /* ── Garantie ── */
  .guarantee-grid         { grid-template-columns: 1fr; gap: 0.75rem; }
  .guarantee-card         { padding: 1.25rem; }
  .guarantee-icon-wrap    { width: 48px; height: 48px; margin-bottom: 0.85rem; }
  .guarantee-icon-wrap svg { width: 22px; height: 22px; }
  .guarantee-card h3      { font-size: 0.95rem; }
  .guarantee-card p       { font-size: 0.82rem; }
  .guarantee-trust        { padding: 1.25rem; gap: 1rem; flex-wrap: wrap; border-radius: var(--radius-lg); }
  .guarantee-trust-item   { flex: 1 1 130px; justify-content: flex-start; padding: 0.25rem 0; }

  /* ── Galerie ── */
  .gallery-mosaic { grid-template-rows: 220px 160px 150px; gap: 3px; }
  .gallery-col    { height: 160px; }
  .gallery-strip  { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip-item { height: 150px; }
  .gallery-overlay { opacity: 1; }
  .gallery-label-text { font-size: 0.72rem; }

  /* ── Produits vedette ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-card-body    { padding: 0.9rem; }
  .product-card-title   { font-size: 0.88rem; -webkit-line-clamp: 2; }
  .product-card-price   { font-size: 1.1rem; }
  .product-card-actions { gap: 0.4rem; }

  /* ── Panier drawer ── */
  .cart-drawer { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; top: auto; bottom: 0; max-height: 85vh; }

  /* ── Shop layout (catalog) ── */
  .shop-layout { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-top          { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-brand p      { font-size: 0.82rem; }

  /* ── Cookie banner ── */
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-actions .btn { width: 100%; justify-content: center; }
}

/* ─── 600px — mobile standard ───────────────────────────── */
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .kpi-grid   { grid-template-columns: 1fr; }

  /* Produits : 1 colonne sous 600px */
  .products-grid { grid-template-columns: 1fr; }

  /* Catégories : garder 2 colonnes mais plus compactes */
  .cat-grid        { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .cat-card-visual { height: 110px; }
  .cat-icon-wrap   { width: 56px; height: 56px; }

  /* Garantie trust : 2 colonnes */
  .guarantee-trust-item { flex: 1 1 45%; }

  /* Galerie : simplifier */
  .gallery-mosaic { grid-template-rows: 200px 150px auto; }
  .gallery-strip  { height: 130px; }
  .gallery-strip-item { height: 130px; }

  /* Admin sidebar */
  .admin-sidebar { display: none; }
  .admin-layout  { flex-direction: column; }
}

/* ─── 480px — petit mobile ───────────────────────────────── */
@media (max-width: 480px) {
  :root { --header-h: 56px; }

  .header-logo img    { height: 26px; }
  .header-logo-text   { font-size: 0.95rem; }
  .search-input       { padding: 0.42rem 0.6rem; font-size: 0.78rem; }
  .search-btn         { padding: 0.42rem 0.75rem; }

  .hero-slider  { height: 58vh; min-height: 320px; }
  .hero-title   { font-size: 1.4rem; }
  .hero-subtitle{ display: none; }
  .hero-eyebrow { display: none; }
  .hero-content { padding-top: 56px; align-items: flex-end; padding-bottom: 3rem; }
  .hero-dots    { bottom: 0.75rem; }

  .section-title  { font-size: 1.35rem; }
  .section-eyebrow{ font-size: 0.65rem; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .cat-card-visual { height: 95px; }
  .cat-icon-wrap   { width: 48px; height: 48px; }
  .cat-card-name   { font-size: 0.8rem; }
  .cat-card-count  { font-size: 0.7rem; }

  .how-step  { padding: 0.85rem; }
  .how-title { font-size: 0.88rem; }
  .how-icon-wrap { width: 44px; height: 44px; }

  .guarantee-card { padding: 1rem; }
  .guarantee-trust { padding: 1rem; }
  .guarantee-trust-item { flex: 1 1 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 0; }
  .guarantee-trust-item:last-child { border-bottom: none; }
  .guarantee-trust svg { width: 22px; height: 22px; }

  .pay4x-step { padding: 0.5rem 0.7rem; gap: 0.6rem; }
  .pay4x-step-num { width: 24px; height: 24px; font-size: 0.72rem; }

  /* Bouton "Zur Kasse" plein largeur */
  .hero-actions .btn { padding: 0.8rem 1rem; width: 100%; }
}

/* ─── 380px — très petit mobile ─────────────────────────── */
@media (max-width: 380px) {
  .container { padding: 0 0.75rem; }

  .header-main .container { padding: 0 0.75rem; gap: 0.4rem; }
  .search-input { font-size: 0.74rem; }

  .cat-grid { gap: 0.4rem; }
  .cat-card-visual { height: 85px; }
  .cat-icon-wrap   { width: 42px; height: 42px; }
  .cat-icon-wrap svg { width: 24px; height: 24px; }
  .cat-card-name   { font-size: 0.75rem; }
  .cat-card-body   { padding: 0.6rem; }

  .section-title { font-size: 1.2rem; }
  .hero-title    { font-size: 1.25rem; }
}

/* ─── Utilitaires mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }

  /* Boutons full-width sur mobile quand nécessaire */
  .btn-mobile-full { width: 100%; justify-content: center; }

  /* Touch feedback */
  a:active, button:active { opacity: 0.8; }

  /* Améliorer la lisibilité des formulaires sur iOS */
  input, select, textarea {
    font-size: 16px !important; /* Évite le zoom auto sur iOS */
  }
  .form-control { font-size: 16px !important; }

  /* Scroll fluide sur iOS */
  * { -webkit-overflow-scrolling: touch; }

  /* Supprimer le highlight bleu au tap sur mobile */
  * { -webkit-tap-highlight-color: rgba(240,200,8,0.15); }
}

/* ─── Améliorations tactile ──────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Zone tactile min 44px sur tous les éléments interactifs */
  .btn { min-height: 44px; }
  .nav-link { min-height: 44px; }
  .mobile-menu-btn { min-height: 44px; min-width: 44px; }
  .header-cart-mobile { min-height: 44px; min-width: 44px; }
  .cat-card { cursor: default; }

  /* Supprimer les hover effects (ils persistent au tap sur mobile) */
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .cat-card:hover      { transform: none; }
  .guarantee-card:hover{ transform: none; }

  /* Overlay galerie toujours visible (pas de hover) */
  .gallery-overlay { opacity: 1; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cookie-banner,
  .mobile-nav, .cart-drawer, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ─── Menu mobile (slide-in amélioré) ──────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  visibility: hidden;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 1.5rem);
}

/* Header sticky du panneau */
.mobile-nav-close {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.mobile-nav-close-btn {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.mobile-nav-close-btn:active { background: rgba(255,255,255,0.22); }

/* Recherche mobile */
.mobile-nav-search {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 1rem 1.25rem 0.5rem;
  flex-shrink: 0;
}
.mobile-nav-search input {
  flex: 1; background: transparent; border: none;
  padding: 0.72rem 1rem; color: white;
  font-size: 0.9rem; font-family: var(--font-body);
}
.mobile-nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.mobile-nav-search input:focus { outline: none; }
.mobile-nav-search button {
  background: var(--color-accent); border: none;
  width: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; transition: background .2s;
}
.mobile-nav-search button:active { background: var(--color-accent-dark); }

/* Quick actions */
.mobile-nav-quickactions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
}
.mobile-nav-qa {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.25rem 0.65rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.65rem; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; text-decoration: none; text-align: center;
  min-height: 62px;
  transition: background .2s, border-color .2s;
}
.mobile-nav-qa:active { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); }
.mobile-nav-qa-badge {
  position: absolute; top: 5px; right: 7px;
  background: var(--color-accent); color: white;
  font-size: 0.58rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* Navigation links */
.mobile-nav-links {
  display: flex; flex-direction: column;
  padding: 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex: 1;
}
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  color: white;
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; min-height: 52px;
  transition: color .2s;
}
.mobile-nav-link:active { color: var(--color-accent-light); }
.mobile-nav-link svg { opacity: .45; flex-shrink: 0; transition: transform .25s, opacity .2s; }
.mobile-nav-link.submenu-open { color: var(--color-accent-light); }
.mobile-nav-link.submenu-open svg { transform: rotate(180deg); opacity: .9; }

.mobile-nav-submenu {
  display: none; flex-direction: column;
  background: rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
  overflow: hidden;
}
.mobile-nav-sublink {
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  display: flex; align-items: center;
  min-height: 44px;
  transition: color .15s, background .15s;
}
.mobile-nav-sublink:last-child { border-bottom: none; }
.mobile-nav-sublink:active { color: white; background: rgba(255,255,255,0.08); }

/* Contact */
.mobile-nav-contact {
  display: flex; flex-direction: column;
  margin: 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1.5rem;
  flex-shrink: 0;
}
.mobile-nav-contact a {
  display: flex; align-items: center;
  gap: 0.75rem; color: rgba(255,255,255,0.6);
  font-size: 0.85rem; padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none; min-height: 44px;
  transition: color .2s;
}
.mobile-nav-contact a:last-child { border-bottom: none; }
.mobile-nav-contact a:active { color: rgba(255,255,255,0.9); }
.mobile-nav-contact svg { opacity: .55; flex-shrink: 0; }

/* ─── Safe area notch (iPhone) ───────────────────────────── */
@supports (padding: max(0px)) {
  .mobile-nav-inner { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .site-header     { padding-top: env(safe-area-inset-top, 0); }
}

/* ─── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cookie-banner, .flash-container,
  .mobile-nav, .cart-drawer { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
