@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e6ebf2;
  --text: #142033;
  --muted: #66758a;
  --primary: #0f3d5e;
  --primary-2: #0a6aa1;
  --soft: #eef5fb;
  --success: #198754;
  --shadow: 0 14px 42px rgba(13, 25, 47, 0.08);
  --radius: 0.65rem;
  --radius-sm: 0.45rem;
}
html,
body {
  background: var(--bg);
  color: var(--text);
}
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}
.top-strip {
  background: #f9fbfd;
  color: var(--muted);
}
/* Logo MDI Boutique : logo MDI officiel (non modifié) + "Boutique" en exposant manuscrit */
.navbar-brand {
  position: relative;
}
.brand-logo {
  width: 75px;
  height: auto;
  display: block;
  transition: width 0.3s ease;
  /* Le logo MDI officiel est un SVG blanc : navbar shop toujours sur fond clair,
     on l'assombrit pour rester lisible (logo original non modifié sur disque). */
  filter: brightness(0) saturate(100%);
}
.brand-suffix {
  font-family: "Pacifico", cursive;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--primary-2);
  margin-left: 0.15rem;
  transform: translateY(-0.9em);
  transition: font-size 0.3s ease, transform 0.3s ease;
}
.hero-block {
  background: radial-gradient(
    circle at top right,
    #d9edf8 0,
    #ffffff 40%,
    #ffffff 100%
  );
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-panel,
.card-soft,
.sidebar-card,
.toolbar-card,
.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel {
  padding: 1.5rem;
}
.stat-card,
.feature-card,
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
}
.category-card {
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 25, 47, 0.08);
}
.category-index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.section-title {
  letter-spacing: -0.03em;
}
.text-muted-2 {
  color: var(--muted) !important;
}
.sidebar-card,
.toolbar-card,
.panel-card {
  padding: 1.25rem;
}
.catalog-layout {
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

/* ===== Sidebar catégories : bande pleine hauteur + contenu interne sticky =====
   `.catalog-sidebar` (la colonne <aside>) porte le fond teinté et occupe toute la
   hauteur de la ligne (comportement flex par défaut de `.row`, sans rien forcer) :
   c'est la zone visuelle, continue, parallèle à la grille produits.
   `.sidebar-card` (le contenu, à l'intérieur) reste `position: sticky` pour rester
   visible pendant le défilement — les deux rôles sont volontairement séparés. */
.catalog-sidebar {
  position: relative;
  margin-top: 0;
}
/* Bande de fond en pseudo-élément (position: absolute) plutôt qu'en marge
   négative directe : `.row` est un flex container, donc une marge négative
   sur `.catalog-sidebar` déplacerait aussi la colonne produits voisine.
   Le pseudo-élément déborde visuellement jusqu'au bord gauche réel de la
   section sans influencer la mise en page flex. */
.catalog-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * clamp(1rem, 3vw, 2.5rem) + 0.75rem);
  right: 0;
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  z-index: -1;
  pointer-events: none;
}
.catalog-layout .sidebar-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 1.5rem 1.25rem;
  position: sticky;
  /* passe sous la navbar (toujours sticky en haut, jusqu'à ~78px au repos) */
  top: calc(78px + 1rem);
  max-height: calc(100vh - 78px - 2rem);
  overflow-y: auto;
}
.category-tree {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.category-node {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.category-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  transition: 0.18s ease;
  font-size: 0.95rem;
  color: var(--text);
}
.category-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: #d4e2ef;
}
.category-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 61, 94, 0.18);
}
.category-children {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  border-left: 2px solid rgba(15, 61, 94, 0.14);
  margin-left: 0.85rem;
  padding-left: 0.7rem;
}
.category-children.is-visible {
  display: flex;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13, 25, 47, 0.04);
  height: 100%;
}
.product-card .product-thumb {
  background: #fff;
}
.product-card img {
  object-fit: cover;
}
.product-card .badge-soft {
  background: var(--soft);
  color: var(--primary);
  font-weight: 600;
}
.thumb-sm {
  width: 64px;
  height: 64px;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-sm img,
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-main {
  overflow: hidden;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
}
.listing-toolbar .form-control,
.listing-toolbar .form-select {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border-color: #d8e3ee;
}
.form-shell .form-control,
.form-shell .form-select {
  min-height: 48px;
  border-radius: 0.9rem;
  border-color: #d8e3ee;
}
.form-shell,
.summary-shell,
.profile-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.profile-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-line span {
  color: var(--muted);
}
.checkout-locked {
  background: #f8fafc !important;
  border-color: #dbe7f0 !important;
  color: #64748b !important;
  cursor: not-allowed;
}
.checkout-notes-open {
  border-style: dashed;
}
.empty-illustration {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.page-link {
  border-radius: var(--radius-sm) !important;
  color: var(--primary);
}
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}
@media (max-width: 991.98px) {
  .catalog-layout .sidebar-card {
    position: static;
  }
}


/* =========================
   ACCOUNT PAGE — ADDITIONS
   ========================= */

.profile-shell,
.form-shell {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.profile-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-line span {
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
  flex: 0 0 120px;
}

.profile-line strong {
  color: var(--text, #111827);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.form-shell[hidden] {
  display: none !important;
}

/* Harmonisation des champs dans la page compte */
.form-shell .form-control,
.form-shell .form-select {
  min-height: 48px;
  border-radius: 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

.form-shell .form-control:focus,
.form-shell .form-select:focus {
  border-color: rgba(17, 24, 39, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.08);
}

.form-shell .form-label {
  font-weight: 600;
  margin-bottom: 0.45rem;
}

/* Version légère pour les cartes stats si besoin */
.panel-card .fs-3,
.panel-card .fs-5 {
  line-height: 1.1;
}

/* Responsive */
@media (max-width: 991.98px) {
  .profile-shell,
  .form-shell {
    padding: 1rem;
    border-radius: 1rem;
  }
}

@media (max-width: 575.98px) {
  .profile-line {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

  .profile-line span,
  .profile-line strong {
    flex: unset;
    text-align: left;
  }
}

/* =========================
   ACCOUNT DASHBOARD
   ========================= */

.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-kpi-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dashboard-kpi-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-kpi-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-kpi-label {
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
}

.dashboard-kpi-value {
  color: var(--text, #111827);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .dashboard-kpi-item {
    flex-direction: column;
    gap: 0.35rem;
  }

  .dashboard-kpi-value {
    text-align: left;
  }
}


/* =========================
   HOME HERO ANIMÉ
   ========================= */

.home-hero {
  background:
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.home-hero::before{
      content: "";
    position: absolute;
    inset: 0;
    background: url("../Images/cabinet.jpg") center/cover no-repeat;
    
    filter: blur(8px);
    transform: scale(1.1); /* évite les bords flous visibles */
    
    z-index: -1
}

.hero-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-ready .hero-reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-delay-1 { transition-delay: 0.05s; }
.hero-delay-2 { transition-delay: 0.15s; }
.hero-delay-3 { transition-delay: 0.3s; }
.hero-delay-4 { transition-delay: 0.45s; }
.hero-delay-5 { transition-delay: 0.6s; }

.hero-visual-wrap {
  min-height: 460px;
  position: relative;
}

.hero-main-card {
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-shape-1 {
  width: 220px;
  height: 220px;
  background: rgba(15, 23, 42, 0.06);
  top: -20px;
  right: -20px;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  background: rgba(15, 23, 42, 0.08);
  bottom: 12px;
  left: -20px;
  animation: heroFloat 6s ease-in-out infinite reverse;
}

.hero-product-card {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.floating-card {
  animation: floatingCard 4.8s ease-in-out infinite;
}

.floating-card-1 {
  top: 22px;
  left: -18px;
}

.floating-card-2 {
  right: -12px;
  bottom: 24px;
  animation-delay: 0.8s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes floatingCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================
   HOME CAROUSELS
   ========================= */

.products-carousel-shell {
  overflow: hidden;
  position: relative;
}

.products-carousel-track {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 25%;
  max-width: 25%;
}

.carousel-nav-group {
  display: flex;
  gap: 0.65rem;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  transition: all 0.25s ease;
}

.carousel-nav-btn:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.home-product-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.home-product-thumb {
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-home {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@media (max-width: 1199.98px) {
  .carousel-slide {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

@media (max-width: 991.98px) {
  .hero-visual-wrap {
    min-height: 360px;
  }

  .floating-card-1,
  .floating-card-2 {
    position: static;
    margin-bottom: 1rem;
    animation: none;
  }

  .carousel-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .hero-visual-wrap {
    min-height: auto;
  }

  .hero-product-card {
    display: none;
  }

  .carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .carousel-nav-group {
    width: 100%;
    justify-content: flex-end;
  }
}


.products-carousel-shell {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.products-carousel-track {
  cursor: grab;
}

.products-carousel-shell:active .products-carousel-track {
  cursor: grabbing;
}


.mini-card {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  padding: 1rem;
}


/* =========================
   Contact
   ========================= */

.map-banner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.map-banner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.15)
  );
  pointer-events: none;
}

.map-content {
  color: #fff;
  max-width: 520px;
}

.text-muted-light {
  color: rgba(255, 255, 255, 0.82);
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .map-banner {
    height: 280px;
  }

  .map-content h2 {
    font-size: 1.35rem;
  }
}
/* =========================
   V5 MDI-LIKE REFINEMENTS
   ========================= */
.site-header {
  background: transparent;
}
#navSentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}
.topbar {
  background: linear-gradient(90deg, #0f3d5e 0%, #145780 55%, #1b6f97 100%);
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  font-size: .88rem;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.94);
  text-decoration: none;
}
.topbar-link:hover {
  color: #fff;
}
.navbar-main {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 61, 94, 0.08);
  box-shadow: 0 10px 28px rgba(13, 25, 47, 0.06);
  transition: box-shadow 0.3s ease;
}
.navbar-main .container {
  min-height: 78px;
  transition: min-height 0.3s ease;
}
/* Mode compact : activé par IntersectionObserver (js/app.js) quand la navbar est collée en haut */
.navbar-main.is-stuck {
  box-shadow: 0 12px 32px rgba(13, 25, 47, 0.12);
}
.navbar-main.is-stuck .container {
  min-height: 54px;
}
.navbar-main.is-stuck .brand-logo {
  width: 32px;
}
.navbar-main.is-stuck .brand-suffix {
  font-size: 0.85rem;
}
.nav-end .navbar-toggler {
  border: 0;
  padding: 0.25rem 0.4rem;
}
.nav-end .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(15, 61, 94, 0.15);
}
/* <992px : le panier doit rester sur la même ligne que le logo, au-dessus du
   panneau du menu (qui passe à la ligne en pleine largeur), jamais dedans. */
@media (max-width: 991.98px) {
  .navbar-main .navbar-brand {
    order: 0;
  }
  .navbar-main .nav-end {
    order: 1;
  }
  .navbar-main .navbar-collapse {
    order: 2;
    flex-basis: 100%;
  }
}
.navbar-main .nav-link {
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  padding: .6rem .9rem !important;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  background: rgba(15, 61, 94, 0.07);
  color: var(--primary);
}
.cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: .2s ease;
}
.cart-link:hover {
  background: var(--soft);
  border-color: #d4e2ef;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.hero-home {
  position: relative;
  overflow: hidden;
}
.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-home::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -80px;
  background: rgba(10,106,161,.12);
}

.hero-home::after {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -20px;
  background: rgba(15,61,94,.08);
}
.hero-showcase {
  position: relative;
  padding: 1.25rem 0 1.75rem;
}
.hero-main-visual {
  border-radius: 1.6rem;
  overflow: hidden;
}
.hero-main-visual img {
  object-fit: cover;
}
.hero-floating-card {
  position: absolute;
  z-index: 2;
  min-width: 180px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(230,235,242,.95);
  border-radius: 1rem;
  box-shadow: 0 16px 34px rgba(13,25,47,.12);
  padding: .95rem 1rem;
}
.hero-floating-card-a { top: 12px; right: 8px; }
.hero-floating-card-b { left: -4px; bottom: 8px; }

/* ===== Hero — carrousel (slide statique + slides "produits phares") ===== */
#shopHero .carousel-item {
  min-height: 560px;
}

/* Bootstrap doit garder le contrôle de l’affichage des slides inactifs. */
#shopHero .carousel-item:first-child > .container {
  min-height: 560px;
  display: flex;
  align-items: center;
}
#shopHero .carousel-item:first-child > .container > .row {
  width: 100%;
}
.hero-product-slide {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-product-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 24, 41, 0.82) 0%, rgba(10, 24, 41, 0.55) 45%, rgba(10, 24, 41, 0.25) 100%);
}
.hero-product-slide .container {
  position: relative;
  z-index: 1;
}
.hero-product-slide-content {
  max-width: 560px;
}
.hero-product-slide-content p {
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
#shopHero .carousel-control-prev,
#shopHero .carousel-control-next {
  width: 3.2rem;
  height: 3.2rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0 1rem;
  border-radius: 999px;
  background: rgba(10, 24, 41, 0.35);
  opacity: 1;
  transition: background 0.2s ease;
}
#shopHero .carousel-control-prev:hover,
#shopHero .carousel-control-next:hover {
  background: rgba(10, 24, 41, 0.6);
}
#shopHero .carousel-control-prev-icon,
#shopHero .carousel-control-next-icon {
  width: 1.1rem;
  height: 1.1rem;
}
#shopHero .carousel-indicators {
  bottom: 1rem;
  margin-bottom: 0;
}
#shopHero .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background-color: rgba(15, 61, 94, 0.35);
  opacity: 1;
}
#shopHero .carousel-indicators .active {
  background-color: var(--primary);
  width: 22px;
}
@media (max-width: 991.98px) {
  #shopHero .carousel-item,
  #shopHero .carousel-item:first-child > .container,
  .hero-product-slide {
    min-height: 460px;
  }
}
@media (max-width: 575.98px) {
  #shopHero .carousel-item,
  #shopHero .carousel-item:first-child > .container,
  .hero-product-slide {
    min-height: 520px;
  }
  .hero-product-slide-overlay {
    background: linear-gradient(180deg, rgba(10, 24, 41, 0.55) 0%, rgba(10, 24, 41, 0.85) 70%);
  }
  #shopHero .carousel-control-prev,
  #shopHero .carousel-control-next {
    width: 2.4rem;
    height: 2.4rem;
    margin: 0 0.5rem;
    top: auto;
    bottom: 2.75rem;
    transform: none;
  }
}
.mini-panel {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(230,235,242,.95);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(13,25,47,.05);
}
.category-row {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.category-toggle {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  color: var(--muted);
}
.category-toggle:hover {
  background: var(--soft);
  color: var(--primary);
}
.category-toggle.is-empty {
  visibility: hidden;
}
.category-btn {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
}
.category-label {
  display: inline-flex;
  align-items: center;
}
.home-product-card,
.order-card,
.auth-card,
.checkout-card,
.cart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px rgba(13,25,47,.05);
}
.home-product-card {
  overflow: hidden;
  height: 100%;
}
.home-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.products-carousel-shell {
  overflow: hidden;
}
.products-carousel-track {
  display: flex;
  transition: transform .28s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  padding: .25rem;
}
@media (min-width: 576px) {
  .carousel-slide { flex-basis: 50%; }
}
@media (min-width: 992px) {
  .carousel-slide { flex-basis: 33.3333%; }
}
@media (min-width: 1200px) {
  .carousel-slide { flex-basis: 25%; }
}
.carousel-nav-group {
  display: inline-flex;
  gap: .6rem;
}
.carousel-nav-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.carousel-nav-btn:hover {
  background: var(--soft);
  border-color: #d4e2ef;
}
.category-card-home {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card-home:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(13,25,47,.1);
  border-color: #d4e2ef;
}
.category-card-home-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.category-card-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.category-card-home:hover .category-card-home-media img {
  transform: scale(1.06);
}
.category-card-home-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1 1 auto;
}
.category-card-home-body .icon-circle {
  margin-top: -2.4rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 18px rgba(13,25,47,.14);
}
.category-card-home--noimg .category-card-home-body .icon-circle {
  margin-top: 0;
  box-shadow: none;
}
.site-footer {
  margin-top: 4rem;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.2rem;
}
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}
.footer-links a,
.footer-info div {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-info {
  display: grid;
  gap: .7rem;
  color: var(--muted);
}
.footer-info i {
  color: var(--primary);
  margin-right: .45rem;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .95rem;
}
.map-banner,
.summary-shell,
.profile-shell,
.form-shell,
.panel-card,
.toolbar-card,
.sidebar-card {
  box-shadow: 0 16px 34px rgba(13,25,47,.06);
}
.table,
.table > :not(caption) > * > * {
  border-color: #ebf0f5;
}
.table thead th {
  font-weight: 700;
  color: var(--text);
}
.form-control,
.form-select,
.input-group-text {
  border-color: #d8e3ee;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(15,61,94,.35);
  box-shadow: 0 0 0 .2rem rgba(15,61,94,.08);
}
.btn-dark {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-dark:hover,
.btn-dark:focus {
  background: #0b314c;
  border-color: #0b314c;
}
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--primary);
}
.offcanvas {
  border-right: 1px solid var(--line);
}
@media (max-width: 991.98px) {
  .topbar-inner {
    gap: .6rem;
    padding: .4rem 0;
    font-size: .8rem;
  }
  .navbar-main .container {
    min-height: 68px;
  }
  .hero-floating-card {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .topbar-link span {
    display: none;
  }
  .brand-suffix {
    font-size: 0.9rem;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================
   ORDERS PAGE / PDF BUTTON
   ========================= */

.summary-shell {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.listing-toolbar,
.toolbar-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

#ordersRoot .accordion-item {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
  background: #fff;
}

#ordersRoot .accordion-button {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: none;
  padding: 1.1rem 1.25rem;
}

#ordersRoot .accordion-button:not(.collapsed) {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: inherit;
  box-shadow: none;
}

#ordersRoot .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.18);
}

