/* =========================
   Variables (facultatif)
   ========================= */
:root {
  --c-primary: #0b1e33;
  --c-primary-2: #1a365d;
  --c-accent: #e95e52;
  --c-info: #13a6c2;
  --c-text: #2c3e50;
  --c-muted: #666;
  --c-white: #fff;
  --c-light: #f8f9fa;
}

/* =========================
   HEADER
   ========================= */
#header {
  z-index: 997;
  padding: 30px;
  background: var(--c-primary) !important;
  color: #fff;
  height: 140px;
  transition: background-color 0.3s ease, height 0.3s ease;
}
#header.header-scrolled {
  background: #fff;
  height: 60px;
}
#header.header-transparent {
  background: rgba(0, 0, 0, 0.6);
  height: 60px;
  border-bottom: 2px solid var(--c-info);
}
#header a {
  color: #c7c7db !important;
}

#header.header-scrolled .logo img {
  padding: 10px;
  margin: 0;
  height: 70px;
}
.iconMenu {
  color: #fff !important;
}

#header.fixed-top {
  z-index: 999;
}

#header .container,
#header .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

#header .logo {
  margin-left: 0;
}
#header .logo img {
  display: block;
  height: auto;
  max-height: 70px;
}

/* =========================
   NAV (classique + dropdown)
   ========================= */
.nav-menu {
  float: right;
}
.nav-menu a {
  font-size: 15px !important;
}

.nav-menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-menu > ul > li {
  position: relative;
}

/* Dropdown simple */
.nav-menu .drop-down {
  position: relative;
}
.nav-menu .drop-down > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(11, 30, 51, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease,
    visibility 0s linear 0.18s;
  z-index: 1000;
  padding: 0;
  margin: -5px 0 0 0;
  border-bottom: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--c-accent);
}
.nav-menu .drop-down > ul > li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-menu .drop-down > ul > li:last-child {
  border-bottom: none;
}

.nav-menu .drop-down:hover > ul,
.nav-menu .drop-down:focus-within > ul,
.nav-menu .drop-down > ul:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.nav-menu .drop-down > ul > li > a {
  display: block;
  padding: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}
.nav-menu .drop-down > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle i {
  color: #fff !important;
  font-size: 40px;
}
.cc-link {
  font-size: 16px !important;
}

/* =========================
   MEGA-MENU (unifié)
   ========================= */
.nav-menu > ul > li.mega-menu-item {
  position: static;
}

.mega-menu-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 5px solid var(--c-accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
}

.product-card .product-price {
  color: #000;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  backdrop-filter: blur(10px);
  z-index: 15;
  text-align: center;
  margin-bottom: 15px;
}
.product-card .price-old {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 11px;
  margin-right: 4px;
}

.product-card .product-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.product-card .btn-modern {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.product-card .btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.product-card .btn-primary:hover {
  background: #152d47;
  color: #fff;
}
.product-card .btn-primary:disabled {
  background: #6c757d !important;
  opacity: 0.6;
  cursor: not-allowed;
  color: #fff !important;
}

/* Responsive cards */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
  }
  .product-card .product-image {
    height: 220px;
  }
  .product-card .product-content {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .product-card .product-image {
    height: 180px;
  }
  .product-card .product-title {
    font-size: 14px;
  }
}
.nav-menu > ul > li.mega-menu-item:hover .mega-menu-container,
.nav-menu > ul > li.mega-menu-item:focus-within .mega-menu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 700px;
}

/* Masonry + alignements */
.mega-menu-content {
  column-width: 260px;
  column-gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}
.mega-menu-section {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
}
.mega-menu-section > :first-child,
.mega-menu-title {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.35;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #000 !important;
  text-decoration: none;
}
.mega-menu-title:hover {
  color: #000000 !important;
  text-decoration: underline;
}
.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-menu-list > li {
  margin: 0;
  padding: 0;
  border: 0;
}
.mega-menu-list > li > a,
.mega-menu-list > li > span,
.mega-menu-list > li > strong,
.mega-menu-list > li > em {
  display: block;
  padding: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #333 !important;
  transition: color 0.2s ease;
}
.mega-menu-list > li > a:hover,
.mega-menu-list > li > span:hover,
.mega-menu-list > li > strong:hover,
.mega-menu-list > li > em:hover {
  color: var(--c-primary) !important;
}

/* Neutralise la couleur globale du menu dans le mega-menu */
#header .nav-menu .mega-menu-container,
#header .nav-menu .mega-menu-container * {
  color: inherit;
  text-shadow: none;
}

/* Supprime les "trous fantômes" */
.mega-menu-section:has(.mega-menu-list:empty),
.mega-menu-list:empty,
.mega-menu-list > li:empty,
.mega-menu-list > li[hidden],
.mega-menu-list > li.is-hidden,
.mega-menu-list > li[style*="display:none"] {
  display: none !important;
}

