/* ==========================================================================
   ENERP — DESIGN SYSTEM & STYLES (MODE CINÉMATIQUE SOMBRE & MODE LUMINEUX JOUR)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Cairo', 'Outfit', sans-serif;
  
  --brand-orange: #ff6a00;
  --brand-orange-hover: #e05c00;
  --brand-orange-light: #ff8533;
  --brand-orange-glow: rgba(255, 106, 0, 0.35);
  
  --brand-cyan: #00d4ff;
  --brand-cyan-glow: rgba(0, 212, 255, 0.25);
  --brand-emerald: #10b981;
  --brand-gold: #f59e0b;
  --brand-yellow: #f59e0b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   THÈMES : DARK (Cinématique Noir/Orange/Cyan) vs LIGHT (Lumineux Chaleureux)
   ========================================================================== */

body[data-theme="dark"] {
  --bg-page: #07090e;
  --bg-page-gradient: radial-gradient(circle at 50% -20%, #151e33 0%, #080a11 60%, #05070a 100%);
  --bg-surface: #0e131f;
  --bg-surface-elevated: #151c2c;
  --bg-surface-hover: #1c253b;
  --bg-glass: rgba(14, 19, 31, 0.75);
  --bg-glass-strong: rgba(14, 19, 31, 0.92);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(255, 106, 0, 0.3);
  --border-cyan: rgba(0, 212, 255, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 20px 40px -15px rgba(255, 106, 0, 0.2), 0 0 0 1px rgba(255, 106, 0, 0.4);
  --navbar-bg: rgba(7, 9, 14, 0.85);
  --badge-bg: rgba(255, 106, 0, 0.12);
  --badge-text: #ff8533;
}

body[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-page-gradient: radial-gradient(circle at 50% -10%, #fff7ed 0%, #f8fafc 60%, #f1f5f9 100%);
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.96);
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: rgba(255, 106, 0, 0.4);
  --border-cyan: rgba(0, 180, 220, 0.4);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-heading: #0f172a;
  
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 35px -10px rgba(255, 106, 0, 0.15), 0 0 0 1px var(--brand-orange);
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --badge-bg: #ffedd5;
  --badge-text: #c2410c;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  background-image: var(--bg-page-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-spacing {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 3.5rem 0;
  }
}

/* ==========================================================================
   ANIMATIONS & PARTICULES
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 8s infinite ease-in-out;
}

.blob-orange {
  background: radial-gradient(circle, var(--brand-orange-glow) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.blob-cyan {
  background: radial-gradient(circle, var(--brand-cyan-glow) 0%, transparent 70%);
  bottom: 50px;
  left: -100px;
}

/* ==========================================================================
   NAVBAR & LOGO ADAPTATIF
   ========================================================================== */

/* ==========================================================================
   NAVBAR & LOGO ADAPTATIF
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 15, 29, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  background: rgba(10, 15, 29, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img-wrapper {
  height: 52px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.logo-adaptive {
  height: 48px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.logo-adaptive:hover {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  text-decoration: none;
  padding: 6px 2px;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-orange);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.btn-icon:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: scale(1.06);
}

.lang-switch-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* 3-way language pill switcher */
.lang-switch-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 2px 3px;
  gap: 2px;
}

.lang-pill-btn {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
}

.lang-pill-btn:hover {
  color: var(--text-main);
}

.lang-pill-btn.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

body[data-theme="light"] .lang-switch-group {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body[data-theme="light"] .lang-pill-btn {
  color: #64748b;
}

body[data-theme="light"] .lang-pill-btn:hover {
  color: #0f172a;
}

body[data-theme="light"] .lang-pill-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--brand-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7 0%, var(--brand-cyan) 100%);
  color: #050b14 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--brand-cyan-glow);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.45);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border-accent);
}

.badge-cyan {
  background: rgba(0, 212, 255, 0.12);
  color: #00b4d8;
  border-color: var(--border-cyan);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 8rem 0 7rem;
  overflow: hidden;
  min-height: 600px;
  background: #07090e url('/assets/images/real/hero_video_poster.jpg') center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #facc15 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 660px;
}

