/* ==========================================================================
   C.A.G. Équipement Inc. (Cagequip)
   Design officiel 100% fidèle au site https://cagequip.qc.ca/dev/
   Astra / Elementor / Toolset
   ========================================================================== */

/* Polices locales officielles Astra (Zéro latence, zéro décalage au chargement) */
@font-face {
  font-family: 'Special Gothic';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/special-gothic-400.woff2') format('woff2');
  font-display: block;
}

@font-face {
  font-family: 'Special Gothic';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/special-gothic-700.woff2') format('woff2');
  font-display: block;
}

:root {
  --cag-navy: #1a2d3e;        /* En-tête principal officiel */
  --cag-dark-sub: #0c1520;    /* Sous-barre fil d'ariane officielle */
  --cag-slate: #364151;       /* Boutons & encarts de titre */
  --cag-bg: #DBE5EC;          /* Fond de page officiel Astra */
  --cag-blue-hover: #6ec1e4;  /* Couleur lien actif & hover */
  --cag-accent: #0067ff;
  
  --font-title: 'Alata', sans-serif;
  --font-nav: 'Special Gothic', 'Source Sans 3', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --site-max-width: 1280px;
  --header-max-width: 1280px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Tokens d'arrondis et ombres modernes */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.25);
  
  --color-primary: var(--cag-navy);
  --color-cta: var(--cag-slate);
  --color-border: #e2e8f0;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
}

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

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #364151;
  background-color: var(--cag-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TRANSITIONS DE PAGE ULTRA-FLUIDES (Cross-fade rapide & sans décalage)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 0.14s ease-out both pageNativeFadeOut;
  }
  ::view-transition-new(root) {
    animation: 0.18s ease-in both pageNativeFadeIn;
  }
}

@keyframes pageNativeFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.998); }
}

@keyframes pageNativeFadeIn {
  from { opacity: 0; transform: scale(0.998); }
  to { opacity: 1; transform: scale(1); }
}

/* Classes pour transition fluide instantanée du contenu principal */
.page-fade-out {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out !important;
  pointer-events: none;
}

.page-fade-in {
  animation: pageContentEnter 0.18s var(--ease-spring) forwards;
}

@keyframes pageContentEnter {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ==========================================================================
   EN-TÊTE PRINCIPAL - MENU SUR 1 SEULE LIGNE & ANIMATIONS FLUIDES
   ========================================================================== */
.site-header {
  background-color: var(--cag-navy);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  flex-wrap: nowrap; /* GARANTI SUR 1 SEULE LIGNE */
  gap: 20px;
  box-sizing: border-box;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease-spring);
}

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

.site-logo img {
  width: 275px;
  max-width: 275px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.site-nav-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.main-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.main-nav-menu li {
  position: relative;
}

.main-nav-menu li a {
  font-family: var(--font-nav);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  padding: 10px 17px;
  letter-spacing: 0.4px;
  display: inline-block;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s var(--ease-smooth), transform 0.25s var(--ease-spring);
}

/* Ligne d'animation moderne sous les liens du menu (slide/expand) */
.main-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #6ec1e4 0%, #38bdf8 100%);
  border-radius: 3px;
  transition: width 0.3s var(--ease-spring), left 0.3s var(--ease-spring);
}

.main-nav-menu li a:hover {
  color: #6ec1e4;
  transform: translateY(-2px);
}

.main-nav-menu li a:hover::after,
.main-nav-menu li a.active::after {
  width: calc(100% - 28px);
  left: 14px;
}

.main-nav-menu li a.active {
  color: #6ec1e4;
}

/* Calibrage spécifique pour le menu en langue anglaise (alignement et largeur 100% identiques au français) */
html[lang="en"] .main-nav-menu {
  gap: 14px;
}

html[lang="en"] .main-nav-menu li a {
  padding: 10px 28px;
}

html[lang="en"] .main-nav-menu li a:hover::after,
html[lang="en"] .main-nav-menu li a.active::after {
  width: calc(100% - 40px);
  left: 20px;
}

/* Commutateur de langue TranslatePress V2 avec animation */
.lang-switcher-wrap {
  margin-left: 10px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0b131c;
  color: #ffffff !important;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--ease-spring);
}