/* =========================
   RESPONSIVE MOBILE MEGA-MENU
   ========================= */
@media (max-width: 992px) {
  /* Version mobile du mega-menu */
  .nav-menu > ul > li.mega-menu-item {
    position: relative;
  }

  .mega-menu-container {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    background: rgba(11, 30, 51, 0.95);
    border: none;
    border-top: 2px solid var(--c-accent);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
  }

  /* Affichage au tap/click sur mobile */
  .nav-menu > ul > li.mega-menu-item.active .mega-menu-container {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  .mega-menu-content {
    column-width: auto;
    column-count: 1;
    column-gap: 0;
    padding: 20px;
    max-width: 100%;
  }

  .mega-menu-section {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mega-menu-section:last-child {
    border-bottom: none;
  }

  /* Titres niveau 2 sur mobile */
  .mega-menu-section > :first-child,
  .mega-menu-title {
    color: #fff !important;
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-accent);
  }

  .mega-menu-title:hover {
    color: #fff !important;
  }

  /* Liste niveau 3 sur mobile */
  .mega-menu-list {
    gap: 8px;
    margin-top: 10px;
  }

  .mega-menu-list > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    padding: 8px 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.2s ease;
  }

  .mega-menu-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  /* Indicateur d'ouverture pour mobile */
  .nav-menu > ul > li.mega-menu-item > a::after {
    content: "\f078";
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .nav-menu > ul > li.mega-menu-item.active > a::after {
    transform: rotate(180deg);
  }
}

/* Petits écrans */
@media (max-width: 576px) {
  .mega-menu-content {
    padding: 15px;
  }

  .mega-menu-section {
    margin-bottom: 15px;
  }

  .mega-menu-title {
    font-size: 14px;
  }

  .mega-menu-list > li > a {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* =========================
   HEADER: éléments annexes
   ========================= */
.mobile-cart-fixed {
  position: absolute;
  top: 8px;
  right: 56px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1001;
}
.mobile-cart-fixed a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.mobile-cart-fixed i {
  font-size: 22px;
}
.mobile-cart-fixed .cart-text {
  display: none;
  font-size: 18px;
  font-weight: 600;
}
body.mobile-nav-active .mobile-cart-fixed .cart-text {
  display: inline;
}
@media (min-width: 993px) {
  .mobile-cart-fixed {
    display: none;
  }
}

.notifMenuHeader {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.header__user-name {
  font-size: 14px;
  font-weight: 700;
}
.header__admin-link a {
  font-size: 14px;
}

/* =========================
   Helpers visibilité
   ========================= */
.pc {
  display: block;
}
.mobile {
  display: none;
}
@media (max-width: 992px) {
  .pc {
    display: none;
  }
  .mobile {
    display: block;
  }
}

/* =============================
   PAGE PRODUIT (Annonce Détail)
   ============================= */
.image-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 10px;
  z-index: 10;
}
.variation-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.product-thumbnail {
  position: relative;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  background: #fff;
}
.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.product-thumbnail.variation-thumbnail.active {
  border-color: #ee5a52;
  box-shadow: 0 0 0 2px rgba(238, 90, 82, 0.3);
}
.variation-thumbnail.selected-variation {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3) !important;
}

/* Hero */
.product-hero {
  min-height: 30vh;
  background: linear-gradient(
    135deg,
    rgba(11, 30, 51, 0.8),
    rgba(11, 30, 51, 0.6)
  );
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  background-size: cover;
  z-index: 1;
}
.product-hero-content {
  position: relative;
  z-index: 10;
  padding: 20px 20px 40px;
  text-align: center;
  color: #fff;
}
.product-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.product-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

/* Contenu principal */
.product-main {
  background: #fff;
  margin-top: -100px;
  position: relative;
  z-index: 5;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}
.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Galerie */
.product-gallery {
  position: sticky;
  top: 20px;
}
.product-main-image {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: zoom-in;
}
.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.product-main-image img.changing {
  opacity: 0.5;
}
.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Infos produit */
.product-info {
  padding: 20px 0;
}
.product-category {
  font-size: 1.1rem;
  color: var(--c-primary);
  font-weight: 400;
  margin-bottom: 15px;
}
.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.product-price-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-align: center;
  border-left: 4px solid var(--c-primary);
}
.product-price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.product-price-old {
  font-size: 1.6rem;
  text-decoration: line-through;
  color: #dc3545;
  margin-right: 15px;
}
.product-price-save {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.product-description {
  margin: 20px 0 25px;
}
.product-description h3 {
  color: var(--c-text);
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.product-description div {
  color: var(--c-muted);
  line-height: 1.6;
}

/* Variations */
.variation-selector {
  margin-top: 12px;
  width: 100%;
}
.variation-select,
#variationSelect {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  background: #fff;
}
.variation-select:focus,
#variationSelect:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(11, 30, 51, 0.12);
}

/* Événement / réservation */
.product-event-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}

