/* ============================================================
   123HYDRA — CSS COMPLET THÈME CHILD
   PrestaShop 9 · Hummingbird child
   v4.9.1 — Patch swap image mobile (limité à la page d'accueil)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --primary: #004a99;
  --secondary: #5d6d7e;
  --accent: #ff6600;
  --navy: #0a1e3c;
  --bg: #f4f7f6;
  --border: #e0e6ed;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  background-color: var(--bg) !important;
  color: #333;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   CARROUSEL ACCUEIL — Bannières avec texte intégré
   On masque toute légende native pour ne PAS poser de calque
   par-dessus les images (elles contiennent déjà leur texte).
   ============================================================ */
.carousel .carousel-caption,
figcaption.carousel-caption {
  display: none !important;
}
.carousel .carousel-content,
#home-slider .carousel-content,
figure.carousel-content {
  margin: 0 !important;
}
.carousel .carousel-content > img,
.carousel .carousel-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}
/* ============================================================
   CARROUSEL — Version mobile dédiée (Swap d'image ciblé)
   Remplace l'image desktop par sa version mobile sur < 768px
   Dossier cible : /img/cms/
   Basé sur l'ordre des slides (1: Stock, 2: Expertise, 3: Marques)
   et la langue active de la page.
   
   v4.9.1 : Ajout de #index pour que le swap ne s'applique qu'à l'accueil
   et ne casse pas le carrousel des fiches produits sur mobile.
   ============================================================ */
@media (max-width: 768px) {
  
  /* 1. Ajustement vital pour que l'image mobile (verticale) ne soit pas écrasée */
  #index .carousel .carousel-content > img,
  #index .carousel .carousel-item img {
     height: auto !important;
     aspect-ratio: auto !important;
     object-fit: contain !important;
     min-height: 400px; /* Force une hauteur minimale pour éviter un effondrement avant le chargement */
  }

  /* ---------------------------------------------------
     FRANÇAIS (lang-fr)
     --------------------------------------------------- */
  #index.lang-fr .carousel-item:nth-child(1) img { content: url('/img/cms/mobile_banner1_stock_fr.jpg') !important; }
  #index.lang-fr .carousel-item:nth-child(2) img { content: url('/img/cms/mobile_banner2_expertise_fr.jpg') !important; }
  #index.lang-fr .carousel-item:nth-child(3) img { content: url('/img/cms/mobile_banner3_brands_fr.jpg') !important; }

  /* ---------------------------------------------------
     ANGLAIS (lang-en)
     --------------------------------------------------- */
  #index.lang-en .carousel-item:nth-child(1) img { content: url('/img/cms/mobile_banner1_stock_en.jpg') !important; }
  #index.lang-en .carousel-item:nth-child(2) img { content: url('/img/cms/mobile_banner2_expertise_en.jpg') !important; }
  #index.lang-en .carousel-item:nth-child(3) img { content: url('/img/cms/mobile_banner3_brands_en.jpg') !important; }

  /* ---------------------------------------------------
     ESPAGNOL (lang-es)
     --------------------------------------------------- */
  #index.lang-es .carousel-item:nth-child(1) img { content: url('/img/cms/mobile_banner1_stock_es.jpg') !important; }
  #index.lang-es .carousel-item:nth-child(2) img { content: url('/img/cms/mobile_banner2_expertise_es.jpg') !important; }
  #index.lang-es .carousel-item:nth-child(3) img { content: url('/img/cms/mobile_banner3_brands_es.jpg') !important; }

  /* ---------------------------------------------------
     PORTUGAIS (lang-pt)
     --------------------------------------------------- */
  #index.lang-pt .carousel-item:nth-child(1) img { content: url('/img/cms/mobile_banner1_stock_pt.jpg') !important; }
  #index.lang-pt .carousel-item:nth-child(2) img { content: url('/img/cms/mobile_banner2_expertise_pt.jpg') !important; }
  #index.lang-pt .carousel-item:nth-child(3) img { content: url('/img/cms/mobile_banner3_brands_pt.jpg') !important; }
}
/* ============================================================
   RECHERCHE (Format "Expert")
   ============================================================ */
