body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
}

/* === Thème - Noir Éclipse Theme === */

  html {
    scroll-behavior: smooth;
  }

  body {
    padding-top: 94px;
    overflow-x: hidden;
    background-color: #ffffff;
    color: var(--text-color);
    font-family: var(--font-family-base, 'Space Grotesk', 'Inter', sans-serif);
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading, 'Poppins', sans-serif);
  }
  .product-description,
  .product-price,
  .card-actions,
  .size-pill,
  .color-row,
  .home-card-title {
    font-family: var(--font-family-meta, 'IBM Plex Sans', sans-serif);
  }

  .text-brand {
    color: var(--primary-color) !important;
  }

  .btn,
  .button {
    background-color: var(--secondary-color-dark);
    color: var(--surface-color);
    border: none;
    transition: background-color 0.3s ease;
  }

  .btn:hover,
  .button:hover {
    background-color: var(--secondary-color-dark);
  }

  .badge-new {
    background-color: var(--secondary-color-dark);
    color: var(--surface-color);
  }

  .badge-promo {
    background-color: var(--accent-color);
    color: var(--text-color);
  }

  .badge-stockout {
    background-color: var(--danger-color);
    color: var(--surface-color);
  }

  .card {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  }


  .btn-disabled,
  button:disabled {
    opacity: 0.6;
    pointer-events: none;
  }

  .category-title,
  .section-title {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
  }

  .view-more {
    color: var(--text-muted);
  }

  .view-more:hover {
    color: var(--primary-color);
  }

  .price-old {
    text-decoration: line-through;
    color: var(--text-muted);
  }

  .price-new {
    color: var(--text-color);
    font-weight: bold;
  }

  #preloader-active-loading {
    display: none !important;
  }

  /* === Uniformisation des images produits === */
  .product-img-container {
    width: 100%;
    aspect-ratio: 3 / 4;
    /*aspect-ratio: 4 / 5;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .product-img-fixed {
    height: 100%;
    width: auto;
    object-fit: cover;
  }

  /* === Positionnement des badges === */
  .product-img-container .badges-wrapper {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
    animation: fadeInTop 0.6s ease-in-out;
  }

  .product-img-container .badges-wrapper .badge {
    font-size: 12px;
    padding: 3px 6px;
    line-height: 1.2;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .product-img-container:hover .badges-wrapper .badge {
    transform: scale(1.1);
    opacity: 1;
  }

  /* === Forcing product title to 2 lines height === */
  .card-title {
    min-height: 2.75em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3em;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  /* === Fixer le bouton en bas de carte === */
  .card .btn {
    margin-top: auto;
    width: 100%;
  }

  @keyframes fadeInTop {
    0% {
      opacity: 0;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .see-more-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
  .see-more-link:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
  }
  .see-more-link i {
    font-size: 0.9rem;
    margin-left: 5px;
  }


/* ===== Définiition des polices ===== */
@font-face {
  font-family: 'Reefa';
  src: url('../../../fonts/rasefa-regular/Rasefa-iF67aaaa6b1eafa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../../../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}


h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family-heading, 'Reefa Regular', serif);
}

body, p, a, span, li, td {
font-family: var(--font-family-base, 'Poppins Medium', sans-serif);
}

/* ===== MENU PRINCIPAL ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 5px;
  padding-top: 20px;
  margin: 0;
  list-style: none;
  height: 50px;
  align-items: center;
}

/* Corrige l'espacement entre les has-submenu */
.main-nav > li.has-submenu {
  margin-right: 6px;
}

/* Liens principaux (menu de 1er niveau) */
.main-nav > li {

  position: flex;
  white-space: nowrap;
  line-height: 1;
  align-items: center;
}

.main-nav > li > a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  display: inline-block;
  color: #333;
  text-transform: uppercase;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  line-height: 1.1;
}

/* Effet de soulignement */
.main-nav > li > a::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: 2px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color-dark);
  transition: width 0.3s ease;
}

.main-nav > li > a:hover::after,
.main-nav > li > a.active::after {
  width: calc(100% - 20px);
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--secondary-color-dark);
  font-weight: bold;
}