#ordersRoot .accordion-body {
  background: #fcfdff;
  padding: 1.25rem;
}

#ordersRoot .thumb-sm {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

#ordersRoot .thumb-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ordersRoot .badge {
  font-weight: 600;
  letter-spacing: 0.01em;
}

#ordersRoot .text-bg-warning {
  color: #5f4200 !important;
  background-color: #fff3cd !important;
}

#ordersRoot .text-bg-info {
  color: #0b4c61 !important;
  background-color: #d9f3ff !important;
}

#ordersRoot .text-bg-primary {
  background-color: #dbeafe !important;
  color: #0b3f91 !important;
}

#ordersRoot .text-bg-success {
  background-color: #dcfce7 !important;
  color: #166534 !important;
}

#ordersRoot .text-bg-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

#ordersRoot .border.rounded-4.bg-white {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

#ordersRoot .btn {
  min-height: 46px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#ordersRoot .btn.rounded-pill {
  border-radius: 999px !important;
}

#ordersRoot .btn-outline-primary {
  border-width: 1px;
  background: #fff;
}

#ordersRoot .btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.14);
}

#ordersRoot .btn-outline-dark:hover,
#ordersRoot .btn-dark:hover {
  transform: translateY(-1px);
}

.btn-order-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid rgba(13, 110, 253, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  color: #0d6efd;
}