/* Stock */
.stock-status {
  margin: 15px 0 20px;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}
.stock-status.in_stock {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
.stock-status.out_of_stock {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Actions (PAGE PRODUIT) */
.product-actions {
  display: flex;
  gap: 15px;
  margin: 25px 0 30px;
  flex-wrap: wrap;
}
.product-btn {
  flex: 1;
  padding: 18px 30px;
  border-radius: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease,
    background-color 0.4s ease, color 0.4s ease;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  min-width: 200px;
}
.product-btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
  box-shadow: 0 8px 25px rgba(11, 30, 51, 0.3);
}
.product-btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  flex: 0.7;
  min-width: 150px;
}
.product-btn:hover {
  transform: translateY(-3px);
}
.product-btn:disabled,
.product-btn-booking-soon {
  background: #6c757d !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Bloc infos complémentaires */
.additional-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  margin-top: 10px;
}
.additional-info i {
  margin-right: 6px;
}

/* Bouton retour */
.btn-back {
  color: #fff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.btn-back i {
  margin-right: 8px;
}

/* Fil d'Ariane */
.breadcrumb-nav {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.breadcrumb-wrap {
  margin: 0 auto;
  padding: 0 5%;
}
.breadcrumb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6c757d;
  flex-wrap: wrap;
}
.breadcrumb-home-link,
.breadcrumb-link {
  color: var(--c-primary);
  text-decoration: none;
}
.breadcrumb-sep {
  margin: 0 10px;
  color: var(--c-primary);
}
.breadcrumb-current {
  color: #343a40;
  font-weight: 800;
}

/* Modal zoom image */
.modal-image-wrap {
  background: transparent;
  border: none;
}
.modal-image-body {
  padding: 0;
  text-align: center;
}
.modal-image-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 30px;
  z-index: 1001;
  opacity: 1;
}
.modal-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
}

/* =========================
   Responsive (page produit)
   ========================= */
@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-gallery {
    position: static;
  }
  .product-hero-title {
    font-size: 2.5rem;
  }
  .product-title {
    font-size: 2rem;
  }
  .product-actions {
    flex-direction: column;
  }
  .product-btn {
    min-width: auto;
  }
}
@media (max-width: 768px) {
  .product-hero-title {
    font-size: 2rem;
  }
  .product-title {
    font-size: 1.8rem;
  }
  .product-price-main {
    font-size: 1.6rem;
  }
  .product-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   PRODUCT CARD COMPONENT
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  gap: 25px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 320px;
  width: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}
.badge-new {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}
.badge-promo {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}
.badge-rupture {
  background: rgba(107, 114, 128, 0.9);
  color: #fff;
}

.product-card .product-content {
  padding: 20px;
}
.product-card .product-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
}
.product-card .product-info {
  font-size: 12px;
  font-weight: 400;
  color: #3a414b;
  margin-bottom: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
}

.product-card .product-price {
  color: #000;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  backdrop-filter: blur(10px);
  z-index: 15;
  text-align: center;
  margin-bottom: 15px;
}
.product-card .price-old {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 11px;
  margin-right: 4px;
}

.product-card .product-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.product-card .btn-modern {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.product-card .btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.product-card .btn-primary:hover {
  background: #152d47;
  color: #fff;
}
.product-card .btn-primary:disabled {
  background: #6c757d !important;
  opacity: 0.6;
  cursor: not-allowed;
  color: #fff !important;
}

/* Responsive cards */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
  }
  .product-card .product-image {
    height: 220px;
  }
  .product-card .product-content {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .product-card .product-image {
    height: 180px;
  }
  .product-card .product-title {
    font-size: 14px;
  }
}
/* Forcer l'affichage du mega-menu dans le menu mobile */
@media (max-width: 992px) {
  .mobile-nav .mega-menu-item,
  body.mobile-nav-active .mega-menu-item {
    display: block !important;
  }

  .mobile-nav .nav-menu,
  body.mobile-nav-active .nav-menu {
    display: block !important;
  }

  .mobile-nav .nav-menu > ul,
  body.mobile-nav-active .nav-menu > ul {
    display: block !important;
  }

  .mobile-nav .nav-menu > ul > li,
  body.mobile-nav-active .nav-menu > ul > li {
    display: block !important;
    width: 100%;
  }
}
/* =========================
   MEGA-MENU (unifié) - CORRECTION FINALE
   ========================= */
.nav-menu > ul > li.mega-menu-item {
  position: static;
}

.mega-menu-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 5px solid var(--c-accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
}
.nav-menu > ul > li.mega-menu-item:hover .mega-menu-container,
.nav-menu > ul > li.mega-menu-item:focus-within .mega-menu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 700px;
}