/* Texte hero toujours clair (overlay sombre dans les deux modes) */
.hero-section .hero-title,
.hero-section h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-section .hero-desc {
  color: rgba(226, 232, 240, 0.92) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-section .stat-item h3 {
  color: var(--brand-orange) !important;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-section .stat-item p {
  color: rgba(203, 213, 225, 0.9) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-section .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.2) !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-orange);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-showcase {
  position: relative;
}

.hero-main-img-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--card-shadow);
  position: relative;
  background: var(--bg-surface);
}

.hero-main-img-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-img-card:hover img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatSlow 6s infinite ease-in-out;
}

/* ==========================================================================
   HERO VIDEO BACKGROUND
   ========================================================================== */

/* Conteneur vidéo — occupe tout l'arrière-plan du hero */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Poster visible IMMÉDIATEMENT en fond, avant le chargement de la vidéo */
  background: url('/assets/images/real/hero_video_poster.jpg') center/cover no-repeat;
}

/* Élément <video> — couvre tout le conteneur sans déformation */
.hero-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Affiche le poster immédiatement avant que la vidéo soit prête */
  background: url('/assets/images/real/hero_video_poster.jpg') center/cover no-repeat;
  /* Effet de révélation en fondu quand la vidéo démarre */
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Quand la vidéo est prête à jouer → fondu vers 1 */
.hero-video-bg.video-ready .hero-video-element {
  opacity: 1;
}

/* Si vidéo désactivée (mobile / reduced-motion) → on montre uniquement le poster via background */
.hero-video-bg.video-disabled .hero-video-element {
  display: none;
}

/* Overlay adaptatif : assure la lisibilité du texte sur la vidéo */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Mode sombre : dégradé sombre ~55% d'opacité */
[data-theme="dark"] .hero-video-overlay {
  background: linear-gradient(
    135deg,
    rgba(7, 9, 14, 0.62) 0%,
    rgba(10, 15, 30, 0.48) 50%,
    rgba(7, 9, 14, 0.55) 100%
  );
}

/* Mode clair : voile assez opaque avec teinte sombre pour garantir la lisibilité */
[data-theme="light"] .hero-video-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 20, 40, 0.55) 0%,
    rgba(15, 23, 42, 0.42) 50%,
    rgba(10, 20, 40, 0.52) 100%
  );
}

/* Bouton pause/lecture discret en bas à gauche du hero */
.hero-video-control-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.6;
}

.hero-video-control-btn:hover {
  opacity: 1;
  background: rgba(255, 106, 0, 0.7);
  border-color: rgba(255, 106, 0, 0.6);
  transform: scale(1.08);
}

[data-theme="light"] .hero-video-control-btn {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(30, 41, 59, 0.85);
}

[data-theme="light"] .hero-video-control-btn:hover {
  background: rgba(255, 106, 0, 0.85);
  color: white;
}

/* Sur mobile : masquer le bouton et l'élément vidéo (conserver l'image de fond poster et l'overlay) */
@media (max-width: 767px) {
  .hero-video-bg {
    display: block !important;
    background: url('/assets/images/real/hero_video_poster.jpg') center/cover no-repeat !important;
  }
  .hero-video-element {
    display: none !important;
  }
  .hero-video-control-btn {
    display: none !important;
  }
}

/* Respecter prefers-reduced-motion : afficher poster uniquement */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: block !important;
    background: url('/assets/images/real/hero_video_poster.jpg') center/cover no-repeat !important;
  }
  .hero-video-element {
    display: none !important;
  }
  .hero-video-control-btn {
    display: none !important;
  }
}



/* ==========================================================================
   CARDS & GRIDS (SOLUTIONS, PRODUITS, BLOG, SAV)
   ========================================================================== */

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.custom-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-bounce);
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--card-shadow-hover);
}