.btn-order-pdf:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.btn-order-pdf::before {
  content: "⇩";
  font-size: 0.95rem;
  line-height: 1;
}

.orders-customer-card,
.orders-totals-card,
.orders-items-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

#ordersSummary strong.text-primary,
#ordersRoot .text-primary {
  color: #0d6efd !important;
}

@media (max-width: 991.98px) {
  .summary-shell {
    position: static !important;
  }

  #ordersRoot .accordion-button {
    padding: 1rem;
  }

  #ordersRoot .accordion-body {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  #ordersRoot .thumb-sm {
    width: 54px;
    height: 54px;
    border-radius: 0.85rem;
  }

  #ordersRoot .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }
}
/* =========================
   LISTING TOOLBAR FILTERS
   À ajouter à la fin de assets/css/theme.css
   ========================= */

.listing-toolbar--compact {
  padding: 1rem;
}

.catalog-toolbar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-toolbar-heading {
  min-width: 0;
}

.catalog-context {
  color: var(--text, #111827);
  line-height: 1.25;
}

.catalog-results-inline {
  margin-top: 0.2rem;
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalog-toolbar-controls {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 0.75rem;
}

.catalog-toolbar-filters {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 0.75rem;
}

.catalog-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text, #111827);
  font-size: 0.875rem;
}

.catalog-filter-chip strong {
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
  font-weight: 600;
}

.catalog-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-filter-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-filter-chip button:hover {
  background: #111827;
  color: #fff;
}

@media (max-width: 767.98px) {
  .catalog-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-toolbar-actions {
    justify-content: flex-start;
  }

  .catalog-filter-chip {
    width: 100%;
    justify-content: space-between;
  }
}

/* Recherche instantanée intégrée à la listing-toolbar */
.listing-toolbar-search .input-group-text,
.listing-toolbar-search .form-control,
.listing-toolbar-search .btn {
  min-height: 38px;
}

.listing-toolbar-search .input-group-text {
  border-color: rgba(15, 23, 42, 0.1);
}

.listing-toolbar-search .form-control {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: none;
}

.listing-toolbar-search .form-control:focus {
  border-color: rgba(17, 24, 39, 0.35);
  box-shadow: 0 0 0 0.16rem rgba(17, 24, 39, 0.08);
}

.listing-toolbar-search .btn.disabled,
.listing-toolbar-search .btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .catalog-toolbar-controls {
    gap: 0.75rem 0;
  }

  .listing-toolbar-search .form-control {
    font-size: 0.9rem;
  }
}


