/** Shopify CDN: Minification failed

Line 85:0 All "@import" rules must come first

**/
/* SHOPIFY_STYLESHEETS_VERSION: 1.0 */


/* CSS from section stylesheet tags */
/* START_SECTION:header (INDEX:24) */
/* ==== Variables Modernes Améliorées ==== */
:root {
  --primary-color: #0B3954;
  --primary-hover: #092c40;
  --primary-light: rgba(11, 57, 84, 0.1);
  --accent-color: #FF6B35;
  --accent-hover: #e55a29;
  --accent-light: rgba(255, 107, 53, 0.1);
  --text-color: #1a202c;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg-light: #ffffff;
  --bg-gray: #f8fafc;
  --bg-dark: #1a202c;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #f56565;
  --partner-color: #8b5cf6;
  
  /* === FIX UX: Z-INDEX HIÉRARCHIQUE === */
  --header-z-base: 1000;
  --header-z-nav: 1001;
  --header-z-mega: 1002;
  --header-z-sticky: 1003;
  --header-z-overlay: 999;
  --language-z-base: 999999999; /* Z-index maximum absolu */
  
  --header-height: calc(var(--header-top-height) + var(--header-main-height) + var(--header-nav-height));
  
  /* Nouveaux gradients premium */
  --gradient-primary: linear-gradient(135deg, #0B3954 0%, #1e5f74 50%, #0B3954 100%);
  --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #ff8c42 50%, #FF6B35 100%);
  --gradient-partner: linear-gradient(135deg, #8b5cf6 0%, #9f7aea 50%, #8b5cf6 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
  
  /* === FIX UX: TRANSITIONS OPTIMISÉES === */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Shadows Premium */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(11, 57, 84, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(255, 107, 53, 0.3);
  --shadow-glow-partner: 0 0 20px rgba(139, 92, 246, 0.3);
  
  /* Spacing & Sizing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Header Heights */
  --header-height: 0px;
  --header-top-height: 48px;
  --header-main-height: 85px;
  --header-nav-height: 60px;
}

/* ==== Fonts Import ==== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');



/* ==== Global Styles Améliorés ==== */
.header-wrapper {
  font-family: var(--font-family);
  position: relative;
  z-index: var(--header-z-base);
  background: var(--bg-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ==== Top Bar Premium avec Section Partenaires ==== */
.header-top {
  background: var(--gradient-primary);
  background-size: 300% 300%;
  animation: gradientFlow 12s ease infinite;
  color: white;
  font-size: 0.875rem;
  height: var(--header-top-height);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.header-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmerFlow 4s infinite linear;
}

.header-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes shimmerFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.header-top .page-width {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
}

/* ==== NOUVELLE SECTION PARTENAIRES ==== */
.partners-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: -2;
}

.partners-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partners-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.partner-badge {
  background: var(--gradient-partner);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-glow-partner);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partner-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  color: white;
  background: linear-gradient(135deg, #9f7aea 0%, #a855f7 50%, #9f7aea 100%);
}

.partner-badge svg {
  width: 12px;
  height: 12px;
  stroke: white;
}

/* ==== SÉLECTEUR DE LANGUE SIMPLE ET FONCTIONNEL - Z-INDEX CORRIGÉ ==== */
.language-selector-container {
  position: relative;
  z-index: var(--language-z-base); /* Utilise la variable */
  order: -1;
}

.language-selector {
  position: relative;
  display: inline-block;
  z-index: var(--language-z-base);
}

.language-dropdown {
  position: relative;
  z-index: var(--language-z-base);
}

.language-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  list-style: none;
  text-transform: uppercase;
  position: relative;
  z-index: calc(var(--language-z-base) + 1);
}

.language-current::-webkit-details-marker {
  display: none;
}

.language-current span {
  color: white !important;
  font-weight: 600;
}

.language-current:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.language-dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-medium);
  stroke: white;
}

/* Animation de rotation quand ouvert */
.language-dropdown[open] .language-dropdown-icon {
  transform: rotate(180deg);
}

/* Liste des options - APPROCHE PORTAL AVEC BODY */
.language-options {
  position: fixed !important;
  top: 48px !important; /* Hauteur exacte du header-top */
  left: 2rem !important;
  min-width: 200px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  z-index: 999999999 !important; /* Z-index maximum absolu */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all var(--transition-medium);
  pointer-events: none; /* Désactivé quand fermé */
}

/* État ouvert */
.language-dropdown[open] .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* Activé quand ouvert */
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: #333333 !important;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.language-option:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.language-option:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.language-option:hover {
  background: var(--primary-light);
  color: var(--primary-color) !important;
  transform: scale(1.02);
}