.solution-card-img {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.solution-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.custom-card:hover .solution-card-img img {
  transform: scale(1.08);
}

/* ==========================================================================
   CATALOGUE & SIDEBAR PAR CATÉGORIES (STRUCTURE D'ORIGINE)
   ========================================================================== */

.catalogue-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ============================================================
   MEGA MENU FLYOUT — 3 colonnes (Catégories → Sous-cats → Marques)
   ============================================================ */

.mega-menu-trigger {
  position: relative;
}

/* Le flyout s'ouvre au survol du li.mega-menu-trigger */
.mega-menu-flyout {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-45%);
  width: 780px;
  max-width: calc(100vw - 40px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
  z-index: 2000;
  overflow: hidden;
  flex-direction: row;
  animation: mmFadeIn 0.18s ease forwards;
}

.mega-menu-trigger:hover .mega-menu-flyout,
.mega-menu-flyout:hover {
  display: flex;
}

@keyframes mmFadeIn {
  from { opacity: 0; transform: translateX(-45%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-45%) translateY(0); }
}

/* Flèche décorative */
.mega-menu-flyout::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 44%;
  width: 14px;
  height: 14px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Colonnes communes */
.mm-col {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  overflow-y: auto;
  max-height: 480px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

/* COL 1 — Catégories */
.mm-col1 {
  width: 220px;
  min-width: 220px;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  border-radius: 1.25rem 0 0 1.25rem;
}

/* COL 2 — Sous-catégories / Marques */
.mm-col2 {
  width: 220px;
  min-width: 220px;
  border-right: 1px solid var(--border-subtle);
  padding: 1rem 0.5rem;
}

/* COL 3 — Produits par marque */
.mm-col3 {
  flex: 1;
  padding: 1rem 0.75rem;
}

/* En-tête colonne 1 */
.mm-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0.6rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mm-total-badge {
  background: rgba(255,106,0,0.12);
  color: var(--brand-orange);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Boutons Catégorie (col1) */
.mm-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 1rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.13s, color 0.13s;
  border-left: 3px solid transparent;
}

.mm-cat-btn:hover,
.mm-cat-btn.active {
  background: rgba(255,106,0,0.09);
  color: var(--brand-orange);
  border-left-color: var(--brand-orange);
}

.mm-cat-btn.mm-cat-all {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.mm-cat-btn.mm-cat-all:hover {
  color: var(--brand-orange);
}

.mm-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background 0.13s, color 0.13s;
}

.mm-cat-btn.active .mm-cat-icon,
.mm-cat-btn:hover .mm-cat-icon {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}

.mm-cat-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-cat-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.mm-cat-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.13s, transform 0.13s;
  transform: translateX(-4px);
}

.mm-cat-btn:hover .mm-cat-arrow,
.mm-cat-btn.active .mm-cat-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--brand-orange);
}

/* Titres de section dans col2/col3 */
.mm-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem 0.3rem;
  margin-top: 0.25rem;
}

.mm-section-brands {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
}

/* Panels col2 (flex column) */
.mm-col2-panel {
  flex-direction: column;
  gap: 2px;
  animation: mmFadeIn 0.15s ease forwards;
}

/* Boutons sous-catégorie (col2) */
.mm-subcat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.mm-subcat-btn:hover,
.mm-subcat-btn.active {
  background: rgba(255,106,0,0.09);
  color: var(--brand-orange);
}

.mm-subcat-arrow {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1;
}

/* Boutons Marque (col2 ou col3) */
.mm-brand-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.mm-brand-btn:hover,
.mm-brand-btn.active {
  background: rgba(255,106,0,0.09);
  color: var(--brand-orange);
}

.mm-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.12s;
}

.mm-brand-btn:hover .mm-brand-dot,
.mm-brand-btn.active .mm-brand-dot {
  opacity: 1;
}

.mm-brand-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-brand-count {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg-surface-elevated);
  border-radius: 999px;
  padding: 1px 5px;
  flex-shrink: 0;
}

/* Panels col3 (produits) */
.mm-col3-panel {
  flex-direction: column;
  gap: 3px;
  animation: mmFadeIn 0.15s ease forwards;
}

/* Boutons Produit (col3) */
.mm-prod-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.12s, color 0.12s, transform 0.12s;
}

.mm-prod-btn:hover {
  background: rgba(255,106,0,0.08);
  color: var(--brand-orange);
  transform: translateX(3px);
}

.mm-prod-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.mm-prod-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}

/* Voir tous */
.mm-see-all {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px dashed var(--border-accent);
  background: transparent;
  color: var(--brand-orange);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s;
}

.mm-see-all:hover {
  background: rgba(255,106,0,0.09);
}

/* États vides */
.mm-col2-empty,
.mm-col3-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}

.mm-empty {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.5rem;
}

/* Chevron dans le lien nav */
.mega-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.mega-menu-trigger:hover .mega-chevron {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

/* ── Responsive : masquer le flyout sur mobile ── */
@media (max-width: 992px) {
  .mega-menu-flyout {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
  }
}



/* Sidebar des catégories */
.catalogue-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 100px;
}

