/* ========================================
   HEXAGONE INNOVATION - Light Theme
   ======================================== */


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

:root {
  --bg-body: #ffffff;
  --bg-dark: #ffffff; /* legacy alias */
  --hexagone-blue: #091A50;
  --hexagone-blue-dark: #060f30;
  --bg-truly-dark: #0a0a0a;
  --text-white: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --bg-section: #f5f5f7;
  /* Charte couleur Hexagone - Bleu #091A50 */
  --primary: #091A50;
  --primary-glow: rgba(9, 26, 80, 0.15);
  --primary-dark: #060F30;
  --primary-light: #0D2570;
  --primary-text: #091A50;
  --secondary: #1E3A8A;
  --accent: #f59e0b;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --success: #10b981;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(9, 26, 80, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip Link - Accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--bg-dark);
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

a:hover {
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  overflow: hidden;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo-img {
  height: 120px;
  width: auto;
  max-width: 200px;
  border-radius: 4px;
  object-fit: contain;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: #374151;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: #091A50;
  background: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-icon-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.search-box input {
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  width: 180px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-box button {
  background: transparent;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.search-box button:hover {
  color: var(--primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 160px 0 100px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-badge span {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ========================================
   CATEGORY GRID
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature:hover {
  border-color: var(--border-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  /* Overridden by homepage.css */
  padding: 80px 0;
  background: #ffffff; /* default */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-section);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 120px;
  max-width: 200px;
  margin-bottom: 16px;
  object-fit: contain;
}

/* In dark mode, keep the filter for the old logo */

/* In light mode, no filter needed for the new logo */

.footer-col p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 13px;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  padding: 120px 0 40px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ========================================
   CATALOGUE
   ======================================== */


.sidebar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: relative;
  top: 100px;
}

.sidebar h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ========================================
   PRODUCT PAGE
   ======================================== */

.stock-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.stock-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-intro {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.contact-cta-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.contact-cta-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.contact-cta-card p {
  font-size: 14px;
  color: rgba(10, 10, 15, 0.7);
  margin-bottom: 20px;
}

.contact-cta-card .btn {
  background: var(--bg-dark);
  color: var(--text);
}

/* ========================================
   ALERTS & LOADING
   ======================================== */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination button {
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   MOBILE MENU & SEARCH
   ======================================== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  z-index: 1002;
}

.mobile-menu-btn svg {
  display: block;
}

.mobile-search-btn {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-search-btn:hover {
  color: var(--primary);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.mobile-search-overlay.open {
  display: flex;
}

.mobile-search-container {
  width: 90%;
  max-width: 500px;
}

.mobile-search-container .search-box {
  display: flex !important;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 12px;
}

.mobile-search-container .search-box input {
  flex: 1;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
}

.mobile-search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
}

.mobile-search-close:hover {
  color: var(--text);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.mobile-nav-overlay.open {
  display: block;
}

/* Mobile Navigation Slide-in */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  visibility: hidden;
  width: 280px;
  height: 100%;
  background: var(--bg-dark);
  border-left: 1px solid var(--border);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 80px 24px 24px;
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile a {
  display: block;
  color: var(--text-muted);
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--primary);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* Mobile Nav Sections (categories groupees) */
.nav-mobile-section {
  margin: 8px 0;
  padding: 0;
}

.nav-mobile-title {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 0 4px;
  margin: 0;
  border-bottom: none;
}

.nav-mobile-section a {
  padding: 10px 0 10px 12px;
  font-size: 14px;
}

.nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

@media (max-width: 768px) {
  .header-content {
    height: 64px;
  }

  .nav {
    display: none;
  }

  .search-box {
    display: none;
  }

  .mobile-menu-btn,
  .mobile-search-btn {
    display: block;
  }

  .nav-mobile {
    display: block;
  }

  .header-actions {
    gap: 4px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .sidebar {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  
}

/* ========================================
   CATALOGUE - Category Navigation
   ======================================== */

/* ========================================
   CATALOGUE - Filters Bar
   ======================================== */

/* Active Filters Tags */
.active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Mobile Filters */


.btn-filters-mobile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-filters-mobile:hover {
  border-color: var(--primary);
}

#filter-count-badge {
  color: var(--primary);
  font-weight: 600;
}

.mobile-sort {
  flex: 1;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

/* ========================================
   CATALOGUE - Results Header
   ======================================== */
.results-header {
  background: var(--bg-dark);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.results-info {
  color: var(--text-muted);
  font-size: 14px;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-sort label {
  color: var(--text-dim);
  font-size: 14px;
}

.results-sort select {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

/* ========================================
   CATALOGUE - Products Grid Enhancement
   ======================================== */

/* No Results State */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results svg {
  color: var(--text-dim);
  margin-bottom: 24px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.load-more {
  display: block;
  margin: 40px auto 0;
}

/* ========================================
   CATALOGUE - Mobile Filters Modal
   ======================================== */

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-range-inputs input {
  flex: 1;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.price-range-inputs input:focus {
  outline: none;
  border-color: var(--primary);
}

.price-separator {
  color: var(--text-dim);
}

/* ========================================
   CATALOGUE - Responsive
   ======================================== */


@media (max-width: 768px) {

  .results-sort {
    display: none;
  }

}



/* ========================================
   PRODUCT PAGE
   ======================================== */

.page-header-compact {
  padding: 16px 0;
  margin-top: auto;
}

.page-header-compact h1 {
  display: none;
}

  display: flex;
  align-items: center;
  gap: 16px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.quantity-selector .qty-btn {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector .qty-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.1);
}

.quantity-selector input[type="number"] {
  width: 80px;
  height: 52px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  -moz-appearance: textfield;
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-selector input[type="number"]:focus {
  outline: none;
  background: rgba(0, 212, 255, 0.08);
}

/* Cart Notification (Toast) */
.cart-notification {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 600px;
  width: calc(100% - 32px);
}

.cart-notification.show {
  bottom: 32px;
}

.cart-notification-content {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 3px solid var(--primary);
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3), 0 0 0 1px rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideUpBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpBounce {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cart-notification-content svg {
  color: var(--success);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.cart-notification-content span {
  flex: 1;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.cart-notification-content .btn-sm {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.cart-notification-content .btn-sm:hover {
  background: #00f0ff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  

  .cart-notification {
    bottom: -100px;
  }

  .cart-notification.show {
    bottom: 16px;
  }

  .cart-notification-content {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ========================================
   MEGA MENU - Navigation Produits
   ======================================== */

.nav-item {
  position: relative;
}

.nav-item.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform 0.3s;
}

.nav-item:hover > a::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 600px;
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.nav-item:hover .nav-dropdown {
  display: flex;
  gap: 32px;
  opacity: 1;
  visibility: visible;
}

.mega-menu-column {
  flex: 1;
  min-width: 160px;
}

.mega-menu-column h4 {
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mega-menu-column a {
  display: block;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.mega-menu-column a:hover {
  color: var(--text);
  padding-left: 8px;
}

/* ========================================
   WHATSAPP WIDGET
   ======================================== */

.whatsapp-float { display: none !important; }
.whatsapp-float-hidden {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 120px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: white;
}

/* ========================================
   FOOTER AMÉLIORÉ
   ======================================== */

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-hours {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ========================================
   PRIX EN GRIS - Catalogue
   ======================================== */

/* ========================================
   CATÉGORIE SUR CARTES PRODUIT
   ======================================== */

/* ========================================
   TEXTE PRESCRIPTION - Page Produit
   ======================================== */

.prescription-text {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
}

.prescription-text h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.prescription-text p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  background: #ffffff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.prescription-text .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* ========================================
   DOCUMENTS/TÉLÉCHARGEMENT - Page Produit
   ======================================== */

.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.checkbox-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}

.checkbox-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-text);
}

.document-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--transition);
}

.document-item:hover {
  background: var(--bg-card-hover);
}

.document-item .doc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-text);
}

.document-item .doc-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text);
}

.document-item .doc-info {
  flex: 1;
}

.document-item .doc-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.document-item .doc-info span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ========================================
   PAGE TÉLÉCHARGEMENT
   ======================================== */

.download-category {
  margin-bottom: 48px;
}

.download-category h2 {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.download-grid {
  display: grid;
  gap: 16px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius);
  transition: var(--transition);
}

.download-item:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.download-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 8px;
  color: white;
}

.download-info {
  flex: 1;
}

.download-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.download-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.download-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.download-btn,
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.download-btn:hover,
.btn-download:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ========================================
   RESPONSIVE MEGA MENU
   ======================================== */

@media (max-width: 1024px) {
  .nav-dropdown {
    min-width: 500px;
  }
}

@media (max-width: 768px) {
  .nav-dropdown {
    display: none !important;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .documents-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ========================================
   MEGA MENU - Applications
   ======================================== */

.mega-column {
  min-width: 180px;
}

.mega-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-column a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
}

.mega-column a:hover {
  color: var(--primary);
  padding-left: 5px;
}





/* ========================================
   MEGA MENU FIX - Navigation Header
   ======================================== */

/* Mega menu plus large pour 4 colonnes */


.nav-item.has-dropdown:hover > 

.mega-menu .mega-menu-column {
  flex: 1 1 200px;
  max-width: 250px;
}

.mega-menu .mega-menu-column h4 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.mega-menu .mega-menu-column a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s;
}

.mega-menu .mega-menu-column a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* Fix position dropdown pour le header */
.header .nav-item {
  position: relative;
}

.header .nav-dropdown {
  z-index: 9999;
}

@media (max-width: 1200px) {
  
  
  .mega-menu .mega-menu-column {
    flex: 1 1 180px;
  }
}

@media (max-width: 992px) {
  
  
  .mega-menu .mega-menu-column {
    flex: 1 1 45%;
  }
}

/* ========================================
   FOOTER IMPROVED - 5 columns
   ======================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-col h4 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s;
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-contact a {
  color: var(--primary-text);
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-brand {
    grid-column: span 3;
    max-width: 100%;
    text-align: center;
  }
  
  .footer-brand .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* ========================================
   COLOR IMPROVEMENTS - Better contrast
   ======================================== */

.cta-btn {
  background: var(--primary);
  color: #FFFFFF !important;
  border: none;
  font-weight: 600;
}

.btn-primary:hover,
button.primary:hover,
.cta-btn:hover {
  background: var(--primary-light);
  color: #FFFFFF !important;
}

/* Links - better visibility */
a:not(.btn):not(.nav-item):not(.header-icon) {
  color: var(--primary-text);
}

a:not(.btn):not(.nav-item):not(.header-icon):hover {
  color: #7BA3FF;
}

/* Text on dark backgrounds */
.hero-title,
.section-title,
h1, h2, h3 {
  color: var(--text);
}

/* Muted text with better contrast */
.hero-subtitle,


/* Light mode improvements */

/* Mega menu in light mode */

/* Footer in light mode */

/* ==========================================
   P1 IMPROVEMENTS - Product Images & CTAs
   ========================================== */

/* Enhanced Product Cards */

/* More Visible CTAs */
.hero-subtitle, .btn-primary {
  /* background: linear-gradient(135deg, #091A50 0%, #0a1f5e 100%); */
  color: white !important;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  /* box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); */
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Hero CTA Enhancement */
.hero-cta .btn {
  padding: 16px 36px;
  font-size: 17px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Buttons Enhancement */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-buttons .btn {
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, #091A50 0%, #0a1f5e 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}

.hero-buttons .btn-secondary {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(4px);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

/* ==========================================
   P2 - Testimonials Section
   ========================================== */

.testimonials-section {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================
   P2 - Google Maps Contact
   ========================================== */

.contact-map {
  margin-top: 48px;
}

.contact-map h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  display: block;
}

.map-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* P3: Simplified Footer - 4 columns */
.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .footer-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   P2.26 - ILLUSTRATIONS COTE A COTE
   ======================================== */

.illustrations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.illustrations-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

/* ========================================
   MEGA MENU REDESIGN - P1 UX Enhancement
   ======================================== */

/* Override base mega menu for better UX */


.nav-item.has-dropdown:hover > 

/* Column styling with visual separation */
.mega-menu .mega-menu-column {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 28px 24px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.mega-menu .mega-menu-column:last-child {
  border-right: none;
}

.mega-menu .mega-menu-column:hover {
  background: var(--bg-card-hover);
}

/* Category header with icon */
.mega-menu .mega-menu-column h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* Category icon styling */
.mega-menu .mega-menu-column h4::before {
  content: '';
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: var(--primary-glow);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-menu .mega-menu-column:nth-child(1) h4::before {
  background: linear-gradient(135deg, rgba(74, 123, 255, 0.2), rgba(74, 123, 255, 0.1));
}

.mega-menu .mega-menu-column:nth-child(2) h4::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
}

.mega-menu .mega-menu-column:nth-child(3) h4::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
}

.mega-menu .mega-menu-column:nth-child(4) h4::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
}

/* Enhanced link styling */
.mega-menu .mega-menu-column a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin: 2px 0;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mega-menu .mega-menu-column a:hover {
  color: var(--text);
  background: rgba(74, 123, 255, 0.1);
  padding-left: 16px;
}

/* Visual indicator dot on hover */
.mega-menu .mega-menu-column a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: transparent;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mega-menu .mega-menu-column a:hover::before {
  background: var(--primary-text);
}

/* Responsive overflow fix */
@media (max-width: 1200px) {
  
  
  .mega-menu .mega-menu-column {
    flex: 1 1 200px;
    min-width: 200px;
  }
}

@media (max-width: 992px) {
  
  
  .mega-menu .mega-menu-column {
    flex: 1 1 calc(50% - 1px);
    max-width: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .mega-menu .mega-menu-column:last-child,
  .mega-menu .mega-menu-column:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
}

/* Light theme adjustments */

/* SVG icons in mega menu headers */
.mega-menu .mega-menu-column h4 svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  background: var(--primary-glow);
  border-radius: 6px;
  color: var(--primary-text);
  flex-shrink: 0;
}

/* Remove pseudo-element when SVG is present */
.mega-menu .mega-menu-column h4:has(svg)::before {
  display: none;
}

/* Different colors per column */
.mega-menu .mega-menu-column:nth-child(1) h4 svg {
  background: linear-gradient(135deg, rgba(74, 123, 255, 0.25), rgba(74, 123, 255, 0.1));
  color: #4A7BFF;
}

.mega-menu .mega-menu-column:nth-child(2) h4 svg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  color: #10b981;
}

.mega-menu .mega-menu-column:nth-child(3) h4 svg {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
  color: #f59e0b;
}

.mega-menu .mega-menu-column:nth-child(4) h4 svg {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
  color: #8b5cf6;
}

/* Light theme SVG styling */

/* ========================================
   MEGA MENU - FULL WIDTH CENTERED FIX
   ======================================== */

/* Override to center mega menu relative to viewport */
.header .nav-item.has-dropdown > 

/* Full-width background option */
.header .nav-item.has-dropdown > .nav-dropdown.mega-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: inherit;
  border-radius: 0;
  z-index: -1;
  display: none; /* Enable if full-width bg desired */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .header .nav-item.has-dropdown > 
}

@media (max-width: 992px) {
  .header .nav-item.has-dropdown > 
}

/* ========================================
   P0 FIXES - Mega Menu Gap + A propos
   ======================================== */

/* Fix 1: Gap mega menu - Add invisible hover bridge */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px; /* Bridge gap between nav item and dropdown */
  background: transparent;
}

/* Fix 2: Reduce top gap on mega menu */
.header .nav-item.has-dropdown > 

/* Fix 3: A propos on single line */
.nav a,
.nav-item > a {
  white-space: nowrap;
}

/* Fix 4: Ensure proper hover continuation */
.nav-item.has-dropdown:hover > .nav-dropdown.mega-menu,
.nav-item.has-dropdown:focus-within > 

/* ========================================
   HEADER ICONS REDESIGN
   ======================================== */

/* Hide search box by default on desktop */
.search-box-desktop.hidden {
  display: none !important;
}

.search-box-desktop.visible {
  display: flex !important;
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

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

/* Search toggle button styling */
.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.search-toggle-btn:hover {
  color: var(--text);
}

/* Header actions layout */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Hide mobile-only elements on desktop */
@media (min-width: 993px) {
  .mobile-only {
    display: none !important;
  }
}

/* On mobile, hide desktop search toggle */
@media (max-width: 992px) {
  .search-toggle-btn {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
}

/* Light theme */

/* ==========================================
   NOTIFICATION TOAST - BUG-003 FIX
   ========================================== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  animation: slideIn 0.3s ease-out;
  max-width: 400px;
  font-weight: 500;
}

.notification button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  margin-left: 8px;
}

.notification button:hover {
  opacity: 1;
}

.notification-success {
  background: #10b981;
  color: white;
}

.notification-error {
  background: #ef4444;
  color: white;
}

.notification-warning {
  background: #f59e0b;
  color: white;
}

.notification-info {
  background: #3b82f6;
  color: white;
}

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

/* Cart icon bounce animation */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

.cart-icon-bounce {
  animation: cartBounce 0.5s ease-out;
}

/* =====================================================
   FIX: Category dropdowns z-index above filters bar
   ===================================================== */

/* =====================================================
   LIGHT MODE CONTRAST FIXES
   ===================================================== */


/* ===========================================
   BUG FIXES - 05/01/2026
   =========================================== */

/* Bug 1: Force filters-bar visible */


/* Bug 3: Force white text on active buttons (light mode) */

/* =====================================================
   BUG 3 FIX: Force filters-bar and children visible
   ===================================================== */

/* On mobile, hide desktop filters and show mobile button */


/* ========================================
   HEXAGONE OFFICIAL BLUE #091A50
   P0 Fix - Applied to all primary text elements
   ======================================== */

/* Light mode: Titles and headings in Hexagone blue */

/* Light mode: Breadcrumb links */

/* Light mode: Primary buttons text on hover */

/* Light mode: Active navigation links */

/* Light mode: Category and product card titles */

/* Footer always uses Hexagone blue for branding */
.footer-logo-text,
.footer h3,
.footer h4 {
  color: #ffffff;
}

/* ========================================
   P1.1 - MEGA MENU REDESIGN
   - Fond gris clair
   - 4 colonnes responsive
   - Centrage viewport
   - Fix overflow au zoom
   ======================================== */

/* Mega menu container - centré et limité */


/* Mode sombre - fond adapté */

/* Colonnes du mega menu */
.mega-menu .mega-menu-column {
  min-width: 0 !important;
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.mega-menu .mega-menu-column:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) !important;
}

/* Titres de catégorie avec icônes */
.mega-menu .mega-menu-column h4 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #091A50 !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #091A50 !important;
}

.mega-menu .mega-menu-column h4 svg {
  width: 20px !important;
  height: 20px !important;
  color: #091A50 !important;
  flex-shrink: 0 !important;
}

/* Liens du mega menu */
.mega-menu .mega-menu-column a {
  display: block !important;
  padding: 6px 0 !important;
  font-size: 13px !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.mega-menu .mega-menu-column a:hover {
  color: #091A50 !important;
  padding-left: 8px !important;
}

/* Responsive tablette - 2 colonnes */
@media (max-width: 1024px) {
  
}

/* Responsive mobile - 1 colonne */
@media (max-width: 640px) {
  
  
  .mega-menu .mega-menu-column {
    padding: 12px !important;
  }
}

/* ========================================
   P2.24 - LIGHT MODE PAGE TÉLÉCHARGEMENT
   ======================================== */

/* ========================================
   P2.11 - DOCUMENTS COMPACTS (Page Produit)
   ======================================== */

.document-item {
  padding: 8px 12px;
  margin-bottom: 4px;
}

.document-item .doc-icon {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.document-item .doc-info h4 {
  font-size: 12px;
}

.document-item .doc-info span {
  font-size: 10px;
}

/* ========================================
   P3.5 - PRESCRIPTION DESCRIPTION (Fiche Produit)
   ======================================== */

.prescription-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prescription-header svg {
  flex-shrink: 0;
}

.btn-copy-prescription {
  margin-left: auto;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-prescription:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

.prescription-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  font-family: inherit;
  word-break: break-word;
}

/* Light mode */

/* Responsive */
@media (max-width: 768px) {
  

  .prescription-text {
    font-size: 13px;
    padding: 10px;
  }
}

/* ========================================
   ANIMATIONS - hex-001
   ======================================== */

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(9, 26, 80, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(9, 26, 80, 0);
  }
}

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

/* Animate on scroll - initial state */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Animations */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Button Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::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 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Section Animations */
.section-header {
  animation: fadeInUp 0.6s ease-out;
}

.feature {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(9, 26, 80, 0.2);
}

/* Stagger animations for grid items */
.features-grid .feature:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature:nth-child(4) { animation-delay: 0.4s; }

.specifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 768px) {
  .specifications-grid {
    grid-template-columns: 1fr;
  }
  
  .variants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   B2B RESTRICTIONS - Prix et Documents
   ============================================= */

/* Prix masque */
.price-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--bg-section) 0%, rgba(9, 26, 80, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.price-locked svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.price-locked a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.price-locked a:hover {
  text-decoration: underline;
}

/* Document verrouille */
.download-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

.download-locked svg {
  width: 14px;
  height: 14px;
}

.download-locked .tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  z-index: 100;
}

.download-locked:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* Badge connexion requise */
.login-required-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(9, 26, 80, 0.15);
  border: 1px solid rgba(9, 26, 80, 0.3);
  border-radius: 20px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

/* Prix dans carte produit - version masquee */


/* Compte en attente */
.account-pending-notice {
  padding: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.account-pending-notice h4 {
  color: #f59e0b;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-pending-notice p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* B2B Notice for catalogue */
.b2b-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #bcd4ed;
  border-radius: 8px;
  color: var(--text);
}

.b2b-notice svg {
  flex-shrink: 0;
  color: var(--primary);
}

.b2b-notice span {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.b2b-notice strong {
  color: var(--primary);
}

.b2b-notice a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.b2b-notice a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .b2b-notice {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
  }
}

/* ============ CART TOAST NOTIFICATION ============ */
.cart-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface, #ffffff);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 99999;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-width: 380px;
  min-width: 300px;
}

.cart-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.cart-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-toast-icon svg {
  width: 20px;
  height: 20px;
}

.cart-toast-success .cart-toast-icon {
  background: #dcfce7;
  color: #16a34a;
}

.cart-toast-error .cart-toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.cart-toast-content {
  flex: 1;
  min-width: 0;
}

.cart-toast-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary, #1f2937);
  margin-bottom: 2px;
}

.cart-toast-product {
  font-size: 13px;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-toast-btn {
  padding: 8px 16px;
  background: var(--primary, #2563eb);
  color: white !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.cart-toast-btn:hover {
  background: var(--primary-dark, #1d4ed8);
  text-decoration: none;
}

.cart-toast-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cart-toast-close:hover {
  background: var(--surface-hover, #f3f4f6);
  color: var(--text-primary, #1f2937);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .cart-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    min-width: 0;
    top: 12px;
  }
  
  .cart-toast-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* =====================================================
   CATALOGUE - Sticky Wrapper (category-nav + filters-bar)
   ===================================================== */

/* =====================================================
   PRODUCT PAGE - Enhanced Design (2026-01)
   ===================================================== */

  }
}



/* ============================================
   PRODUCT VARIANTS (COMBINATIONS)
   ============================================ */

.variant-group {
  margin-bottom: 1rem;
}

.variant-group:last-child {
  margin-bottom: 0;
}

.variant-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 4px;
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #1d1d1f);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
  text-align: center;
}

.variant-btn:hover {
  border-color: var(--primary, #3b82f6);
  background: var(--bg-hover, #374151);
}

.variant-btn.active {
  border-color: var(--primary, #3b82f6);
  background: var(--primary, #3b82f6);
  color: #fff;
}

/* Color swatches */
.variant-btn.variant-color {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  border-width: 2px;
}

.variant-btn.variant-color.active {
  box-shadow: 0 0 0 2px var(--bg-dark, #111827), 0 0 0 4px var(--primary, #3b82f6);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .variant-options {
    gap: 0.375rem;
  }
  
  .variant-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-width: 50px;
  }
  
  .variant-btn.variant-color {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}

/* ====== PRODUCT VARIANTS/COMBINATIONS ====== */


.variants-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.variants-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.variant-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-group-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-option {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.variant-option:hover {
  border-color: #007bff;
}

.variant-option.selected {
  border-color: #007bff;
  background: #007bff;
  color: white;
}

.variant-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.variant-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.variant-result strong {
  color: #007bff;
}

@media (max-width: 768px) {
  .variant-options {
    gap: 6px;
  }
  .variant-option {
    padding: 6px 12px;
    font-size: 12px;
  }
  .variant-result {
    flex-direction: column;
    gap: 8px;
  }
}

/* Force light mode - no toggle */
.theme-toggle { display: none !important; }
html { color-scheme: light only; }

/* ==========================================
   PRODUCT PAGE V2 GALLERY STYLE
   ========================================== */





  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}



/* Project count badge - centered below cart icon */
.project-count {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #091A50;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 4px;
}

/* Fix click on search toggle button */
.search-toggle-btn svg {
  pointer-events: none;
}

/* Header icon common styles */
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
  color: #666;
  transition: color 0.2s;
}

.header-icon:hover {
  color: #1a1a2e;
}

.header-icon svg {
  width: 22px;
  height: 22px;
}

/* Footer text colors - white on dark background */
.footer, .footer * {
  color: #fff !important;
}

.footer a {
  color: rgba(255,255,255,0.8) !important;
}

.footer a:hover {
  color: #fff !important;
}

.footer svg {
  stroke: #fff !important;
}

.footer h4 {
  color: #fff !important;
}

/* ========================================
   CONTRAST FIXES - Force proper text colors
   ======================================== */
.page-hero, .section-dark, [style*="background: #0a"], [style*="background:#0a"],
[style*="background-color:#0a"], [style*="background-color: #0a"],
[style*="background: #000"], [style*="background: rgb(0"] {
  color: #ffffff;
}
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero p,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
  color: #ffffff !important;
}
/* Ensure header text is ALWAYS dark regardless of page hero */
.header, .header * {
  color: #1d1d1f;
}
.header .nav a { color: #374151; }
.header .nav a:hover, .header .nav a.active { color: #091A50; }
.header .header-icon, .header .header-icon svg { color: #374151; stroke: #374151; }
.header .header-icon:hover svg { color: #091A50; stroke: #091A50; }
.header .logo { color: #091A50; }

/* ========================================
   RESPONSIVE FIXES GLOBAUX
   ======================================== */
@media (max-width: 768px) {
  /* Contact page */
  .contact-layout { padding: 20px 0; gap: 20px; }
  .contact-form-card, .contact-info-card { padding: 20px; }
  .contact-info-card h2 { font-size: 18px; }

  /* Product page - table references scroll horizontal */
  .references-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .references-table { min-width: 650px; }

  /* Product page - configurateur */
  .product-hero-content { flex-direction: column; }
  .product-gallery { width: 100%; }
  .product-info { width: 100%; }
  .product-actions { flex-direction: column; gap: 10px; }
  .product-actions .btn-primary,
  .product-actions .btn-secondary { width: 100%; justify-content: center; }

  /* CTA box */
  .cta-section .container { padding: 0 16px; }

  /* Footer */
  .footer-grid { gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

  /* General */
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  /* Page headers */
  .page-header { padding: 100px 0 30px; }
  .page-header h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  /* Very small screens */
  .references-table { min-width: 580px; font-size: 11px; }
  .references-table th, .references-table td { padding: 8px 6px; }
  .btn-add-cart { padding: 5px 8px; font-size: 11px; }
  .btn-add-cart svg { display: none; }
  .ref-qty-input { width: 40px; height: 28px; }

  /* Cards */
  .product-card h3 { font-size: 12px; }
  .product-card .product-price { font-size: 10px; }

  /* Hero */
  .hero-title { font-size: 32px; }
}

@media (max-width: 768px) { .gallery, .gallery-main { max-width: 100vw; overflow: hidden; } .gallery-main img { max-width: 100%; height: auto; } }



/* Contact page mobile fix */
@media (max-width: 768px) {
  .contact-layout { display: flex !important; flex-direction: column !important; }
  .contact-form-wrapper, .contact-info-wrapper { width: 100% !important; max-width: 100% !important; }
  .contact-form-card, .contact-info-card, .contact-cta-card { max-width: 100%; overflow: hidden; }
  .contact-map iframe { width: 100% !important; }
  .info-item { overflow-wrap: break-word; }
}


/* ========================================
   NAV DROPDOWN - FIX DEFINITIF
   ======================================== */
/* Petit dropdown (Conception, etc.) */
.nav-item.has-dropdown > .nav-dropdown:not(.mega-menu) {
  min-width: 220px !important;
  max-width: 280px !important;
  padding: 12px 0 !important;
  display: none;
  flex-direction: column !important;
  gap: 0 !important;
}
.nav-item.has-dropdown:hover > .nav-dropdown:not(.mega-menu) {
  display: flex !important;
  flex-direction: column !important;
}
/* Links dans TOUS les dropdowns */
.nav-dropdown a {
  color: #374151 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  display: block !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover {
  color: #091A50 !important;
  background: #f5f5f7 !important;
}
/* Mega menu links (override pour être plus compact) */



/* ========================================
   GLOBAL CONTRAST FIX - ANTI TON SUR TON
   ======================================== */
/* All text on white/light backgrounds must be dark */
body, .container, main, section, article, .card, .content, [class*="section"]:not(.cta-section):not([class*="dark"]):not(.image-showcase) {
  color: #1d1d1f;
}
/* Headings color - only on light backgrounds, not in dark sections */
p, li, td, span, label, div { color: inherit; }

/* Dark backgrounds (footer, CTA, hero-dark) must have white text */
.cta-section, footer, .footer, [style*="background: #091A50"], [style*="background:#091A50"],
[class*="dark-bg"], .section-dark { color: #ffffff !important; }
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section p,
footer h1, footer h2, footer h3, footer h4, footer p, footer a,
.footer h1, .footer h2, .footer h3, .footer h4, .footer p, .footer a { color: #ffffff !important; }
.cta-section .btn { color: #091A50 !important; background: #ffffff !important; }
.cta-section .btn-secondary, .cta-section a[class*="secondary"] {
  color: #ffffff !important; background: transparent !important; border: 2px solid rgba(255,255,255,0.4) !important;
}

/* Cards must always have dark text */
.card, [class*="card"], .pillar-card, .value-card, .feature-card, .pilier {
  color: #1d1d1f !important;
}
.card h3, .card h4, [class*="card"] h3, [class*="card"] h4 { color: #091A50 !important; }
.card p, [class*="card"] p { color: #374151 !important; }

/* Image showcases keep white text (on photo bg) */
.image-showcase, .image-showcase * { color: #ffffff; }
.image-showcase h1, .image-showcase h2 { color: #ffffff !important; }

/* Form elements always dark text on light bg */
input, textarea, select { color: #1d1d1f !important; background: #ffffff !important; }
input::placeholder, textarea::placeholder { color: #9ca3af !important; }

/* Accordion/tabs */
.accordion-header, .tab-btn, [class*="tab-btn"], [class*="filter-btn"] { color: #374151; }
.accordion-header:hover { color: #091A50; }


/* SCOPED HEADING COLORS - light bg only */
:not(.page-hero):not(.image-showcase):not(.cta-section):not(footer):not(.footer) > h1,
:not(.page-hero):not(.image-showcase):not(.cta-section):not(footer):not(.footer) > h2,
:not(.page-hero):not(.image-showcase):not(.cta-section):not(footer):not(.footer) > h3 {
  color: #091A50;
}
/* Force white text in ALL dark containers */
.page-hero, .page-hero *,
.image-showcase, .image-showcase *,
[style*="background: #0a"], [style*="background:#0a"] { color: #ffffff !important; }
.page-hero h1, .page-hero h2, .page-hero p, .page-hero span,
.page-hero .highlight, .page-hero .hero-badge,
.page-hero .btn-primary, .page-hero a { color: #ffffff !important; }
.page-hero .btn-primary { background: #ffffff !important; color: #091A50 !important; }
.page-hero .btn-secondary { border-color: rgba(255,255,255,0.4) !important; }
.page-hero .hero-badge { background: rgba(255,255,255,0.1) !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.2) !important; padding: 8px 16px; border-radius: 8px; display: inline-block; }




/* ========================================
   MEGA MENU — PREMIUM FULL-WIDTH CENTERED
   ======================================== */
.nav-dropdown.mega-menu {
  position: fixed !important;
  top: 72px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 960px !important;
  max-width: calc(100vw - 48px) !important;
  min-width: unset !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(9,26,80,0.18), 0 0 0 1px rgba(9,26,80,0.04) !important;
  z-index: 9999 !important;
  overflow: hidden !important;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nav-item.has-dropdown:hover > .nav-dropdown.mega-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Grid 3 colonnes spacieuses */
.mega-menu-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 0 !important;
  padding: 36px 0 28px !important;
}

/* Colonnes avec séparateurs */
.mega-menu-col {
  padding: 0 36px !important;
  border-right: 1px solid #f0f1f3;
}
.mega-menu-col:last-child {
  border-right: none !important;
}

/* Titres de section */
.mega-menu-col h4 {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: #091A50 !important;
  margin-bottom: 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #091A50 !important;
  display: inline-block !important;
}
.mega-menu-col h4.mt-16 {
  margin-top: 24px !important;
}

/* Liens */
.mega-menu-col a {
  display: block !important;
  padding: 9px 12px !important;
  margin: 0 -12px !important;
  font-size: 15px !important;
  color: #374151 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  line-height: 1.4 !important;
}
.mega-menu-col a:hover {
  color: #091A50 !important;
  background: #f0f4ff !important;
  padding-left: 16px !important;
}

/* Footer "Voir tout le catalogue" */
.mega-menu-footer {
  border-top: 1px solid #f0f1f3 !important;
  padding: 16px 36px !important;
  text-align: center !important;
  background: #fafbfc !important;
  display: block !important;
}
.mega-menu-all,
.mega-menu-all:link,
.mega-menu-all:visited,
.mega-menu-all:hover,
.mega-menu-all:active,
.mega-menu-all:focus {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
}
.mega-menu-all:hover {
  background: #091A50 !important;
  text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-dropdown.mega-menu {
    width: calc(100vw - 24px) !important;
  }
  .mega-menu-col { padding: 0 20px !important; }
  .mega-menu-col a { font-size: 14px !important; }
}


/* FORCE HIDE search box until toggled */
.search-box-desktop { display: none !important; }
.search-box-desktop.visible { display: flex !important; }
/* Nav links no-wrap */
.nav a { white-space: nowrap !important; }

/* ========================================
   MOBILE RESPONSIVE - COMPLET
   ======================================== */
@media (max-width: 768px) {
  /* Homepage sections - pas 100vh (trop grand) */
  .hero, .image-showcase, .stats-section, .cta-section {
    height: auto !important;
    min-height: 60vh !important;
    padding: 60px 20px !important;
  }

  /* Désactiver scroll snap mobile (trop aggressif) */
  html { scroll-snap-type: none !important; }

  /* Hero texte plus petit */
  .hero-title { font-size: 38px !important; line-height: 1.1 !important; }
  .hero-subtitle { font-size: 15px !important; }
  .hero-eyebrow { font-size: 11px !important; }
  .hero-cta-group { flex-direction: column !important; gap: 12px !important; width: 100%; }
  .hero-cta { width: 100% !important; justify-content: center; text-align: center; }

  /* Showcase textes mobile */
  .image-showcase-title { font-size: 42px !important; line-height: 1 !important; }
  .image-showcase-subtitle { font-size: 14px !important; }
  .image-showcase-eyebrow { font-size: 11px !important; margin-bottom: 8px !important; }
  .image-showcase-cta { font-size: 13px !important; padding: 10px 20px !important; }

  /* Cards catalogue : 1 colonne plus lisible */
  .products-grid, .catalogue-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
  }
  .product-card h3 { font-size: 14px !important; }
  .product-card .product-image-wrapper { aspect-ratio: 1/1 !important; }
  .product-card .product-subcategory { font-size: 10px !important; }
  .product-card .product-price { font-size: 11px !important; }
  .product-card .product-tags { top: 6px !important; right: 6px !important; }
  .product-card .product-tag { font-size: 9px !important; padding: 2px 5px !important; }

  /* Catalogue filters mobile */
  .category-nav-scroll {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }
  .category-nav-scroll::-webkit-scrollbar { display: none; }
  .category-nav-btn { white-space: nowrap !important; flex-shrink: 0; }

  /* Produit page mobile */
  .product-hero-content, .product-hero, [class*="product-hero"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .gallery, .gallery-main { width: 100% !important; max-width: 100% !important; }
  .gallery-main img { max-width: 100% !important; height: auto !important; }
  .gallery-thumbs { display: flex !important; flex-direction: row !important; overflow-x: auto; }
  .gallery-thumb { flex-shrink: 0; width: 60px !important; height: 60px !important; }

  .variants-section, .product-info { width: 100% !important; }
  .variant-btn { font-size: 13px !important; padding: 8px 12px !important; }

  .product-actions { flex-direction: column !important; gap: 10px !important; }
  .product-actions .btn-primary, .product-actions .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px !important;
  }

  /* Table references scroll horizontal */
  .references-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 -12px !important;
    padding: 0 12px !important;
  }
  .references-table { min-width: 600px !important; font-size: 11px !important; }
  .references-table th, .references-table td { padding: 8px 6px !important; }

  /* Related products 2 cols */
  .related-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* Tabs produit */
  .tabs-nav { overflow-x: auto !important; flex-wrap: nowrap !important; }
  .tab-btn { white-space: nowrap !important; flex-shrink: 0; padding: 10px 16px !important; font-size: 13px !important; }

  /* Documents grid 1 col */
  .documents-list { grid-template-columns: 1fr !important; }

  /* Général */
  h1 { font-size: 26px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }
  .container { padding: 0 16px !important; }
  section { padding-left: 0; padding-right: 0; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Mon projet / panier mobile */
  .cart-item, .project-item {
    grid-template-columns: 80px 1fr !important;
    gap: 12px !important;
  }
  .cart-item-actions {
    grid-column: span 2 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px solid #e5e7eb !important;
  }

  /* Checkout */
  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-steps { overflow-x: auto; }
  .checkout-step { flex: 0 0 80px !important; font-size: 11px !important; padding: 8px !important; }
}

@media (max-width: 480px) {
  .products-grid, .catalogue-grid { grid-template-columns: 1fr !important; }
  .related-grid { grid-template-columns: 1fr !important; }
  .hero-title { font-size: 32px !important; }
  .image-showcase-title { font-size: 36px !important; }
}

/* FIX LOGO MOBILE - ne doit pas etre override par img{max-width:100%} */
@media (max-width: 768px) {
  .logo { height: 60px !important; width: auto !important; flex-shrink: 0 !important; }
  .logo-img { height: 90px !important; width: auto !important; max-width: 160px !important; }
  .header-content { gap: 8px; }
  .header-actions { flex-shrink: 0; gap: 6px; }
  .header-icon, .header-icon-btn, .mobile-menu-btn, .mobile-search-btn {
    width: 36px !important; height: 36px !important; padding: 6px !important;
  }
}