/* ===== Correctif Hero + optimisation mobile accueil ===== */
#shopHero .carousel-inner { overflow: hidden; }
#shopHero .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) { display: none; }

@media (max-width: 575.98px) {
  #shopHero .carousel-item:first-child > .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  #shopHero .carousel-item:first-child .row { row-gap: 1.25rem !important; }
  #shopHero .hero-showcase { padding-top: .5rem; padding-bottom: .5rem; }

  #homeCategoriesGrid {
    --bs-gutter-x: .65rem;
    --bs-gutter-y: .65rem;
  }
  .category-card-home-body { padding: .7rem .65rem .8rem; }
  .category-card-home-media { aspect-ratio: 4 / 3; }
  .category-card-home-body .icon-circle {
    width: 38px; height: 38px; margin-top: -1.65rem; margin-bottom: .55rem !important; font-size: .95rem;
  }
  .category-card-home-body h3 {
    min-height: 2.35em; margin-bottom: .3rem !important; font-size: .82rem; line-height: 1.18;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .category-card-home-body p {
    font-size: .72rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  .products-carousel-track { gap: .5rem; }
  .carousel-slide { padding: 0; }
  .home-product-card { border-radius: .8rem; }
  .home-product-thumb { aspect-ratio: 1 / 1 !important; }
  .home-product-body { padding: .65rem !important; }
  .home-product-body .badge {
    max-width: 74px; padding: .28rem .42rem; font-size: .62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .home-product-body .small { font-size: .68rem; }
  .home-product-title {
    min-height: 2.5em; font-size: .8rem !important; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .home-product-description {
    min-height: 2.6em; margin-bottom: .6rem !important; font-size: .68rem !important; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .home-product-price-row { align-items: flex-start !important; gap: .25rem; margin-bottom: .6rem !important; }
  .home-product-price-row strong { font-size: .88rem !important; line-height: 1.15; }
  .home-product-price-row .small { font-size: .62rem; white-space: nowrap; }
  .home-product-actions { gap: .35rem !important; }
  .home-product-actions .btn { min-width: 0; padding: .42rem .45rem; font-size: .7rem; line-height: 1.15; }
  .carousel-nav-btn { width: 38px; height: 38px; }
}

@media (max-width: 359.98px) {
  #homeCategoriesGrid { --bs-gutter-x: .45rem; --bs-gutter-y: .45rem; }
  .products-carousel-track { gap: .35rem; }
  .home-product-body { padding: .52rem !important; }
  .home-product-actions .btn { padding-inline: .3rem; font-size: .66rem; }
}


/* =========================================================
   MDI Shop — Hero produits : image principale + image de fond
   ========================================================= */
.hero-product-slide {
  isolation: isolate;
  background-color: #0f3d5e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-product-slide:not(.has-background-image) {
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.13), transparent 24%),
    linear-gradient(135deg, #0f3d5e 0%, #0a6aa1 100%);
}

.hero-product-slide-overlay {
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 39, 0.94) 0%,
      rgba(8, 35, 56, 0.86) 42%,
      rgba(10, 52, 79, 0.62) 68%,
      rgba(10, 52, 79, 0.48) 100%
    );
}

.hero-product-slide.has-background-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(4, 20, 34, 0.18);
  backdrop-filter: blur(1.5px);
  pointer-events: none;
}