#search_widget form input[type="text"] {
  border: 2px solid var(--primary) !important;
  border-radius: 50px !important;
  padding-left: 20px !important;
  height: 48px;
  font-size: 16px;
}
#search_widget form button[type="submit"] {
  background-color: var(--primary) !important;
  color: white !important;
  border-radius: 0 50px 50px 0 !important;
  width: 60px;
}

/* ============================================================
   CARTES PRODUITS — STYLE DE BASE
   ============================================================ */
.product-miniature {
  border-radius: 8px !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #dee2e6 !important;
}
.product-miniature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: var(--primary) !important;
}

/* ============================================================
   PRIX ET STOCKS
   ============================================================ */
.product-price {
  color: var(--primary) !important;
  font-weight: 800 !important;
  font-size: 1.2rem;
}
.product-availability {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ============================================================
   PAGE PRODUIT — STYLES PREMIUM
   ============================================================ */
body.page-product { background-color: #f7f9fc !important; }

/* Bouton ajouter au panier */
body.page-product .product__add-to-cart { --primary: var(--accent) !important; }
body.page-product .product__add-to-cart .product-actions__button button,
body.page-product .product__add-to-cart .add-to-cart,
body.page-product .product__add-to-cart .btn-add-to-cart {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 28px !important;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35) !important;
  width: 100%;
}
body.page-product .product__add-to-cart .product-actions__button button:hover,
body.page-product .product__add-to-cart .add-to-cart:hover,
body.page-product .product__add-to-cart .btn-add-to-cart:hover {
  background-color: #e05500 !important;
  border-color: #e05500 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45) !important;
}

/* Titre H1 */
body.page-product h1,
body.page-product .page-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.65rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #1a1a2e !important;
}