.language-option.active {
  background: var(--primary-color);
  color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .language-options {
    left: auto !important;
    right: 1rem !important;
    min-width: 180px;
  }
}

/* Overlay invisible pour fermer le menu en cliquant ailleurs */
.language-dropdown[open]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: calc(var(--language-z-base) + 5);
  background: transparent;
}

/* Notification Badge Améliorée */
.notification-badge {
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  animation: pulseGlow 3s infinite;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow-accent);
  position: relative;
  overflow: hidden;
}

.notification-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: notificationShine 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow-glow-accent);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
  }
}

@keyframes notificationShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.header-top .links-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-top a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all var(--transition-medium);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.header-top a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-medium);
}

.header-top a:hover::before {
  left: 100%;
}

.header-top a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==== PANIER ULTRA-VISIBLE DANS TOP BAR ==== */
.cart-wrapper {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  z-index: 999999;
  margin-left: 20px;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.8rem;
  background: var(--accent-color);
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  width: 50px;
  height: 40px;
}

.cart-button:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.cart-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  transition: all var(--transition-fast);
  stroke: white;
}

/* Compteur EXTERNE séparé du bouton - ULTRA VISIBLE */
.cart-count-external {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF0000;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.6);
  animation: cartPulse 2s infinite;
  border: 3px solid white;
  z-index: 1000000;
  line-height: 1;
}

/* Style spécial pour le panier dans la top bar */
.header-top .cart-wrapper {
  z-index: 1000000;
  margin-left: 15px;
}

.header-top .cart-button {
  background: var(--accent-color);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.6rem;
  width: 45px;
  height: 35px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.header-top .cart-button:hover {
  background: var(--accent-hover);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.header-top .cart-button svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.header-top .cart-count-external {
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
  border: 2px solid white;
  background: #FF0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.6);
}

@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ==== Main Header Ultra-Moderne ==== */
.header-main {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-medium);
  position: relative;
  backdrop-filter: blur(20px);
  height: var(--header-main-height);
  
}

.header-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.header-main:hover::after {
  opacity: 1;
}

.header-main .page-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo avec z-index contrôlé pour éviter les conflits */
.header-main .logo {
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
  position: relative;
  z-index: 1;
}

.header-main .logo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(11, 57, 84, 0.1) 0%, transparent 70%);
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.header-main .logo:hover::before {
  opacity: 1;
}

.header-main .logo a {
  display: block;
  transition: transform var(--transition-medium);
  position: relative;
  z-index: 2;
}

.header-main .logo:hover a {
  transform: scale(1.05) translateY(-2px);
}

.header-main .logo img {
  max-height: 55px;
  transition: all var(--transition-medium);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

.header-main .tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-medium);
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

/* Barre de recherche ultra-moderne */
.header-main .search-bar {
  flex: 1;
  max-width: 650px;
  position: relative;
}

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

.search-container input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-medium);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.search-container input::placeholder {
  color: #888888;
  font-weight: 400;
}

.search-container input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(11, 57, 84, 0.1), var(--shadow-glow);
  background: white;
  outline: none;
  transform: translateY(-2px);
}

.search-container button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-accent);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.search-container button:hover {
  transform: translateY(-50%) scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.search-container button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: white;
  stroke-width: 2.5;
}