.hero-product-slide .container {
  position: relative;
  z-index: 2;
}

.hero-product-slide-row {
  width: 100%;
  min-height: inherit;
}

.hero-product-slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.20);
}

.hero-product-main-media {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 26px 64px rgba(0,0,0,.23);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-product-main-media::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,106,161,.14), transparent 68%);
  pointer-events: none;
}

.hero-product-main-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 22px rgba(4, 20, 34, .16));
}

.hero-product-main-media.is-empty {
  display: none;
}

@media (max-width: 991.98px) {
  .hero-product-slide-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(7, 24, 39, 0.92) 0%,
        rgba(8, 35, 56, 0.80) 56%,
        rgba(10, 52, 79, 0.58) 100%
      );
  }

  .hero-product-main-media {
    min-height: 290px;
  }

  .hero-product-main-media img {
    height: 260px;
  }
}

@media (max-width: 767.98px) {
  .hero-product-slide {
    padding: 2rem 0 3rem;
  }

  .hero-product-slide-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(7, 24, 39, 0.91) 0%,
        rgba(8, 35, 56, 0.84) 58%,
        rgba(10, 52, 79, 0.70) 100%
      );
  }

  .hero-product-slide-content {
    max-width: none;
  }

  .hero-product-main-media {
    min-height: 230px;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 1.1rem;
    padding: 0.8rem;
  }

  .hero-product-main-media img {
    height: 210px;
  }
}