/* ===== SOUS-MENUS ===== */
.submenu,
.submenu-level-2 {
  position: absolute;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 5px 0;
  display: none;
  z-index: 100;
  min-width: 220px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.has-submenu:hover > .submenu,
.submenu li:hover > .submenu-level-2 {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Décalage des sous-sous-menus */
.submenu-level-2 {
  left: 100%;
  top: 0;
}

.submenu li,
.submenu-level-2 li {
  position: relative;
}

.submenu li a,
.submenu-level-2 li a {
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  padding: 5px 16px;
  color: #555;
  display: block;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.submenu li a:hover,
.submenu-level-2 li a:hover {
  background-color: var(--secondary-color-dark);
  color: var(--secondary-color-dark);
}

/* ===== Flèches de sous-menu ===== */
.main-nav i.fi-rs-angle-down,
.main-nav i.fi-rs-angle-right {
  margin-left: 5px;
  font-size: 12px;
  vertical-align: middle;
}

.submenu li.has-submenu > a::after {
  content: '›'; /* Flèche unicode classique */
  font-family: inherit;
  font-size: 16px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
}


/* ===== FOOTER SOMBRE ===== */
.footer-mid {
  border-top: 2px solid #f3e6e1; /* Ligne de séparation élégante */
  background: linear-gradient(to bottom, #2a2a2a, #1c1c1c); /* Dégradé discret */
  color: #ddd;
  padding-top: 40px;
  padding-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}

.footer-mid .widget-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-mid a {
  color: #ccc;
  text-decoration: none;
}

.footer-mid a:hover {
  color: var(--secondary-color-dark);
}

.footer-mid strong {
  color: #f0f0f0;
}

.footer-mid .mobile-social-icon img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-mid .mobile-social-icon a:hover img {
  transform: scale(1.1);
  filter: brightness(0.7) sepia(1) hue-rotate(10deg) saturate(4);
}



.footer-mid .widget-about img {
  max-width: 160px;
  height: auto;
}

.footer-mid .widget-about h5 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-mid p {
  margin-bottom: 8px;
  color: #666;
}


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

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

.footer-list li a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list li a:hover {
  color: var(--secondary-color-dark);
}

.mobile-social-icon a {
  display: inline-block;
  margin: 0 6px;
}

.mobile-social-icon img {
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.mobile-social-icon img:hover {
  opacity: 1;
}
/* ===== FOOTER - Responsive ===== */
@media (max-width: 768px) {
  .footer-mid .widget-about,
  .footer-mid .widget-title,
  .footer-mid .footer-list,
  .footer-mid .mobile-social-icon {
    text-align: center;
  }

  .footer-mid .logo {
    margin: 0 auto 15px;
  }

  .footer-mid .widget-title {
    margin-top: 25px;
  }

  .footer-mid .footer-list li {
    margin-bottom: 6px;
  }

  .footer-mid .mobile-social-icon a {
    margin: 0 8px;
  }
}


/* ===== SLIDER FULLWIDTH ===== */
@media (max-width: 768px) {
  .custom-slide {
    background-size: contain !important; /* pour afficher toute l’image */
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 250px; /* hauteur minimale, à ajuster selon le design */
  }

  .custom-slider-wrapper {
    height: auto !important;
  }

  .slide-content {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6); /* si besoin pour lisibilité du texte */
    backdrop-filter: blur(3px);
  }
}

.custom-slider-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.custom-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  position: relative;
}

.custom-slide {
  flex: 0 0 100%;
  height: 60vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  cursor: pointer;
}

.slide-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  z-index: 2;
}

.slide-title {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Reefa Regular', sans-serif;
}

.slide-description {
  display: inline;
  font-size: 1rem;
  margin-left: 8px;
}

.slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.slider-arrow.left {
  left: 10px;
}

.slider-arrow.right {
  right: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .custom-slide {
    height: 50vh;
  }

  .slide-title,
  .slide-description {
    font-size: 0.9rem;
  }

  .slide-content {
    padding: 10px 15px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 32px;
  }
}


.header-top {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #333;
}

.header-top a:hover {
  color:var(--secondary-color-dark) !important;
}

.news-flash marquee {
  color: #f5f5f5;
}


.card-title {
  min-height: 2.75em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3em;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ZOOM MODAL – UI */

/* ZOOM MODAL – UI */

.zoom-modal-content {
    background: #f8f9fa;
    border-radius: 10px;
    border: none;
}

.zoom-modal-header {
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zoom-modal-header .modal-title {
    font-size: .8rem;
    font-weight: 600;
    color: #222;
    max-width: 60%;
}

/* Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zoom-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.15);
    background: #fff;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.zoom-btn:hover {
    background: #111;
    color: #fff;
    transform: scale(1.05);
}

.zoom-btn.close-btn {
    border-color: rgba(0,0,0,.25);
}

/* Body */
.zoom-modal-body {
    padding: 0;
    background: #eaeaea;
}

/* Stage */
.zoom-stage {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f3f5, #e9ecef);
    cursor: grab;
}

.zoom-stage:active {
    cursor: grabbing;
}

/* Image */
.zoom-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    transition: transform .15s ease;
    will-change: transform;
}



.maintenance-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1.25rem;
    box-shadow: 0 35px 60px rgba(15,15,15,.08);
    max-width: 700px;
    margin: 0 auto;
}

#imageZoomModal {
    z-index: 1200;
}

/* Header fixe */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1190;
}

/* Barre 1 : texte scrollant */
.header-top {
  height: 32px;
  background: #000;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.header-info-text {
  letter-spacing: .2px;
  opacity: .9;
}

/* Barre 2 : navigation principale */
.header-middle {
  height: 64px;
  background: #f6efe8;
  border-bottom: 1px solid #e5e5e5;
}

.header-middle .container {
  height: 100%;
}

/* Logo */
.header-middle .logo img {
  max-height: 34px;
  display: block;
}


/* Actions droite : espacement réel */
.header-action-2 {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Wrapper icône */
.header-action-icon-2 {

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

/* Liens et boutons */
.header-action-icon-2 a,
.header-action-icon-2 button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Icônes images et font */
.header-action-icon-2 img,
.header-action-icon-2 i {
  width: 24px;
  height: 24px;
  font-size: 24px;
  display: block;
}

/* Badge compteur */
.header-action-icon-2 .pro-count {
  font-size: 10px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  padding: 0;
  top: -4px;
  right: -4px;
}

/* FIX Bootstrap 5.0.0-beta2 : modal bloquée par backdrop */
.modal {
    z-index: 1205 !important;
}

.modal-backdrop {
    z-index: 1200 !important;
}