/* Utilitaires Premium - Z-index réorganisé */
.header-main .utils {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 100;
  position: relative;
}

.header-main .utils a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.header-main .utils a:hover {
  color: var(--primary-color);
  background: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.header-main .utils a svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: all var(--transition-fast);
}

/* Bouton Devis Ultra-Premium avec effet popup et police blanche */
.quote-button {
  background: var(--accent-color) !important;
  color: white !important;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  z-index: 200;
}

.quote-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--transition-slow);
}

.quote-button:hover::before {
  left: 100%;
}

.quote-button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.4);
  background: var(--accent-hover) !important;
  color: white !important;
  animation: popupEffect 0.3s ease-out;
}

@keyframes popupEffect {
  0% { transform: translateY(-4px) scale(1.02); }
  50% { transform: translateY(-8px) scale(1.08); }
  100% { transform: translateY(-6px) scale(1.05); }
}

.quote-button svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--transition-medium);
  fill: white;
  stroke: white;
}

.quote-button:hover svg {
  transform: rotate(5deg) scale(1.1);
}

.quote-button span {
  color: white !important;
  font-weight: 700;
}

/* ==== Navigation Ultra-Moderne TRANSPARENTE avec BLUR - Z-INDEX CORRIGÉ ==== */
.header-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  position: relative;
  z-index: var(--header-z-nav); /* Z-index réduit pour permettre au menu langue de passer devant */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-medium);
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  /* === FIX GAP: ASSURER AUCUN ESPACE EN BAS === */
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.header-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.header-nav .page-width {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.primary-menu {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
  /* === FIX GAP: ASSURER AUCUN ESPACE EN BAS === */
  border-bottom: none;
}

.primary-menu__item {
  position: relative;
  flex: 1;
}

/* === FIX GAP: CRÉER UNE CONNEXION VISUELLE === */
.primary-menu__item::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: calc(var(--header-z-mega) + 1);
  transition: background 0.2s ease;
}

/* === NAVBAR: 1 ligne garantie, tailles + grandes, gaps uniformes, responsive safe === */

:root{
  --menu-font-size: 1.4rem;        /* desktop */
  --menu-padding-y: 1.15rem;
  --menu-padding-x: 1.05rem;       /* padding interne (on garde pour éviter le wrap) */
  --menu-gap: 0.45rem;             /* gap interne (texte <-> icone) */

  /* gap EXTERNE entre rubriques (LI) */
  --menu-item-gap: 0.55rem;
}

/* === FIX: espacement uniforme entre rubriques (géré par le conteneur) === */
.primary-menu__list,
.primary-menu{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;

  /* évite les écarts variables du thème */
  justify-content: flex-start !important;

  /* seul endroit où on gère l'écart entre rubriques */
  gap: var(--menu-item-gap) !important;
}