.catalogue-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.catalogue-sidebar-header h3 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.catalogue-total-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

[data-theme="dark"] .catalogue-total-badge {
  background: rgba(255, 106, 0, 0.2);
  color: #ffaa66;
}

.sidebar-cats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-tree-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
}

.cat-sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-size: 0.88rem;
  font-weight: 600;
}

.cat-sidebar-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-orange);
}

.cat-sidebar-btn.active {
  background: rgba(255, 106, 0, 0.12);
  border-left: 3.5px solid var(--brand-orange);
  color: var(--brand-orange);
  font-weight: 700;
}

/* Niveau 2 : Liste des Marques sous la Catégorie (s'ouvre au survol) */
.cat-sub-brands-list {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding-left: 1.25rem;
  margin: 4px 0 6px 14px;
  border-left: 2px solid var(--border-accent);
  animation: treeFadeIn 0.2s ease forwards;
}

.cat-tree-item:hover > .cat-sub-brands-list,
.cat-tree-item.is-expanded > .cat-sub-brands-list {
  display: flex;
}

.brand-tree-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.brand-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.brand-sub-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-orange);
  padding-left: 12px;
}

.brand-sub-btn.active {
  color: var(--brand-orange);
  font-weight: 700;
  background: rgba(255, 106, 0, 0.08);
}

/* Niveau 3 : Liste des Produits sous la Marque (s'ouvre au survol) */
.brand-sub-products-list {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding-left: 1rem;
  margin: 3px 0 5px 8px;
  border-left: 1.5px dashed var(--border-accent);
  animation: treeFadeIn 0.2s ease forwards;
}

.brand-tree-item:hover > .brand-sub-products-list,
.brand-tree-item.is-expanded > .brand-sub-products-list {
  display: flex;
}

.product-sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.product-sub-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-orange);
  transform: translateX(4px);
}

.product-sub-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.product-sub-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

@keyframes treeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.cat-sidebar-btn.active .cat-icon-box {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

.cat-btn-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-btn-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 6px;
}

.cat-sidebar-btn.active .cat-btn-count {
  color: var(--brand-orange);
}

/* Zone Principale du Catalogue */
.catalogue-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalogue-topbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-input-box {
  position: relative;
  width: 100%;
}

.search-input-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-box input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

body[dir="rtl"] .search-input-icon {
  left: auto;
  right: 1rem;
}

body[dir="rtl"] .search-input-box input {
  padding: 0.75rem 2.75rem 0.75rem 1rem;
}

.catalogue-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.catalogue-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .catalogue-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .catalogue-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CARTE PRODUIT D'ORIGINE (AVEC CHAMP MARQUE/FABRICANT)
   ========================================================================== */

.product-card-orig {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.product-card-orig:hover {
  transform: translateY(-5px);
  border-color: var(--brand-orange);
  box-shadow: var(--card-shadow-hover);
}

.product-img-holder {
  height: 210px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.product-img-holder img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card-orig:hover .product-img-holder img {
  transform: scale(1.06);
}

.product-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1rem;
}

.product-card-cat-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.product-tag-cat {
  font-size: 11px;
  font-weight: 800;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-tag-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-pdf-doc {
  width: 100%;
  background: #fef3c7;
  color: #78350f;
  border: none;
  border-radius: 0.75rem;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-pdf-doc:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

.btn-pdf-doc-disabled {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 4px 0;
}

.btn-fiche-detaillee {
  width: 100%;
  background: transparent;
  color: var(--brand-orange);
  border: 1.5px solid var(--brand-orange);
  border-radius: 0.75rem;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-fiche-detaillee:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

/* ==========================================================================
   ESPACE RÉCLAMATION (SAV & SUIVI TICKET)
   ========================================================================== */

.sav-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -20px;
  width: 2px;
  background: var(--border-medium);
}

body[dir="rtl"] .timeline-step:not(:last-child)::after {
  left: auto;
  right: 17px;
}

.timeline-step.done:not(:last-child)::after {
  background: var(--brand-emerald);
}

.timeline-icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-medium);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-step.done .timeline-icon-dot {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #ffffff;
}

.timeline-step.active .timeline-icon-dot {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 0 15px var(--brand-orange-glow);
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

/* ==========================================================================
   MODAL & POPUP
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2.25rem;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.5rem;
}

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

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

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & RAPPEL)
   ========================================================================== */

.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[dir="rtl"] .floating-actions {
  right: auto;
  left: 25px;
}

.fab-whatsapp {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
}

.fab-whatsapp:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.fab-call {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px var(--brand-orange-glow);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.fab-call:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brand-orange);
  padding-left: 4px;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   NAVIGATION MOBILE, TIROIR & MENU HAMBURGER
   ========================================================================== */

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 106, 0, 0.08);
}

.mobile-nav-toggle .hamburger-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Tiroir Menu Mobile (Smartphone & Tablette uniquement) */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.45);
  z-index: 2000;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