.lang-btn:hover {
  background-color: #1e293b;
  border-color: #6ec1e4;
  color: #6ec1e4 !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Actions rapides mobiles dans l'en-tête (Masquées par défaut sur Desktop) */
.header-mobile-actions {
  display: none;
}

.mobile-drawer-contact {
  display: none;
}

.mobile-product-sticky-bar {
  display: none;
}

/* Bouton menu mobile */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SOUS-BARRE FIL D'ARIANE (Below-Header - Exact noir/bleu foncé)
   ========================================================================== */
.below-header-bar {
  background-color: var(--cag-dark-sub);
  width: 100%;
  padding: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.below-header-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.below-header-inner a {
  color: #ffffff;
}

.below-header-inner a:hover {
  color: var(--cag-blue-hover);
}

.below-header-inner .breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.8;
}

/* ==========================================================================
   CONTENU PRINCIPAL
   ========================================================================== */
.site-main-content {
  flex-grow: 1;
  width: 100%;
  padding: 25px 20px 40px;
}

.main-container {
  max-width: var(--site-max-width);
  margin: 0 auto;
}

/* ==========================================================================
   PAGE D'ACCUEIL (cagequip.qc.ca/dev/)
   ========================================================================== */
/* Boîte de titre officiel Elementor avec ombre & animation d'entrée */
.home-title-box {
  display: table;
  margin: 10px auto 25px auto;
  background-color: var(--cag-slate);
  color: var(--cag-bg);
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  padding: 8px 36px;
  border-radius: 8px;
  box-shadow: 4px 6px 9px 0px rgba(0, 0, 0, 0.4);
  animation: titleDropIn 0.6s var(--ease-spring);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-title-box:hover {
  transform: translateY(-2px);
  box-shadow: 6px 8px 14px 0px rgba(0, 0, 0, 0.5);
}

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

/* Boîte blanche de contenu */
.home-white-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  padding: 35px 30px 45px;
  max-width: var(--site-max-width);
  margin: 0 auto;
  animation: cardFadeIn 0.7s var(--ease-smooth);
}

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

/* Carrousel de bannières 1 slide à la fois avec transition douce */
.home-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 35px auto;
  aspect-ratio: 1024 / 341;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.home-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.75s var(--ease-smooth), transform 0.75s var(--ease-smooth), visibility 0.75s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.home-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Indicateurs animés du carrousel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: -15px auto 35px auto;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s var(--ease-spring);
}

.indicator-dot:hover {
  background-color: #64748b;
  transform: scale(1.25);
}

.indicator-dot.active {
  background-color: var(--cag-slate);
  width: 28px;
  border-radius: 5px;
}

/* Grille des 3 cartes d'accès (Équipement neuf, usagé, fournitures) */
.home-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 860px;
  margin: 0 auto;
  justify-items: center;
}