/* Bloc prix dégradé bleu */
body.page-product .product-prices,
body.page-product .product__prices {
  background: linear-gradient(135deg, var(--primary) 0%, #003070 100%) !important;
  border-radius: var(--radius) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 1.25rem 0 !important;
  box-shadow: 0 4px 20px rgba(0, 74, 153, 0.28) !important;
}
body.page-product .product-prices .current-price,
body.page-product .product-prices .price,
body.page-product .product__prices .current-price,
body.page-product .product__prices .price,
body.page-product .product-prices span.price {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
}
body.page-product .product-prices .tax-shipping-included,
body.page-product .product-prices small,
body.page-product .product__prices small,
body.page-product .product-prices .without-taxes {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.8rem !important;
}

/* Image principale */
body.page-product .product-cover,
body.page-product .product__cover {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 24px rgba(0, 74, 153, 0.08) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}
body.page-product .product-cover img,
body.page-product .product__cover img {
  padding: 1.5rem;
  object-fit: contain;
}

/* Vignettes */
body.page-product .product-images > li.thumb-container,
body.page-product .product__thumbs .thumb-container {
  border-radius: var(--radius-sm) !important;
  border: 2px solid var(--border) !important;
  overflow: hidden !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  background: #fff !important;
}
body.page-product .product-images > li.thumb-container:hover,
body.page-product .product-images > li.thumb-container.selected,
body.page-product .product__thumbs .thumb-container:hover,
body.page-product .product__thumbs .thumb-container.selected {
  border-color: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(0, 74, 153, 0.2) !important;
}

/* Quantité touchspin */
body.page-product .input-group.bootstrap-touchspin {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  background: #fff !important;
}
body.page-product .input-group.bootstrap-touchspin .btn-touchspin {
  background: transparent !important;
  border: none !important;
  color: #6b7280 !important;
  transition: background 0.15s, color 0.15s !important;
}
body.page-product .input-group.bootstrap-touchspin .btn-touchspin:hover {
  background: #f7f9fc !important;
  color: #1a1a2e !important;
}
body.page-product .input-group.bootstrap-touchspin .form-control {
  border: none !important;
  border-left: 1.5px solid var(--border) !important;
  border-right: 1.5px solid var(--border) !important;
  text-align: center !important;
  font-weight: 700 !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Breadcrumb */
body.page-product .breadcrumb {
  background: transparent !important;
  padding: 0 0 1.25rem 0 !important;
  font-size: 0.78rem !important;
}
body.page-product .breadcrumb-item a { color: #6b7280 !important; text-decoration: none !important; }
body.page-product .breadcrumb-item a:hover { color: var(--primary) !important; }
body.page-product .breadcrumb-item.active { color: var(--primary) !important; font-weight: 600 !important; }

/* Onglets */
body.page-product .tabs,
body.page-product .product-tabs {
  background: #ffffff !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
  overflow: hidden !important;
  margin-top: 2rem !important;
}
body.page-product .nav-tabs {
  border-bottom: 1px solid var(--border) !important;
  padding: 0 1rem !important;
  background: #f9fafb !important;
}
body.page-product .nav-tabs .nav-link {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 14px 18px !important;
  border-radius: 0 !important;
  transition: color 0.2s, border-color 0.2s !important;
}
body.page-product .nav-tabs .nav-link:hover { color: var(--primary) !important; }
body.page-product .nav-tabs .nav-link.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
  background: transparent !important;
  font-weight: 700 !important;
}
body.page-product .tab-content { padding: 1.5rem !important; }
body.page-product .tab-pane p,
body.page-product #description p {
  font-size: 0.9rem !important;
  color: #4b5563 !important;
  line-height: 1.75 !important;
}

/* Tableau caractéristiques */
body.page-product .product-features table,
body.page-product #product-details table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid var(--border) !important;
}
body.page-product .product-features table tr,
body.page-product #product-details table tr { border-bottom: 1px solid #f3f4f6 !important; }
body.page-product .product-features table tr:last-child,
body.page-product #product-details table tr:last-child { border-bottom: none !important; }
body.page-product .product-features table td:first-child,
body.page-product #product-details table th {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 12px 16px !important;
  width: 35% !important;
  background: #fafafa !important;
}
body.page-product .product-features table td:last-child,
body.page-product #product-details table td {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #1a1a2e !important;
  padding: 12px 16px !important;
}
body.page-product .product-features table tr:hover,
body.page-product #product-details table tr:hover { background: #f9fafb !important; }