[dir="rtl"] .mobile-menu-drawer {
  right: auto;
  left: -320px;
  border-left: none;
  border-right: 1px solid var(--border-subtle);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.45);
  transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.open {
  right: 0 !important;
}

[dir="rtl"] .mobile-menu-drawer.open {
  left: 0 !important;
}

/* Masquer impérativement et absolument tout élément mobile sur desktop (>= 1025px) */
@media (min-width: 1025px) {
  .mobile-nav-toggle,
  .mobile-menu-drawer,
  .mobile-menu-backdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.15rem;
  box-sizing: border-box;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.mobile-menu-logo img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.mobile-menu-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  background: rgba(255, 106, 0, 0.1);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  min-height: 48px; /* Touch target min 44px */
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease;
}

.mobile-nav-link .mobile-nav-icon {
  font-size: 1.2rem;
  width: 24px;
  display: inline-flex;
  justify-content: center;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(255, 106, 0, 0.12);
  color: var(--brand-orange);
  transform: translateX(4px);
}

[dir="rtl"] .mobile-nav-link:hover, [dir="rtl"] .mobile-nav-link.active {
  transform: translateX(-4px);
}

.mobile-menu-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-quote-btn {
  width: 100%;
  padding: 12px;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-lang-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Tableau Responsive Helper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETTES & MOBILES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sav-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Prévention débordement horizontal */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 1rem;
    width: 100%;
  }

  .section-spacing {
    padding: 3rem 0 !important;
  }

  /* Header & Navigation */
  .nav-menu {
    display: none !important;
  }

  .desktop-only, .desktop-only-btn {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
  }

  .cart-nav-btn span.cart-nav-label {
    display: none !important;
  }

  .nav-inner {
    height: 62px;
    gap: 0.6rem;
  }

  .logo-adaptive {
    max-width: 135px;
    height: 38px;
  }

  .logo-img-wrapper {
    height: 42px;
  }

  /* Hero Section sur Mobile */
  .hero-section {
    padding: 4.5rem 0 3.5rem !important;
    min-height: auto !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding-top: 1.5rem !important;
  }

  /* Grilles & Cartes */
  .cards-grid-3, .cards-grid-4, .cards-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .sav-wrapper {
    grid-template-columns: 1fr !important;
  }

  .catalogue-layout {
    grid-template-columns: 1fr !important;
  }

  /* Adaptabilité des grilles inline */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  [style*="grid-column: span 3"] {
    grid-column: span 1 !important;
  }

  /* Formulaires et cartes */
  .custom-card {
    padding: 1.25rem !important;
  }

  input, select, textarea {
    font-size: 16px !important; /* Évite le zoom automatique iOS Safari */
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    height: 58px;
  }

  .logo-adaptive {
    max-width: 115px;
    height: 34px;
  }

  .logo-img-wrapper {
    height: 38px;
  }

  .cart-nav-btn {
    padding: 0.45rem 0.65rem;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    padding: 7px;
  }

  .hero-section {
    padding: 3.5rem 0 2.5rem !important;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem) !important;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  .stat-item h3 {
    font-size: 1.45rem !important;
  }

  .stat-item p {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   BOUTON FLOTTANT WHATSAPP DIRECT (LOGO SEUL)
   ========================================================================== */

.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatPulse 4s infinite ease-in-out;
}

body[dir="rtl"] .whatsapp-float-btn {
  right: auto;
  left: 24px;
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.65);
}

.whatsapp-icon-svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .whatsapp-float-btn {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
  body[dir="rtl"] .whatsapp-float-btn {
    right: auto;
    left: 18px;
  }
  .whatsapp-icon-svg {
    width: 28px;
    height: 28px;
  }
}