.home-card-link {
  display: block;
  width: 250px;
  height: 250px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid #eef2f6;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}

.home-card-link:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.home-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-card-link:hover img {
  opacity: 0.65;
  transform: scale(1.04);
}

/* ==========================================================================
   PAGE DES CATÉGORIES (Grille 5 Colonnes Toolset)
   ========================================================================== */
.categories-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.category-card-col {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
}

.category-card-col:hover {
  transform: translateY(-6px);
}

.category-card-col:hover .category-card-btn {
  background-color: var(--cag-navy);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.category-card-image {
  background-color: #ffffff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  transition: box-shadow 0.35s var(--ease-spring), border-color 0.35s ease;
}

.category-card-col:hover .category-card-image {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.4s var(--ease-smooth);
}

.category-card-col:hover .category-card-image img {
  transform: scale(1.08); /* Effet zoom Toolset */
}

.category-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cag-slate);
  color: #ffffff !important;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 8px;
  margin-top: 8px;
  min-height: 48px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.category-card-btn:hover {
  background-color: var(--cag-navy);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   FICHE PRODUIT (Identique à cagequip.qc.ca/dev/produit/rottler-f69a/)
   ========================================================================== */
.product-detail-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  padding: 35px 40px;
  max-width: var(--site-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.product-detail-flex {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Colonne de gauche : Galerie 1 grande + 3 miniatures */
.product-gallery-side {
  width: 100%;
  min-width: 0;
}

.gallery-main-container {
  position: relative;
  background: #ffffff;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-main-container:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.gallery-main-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.gallery-thumbs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-thumb-item {
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0.6;
  border-radius: 10px;
  transition: all 0.25s var(--ease-spring);
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
  opacity: 1;
  border-color: #1a2d3e;
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Colonne de droite : Titre, sous-titre, prix et onglets */
.product-content-side {
  width: 100%;
  min-width: 0;
}

/* Grille Titre / Modèle & Prix fixes (Spécifications PDF) */
.product-title-price-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 25px;
}

.product-title-block {
  flex: 1 1 0%;
  min-width: 0;
  border: 1.5px solid #475569;
  border-radius: 4px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.product-main-title {
  font-family: var(--font-nav);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.product-sub-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
  margin: 0;
}

.product-price-block {
  flex: 0 0 210px;
  border: 1.5px solid #475569;
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #ffffff;
}

.product-price-value {
  font-family: var(--font-nav);
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.product-price-note {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

.product-action-row {
  margin: 15px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--cag-slate);
  color: #ffffff !important;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.25s var(--ease-spring);
}

.product-quote-btn:hover {
  background-color: var(--cag-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.product-divider-line {
  border: 0;
  border-top: 1px solid #cbd5e1;
  margin: 20px 0 25px 0;
}

/* Onglets Toolset / WooCommerce fidèles */
.product-tabs-bar {
  display: flex;
  list-style: none;
  border-bottom: 2px solid #000000;
  margin-bottom: 25px;
  gap: 6px;
}

@media (max-width: 768px) {
  .product-tabs-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .product-tabs-bar::-webkit-scrollbar {
    display: none;
  }
}

.tab-btn {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: color 0.25s var(--ease-smooth), transform 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #0f172a;
  transform: translateY(-1px);
}

.tab-btn.active {
  color: #000000 !important;
  border: 2px solid #000000;
  border-bottom: 2px solid #ffffff;
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.12);
  background: #ffffff;
  margin-bottom: -2px;
}

.tab-content-panel {
  display: none;
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.tab-content-panel.active {
  display: block;
  animation: tabFadeInUp 0.35s var(--ease-spring);
}

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

.tab-content-panel p {
  margin-bottom: 18px;
}

.tab-content-panel ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.tab-content-panel li {
  margin-bottom: 8px;
}

/* Options (Spécifications PDF Page 3) */
.option-item-card {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.option-item-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.option-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 8px;
  margin-bottom: 15px;
  border-bottom: 1.5px solid #cbd5e1;
}

.option-title {
  font-family: var(--font-nav);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.3px;
}

.option-price {
  font-family: var(--font-nav);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.option-body-flex {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.option-thumb-uniform {
  flex: 0 0 190px;
  width: 190px;
  height: 130px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  cursor: zoom-in;
  transition: all 0.25s ease;
}

.option-thumb-uniform:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.18);
  transform: translateY(-2px);
}

.option-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.option-thumb-uniform:hover .option-zoom-badge {
  background: #0284c7;
  transform: scale(1.15);
}

.option-thumb-uniform img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.option-thumb-uniform:hover img {
  transform: scale(1.04);
}

.option-desc-text {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

/* Documents PDF & Vidéo */
.pdf-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.pdf-doc-link:hover {
  color: #0284c7;
}

/* Modale Lightbox plein écran pour agrandir les photos du produit */
.product-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
  box-sizing: border-box;
  cursor: pointer; /* Un simple clic sur le fond ou l'image ferme la modale */
  user-select: none;
}

.product-lightbox-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: calc(88vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.product-lightbox-backdrop.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(84vh - 90px);
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  display: block;
  cursor: zoom-out; /* Cliquer pour refermer */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100001;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
  transform: scale(1.1);
}

/* Légende / Titre au sommet de la modale */
.lightbox-caption {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 100001;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  max-width: 65vw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flèches de navigation Suivant / Précédent */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-arrow:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.6);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* Barre inférieure : compteur et bande de miniatures */
.lightbox-bottom-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100001;
  max-width: 90vw;
  pointer-events: auto;
}

.lightbox-counter {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lightbox-thumbs-strip {
  display: flex;
  gap: 8px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: auto;
  max-width: 85vw;
}

.lightbox-thumb-item {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #ffffff;
  padding: 2px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.lightbox-thumb-item:hover {
  opacity: 0.95;
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.lightbox-thumb-item.active {
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .lightbox-thumb-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .lightbox-content {
    max-height: calc(82vh - 80px);
  }
  .lightbox-content img {
    max-height: calc(78vh - 80px);
  }
}

.video-container-16-9 {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.video-container-16-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* ==========================================================================
   LISTE DES PRODUITS D'UNE CATÉGORIE
   ========================================================================== */
.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.cat-product-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}

.cat-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.cat-product-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-product-thumb img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.cat-product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
}

.cat-product-title {
  font-family: var(--font-nav);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a2d3e;
  margin-bottom: 8px;
}

.cat-product-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 15px;
}

.cat-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cat-product-price {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

/* ==========================================================================
   PAGE DE CONTACT
   ========================================================================== */
.contact-white-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  padding: 35px;
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: stretch;
}

.contact-map-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  height: 100%;
  min-height: 520px;
  display: flex;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  flex: 1 1 auto;
}

/* ==========================================================================
   MODALE DE SOUMISSION
   ========================================================================== */
.quote-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-modal-backdrop.open {
  display: flex;
}

.quote-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPopIn 0.35s var(--ease-spring);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: #000000;
  transform: scale(1.15);
}

/* ==========================================================================
   PIED DE PAGE (Footer)
   ========================================================================== */
.site-footer {
  background-color: var(--cag-slate);
  color: #ffffff;
  padding: 25px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 14px;
}

html, body {
  overflow-x: hidden;
}

@media (max-width: 1240px) {
  .site-logo img {
    width: 210px;
    max-width: 210px;
  }
  
  .header-inner {
    padding: 6px 14px;
    gap: 8px;
  }
  
  .main-nav-menu {
    gap: 2px;
  }
  
  .main-nav-menu li a {
    font-size: 15px;
    padding: 8px 11px;
    letter-spacing: 0.2px;
  }
  
  .main-nav-menu li a:hover::after,
  .main-nav-menu li a.active::after {
    width: calc(100% - 18px);
    left: 9px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  html[lang="en"] .main-nav-menu {
    gap: 6px;
  }
  
  html[lang="en"] .main-nav-menu li a {
    font-size: 15px;
    padding: 8px 18px;
    letter-spacing: 0.2px;
  }
  
  html[lang="en"] .main-nav-menu li a:hover::after,
  html[lang="en"] .main-nav-menu li a.active::after {
    width: calc(100% - 24px);
    left: 12px;
  }
}

@media (max-width: 1024px) {
  .categories-grid-5col {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-detail-flex {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-gallery-side {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .header-inner {
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
  }

  .site-logo {
    order: 1;
    flex-shrink: 0;
  }

  .site-logo img {
    max-height: 42px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
  }

  /* Actions rapides mobiles dans l'en-tête */
  .header-mobile-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-header-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
  }

  .mobile-header-call-btn:active {
    transform: scale(0.94);
    background: rgba(2, 132, 199, 0.35);
  }

  .mobile-header-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.15s ease;
  }

  .mobile-header-lang-btn:active {
    background: rgba(255, 255, 255, 0.22);
  }

  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    padding: 9px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

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

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

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

  /* Tiroir mobile */
  .site-nav-container {
    display: none;
    order: 10;
    flex: 1 0 100%;
    width: 100%;
    min-width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #152336;
    border-radius: 0 0 16px 16px;
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    margin-top: 10px;
    animation: navSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-nav-container.open {
    display: flex;
  }

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

  .main-nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .main-nav-menu li {
    width: 100%;
  }

  .main-nav-menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .main-nav-menu li a.active,
  .main-nav-menu li a:hover {
    background-color: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
  }

  html[lang="en"] .main-nav-menu {
    gap: 4px !important;
  }

  html[lang="en"] .main-nav-menu li a {
    padding: 12px 14px !important;
  }

  /* Masquer le selecteur de langue desktop redondant dans le tiroir */
  .lang-switcher-wrap {
    display: none;
  }

  /* Coordonnées de contact dans le tiroir mobile */
  .mobile-drawer-contact {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .mobile-drawer-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  }
}

/* ==========================================================================
   OPTIMISATIONS MOBILE ÉPURÉES & TOUCH (< 768px - Smartphones & Écrans Courants)
   ========================================================================== */
@media (max-width: 768px) {
  /* Fil d'Ariane épuré & défilable horizontalement */
  .below-header-bar {
    padding: 8px 12px;
  }

  .below-header-inner {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
    font-size: 12px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .below-header-inner::-webkit-scrollbar {
    display: none;
  }

  .below-header-inner span,
  .below-header-inner a {
    flex-shrink: 0;
  }

  /* Page d'Accueil Mobile */
  .home-title-box {
    padding: 14px 16px;
    font-size: 1.15rem;
    margin-bottom: 16px;
    border-radius: 10px;
    line-height: 1.35;
  }

  .home-carousel-wrapper {
    max-height: 175px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .carousel-indicators {
    margin-bottom: 14px;
  }

  /* Grille des 3 catégories (Neuf, Usagé, Fournitures) alignées en 3 colonnes compactes */
  .home-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
    margin-top: 14px;
  }

  .home-card-link {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  }

  .categories-grid-5col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cat-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Fiche Produit Mobile */
  .product-detail-card {
    padding: 16px 14px;
    padding-bottom: 90px; /* Réserve l'espace pour la barre d'action mobile fixe */
    border-radius: 12px;
  }

  .product-gallery-side {
    max-width: 100%;
    margin: 0 auto 16px;
  }

  .gallery-main-container {
    max-height: 310px;
    border-radius: 10px;
  }

  .gallery-main-container img {
    max-height: 300px;
    object-fit: contain;
  }

  /* Vignettes secondaires défilables horizontalement */
  .gallery-thumbs-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .gallery-thumbs-row::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb-item {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    scroll-snap-align: start;
    border-radius: 8px;
  }

  .product-title-price-grid {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .product-main-title {
    font-size: 26px;
    line-height: 1.15;
  }

  .product-price-block {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .product-price-value {
    font-size: 24px;
  }

  /* Onglets défilables en puces horizontales */
  .product-tabs-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 2px solid #000000;
    margin-bottom: 16px;
    padding-bottom: 0;
  }

  .product-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.88rem;
    border-radius: 6px 6px 0 0;
  }

  /* Cartes des options mobile */
  .option-item-card {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .option-body-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .option-thumb-uniform {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 8px;
  }

  .option-desc-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* Barre d'action mobile fixe en bas d'écran (Conversion 1-tap) */
  .mobile-product-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    animation: stickySlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes stickySlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .mobile-sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
  }

  .mobile-sticky-title {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
  }

  .mobile-sticky-price {
    font-family: var(--font-nav);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c1520;
    line-height: 1.1;
  }

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

  .mobile-sticky-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.15s ease;
  }

  .mobile-sticky-call-btn:active {
    transform: scale(0.93);
    background: #e2e8f0;
  }

  .mobile-sticky-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
    white-space: nowrap;
    transition: transform 0.15s ease;
  }

  .mobile-sticky-quote-btn:active {
    transform: scale(0.96);
  }

  /* Contact Page */
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-map-card {
    height: 320px;
    min-height: 280px;
    border-radius: 10px;
  }
}

/* Modale de Soumission Mobile (Format Bottom-Sheet tactile & Sans zoom forcé iOS) */
@media (max-width: 600px) {
  .quote-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .quote-modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .quote-modal-card input,
  .quote-modal-card textarea {
    font-size: 16px !important; /* Empêche le zoom automatique sur iOS */
    min-height: 44px;
    border-radius: 8px;
  }

  .quote-modal-card .product-quote-btn {
    min-height: 46px;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .home-cards-row {
    gap: 6px;
  }
  .home-card-link {
    border-radius: 8px;
  }
}

/* ==========================================================================
   ESPACE ADMINISTRATION BACKOFFICE (/admin/) - Header Impeccable
   ========================================================================== */
.admin-header-bar {
  background: linear-gradient(180deg, #0b1320 0%, #152336 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.admin-header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

/* Brand & Logo */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.admin-brand-logo-wrap {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-brand:hover .admin-brand-logo-wrap {
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35);
}

.admin-brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
}

.admin-brand-title {
  color: #ffffff;
  font-family: var(--font-nav), sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.admin-brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #38bdf8;
  font-weight: 700;
  margin-top: 2px;
}

/* Nav links */
.admin-nav-container {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

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

.admin-nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.admin-nav-item a svg {
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.admin-nav-item a:hover {
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.08);
}

.admin-nav-item a:hover svg {
  color: #38bdf8;
  transform: translateY(-1px);
}

.admin-nav-item a.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.admin-nav-item a.active svg {
  color: #38bdf8;
}

/* Notification badge */
.admin-nav-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1.3;
  margin-left: 2px;
}

/* Actions Right */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.admin-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.admin-btn-new:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.admin-btn-site {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.admin-btn-site:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* User profile pill */
.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px 3px 8px;
  border-radius: 18px;
}

.admin-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.admin-user-name {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-btn-logout {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
  transition: all 0.18s ease;
  text-decoration: none;
}

.admin-btn-logout:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Mobile Toggle */
.admin-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
}

@media (max-width: 1260px) {
  .admin-header-inner {
    height: auto;
    padding: 12px 20px;
    flex-wrap: wrap;
    align-items: center;
  }
  .admin-mobile-toggle {
    display: block;
  }
  .admin-nav-container {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    min-width: 100%;
    order: 10;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .admin-nav-container.open {
    display: block;
  }
  .admin-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }
  .admin-nav-item {
    width: 100%;
  }
  .admin-nav-item a {
    display: flex;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}
.admin-main {
  max-width: 1240px;
  margin: 25px auto 50px;
  padding: 0 20px;
}
.admin-card, .admin-panel-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.admin-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.admin-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.admin-badge.badge-success { background: #dcfce7; color: #15803d; }
.admin-badge.badge-secondary { background: #f1f5f9; color: #475569; }
.admin-stat-card, .stat-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.admin-stat-num, .stat-card-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--cag-navy);
  margin-top: 5px;
}
.stat-card-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #334155;
  margin-bottom: 5px;
}
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background-color: var(--cag-navy);
  color: #ffffff !important;
}
.btn-primary:hover {
  background-color: #243b53;
}
.btn-secondary {
  background-color: #e2e8f0;
  color: #334155;
}
.btn-outline {
  background-color: transparent;
  border-color: #cbd5e1;
  color: #475569;
}
.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.form-step-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ==========================================================================
   Éditeur de texte enrichi WYSIWYG (Admin Product Edit)
   ========================================================================== */
.wysiwyg-container {
  display: flex;
  flex-direction: column;
}

.wysiwyg-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e0f2fe;
  color: #0284c7;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.wysiwyg-wrapper {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wysiwyg-wrapper:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  border-radius: 7px 7px 0 0;
  user-select: none;
}

.wysiwyg-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  min-width: 29px;
  transition: all 0.15s ease;
}

.wysiwyg-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.wysiwyg-btn:active, .wysiwyg-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.wysiwyg-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  height: 29px;
  outline: none;
}

.wysiwyg-select:focus {
  border-color: #0284c7;
}

.wysiwyg-divider {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
  margin: 0 3px;
}

.wysiwyg-color-picker-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
}

.wysiwyg-color-bar {
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin-top: 1px;
}

.cmd-color-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.wysiwyg-editor-area {
  min-height: 220px;
  max-height: 480px;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1e293b;
  outline: none;
  background: #ffffff;
  border-radius: 0 0 7px 7px;
}

.wysiwyg-editor-area:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.wysiwyg-editor-area p {
  margin-bottom: 12px;
}

.wysiwyg-editor-area h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 16px 0 8px 0;
  color: #0f172a;
}

.wysiwyg-editor-area h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 14px 0 6px 0;
  color: #1e293b;
}

.wysiwyg-editor-area h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 10px 0 4px 0;
  color: #334155;
}

.wysiwyg-editor-area ul, .wysiwyg-editor-area ol {
  margin-left: 22px;
  margin-bottom: 12px;
}

.wysiwyg-editor-area li {
  margin-bottom: 4px;
}

.wysiwyg-editor-area a {
  color: #0284c7;
  text-decoration: underline;
}

.wysiwyg-source-textarea {
  min-height: 220px;
  max-height: 480px;
  width: 100%;
  padding: 14px 16px;
  font-family: monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  border: none;
  border-radius: 0 0 7px 7px;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

/* Typographie riche pour les onglets de description côté public */
.tab-content-panel h2 {
  font-family: var(--font-nav);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 12px;
}

.tab-content-panel h3 {
  font-family: var(--font-nav);
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 18px;
  margin-bottom: 10px;
}

.tab-content-panel h4 {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  margin-top: 14px;
  margin-bottom: 8px;
}

.tab-content-panel ol {
  margin-left: 22px;
  margin-bottom: 20px;
}

.tab-content-panel a {
  color: #0284c7;
  text-decoration: underline;
}