/* Flags produit */
body.page-product .product-flag {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
}
body.page-product .product-flag.new { background: #10b981 !important; color: #fff !important; }
body.page-product .product-flag.on-sale,
body.page-product .product-flag.discount { background: var(--accent) !important; color: #fff !important; }

/* Réseaux sociaux */
body.page-product .social-sharing .btn {
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f3f4f6 !important;
  border: none !important;
  color: #6b7280 !important;
  transition: background 0.2s, color 0.2s !important;
}
body.page-product .social-sharing .btn:hover { background: var(--primary) !important; color: #fff !important; }

/* Avis clients */
body.page-product .product-comment-list-item {
  background: #f9fafb !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  padding: 1rem !important;
  margin-bottom: 0.75rem !important;
}
body.page-product .grade-stars .star { color: #f59e0b !important; }

/* ============================================================
   RÉASSURANCE — BANDEAU DÉGRADÉ BLEU
   ============================================================ */
body.page-product .blockreassurance_product,
body.page-product #block-reassurance,
body.page-product .block-reassurance { display: none !important; }

.hydra-reassurance-banner {
  width: 100% !important;
  margin: 2rem 0 !important;
  padding: 1.5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(135deg, var(--primary) 0%, #003070 100%) !important;
  box-shadow: 0 8px 28px rgba(0, 74, 153, 0.30) !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}
.hydra-reassurance-banner__cell {
  flex: 1 1 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0.5rem 1rem !important;
  border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
  min-width: 0 !important;
}
.hydra-reassurance-banner__cell:last-child { border-right: none !important; }
.hydra-reassurance-banner__icon {
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}
.hydra-reassurance-banner__icon svg {
  width: 28px !important;
  height: 28px !important;
  stroke: #ffffff !important;
  fill: none !important;
}
.hydra-reassurance-banner__text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
.hydra-reassurance-banner__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  letter-spacing: 0.01em !important;
}
.hydra-reassurance-banner__subtitle {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.35 !important;
  margin: 2px 0 0 0 !important;
}
@media (max-width: 992px) and (min-width: 769px) {
  .hydra-reassurance-banner__subtitle { display: none !important; }
  .hydra-reassurance-banner__title { font-size: 0.85rem !important; }
}
@media (max-width: 768px) {
  .hydra-reassurance-banner {
    flex-direction: column !important;
    gap: 0.25rem !important;
    padding: 1.25rem !important;
  }
  .hydra-reassurance-banner__cell {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 0.75rem 0.5rem !important;
  }
  .hydra-reassurance-banner__cell:last-child { border-bottom: none !important; }
}

/* ============================================================
   RESPONSIVE MOBILE PAGE PRODUIT
   ============================================================ */
@media (max-width: 768px) {
  body.page-product h1,
  body.page-product .page-title { font-size: 1.3rem !important; }
  body.page-product .product-prices .current-price,
  body.page-product .product__prices .price { font-size: 1.8rem !important; }
}

/* ============================================================
   SOUS-CATÉGORIES — Boutons pill
   ============================================================ */
#subcategories .subcategory__image { display: none !important; }
#subcategories .subcategory__wrapper { padding: 5px !important; }
#subcategories a.subcategory {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 11px 18px !important;
  border: 2px solid #004a99 !important;
  border-radius: 50px !important;
  background: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease !important;
}
#subcategories a.subcategory:hover {
  background: #004a99 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(0, 74, 153, 0.22) !important;
}
#subcategories p.subcategory__name {
  margin: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #004a99 !important;
  text-align: center !important;
  line-height: 1.3 !important;
  transition: color 0.2s !important;
}
#subcategories a.subcategory:hover p.subcategory__name { color: #ffffff !important; }
@media (max-width: 575px) {
  #subcategories a.subcategory { border-radius: 10px !important; padding: 9px 12px !important; }
}

/* ============================================================
   MENU DU HAUT — TEXTE EN GRAS
   ============================================================ */
@media (min-width: 992px) {
  #top-menu > li > a.nav-link,
  #top-menu > li > a,
  #top-menu > li > a > span,
  #top-menu > li > a > span.category-name,
  .js-top-menu > li > a.nav-link,
  .js-top-menu > li > a,
  .js-top-menu > li > a > span,
  .main-menu__tree > li > a.nav-link,
  .main-menu__tree > li > a,
  .main-menu__tree > li > a > span,
  .js-menu-desktop > li > a.nav-link,
  .js-menu-desktop > li > a,
  .js-menu-desktop > li > a > span,
  #header .nav > li > a.nav-link,
  #header .nav > li > a,
  #header .nav > li > a > span { font-weight: 700 !important; }
}

/* ============================================================
   PAGE MARQUES (BRANDS) — PILLS
   ============================================================ */
body.page-manufacturer .brand__img { display: none !important; }
body.page-manufacturer .brand__products { display: none !important; }
body.page-manufacturer li.brand,
body.page-manufacturer .brand.card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 5px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}
body.page-manufacturer .brand__infos {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
}
body.page-manufacturer .brand__infos p { margin: 0 !important; width: 100% !important; display: flex !important; }
body.page-manufacturer .brand__link,
body.page-manufacturer .brand__infos a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 11px 18px !important;
  border: 2px solid var(--primary) !important;
  border-radius: 50px !important;
  background: #ffffff !important;
  color: var(--primary) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  word-break: break-word !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease !important;
}
body.page-manufacturer .brand__link:hover,
body.page-manufacturer .brand__infos a:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(0, 74, 153, 0.22) !important;
}
@media (max-width: 575px) {
  body.page-manufacturer .brand__link,
  body.page-manufacturer .brand__infos a {
    border-radius: 10px !important;
    padding: 9px 12px !important;
    min-height: 48px !important;
    font-size: 0.8rem !important;
  }
}
body.page-manufacturer h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.8rem !important;
  color: #1a1a2e !important;
  margin-bottom: 0.5rem !important;
}
body.page-manufacturer .brands-sort,
body.page-manufacturer .alphabetical-pagination { margin: 1rem 0 1.5rem 0 !important; }