@keyframes floatPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
  }
}

/* ==========================================================================
   PANIER, BADGE HEADER & TOAST NOTIFICATIONS
   ========================================================================== */

.cart-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cart-nav-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--bg-surface-elevated);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

body[dir="rtl"] .toast-container {
  left: auto;
  right: 30px;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--brand-orange);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  font-size: 0.92rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

/* Animation shake pour les champs invalides du formulaire devis */
@keyframes shake {
  0%  { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  90% { transform: translateX(2px); }
  100%{ transform: translateX(0); }
}

.dv-input-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.45), 0 0 16px rgba(239, 68, 68, 0.75) !important;
  animation: shakeAndRedGlow 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
  outline: none !important;
}

@keyframes shakeAndRedGlow {
  0%, 100% {
    transform: translateX(0);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.45), 0 0 16px rgba(239, 68, 68, 0.75);
  }
  15% {
    transform: translateX(-7px);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.65), 0 0 22px rgba(239, 68, 68, 0.9);
  }
  30% {
    transform: translateX(7px);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.65), 0 0 22px rgba(239, 68, 68, 0.9);
  }
  45% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-2px);
  }
  90% {
    transform: translateX(2px);
  }
}

/* Page Panier & Tableau */
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
}

.cart-qty-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.cart-qty-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--brand-orange);
}

.cart-qty-val {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-main);
}

/* ==========================================================================
   Mode Impression — Bon de Livraison & Confirmation de Commande Panier
   ========================================================================== */
@media print {
  /* Masquer tous les éléments superflus */
  header,
  footer,
  nav,
  .mobile-nav-toggle,
  .mobile-menu-drawer,
  .mobile-menu-backdrop,
  .floating-whatsapp-btn,
  .whatsapp-float,
  .no-print,
  .btn,
  button,
  .modal-close-btn,
  .toast-container {
    display: none !important;
    visibility: hidden !important;
  }

  body, html {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  /* Rendre visibles le bon de livraison et la confirmation de commande panier */
  .printable-order-slip,
  .printable-order-slip *,
  .order-confirmation-printable,
  .order-confirmation-printable * {
    visibility: visible !important;
  }

  .printable-order-slip,
  .order-confirmation-printable {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px 30px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .printable-order-slip table,
  .order-confirmation-printable table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
  }

  .printable-order-slip th,
  .order-confirmation-printable th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
  }

  .printable-order-slip td,
  .order-confirmation-printable td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
  }
}

/* ==========================================================================
   BOUTON DEVIS — VISIBILITÉ PARFAITE MODE JOUR & NUIT
   ========================================================================== */
.dv-btn-submit, #dv-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0.85rem 2.2rem !important;
  background: linear-gradient(135deg, #ff6a00 0%, #ea580c 100%) !important;
  border: 1.5px solid #d95300 !important;
  border-radius: var(--radius-md) !important;
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 18px rgba(255, 106, 0, 0.42) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.dv-btn-submit:hover:not(:disabled), #dv-submit-btn:hover:not(:disabled) {
  opacity: 1 !important;
  background: linear-gradient(135deg, #ff7a1a 0%, #f97316 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(255, 106, 0, 0.58) !important;
  color: #ffffff !important;
}

body[data-theme="light"] .dv-btn-submit,
body[data-theme="light"] #dv-submit-btn {
  background: linear-gradient(135deg, #ff6a00 0%, #d95300 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #c2410c !important;
  box-shadow: 0 4px 16px rgba(217, 83, 0, 0.38) !important;
}

body[data-theme="light"] .dv-btn-submit:hover:not(:disabled),
body[data-theme="light"] #dv-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7a1a 0%, #c2410c 100%) !important;
  box-shadow: 0 6px 22px rgba(217, 83, 0, 0.52) !important;
}

body[data-theme="dark"] .dv-btn-submit,
body[data-theme="dark"] #dv-submit-btn {
  background: linear-gradient(135deg, #ff6a00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 133, 51, 0.4) !important;
  box-shadow: 0 4px 22px rgba(255, 106, 0, 0.45) !important;
}

/* ============================================================
   MEGA MENU FLYOUT — 3 colonnes côte à côte
   Catégories | Sous-catégories & Marques | Produits par marque
   ============================================================ */