@media (max-width: 575.98px) {
  .hero-product-slide {
    padding-top: 1.65rem;
    padding-bottom: 4rem;
  }

  .hero-product-slide-content h2 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .hero-product-slide-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-product-main-media {
    min-height: 190px;
  }

  .hero-product-main-media img {
    height: 170px;
  }
}


/* ============================================================
   MDI SHOP — HERO SLIDER V3
   Refonte ciblée : identité MDI, animations, responsive,
   slides produits dynamiques et respect prefers-reduced-motion.
   ============================================================ */

#shopHero {
  --hero-duration: .72s;
  --hero-ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 12%, rgba(10, 106, 161, .10), transparent 28%),
    linear-gradient(120deg, #ffffff 0%, #f7fbfe 54%, #eef6fb 100%);
}

#shopHero .carousel-inner {
  overflow: hidden;
}

#shopHero .carousel-item {
  min-height: clamp(510px, 61vw, 650px);
}

/* Bootstrap fade plus souple, sans flash entre les slides. */
#shopHero.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .82s var(--hero-ease);
}
#shopHero.carousel-fade .carousel-item.active,
#shopHero.carousel-fade .carousel-item-next.carousel-item-start,
#shopHero.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

/* ---------- Premier slide : composition MDI sobre ---------- */
#shopHero .hero-intro-container {
  min-height: clamp(510px, 61vw, 650px);
  display: flex;
  align-items: center;
  padding-top: clamp(3.2rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.2rem, 6vw, 5.5rem);
}