/* ============================================================
   v4.8.0 — LOGO + HEADER + BANDEAU TÉLÉPHONE
   ============================================================ */
@media (min-width: 992px) {
  #header .header__logo img,
  #_desktop_logo img,
  .header__logo img,
  .logo.img-fluid {
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
  }
  .header__logo { padding: 8px 0 !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .header__logo img { max-height: 64px !important; width: auto !important; }
}
@media (max-width: 767px) {
  .header__logo img { max-height: 48px !important; width: auto !important; }
}
@media (min-width: 992px) {
  #search_widget { max-width: 380px; margin-left: auto; }
}

/* v5.0.8 — Carrousel Hummingbird : preserve le ratio 16:5 (1920x600) des bannieres
   Cible #home-slider.ratio.ratio-homeSlider (Bootstrap ratio + carousel BS). */
#home-slider,
.ratio-homeSlider {
  aspect-ratio: 16 / 5 !important;
  padding-top: 0 !important;          /* neutralise Bootstrap .ratio (padding-top trick) */
  --bs-aspect-ratio: auto !important; /* idem */
  --slider-img-height: 100% !important;
  height: auto !important;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}
/* Wrappers internes : remplir 100% du conteneur
   ATTENTION : ne PAS forcer display:block sur .carousel-item — Bootstrap utilise
   display:none pour cacher les slides inactifs. Le forcer ferait disparaitre
   tous les autres slides apres le premier. */
#home-slider .carousel,
#home-slider .carousel-inner {
  height: 100% !important;
  width: 100%;
  margin: 0;
}
#home-slider .carousel-item {
  height: 100% !important;
  width: 100%;
  /* pas de display ici — laisse Bootstrap gerer */
}
#home-slider .carousel-link,
#home-slider .carousel-content,
#home-slider figure.carousel-content {
  height: 100% !important;
  width: 100%;
  margin: 0;
  display: block;
}
/* Image : couvrir le slide sans rognage (le ratio du conteneur matche celui de l'image) */
#home-slider .carousel-item img,
#home-slider .carousel-content img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
/* Mobile : ratio plus carre pour preserver la lisibilite */
@media (max-width: 575px) {
  #home-slider,
  .ratio-homeSlider {
    aspect-ratio: 4 / 3 !important;
    max-height: 70vh;
  }
}

/* ============================================================
   v5.1.0 — Section Home enrichie (sous le carrousel)
   ============================================================ */
.hydra-strategic {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  color: #1a2740;
}
.hydra-strategic .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hydra-strategic__head { text-align: center; max-width: 820px; margin: 0 auto 44px; }
.hydra-strategic__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f08000;
  background: rgba(240, 128, 0, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hydra-strategic__title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
  color: #0d1b3d;
  letter-spacing: -0.5px;
}
.hydra-strategic__lead {
  font-size: 16px;
  line-height: 1.65;
  color: #4a5874;
  margin: 0;
}
.hydra-strategic__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.hydra-feature {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hydra-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 27, 61, 0.08);
  border-color: #d9e1ee;
}
.hydra-feature__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f08000 0%, #ff9a2b 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(240, 128, 0, 0.25);
}
.hydra-feature__icon svg { width: 26px; height: 26px; }
.hydra-feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0d1b3d;
  line-height: 1.3;
}
.hydra-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: #5a6987;
  margin: 0;
}
.hydra-strategic__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  background: #0d1b3d;
  border-radius: 16px;
  color: #fff;
  background-image: linear-gradient(135deg, #0d1b3d 0%, #142a5e 100%);
}
.hydra-strategic__kpis > div {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hydra-strategic__kpis > div:last-child { border-right: none; }
.hydra-strategic__kpis strong {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #ff9a2b;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.hydra-strategic__kpis span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 991px) {
  .hydra-strategic__grid { grid-template-columns: repeat(2, 1fr); }
  .hydra-strategic__kpis { grid-template-columns: repeat(2, 1fr); }
  .hydra-strategic__kpis > div:nth-child(2) { border-right: none; }
  .hydra-strategic__kpis > div:nth-child(1),
  .hydra-strategic__kpis > div:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
  }
}
@media (max-width: 575px) {
  .hydra-strategic { padding: 44px 0 36px; }
  .hydra-strategic__grid { grid-template-columns: 1fr; gap: 14px; }
  .hydra-feature { padding: 22px 18px; }
}