/* Masonry + alignements */
.mega-menu-content {
  column-width: 260px;
  column-gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  text-align: left;
}
.mega-menu-section {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
}

/* NIVEAU 2 (id_niv2) - Titres en NOIR et GRAS - Spécificité maximale */
#header .nav-menu .mega-menu-container .mega-menu-section > a:first-child,
#header .nav-menu .mega-menu-container .mega-menu-title,
.mega-menu-section > a:first-child,
.mega-menu-title {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.35;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  color: #000 !important;
  text-decoration: none;
  text-align: left !important;
  text-shadow: none !important;
}
#header .nav-menu .mega-menu-container .mega-menu-title:hover,
.mega-menu-title:hover {
  color: #333 !important;
  text-decoration: underline;
}

/* Liste niveau 3 */
.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.mega-menu-list > li {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

/* NIVEAU 3 (id_niv3) - Liens en GRIS et plus PETITS - Spécificité maximale */
#header .nav-menu .mega-menu-container .mega-menu-list > li > a,
.mega-menu-list > li > a {
  display: block;
  padding: 0;
  text-decoration: none;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35;
  color: #666 !important;
  transition: color 0.2s ease;
  text-align: left !important;
  text-shadow: none !important;
}
#header .nav-menu .mega-menu-container .mega-menu-list > li > a:hover,
.mega-menu-list > li > a:hover {
  color: var(--c-primary) !important;
}

/* Supprime les "trous fantômes" */
.mega-menu-section:has(.mega-menu-list:empty),
.mega-menu-list:empty,
.mega-menu-list > li:empty,
.mega-menu-list > li[hidden],
.mega-menu-list > li.is-hidden,
.mega-menu-list > li[style*="display:none"] {
  display: none !important;
}

/* =========================
   RESPONSIVE MOBILE MEGA-MENU
   ========================= */
@media (max-width: 992px) {
  /* Version mobile du mega-menu */
  .nav-menu > ul > li.mega-menu-item {
    position: relative;
  }

  .mega-menu-container {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    background: rgba(11, 30, 51, 0.95);
    border: none;
    border-top: 2px solid var(--c-accent);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
  }

  /* Affichage au tap/click sur mobile */
  .mega-menu-item.active .mega-menu-container {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 500px !important;
    display: block !important;
  }

  .mega-menu-content {
    column-width: auto;
    column-count: 1;
    column-gap: 0;
    padding: 20px;
    max-width: 100%;
  }

  .mega-menu-section {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mega-menu-section:last-child {
    border-bottom: none;
  }

  /* Titres niveau 2 sur mobile - BLANC */
  #header .nav-menu .mega-menu-container .mega-menu-section > a:first-child,
  #header .nav-menu .mega-menu-container .mega-menu-title,
  .mega-menu-section > a:first-child,
  .mega-menu-title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-accent);
    text-align: left !important;
  }

  #header .nav-menu .mega-menu-container .mega-menu-title:hover,
  .mega-menu-title:hover {
    color: #fff !important;
  }

  /* Liste niveau 3 sur mobile - BLANC aussi */
  .mega-menu-list {
    gap: 8px;
    margin-top: 10px;
  }

  #header .nav-menu .mega-menu-container .mega-menu-list > li > a,
  .mega-menu-list > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    padding: 8px 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    text-align: left !important;
  }

  #header .nav-menu .mega-menu-container .mega-menu-list > li > a:hover,
  .mega-menu-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  /* Indicateur d'ouverture pour mobile */
  .mega-menu-item > a::after {
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .mega-menu-item.active > a::after {
    transform: rotate(180deg);
  }

  /* Forcer l'affichage dans le menu mobile */
  body.mobile-nav-active .nav-menu,
  .mobile-nav .nav-menu {
    display: block !important;
  }

  body.mobile-nav-active .nav-menu > ul,
  .mobile-nav .nav-menu > ul {
    display: block !important;
  }

  body.mobile-nav-active .mega-menu-item,
  .mobile-nav .mega-menu-item {
    display: block !important;
  }

  body.mobile-nav-active .mega-menu-item > a,
  .mobile-nav .mega-menu-item > a {
    display: block !important;
    padding: 12px 20px;
    color: #fff !important;
  }
}

/* Petits écrans */
@media (max-width: 576px) {
  .mega-menu-content {
    padding: 15px;
  }

  .mega-menu-section {
    margin-bottom: 15px;
  }

  #header .nav-menu .mega-menu-container .mega-menu-title,
  .mega-menu-title {
    font-size: 14px !important;
  }

  #header .nav-menu .mega-menu-container .mega-menu-list > li > a,
  .mega-menu-list > li > a {
    font-size: 13px !important;
    padding: 6px 8px;
    color: white !important;
  }
}