.hero-intro-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-kicker,
.hero-product-kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-kicker-line {
  display: inline-block;
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary-2);
}

.hero-intro-title {
  margin: 1.15rem 0 1.15rem;
  max-width: 720px;
  color: #10243a;
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 760;
}

.hero-intro-title span {
  display: block;
  color: var(--primary-2);
  font-weight: 680;
}

.hero-intro-lead {
  max-width: 620px;
  margin: 0 0 1.8rem;
  color: #56677b;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}

.hero-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.hero-primary-cta,
.hero-product-cta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .76rem 1.28rem;
  border: 1px solid var(--primary);
  border-radius: .55rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 61, 94, .16);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.hero-primary-cta:hover,
.hero-product-cta:hover {
  transform: translateY(-2px);
  background: #0a3150;
  border-color: #0a3150;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 61, 94, .22);
}

.hero-secondary-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(15, 61, 94, .28);
  padding-bottom: .15rem;
}

.hero-secondary-link:hover {
  color: var(--primary-2);
  border-color: var(--primary-2);
}

.hero-intro-signature {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .7rem;
  margin-top: 2rem;
  color: #738195;
  font-size: .86rem;
  font-weight: 650;
}

.hero-signature-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9db0c0;
}

.hero-intro-visual {
  position: relative;
  max-width: 780px;
  margin-left: auto;
}

.hero-intro-image-frame {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 42vw, 520px);
  border-radius: 1.1rem 1.1rem 1.1rem 4.5rem;
  background: #dfeaf2;
  box-shadow: 0 26px 64px rgba(20, 50, 75, .15);
}

.hero-intro-image-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: inherit;
  pointer-events: none;
}

.hero-intro-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.hero-intro-image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 37, 60, .10), transparent 45%),
    linear-gradient(0deg, rgba(8, 31, 50, .35), transparent 42%);
  pointer-events: none;
}

.hero-intro-brand-mark {
  position: absolute;
  left: clamp(1.15rem, 3vw, 2rem);
  bottom: clamp(1.05rem, 2.6vw, 1.8rem);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: .55rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.22);
}

.hero-intro-brand-mark span {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
}

.hero-intro-brand-mark small {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ---------- Slides produits dynamiques ---------- */
.hero-product-slide {
  min-height: clamp(510px, 61vw, 650px);
  background:
    radial-gradient(circle at 86% 20%, rgba(10, 106, 161, .18), transparent 28%),
    linear-gradient(120deg, #0c2f4a 0%, #0e466c 55%, #116990 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-product-slide.has-background-image {
  background-size: cover;
  background-position: center center;
}

.hero-product-slide-overlay {
  background:
    linear-gradient(90deg,
      rgba(5, 24, 39, .92) 0%,
      rgba(7, 33, 52, .82) 38%,
      rgba(8, 42, 66, .53) 63%,
      rgba(8, 42, 66, .22) 100%);
}

.hero-product-slide-row {
  min-height: clamp(510px, 61vw, 650px);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero-product-slide-content {
  max-width: 650px;
}

.hero-product-kicker {
  color: rgba(255,255,255,.78);
}

.hero-product-kicker .hero-kicker-line {
  background: #7bc2e9;
}

.hero-product-title {
  max-width: 660px;
  margin: 1rem 0 .9rem;
  font-size: clamp(2.2rem, 4.3vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 750;
}

.hero-product-desc {
  max-width: 590px;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.68;
}

.hero-product-price {
  margin-bottom: 1.35rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 760;
  color: #fff;
}

.hero-product-cta {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.hero-product-cta:hover {
  background: #f3f8fc;
  border-color: #f3f8fc;
  color: #0a3150;
}

.hero-product-main-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: clamp(1rem, 3vw, 2rem);
}

.hero-product-main-media::before {
  content: "";
  position: absolute;
  width: min(88%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,.03) 65%, transparent 66%);
  filter: blur(.2px);
}

.hero-product-main-media img {
  position: relative;
  z-index: 2;
  display: block;
  max-width: min(100%, 520px);
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.24));
}

.hero-product-main-media.is-empty {
  min-height: 0;
}

/* ---------- Animations d'entrée ---------- */
#shopHero .hero-animate {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--hero-duration) var(--hero-ease),
    transform var(--hero-duration) var(--hero-ease);
  will-change: opacity, transform;
}

#shopHero .hero-intro-visual.hero-animate,
#shopHero .hero-product-main-media.hero-animate {
  transform: translateX(24px) scale(.985);
}

#shopHero .carousel-item.is-entering .hero-animate,
#shopHero .carousel-item.active.is-entering .hero-animate {
  opacity: 1;
  transform: none;
}