.mega-menu-trigger {
  position: relative;
}

/* Affichage au survol */
.mega-menu-trigger:hover .mega-menu-flyout {
  display: flex !important;
}

.mega-menu-flyout {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-40%);
  width: 800px;
  max-width: calc(100vw - 40px);
  flex-direction: row !important;  /* ← 3 colonnes CÔTE À CÔTE */
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.1);
  z-index: 3000;
  overflow: hidden;
  animation: mmFlyIn 0.18s ease forwards;
}

/* Garde le flyout ouvert quand on y entre */
.mega-menu-flyout:hover {
  display: flex !important;
}

@keyframes mmFlyIn {
  from { opacity: 0; transform: translateX(-40%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-40%) translateY(0); }
}

/* Petite flèche pointant vers le nav */
.mega-menu-flyout::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 40%;
  width: 13px;
  height: 13px;
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  transform: rotate(45deg);
  z-index: 1;
}

/* Colonnes communes */
.mm-col {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 440px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

/* ── Colonne 1 : Catégories ── */
.mm-col1 {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  padding: 0.75rem 0;
}

/* ── Colonne 2 : Sous-catégories / Marques ── */
.mm-col2 {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  padding: 0.75rem 0.5rem;
}

/* ── Colonne 3 : Produits ── */
.mm-col3 {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.75rem;
}

/* En-tête colonne 1 */
.mm-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mm-total-badge {
  background: rgba(255,106,0,0.12);
  color: var(--brand-orange);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Boutons catégorie (col1) */
.mm-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 1rem;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.mm-cat-btn:hover,
.mm-cat-btn.active {
  background: rgba(255,106,0,0.09);
  color: var(--brand-orange);
  border-left-color: var(--brand-orange);
}

.mm-cat-btn.mm-cat-all {
  color: var(--text-muted);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
  padding-bottom: 8px;
}

.mm-cat-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}

.mm-cat-btn:hover .mm-cat-icon,
.mm-cat-btn.active .mm-cat-icon {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}

.mm-cat-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-cat-count {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.mm-cat-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.12s, transform 0.12s;
}

.mm-cat-btn:hover .mm-cat-arrow,
.mm-cat-btn.active .mm-cat-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--brand-orange);
}

/* Titres de section col2/col3 */
.mm-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem 0.2rem;
}

.mm-section-brands {
  margin-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.5rem;
}

/* Panels col2 */
.mm-col2-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
}

/* Boutons sous-catégorie */
.mm-subcat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.11s, color 0.11s;
}

.mm-subcat-btn:hover,
.mm-subcat-btn.active {
  background: rgba(255,106,0,0.09);
  color: var(--brand-orange);
}

.mm-subcat-arrow { font-size: 1.05rem; color: var(--text-dim); }

/* Boutons Marque */
.mm-brand-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.11s, color 0.11s;
}

.mm-brand-btn:hover,
.mm-brand-btn.active {
  background: rgba(255,106,0,0.09);
  color: var(--brand-orange);
}

.mm-brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.11s;
}

.mm-brand-btn:hover .mm-brand-dot,
.mm-brand-btn.active .mm-brand-dot { opacity: 1; }

.mm-brand-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mm-brand-count {
  font-size: 0.68rem;
  color: var(--text-dim);
  background: var(--bg-surface-elevated);
  border-radius: 999px;
  padding: 1px 5px;
  flex-shrink: 0;
}

/* Panels col3 */
.mm-col3-panel {
  display: none;
  flex-direction: column;
  gap: 3px;
}

/* Boutons Produit */
.mm-prod-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.11s, color 0.11s, transform 0.11s;
}

.mm-prod-btn:hover {
  background: rgba(255,106,0,0.08);
  color: var(--brand-orange);
  transform: translateX(3px);
}

.mm-prod-img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.mm-prod-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-see-all {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px dashed var(--border-accent);
  background: transparent;
  color: var(--brand-orange);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.11s;
}

.mm-see-all:hover { background: rgba(255,106,0,0.09); }

/* États vides */
.mm-col2-empty, .mm-col3-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}

.mm-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.5rem;
}

/* Chevron nav link */
.mega-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.mega-menu-trigger:hover .mega-chevron {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

/* Masquer sur mobile */
@media (max-width: 992px) {
  .mega-menu-flyout { display: none !important; }
}