/* Neutralise marges/paddings externes/étirements des items */
.primary-menu__item{
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

/* Certains thèmes rajoutent des marges via des sélecteurs adjacents */
.primary-menu__item + .primary-menu__item{
  margin-left: 0 !important;
}

/* Lien menu principal */
.primary-menu__link{
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: var(--menu-gap);
  padding: var(--menu-padding-y) var(--menu-padding-x);
  font-size: var(--menu-font-size);

  /* Jamais sur 2 lignes */
  white-space: nowrap;

  transition: all var(--transition-medium);
  position: relative;
  text-align: center;
  background: transparent;
  margin-bottom: 0;
  border-bottom: none;

  /* évite tout flex-grow qui crée des espacements bizarres */
  flex: 0 0 auto !important;
}

/* Sécurité anti-retour-ligne même si un span est inside */
.primary-menu__link > *{
  white-space: nowrap;
}

/* === Icon dropdown (si tu gardes la data-uri) === */
.primary-menu__link .icon-down{
  width: 1.35rem;
  height: 1.35rem;
  display: inline-block;
  flex: 0 0 auto;
  transition: transform var(--transition-medium);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='%230B3954'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.primary-menu__item:hover .icon-down{
  transform: rotate(180deg) scale(1.12);
}

/* Bouton Tous les produits */
.all-products-button{
  background: #0B3954 !important;
  color: white !important;
  font-weight: 600;

  font-size: var(--menu-font-size);
  white-space: nowrap;

  gap: var(--menu-gap);
  padding: var(--menu-padding-y) var(--menu-padding-x);

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  border: 2px solid #0B3954;
  box-shadow: 0 4px 20px rgba(11, 57, 84, 0.3);
  border-radius: 8px;
  transition: all var(--transition-medium);

  /* évite tout étirement */
  flex: 0 0 auto !important;
}

/* Flèche blanche du bouton */
.all-products-button .icon-down{
  width: 1.35rem;
  height: 1.35rem;
  display: inline-block;
  flex: 0 0 auto;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* === RESPONSIVE SAFETY: on réduit légèrement pour éviter tout wrap === */
@media (max-width: 1200px){
  :root{
    --menu-font-size: 1.22rem;
    --menu-padding-y: 1.05rem;
    --menu-padding-x: 0.9rem;
    --menu-gap: 0.35rem;
    --menu-item-gap: 0.45rem;
  }

  .primary-menu__link .icon-down,
  .all-products-button .icon-down{
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 1024px){
  :root{
    --menu-font-size: 1.12rem;
    --menu-padding-y: 0.95rem;
    --menu-padding-x: 0.8rem;
    --menu-gap: 0.3rem;
    --menu-item-gap: 0.38rem;
  }

  .primary-menu__link .icon-down,
  .all-products-button .icon-down{
    width: 1.18rem;
    height: 1.18rem;
  }
}
.header-top .page-width a{ font-size: 0.95rem !important; }

/* === SOLUTION ULTRA-ROBUSTE : POSITION FIXE CALCULÉE DYNAMIQUEMENT === */

.mega-submenu {
  /* === POSITION FIXE POUR ÉVITER LES CALCULS RELATIFS VARIABLES === */
  position: fixed !important;
  top: 1 !important; /* Sera calculé dynamiquement en JavaScript */
  left: 50% !important;
  width: 100%!important;
  max-width: 100% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  
  /* === STYLES VISUELS === */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  border-radius: 0 !important;
  
  /* === ÉTATS DE VISIBILITÉ === */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* === TRANSITIONS === */
  transition: opacity 0.2s ease, visibility 0.2s ease;
  
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
}

/* === ÉTAT OUVERT === */
.primary-menu__item.menu-open .mega-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.primary-menu__item.menu-closing .mega-submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* === CONTENEUR CENTRÉ === */
.mega-submenu__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* === FIX 9: CONTENEUR DU MEGA MENU === */
.mega-submenu__container {
  max-width: 1400px;
  margin: 0 auto;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 57, 84, 0.3) transparent;
  padding-top: 0; /* Supprimer le padding du haut */
  margin-top: 0;
  
  /* Performance avec contain */
  contain: layout style;
}

__container::-webkit-scrollbar {
  width: 8px;
}

__container::-webkit-scrollbar-thumb {
  background: rgba(11, 57, 84, 0.3);
  border-radius: var(--radius-sm);
}

__container::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 57, 84, 0.5);
}

.mega-submenu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
  
  /* Optimisation GPU */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mega-submenu__column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-submenu__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-submenu__subheading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 1rem 0 0.5rem;
}

.mega-submenu__link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding-left: 0.75rem;
  position: relative;
  overflow: hidden;
}

.mega-submenu__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--primary-color);
  transition: height var(--transition-fast);
  transform: translateY(-50%);
}

.mega-submenu__link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.2);
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mega-submenu__link:active::after {
  width: 200px;
  height: 200px;
}

.mega-submenu__link:hover::before {
  height: 70%;
}

.mega-submenu__link:hover {
  color: var(--primary-color);
  background: var(--primary-light);
  transform: translateX(10px);
}

.mega-submenu__link.featured {
  color: var(--accent-color);
  font-weight: 600;
  background: var(--accent-light);
}