/* ============================================================
   v5.2.1 — Fix double H1 sur pages catégorie
   Masque le H1 natif du thème (.page-title-section) UNIQUEMENT
   si notre intro SEO module est rendue sur la page.
   Si l'intro n'est pas injectée (catégorie sans template), le
   H1 du thème reste visible : aucune régression SEO possible.
   ============================================================ */
body:has(.hydra-cat-intro__title) h1.page-title-section,
body:has(.hydra-cat-intro__title) .page-title-section.h2 {
  display: none !important;
}

/* ============================================================
   v5.1.0 — Intro SEO en haut des pages catégorie
   ============================================================ */
.hydra-cat-intro {
  padding: 36px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 24px;
}
.hydra-cat-intro .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hydra-cat-intro__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: center;
}
.hydra-cat-intro__main { min-width: 0; }
.hydra-cat-intro__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f08000;
  margin-bottom: 10px;
}
.hydra-cat-intro__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #0d1b3d;
  letter-spacing: -0.4px;
}
.hydra-cat-intro__text {
  font-size: 15px;
  line-height: 1.65;
  color: #4a5874;
  margin: 0;
}
.hydra-cat-intro__bullets {
  list-style: none;
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  display: grid;
  gap: 10px;
}
.hydra-cat-intro__bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: #1a2740;
  line-height: 1.5;
}
.hydra-cat-intro__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #f08000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
@media (max-width: 767px) {
  .hydra-cat-intro__inner { grid-template-columns: 1fr; gap: 20px; }
  .hydra-cat-intro { padding: 28px 0 20px; }
}

/* v5.0.3 — Breakpoint intermédiaire (laptop 13"-15", 992-1399px)
   Rétrécit logo + barre de recherche pour éviter le passage à la ligne du menu */
@media (min-width: 992px) and (max-width: 1399px) {
  #header .header__logo img,
  #_desktop_logo img,
  .header__logo img,
  .logo.img-fluid {
    max-height: 64px !important;
  }
  .header__logo { padding: 4px 0 !important; }
  #search_widget { max-width: 220px !important; }
  #search_widget form input[type="text"] { font-size: 0.85rem; }
  #top-menu > li > a,
  .main-menu__tree > li > a,
  .js-top-menu > li > a {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 0.92rem !important;
  }
}