#shopHero .hero-delay-1 { transition-delay: .06s; }
#shopHero .hero-delay-2 { transition-delay: .14s; }
#shopHero .hero-delay-3 { transition-delay: .23s; }
#shopHero .hero-delay-4 { transition-delay: .32s; }
#shopHero .hero-delay-5 { transition-delay: .42s; }

/* ---------- Contrôles ---------- */
#shopHero .carousel-control-prev,
#shopHero .carousel-control-next {
  width: 46px;
  height: 46px;
  margin-inline: clamp(.55rem, 1.7vw, 1.5rem);
  border: 1px solid rgba(255,255,255,.54);
  background: rgba(13, 50, 77, .52);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(10, 32, 49, .12);
}

#shopHero .hero-intro-slide ~ .carousel-control-prev,
#shopHero .hero-intro-slide ~ .carousel-control-next {
  color: #fff;
}

#shopHero .carousel-indicators {
  gap: .4rem;
  bottom: 1.15rem;
  z-index: 6;
}

#shopHero .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0;
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px rgba(15,61,94,.16);
  transition: width .25s ease, background .25s ease;
}

#shopHero .carousel-indicators .active {
  width: 28px;
  background: var(--primary-2);
}

/* Sur le premier slide clair, un fond discret derrière les indicateurs
   garde leur lisibilité sans changer le composant Bootstrap. */
#shopHero .carousel-indicators::before {
  content: "";
  position: absolute;
  inset: -8px -10px;
  z-index: -1;
  border-radius: 99px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #shopHero .carousel-item,
  #shopHero .hero-intro-container,
  .hero-product-slide,
  .hero-product-slide-row {
    min-height: auto;
  }

  #shopHero .hero-intro-container,
  .hero-product-slide-row {
    padding-top: 3.25rem;
    padding-bottom: 4.25rem;
  }

  .hero-intro-title {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
  }

  .hero-intro-image-frame {
    min-height: 360px;
    border-radius: 1rem 1rem 1rem 3rem;
  }

  .hero-product-main-media {
    min-height: 310px;
    padding-top: .5rem;
  }

  .hero-product-main-media img {
    max-height: 330px;
  }

  .hero-product-slide-overlay {
    background:
      linear-gradient(180deg,
        rgba(5,24,39,.87) 0%,
        rgba(7,33,52,.74) 52%,
        rgba(7,33,52,.88) 100%);
  }
}

@media (max-width: 575.98px) {
  #shopHero .hero-intro-container,
  .hero-product-slide-row {
    padding-top: 2.4rem;
    padding-bottom: 4.4rem;
  }

  .hero-intro-title,
  .hero-product-title {
    font-size: clamp(2.15rem, 11.5vw, 3.1rem);
  }

  .hero-intro-lead,
  .hero-product-desc {
    line-height: 1.58;
  }

  .hero-intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-primary-cta,
  .hero-secondary-link {
    width: 100%;
  }

  .hero-primary-cta {
    justify-content: center;
  }

  .hero-secondary-link {
    text-align: center;
    border: 0;
    padding: .45rem 0;
  }

  .hero-intro-signature {
    margin-top: 1.35rem;
    font-size: .78rem;
  }

  .hero-intro-image-frame {
    min-height: 275px;
    border-radius: .9rem .9rem .9rem 2.3rem;
  }

  .hero-product-main-media {
    min-height: 240px;
    padding: .25rem .75rem 0;
  }

  .hero-product-main-media img {
    max-height: 250px;
  }

  #shopHero .carousel-control-prev,
  #shopHero .carousel-control-next {
    width: 38px;
    height: 38px;
    top: auto;
    bottom: .8rem;
    margin-inline: .7rem;
    transform: none;
  }

  #shopHero .carousel-indicators {
    bottom: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #shopHero *,
  #shopHero *::before,
  #shopHero *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  #shopHero .hero-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   MDI SHOP — Correctif runtime distant R4
   Styles fonctionnels uniquement : burger + panier.
   Le design du hero validé n'est pas modifié.
   ============================================================ */

.mdi-cart-icon {
  display: block;
  flex: 0 0 auto;
}

.mdi-burger-icon {
  display: inline-flex;
  width: 25px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  vertical-align: middle;
}

.mdi-burger-icon > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 991.98px) {
  /* Rend également le fallback JS exploitable si Bootstrap JS est absent. */
  #navMain:not(.show) {
    display: none;
  }

  #navMain.show {
    display: block;
    width: 100%;
  }

  html.mdi-mobile-menu-open {
    overflow-x: hidden;
  }
}

@media (min-width: 992px) {
  #navMain {
    display: flex !important;
  }
}