.mega-submenu__link.featured:hover {
  color: var(--accent-hover);
  background: rgba(255, 107, 53, 0.2);
}

.mega-submenu__link.clicked {
  background: rgba(255, 107, 53, 0.1) !important;
  color: #FF6B35 !important;
  transform: scale(0.98) !important;
}

.mega-submenu__featured {
  grid-column: span 2;
  background: var(--gradient-glass);
  backdrop-filter: blur(15px);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mega-submenu__featured-content {
  flex: 1;
}

.mega-submenu__featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 0.75rem;
}

.mega-submenu__featured-text {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.mega-submenu__featured-button {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-md);
}

.mega-submenu__featured-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.mega-submenu__featured-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Category Indicators Premium */
.category-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-left: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-indicator {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sale-indicator {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.partner-indicator {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.pro-indicator {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.premium-indicator {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.trending-indicator {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* ==== Nouveaux styles pour les types de capteurs enrichis ==== */
.sensor-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.sensor-category {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-medium);
}

.sensor-category:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.sensor-category h4 {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sensor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sensor-list li {
  margin: 0.25rem 0;
}

.sensor-list a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.sensor-list a:hover {
  color: var(--accent-color);
  padding-left: 0.5rem;
}

/* Nouveau style pour les badges de facilitation d'achat */
.quick-buy-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: auto;
}

.instant-quote-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: auto;
}

/* === MOBILE AVEC LARGEUR PLEINE === */
@media (max-width: 768px) {
  .mega-submenu {
    /* Bottom sheet pleine largeur sur mobile */
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    transform: translateY(100%) !important; /* Partir du bas */
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
  }
  
  .primary-menu__item.menu-open .mega-submenu {
    transform: translateY(0) !important; /* Remonter */
  }
  
  .primary-menu__item.menu-closing .mega-submenu {
    transform: translateY(100%) !important;
    transition: transform 0.3s ease;
  }
  
  /* Mode sticky sur mobile : même largeur pleine */
  .sticky-header .mega-submenu {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: translateY(100%) !important;
  }
  
  .sticky-header .primary-menu__item.menu-open .mega-submenu {
    transform: translateY(0) !important;
  }
}

/* 1) On réserve l’espace du header-top pour éviter le saut */
.sticky-header{
  padding-top: 0 !important; /* on enlève la compensation qui provoque le jump */
}

/* 2) On cache la top bar sans la sortir du flux (donc pas de "trou" qui se crée) */
.sticky-header .header-top{
  height: var(--header-top-height); /* garde la même hauteur */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none; /* important : supprime translateY(-100%) */
}


.sticky-header .header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 0;
  z-index: var(--header-z-sticky);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
}

.sticky-header .header-main .logo img {
  max-height: 40px;
}

.sticky-header .header-main .tagline {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.sticky-header .header-nav {
  position: fixed;
  top: var(--header-main-height);
  left: 0;
  width: 100%;
  z-index: var(--header-z-sticky);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow-lg);
}

/* PANIER STICKY REMPLACE LE SÉLECTEUR DE LANGUE */
.sticky-cart-wrapper {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 999999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all var(--transition-medium);
  pointer-events: none;
}

.sticky-header .sticky-cart-wrapper {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cart-wrapper .cart-button {
  background: var(--accent-color);
  color: white;
  border: 2px solid rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.sticky-cart-wrapper .cart-button:hover {
  background: var(--accent-hover);
  color: white;
}

.sticky-cart-wrapper .cart-count-external {
  background: #FF0000;
  border: 3px solid white;
}

/* Effet de transition sur le scroll */
.header-main.shrink {
  padding: 0.5rem 0;
}

.header-main.shrink .logo img {
  max-height: 36px;
}

.header-main.shrink .tagline {
  opacity: 0;
  height: 0;
  margin: 0;
}

/* === OVERLAY MOBILE === */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: var(--header-z-overlay);
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === INDICATEUR DE CHARGEMENT === */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 107, 53, 0.2);
  border-top-color: #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: calc(var(--header-z-sticky) + 1);
  display: none;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.page-loading .loading-indicator {
  display: block;
}

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

/* === ACCESSIBILITÉ === */
.mega-submenu__link:focus {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
  background: rgba(255, 107, 53, 0.05);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .mega-submenu,
  .mega-submenu__link,
  .primary-menu__link {
    transition: none;
  }
  
  .loading-indicator {
    animation: none;
  }
  
  .partner-badge,
  .notification-badge {
    animation: none;
  }
}

/* ==== Responsive Premium ==== */
@media (max-width: 1200px) {
  .primary-menu {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .primary-menu::-webkit-scrollbar {
    display: none;
  }
  
  .mega-submenu__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .partners-section {
    order: -1;
  }

  .partners-container {
    gap: 0.5rem;
  }

  .partner-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 1024px) {
  .header-top .page-width {
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  
  .header-main .page-width {
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  
  .header-main .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .sticky-header .header-main .search-bar {
    display: none;
  }
  
  .quote-button {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .language-selector-container {
    order: 0;
  }

  .partners-section {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .sticky-language-selector {
    right: 1rem;
  }
  
  .mega-submenu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .mega-submenu__featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header-top {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .header-top .page-width {
    justify-content: flex-start;
    padding: 0 0.5rem;
    gap: 1rem;
  }
  
  .header-top a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
  }
  
  .quote-button {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .language-current {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .partners-section {
    display: none;
  }
  
  .mega-submenu__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .mega-submenu__featured {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
  }
  
  .mega-submenu__featured-image {
    width: 100px;
    height: 100px;
  }

  .sensor-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-main .utils {
    gap: 0.75rem;
  }
  
  .header-main .utils a {
    padding: 0.75rem;
    font-size: 0;
  }
  
  .header-main .utils a span {
    display: none;
  }
  
  .quote-button span {
    display: none;
  }
  
  .language-dropdown {
    right: 0;
    left: auto;
    min-width: 180px;
  }

  .partners-section {
    display: none;
  }
}

/* === STYLES POUR LE SYSTÈME UNIFIÉ COMPLET === */

/* Style pour les liens actifs dans le menu - AMÉLIORÉ */
.active-menu-filter {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
  color: #FF6B35 !important;
  font-weight: 600 !important;
  border-left: 3px solid #FF6B35;
  padding-left: 1rem !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
  border-radius: 0 4px 4px 0;
}

/* Animation pour l'indicateur actif - AMÉLIORÉE */
@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2);
  }
}

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

.active-indicator {
  display: inline-block !important;
  animation: pulse 2s infinite;
  font-weight: bold;
}

/* Hot indicator - NOUVEAU */
.hot-indicator {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Amélioration de l'accessibilité - COMPLET */
[data-filter]:focus,
a[href*="filter="]:focus {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Transitions fluides pour tous les liens - AMÉLIORÉES */
.mega-submenu__link,
.sensor-list a,
a[href*="filter="] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: block;
  position: relative;
  overflow: hidden;
}

.mega-submenu__link:hover,
.sensor-list a:hover,
a[href*="filter="]:hover {
  background: linear-gradient(90deg, rgba(11, 57, 84, 0.05) 0%, rgba(11, 57, 84, 0.02) 100%);
  transform: translateX(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Effet de ripple au clic - NOUVEAU */
.mega-submenu__link::before,
.sensor-list a::before,
a[href*="filter="]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.3);
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
  transform: translate(-50%, -50%);
}

.mega-submenu__link:active::before,
.sensor-list a:active::before,
a[href*="filter="]:active::before {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
}

/* Loading states pour les filtres - AMÉLIORÉ */
.filter-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
  transition: opacity 0.3s ease;
}

.filter-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Success states pour les filtres appliqués - AMÉLIORÉ */
.filter-applied {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-left: 3px solid #10b981;
  animation: slideIn 0.3s ease;
}

.filter-applied::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
  animation: slideIn 0.3s ease 0.1s both;
}

/* === DEBUG STYLES COMPLETS === */
.debug-mega-menu .mega-submenu {
  border: 3px solid red !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5) !important;
}

.debug-mega-menu .mega-submenu__container {
  border: 2px solid blue !important;
  background: rgba(0, 0, 255, 0.1) !important;
}

.debug-mega-menu .header-nav {
  border-bottom: 4px solid green !important;
  position: relative;
}

.debug-mega-menu .header-nav::after {
  content: 'NAVBAR BOTTOM ↓';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: green;
  color: white;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10000;
}

.debug-mega-menu .mega-submenu::before {
  content: 'DEBUG: Objectifs → Gap: -1px | Largeur: 100vw | Centré';
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: orange;
  color: white;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10000;
  border-radius: 4px;
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,0.3);
}

.debug-mega-menu .sticky-header .mega-submenu::before {
  content: 'DEBUG STICKY: Objectifs → Gap: -1px | Largeur: 100vw | Centré';
  background: purple;
}

/* Indicateur de largeur pleine écran */
.debug-mega-menu .mega-submenu::after {
  content: '← LARGEUR PLEINE ÉCRAN →';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: blue;
  color: white;
  padding: 3px 15px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10000;
}

/* Placeholder pour images manquantes */
.mega-submenu__featured-image-placeholder {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
}
:root{
  --sticky-cart-width: 64px; /* largeur du bouton panier sticky */
  --sticky-cart-gap: 18px;   /* marge de sécurité */
}

/* Réserve une zone à droite pour que Compte/Devis n'aillent jamais dessous */
.sticky-header .header-main .utils{
  padding-right: calc(var(--sticky-cart-width) + var(--sticky-cart-gap)) !important;
  margin-right: 0 !important; /* on neutralise l’ancien margin-right si tu l’avais */
}

/* Panier sticky : largeur fixe + position */
.sticky-header .sticky-cart-wrapper{
  right: 2rem;
  top: 1rem;
  width: var(--sticky-cart-width);
}

/* Bouton : largeur fixe (évite qu’il gonfle et recouvre) */
.sticky-header .sticky-cart-wrapper .cart-button{
  width: var(--sticky-cart-width);
  min-width: var(--sticky-cart-width);
  height: 40px; /* optionnel, pour cohérence visuelle */
}
@media (max-width: 1100px){
  .sticky-header .sticky-cart-wrapper{ display: none !important; }
  .sticky-header .header-main .utils{ padding-right: 0 !important; }
}
/* Anti-jump sticky : on garde l'espace de la top bar */
.sticky-header{
  padding-top: 0 !important;
}

/* On cache la top bar sans la faire sortir du flux */
.sticky-header .header-top{
  height: var(--header-top-height);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important; /* enlève le translateY(-100%) */
}

/* Bonus : éviter les glitches liés à transition: all */
.header-main{
  transition: padding var(--transition-medium),
              box-shadow var(--transition-medium),
              background var(--transition-medium);
}
/* Stabilise le rendu lors du passage en sticky */
.sticky-header .header-main,
.sticky-header .header-nav{
  transform: translateZ(0);
  will-change: transform;
}
/* Sticky = fond opaque (plus de transparence visible) */
.sticky-header .header-main{
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.sticky-header .header-nav{
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Évite un fondu/transparence au moment du basculement */
.sticky-header .header-main,
.sticky-header .header-nav{
  transition: none !important;
}
/* Le summary doit rester cliquable même quand le menu est ouvert */
.language-dropdown[open]::before{
  z-index: 10 !important; /* overlay */
}

.language-current{
  position: relative;
  z-index: 20 !important; /* au-dessus de l’overlay */
}

.language-options{
  z-index: 30 !important; /* menu au-dessus de tout */
}
.language-dropdown[open]::before{
  z-index: 10 !important;
}

.language-current{
  position: relative;
  z-index: 20 !important;
}

.language-options{
  z-index: 30 !important;
}
/* END_SECTION:header */