.header-top a[href*="contact"] .header-top__label,
.header-top a[href*="contact"] span:not(.hydra-phone) { display: none !important; }
.hydra-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.hydra-phone:hover { background: var(--primary); color: #fff !important; }
.hydra-phone svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============================================================
   CARTES PRODUITS — STYLE PREMIUM (overrides)
   ============================================================ */
.product-miniature,
.products .product-miniature,
article.product-miniature {
  background: #ffffff !important;
  border: 1px solid #eef0f4 !important;
  border-radius: 14px !important;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-miniature:hover {
  transform: translateY(-4px);
  border-color: var(--primary) !important;
  box-shadow: 0 12px 28px rgba(0, 74, 153, 0.12);
}
.product-miniature .product-thumbnail,
.product-miniature .product-miniature__thumbnail,
.product-miniature img.product-thumbnail {
  background: #fafbfc !important;
  padding: 10px;
  display: block;
}
.product-miniature .product-title,
.product-miniature h3.product-title,
.product-miniature .product__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  line-height: 1.3 !important;
  color: #1a1a2e !important;
  margin: 12px 14px 4px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  min-height: 2.4em;
}
.product-miniature .product-title a,
.product-miniature .product__title a { color: #1a1a2e !important; }
.product-miniature:hover .product-title a { color: var(--primary) !important; }

.product-miniature .product-reference,
.product-miniature .product__reference,
.product-miniature .hydra-ref {
  display: inline-block;
  margin: 0 14px 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  background: #f3f4f6 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
.product-miniature .product-price-and-shipping,
.product-miniature .product__price { margin: 0 14px 12px !important; }
.product-miniature .price {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
}
.product-miniature .btn-primary,
.product-miniature button.add-to-cart,
.product-miniature .product-add-to-cart .btn,
.product-miniature .add-to-cart {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(255, 102, 0, 0.28) !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}
.product-miniature .btn-primary:hover,
.product-miniature button.add-to-cart:hover,
.product-miniature .product-add-to-cart .btn:hover {
  background: #e05500 !important;
  border-color: #e05500 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(255, 102, 0, 0.4) !important;
}
.product-miniature .input-group .form-control,
.product-miniature input.qty {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.product-miniature .input-group .btn-touchspin {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
}
.product-miniature .wishlist-button-add,
.product-miniature button[aria-label*="wishlist" i] {
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}
/* ============================================================
   MODAL AJOUT AU PANIER (Intermédiaire) - V5.5 (FIX EARS)
   ============================================================ */

/* 1. FIX DÉFINITIF DES COINS (Supprime le blanc qui dépasse) */
#blockcart-modal .modal-content {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

/* Fond de l'entête du modal */
#blockcart-modal .modal-header {
    background: var(--primary, #004a99) !important;
    color: #ffffff !important;
    border-radius: 0 !important; /* On laisse le parent gérer l'arrondi */
    padding: 20px 24px !important;
}

#blockcart-modal .modal-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Icône de validation (check) en blanc */
#blockcart-modal .modal-title i.material-icons {
    color: #ffffff !important;
}

/* Bouton fermer (X) en blanc */
#blockcart-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.8;
}

/* Corps du modal */
#blockcart-modal .modal-body {
    padding: 24px !important;
}

/* Nom du produit dans le modal */
#blockcart-modal .product-name {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: var(--navy, #0a1e3c) !important;
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
}

/* Style de la zone des boutons en bas */
#blockcart-modal .cart-content-btn {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 20px !important;
    background: #f8fafc !important;
    border-radius: 0 !important;
}

/* Bouton "Continuer mes achats" */
#blockcart-modal .btn-outline-primary, 
#blockcart-modal .btn-secondary {
    border: 2px solid var(--primary, #004a99) !important;
    background: #ffffff !important;
    color: var(--primary, #004a99) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 10px !important;
    transition: all 0.2s !important;
}

#blockcart-modal .btn-outline-primary:hover {
    background: var(--primary, #004a99) !important;
    color: #ffffff !important;
}

/* Bouton "Commander" (Le bouton principal - Grand & Premium) */
#blockcart-modal .btn-primary {
    background-color: var(--accent, #ff6600) !important;
    border-color: var(--accent, #ff6600) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-radius: 10px !important;
    height: 52px !important; /* Hauteur maintenue */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.35) !important; /* Effet maintenu */
    transition: all 0.2s !important;
}

#blockcart-modal .btn-primary:hover {
    background-color: #e05500 !important;
    transform: translateY(-2px) !important; /* Effet de levée maintenu */
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45) !important;
}

/* Responsive mobile */
@media (max-width: 575px) {
    #blockcart-modal .modal-dialog {
        margin: 10px !important;
    }
    #blockcart-modal .cart-content-btn {
        flex-direction: column !important;
    }
}