.promo-card--image {
  padding: 0;
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 10, 10, 0.05);
  box-shadow: var(--dm-shadow-md);
}

.promo-card-image {
  position: relative;
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  background: var(--dm-gray-50);
  padding: var(--dm-spacing-sm);
}

.promo-card-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(220px, 22vw, 320px);
  object-fit: contain;
}

.promo-card-caption {
  padding: var(--dm-spacing-md);
  font-size: 0.95rem;
  color: var(--dm-gray-700);
  text-align: center;
  border-top: 1px solid rgba(10, 10, 10, 0.05);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.promo-card-caption strong {
  font-size: 1.05rem;
  color: var(--dm-gray-900);
}

.promo-card-caption span {
  font-size: 0.9rem;
  color: var(--dm-gray-500);
}

.section-produits-gallery {
  padding: var(--dm-spacing-3xl) 0;
}

.section-produits-gallery .section-header-modern--centered {
  max-width: 820px;
}

.produits-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dm-spacing-xl);
  margin-top: var(--dm-spacing-xl);
}

@media (max-width: 1200px) {
  .produits-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .produits-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.employee-highlight-home {
  padding: var(--dm-spacing-3xl) 0;
  background: linear-gradient(180deg, rgba(246, 240, 243, 0.8) 0%, rgba(248, 252, 248, 0.6) 100%);
}

.employee-highlight-home .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--dm-spacing-lg);
}

.employee-highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow:
    0 10px 26px rgba(12, 18, 38, 0.06),
    0 4px 10px rgba(12, 18, 38, 0.04);
  border: 1px solid rgba(10, 10, 10, 0.04);
}

.employee-highlight-card__media {
  border-radius: 24px;
  overflow: hidden;
  background: var(--dm-gray-100);
  min-height: 240px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.employee-highlight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform var(--dm-transition-slow);
}

.employee-highlight-card:hover .employee-highlight-card__media img {
  transform: scale(1.03);
}

.employee-highlight-card__placeholder {
  font-weight: 600;
  color: var(--dm-gray-500);
}

.employee-highlight-card__content {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.employee-highlight-card__badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  color: var(--dm-red) !important;
  background: #e5f4e2 !important;
  padding: 0.45rem 1.25rem !important;
  border-radius: 999px !important;
  box-shadow: var(--dm-shadow-sm) !important;
  margin: 0 !important;
  width: fit-content !important;
}

.employee-highlight-card__month {
  font-size: 0.9rem;
  color: var(--dm-gray-500);
  margin: 0;
}

.employee-highlight-card__name {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
  color: var(--dm-gray-900);
  letter-spacing: -0.03em;
}

.employee-highlight-card__role {
  margin: 0 0 var(--dm-spacing-xs);
  font-weight: 600;
  color: var(--dm-gray-600);
}

.employee-highlight-card__story {
  margin: 0;
  color: var(--dm-gray-600);
  line-height: 1.65;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.employee-highlight-card__story--full {
  max-height: none;
  overflow-y: visible;
}

/* Style de la barre de défilement pour l'histoire */
.employee-highlight-card__story::-webkit-scrollbar {
  width: 6px;
}

.employee-highlight-card__story::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.05);
  border-radius: 3px;
}

.employee-highlight-card__story::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, 0.2);
  border-radius: 3px;
}

.employee-highlight-card__story::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 10, 10, 0.3);
}

.employee-highlight-card__read-more,
.employee-highlight-card__read-less {
  display: inline-block !important;
  margin-left: 0.5rem !important;
  padding: 0.25rem 0.75rem !important;
  background: transparent !important;
  border: 1px solid var(--dm-red) !important;
  border-radius: 6px !important;
  color: var(--dm-red) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
  vertical-align: baseline;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

/* Cacher le bouton "Voir moins" par défaut */
.employee-highlight-card__read-less {
  display: none !important;
}

.employee-highlight-card__read-more:hover,
.employee-highlight-card__read-less:hover {
  background: var(--dm-red) !important;
  color: white !important;
  border-color: var(--dm-red) !important;
}

.employee-highlight-card__read-more:active,
.employee-highlight-card__read-less:active {
  transform: scale(0.98);
}

.employee-highlight-card__story .employee-highlight-card__read-more,
.employee-highlight-card__story .employee-highlight-card__read-less,
.employee-highlight-card__story--truncated .employee-highlight-card__read-more,
.employee-highlight-card__story--full .employee-highlight-card__read-less {
  display: inline-block !important;
  margin-left: 0.5rem !important;
  padding: 0.25rem 0.75rem !important;
  background: transparent !important;
  border: 1px solid var(--dm-red) !important;
  border-radius: 6px !important;
  color: var(--dm-red) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  vertical-align: baseline !important;
}

.employee-highlight-card__story--full .employee-highlight-card__read-less {
  margin-top: 1rem !important;
  display: inline-block !important;
}

.employee-highlight-card__story .employee-highlight-card__read-more:hover,
.employee-highlight-card__story .employee-highlight-card__read-less:hover,
.employee-highlight-card__story--truncated .employee-highlight-card__read-more:hover,
.employee-highlight-card__story--full .employee-highlight-card__read-less:hover {
  background: var(--dm-red) !important;
  color: white !important;
  border-color: var(--dm-red) !important;
}

.employee-highlight-card__cta {
  margin-top: var(--dm-spacing-lg);
}

@media (max-width: 980px) {
  .employee-highlight-card {
    grid-template-columns: 1fr;
    padding: 0 0 calc(var(--dm-spacing-xl) + 15px);
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .employee-highlight-card__content {
    align-items: flex-start;
    text-align: left;
    padding: var(--dm-spacing-xl) var(--dm-spacing-lg);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .employee-highlight-card__media {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
  }

  .employee-highlight-card__media img {
    border-radius: 0;
  }

  .employee-highlight-card__cta {
    margin: var(--dm-spacing-xl) var(--dm-spacing-lg) 0;
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
  margin-top: var(--dm-spacing-xl);
  padding: 0 0.25rem 0.35rem;
  max-width: 100%;
}

@media (max-width: 767px) {
  .pagination {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--dm-radius-md);
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--dm-gray-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--dm-transition-base);
}

/* Libellés Précédent / Suivant : version courte sur très petit écran */
.pagination__label-short {
  display: none !important;
}

@media (max-width: 520px) {
  .pagination {
    gap: 0.3rem;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .pagination__label-long {
    display: none !important;
  }

  .pagination__label-short {
    display: inline !important;
  }

  .pagination-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.8125rem;
  }

  .pagination-link.prev,
  .pagination-link.next {
    min-width: 44px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.pagination-link:hover {
  border-color: rgba(199, 1, 3, 0.35);
  color: var(--dm-red);
  transform: translateY(-2px);
}

.pagination-link.current {
  background: var(--dm-gradient-primary);
  color: var(--dm-white);
  border-color: transparent;
  cursor: default;
  transform: none;
}

.pagination-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
}

.section-produits-gallery .section-header-modern--centered {
  max-width: 800px;
}

/* ============================================
   DELIMART MODERN - VERSION ULTRA MODERNE 2025
   Design System: Minimaliste, Élégant, Performant
   ============================================ */

/* ============================================
   1. VARIABLES CSS OPTIMISÉES
   ============================================ */
:root {
  /* Couleurs Primaires Delimart */
  --dm-red: #c70103;
  --dm-red-light: #fd3b39;
  --dm-red-dark: #9a0200;
  --dm-green: #3FAE2A;
  --dm-green-light: #4EC936;
  --dm-green-dark: #2E8A1F;
  
  /* Couleurs Neutres */
  --dm-black: #0A0A0A;
  --dm-gray-900: #1A1A1A;
  --dm-gray-800: #2A2A2A;
  --dm-gray-700: #404040;
  --dm-gray-600: #666666;
  --dm-gray-500: #8B8B8B;
  --dm-gray-400: #B0B0B0;
  --dm-gray-300: #D1D1D1;
  --dm-gray-200: #E8E8E8;
  --dm-gray-100: #F5F5F5;
  --dm-white: #FFFFFF;
  
  /* Gradients Modernes */
  --dm-gradient-primary: linear-gradient(135deg, var(--dm-red) 0%, var(--dm-red-light) 100%);
  --dm-gradient-accent: linear-gradient(135deg, var(--dm-green) 0%, var(--dm-green-light) 100%);
  --dm-gradient-subtle: linear-gradient(135deg, rgba(199, 1, 3, 0.03) 0%, rgba(63, 174, 42, 0.03) 100%);
  --dm-gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
  
  /* Shadows Modernes */
  --dm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --dm-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --dm-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --dm-shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);
  --dm-shadow-glow: 0 0 32px rgba(196, 30, 58, 0.3);
  
  /* Effets Glassmorphism */
  --dm-glass-bg: rgba(255, 255, 255, 0.08);
  --dm-glass-border: rgba(255, 255, 255, 0.12);
  --dm-glass-blur: blur(24px);
  
  /* Transitions Optimisées */
  --dm-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --dm-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --dm-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --dm-transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Spacing */
  --dm-spacing-xs: 0.5rem;
  --dm-spacing-sm: 1rem;
  --dm-spacing-md: 1.5rem;
  --dm-spacing-lg: 2rem;
  --dm-spacing-xl: 3rem;
  --dm-spacing-2xl: 4rem;
  --dm-spacing-3xl: 6rem;
  
  /* Border Radius */
  --dm-radius-sm: 8px;
  --dm-radius-md: 12px;
  --dm-radius-lg: 16px;
  --dm-radius-xl: 24px;
  --dm-radius-2xl: 32px;
  --dm-radius-full: 9999px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  position: relative;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--dm-gray-900);
  background: var(--dm-white);
  line-height: 1.6;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Force overflow-x: hidden sur tous les éléments principaux */
img,
video,
iframe,
embed,
object,
svg,
picture {
  max-width: 100%;
  height: auto;
}

/* Conteneurs principaux - empêcher le dépassement */
section,
div,
header,
footer,
main,
article,
aside,
nav {
  max-width: 100%;
  box-sizing: border-box;
}

/* ========== HERO SECTION MODERNE ========== */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important; /* Empêcher tout contenu de dépasser de la section */
  overflow-x: hidden !important; /* Empêcher le défilement horizontal */
  background: var(--dm-black);
  width: 100%;
  max-width: 100%;
  /* La section hero commence directement sous le header fixe - annuler le padding-top du body */
  margin-top: -80px !important; /* Annule le padding-top du body */
  padding-top: 80px !important; /* Espace pour le header fixe */
  /* S'assurer qu'il n'y a pas d'espace en haut */
  top: 0 !important;
  /* S'assurer que les contrôles restent dans la section hero */
  isolation: isolate; /* Créer un nouveau contexte d'empilement */
}

/* Supprimer tout espace du main avant la section hero */
.page-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Si la première section est hero, annuler le padding-top du body */
body.header-padding-desktop .page-content > .hero-modern:first-child {
  margin-top: -80px !important; /* Annule le padding-top du body */
  padding-top: 80px !important; /* Espace pour le header fixe */
}

body.header-padding-mobile .page-content > .hero-modern:first-child {
  margin-top: -70px !important; /* Annule le padding-top mobile du body */
  padding-top: 70px !important; /* Espace pour le header fixe sur mobile */
}

/* Carousel avec transitions fluides */
.hero-carousel-modern {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-modern {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  /* S'assurer que l'image se charge correctement */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-slide-modern.active {
  opacity: 1;
  z-index: 1;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Désactiver l'animation kenBurns sur mobile pour de meilleures performances */
@media (max-width: 768px) {
  .hero-slide-modern.active {
    animation: none;
    transform: scale(1);
  }
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Overlay gradient subtil */
.hero-overlay-modern {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.65) 100%
  );
  z-index: 1;
  backdrop-filter: blur(1px);
}

/* Orbes lumineux subtils */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: floatOrb 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--dm-red), transparent);
  top: -15%;
  left: -10%;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--dm-green), transparent);
  bottom: -10%;
  right: -5%;
  animation-delay: 8s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Contenu Hero Ultra Moderne */
.hero-content-modern {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--dm-spacing-3xl) var(--dm-spacing-lg);
}

.hero-glass-card {
  background: var(--dm-glass-bg);
  backdrop-filter: var(--dm-glass-blur);
  -webkit-backdrop-filter: var(--dm-glass-blur);
  border: 1px solid var(--dm-glass-border);
  border-radius: var(--dm-radius-2xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 750px;
  box-shadow: 
    var(--dm-shadow-xl),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reflet subtil */
.hero-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

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

/* Badge Premium */
.hero-badge-modern {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dm-white);
  margin-bottom: var(--dm-spacing-lg);
}

@media (max-width: 768px) {
  .hero-badge-modern {
    text-align: center;
  }
}

.badge-pulse-modern {
  width: 8px;
  height: 8px;
  background: var(--dm-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--dm-green);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Titre Hero */
.hero-title-modern {
  font-size: clamp(5.5rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 var(--dm-spacing-lg);
  color: var(--dm-white);
}

@media (max-width: 768px) {
  .hero-title-modern {
    text-align: center;
  }
  
  .title-line-modern {
    text-align: center;
  }
  
  .title-line-modern:nth-child(1),
  .title-line-modern:nth-child(2) {
    font-size: 1.1em;
  }
}

.title-line-modern {
  display: block;
  animation: slideInText 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.title-line-modern:nth-child(1) { animation-delay: 0.1s; }
.title-line-modern:nth-child(2) { animation-delay: 0.25s; }

@keyframes slideInText {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.title-gradient-modern {
  background: linear-gradient(
    135deg,
    var(--dm-green-light) 0%,
    var(--dm-red-light) 50%,
    #FBBF24 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Description Hero */
.hero-description-modern {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--dm-spacing-xl);
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.hero-merci-logo {
  margin: var(--dm-spacing-lg) 0;
  align-self: flex-start;
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.hero-merci-logo img {
  display: block;
  width: clamp(200px, 32vw, 360px);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .hero-merci-logo {
    align-self: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .hero-merci-logo img {
    margin: 0 auto;
  }
}

/* Boutons Hero */
.hero-actions-modern {
  display: flex;
  gap: var(--dm-spacing-md);
  flex-wrap: wrap;
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-spacing-xs);
  padding: 1rem 2rem;
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--dm-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dm-transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s;
}

.btn-modern:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

/* Bouton principal moderne - Rouge officiel Delimart avec spécificité maximale */
.btn-primary-modern,
body .btn-primary-modern,
a.btn-primary-modern,
button.btn-primary-modern,
a[class*="btn-primary-modern"],
button[class*="btn-primary-modern"],
.btn-modern.btn-primary-modern,
a.btn-modern.btn-primary-modern,
button.btn-modern.btn-primary-modern {
  background: linear-gradient(135deg, #c70103 0%, #fd3b39 100%) !important;
  background-color: #c70103 !important;
  color: #ffffff !important;
  box-shadow: 
    0 4px 16px rgba(199, 1, 3, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border: none !important;
}

.btn-primary-modern:hover,
body .btn-primary-modern:hover,
a.btn-primary-modern:hover,
button.btn-primary-modern:hover,
a[class*="btn-primary-modern"]:hover,
button[class*="btn-primary-modern"]:hover,
.btn-modern.btn-primary-modern:hover,
a.btn-modern.btn-primary-modern:hover,
button.btn-modern.btn-primary-modern:hover {
  background: linear-gradient(135deg, #9a0200 0%, #c70103 100%) !important;
  background-color: #9a0200 !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 8px 24px rgba(199, 1, 3, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-secondary-modern {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  color: var(--dm-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-modern svg {
  transition: transform var(--dm-transition-base);
}

.btn-modern:hover svg {
  transform: translateX(4px);
}

/* Contrôles Carousel Minimalistes */
.hero-controls-modern {
  position: absolute !important; /* Toujours absolute pour rester dans la section hero */
  bottom: var(--dm-spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Réduit de 1rem à 0.75rem (25%) */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--dm-radius-full);
  padding: 0.4rem 0.75rem; /* Réduit padding (~20%) */
  box-shadow: var(--dm-shadow-lg);
  /* S'assurer que les contrôles ne dépassent pas de la section hero */
  max-width: calc(100% - 2rem);
}

.hero-nav-modern {
  background: transparent;
  border: none;
  color: var(--dm-white);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Ajouté taille fixe réduite */
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  transition: all var(--dm-transition-base);
  opacity: 0.7;
}

.hero-nav-modern svg {
  width: 18px; /* Réduit de 24px à 18px (25%) */
  height: 18px;
}

.hero-nav-modern:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.hero-dots-modern {
  display: flex;
  gap: 0.4rem; /* Réduit de 0.5rem à 0.4rem (20%) */
}

.dot-modern {
  /* Zone tactile réduite mais toujours accessible (36x36px) */
  min-width: 36px;
  min-height: 36px;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--dm-transition-base);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}

/* Visual dot à l'intérieur de la zone tactile - réduit */
.dot-modern::before {
  content: '';
  display: block;
  width: 6px; /* Réduit de 8px à 6px (25%) */
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--dm-transition-base);
}

.dot-modern.active {
  background: rgba(255, 255, 255, 0.1);
}

.dot-modern.active::before {
  background: var(--dm-white);
  width: 20px; /* Réduit de 24px à 20px (~17%) */
  height: 6px;
  border-radius: var(--dm-radius-sm);
}

/* ========== SECTIONS MODERNES ========== */
.section-modern {
  padding: var(--dm-spacing-3xl) var(--dm-spacing-lg);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.section-header-modern {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--dm-spacing-2xl);
}

.section-tag-modern {
  display: inline-block;
  padding: var(--dm-spacing-xs) var(--dm-spacing-md);
  background: var(--dm-gradient-primary);
  color: var(--dm-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--dm-radius-full);
  margin-bottom: var(--dm-spacing-md);
  box-shadow: var(--dm-shadow-md);
}

.section-title-modern {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--dm-spacing-md);
  color: var(--dm-gray-900);
}

.section-header-modern--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title-modern--hero {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-title-modern--hero .section-title-line {
  display: block;
}

.section-subtitle-modern--accent {
  margin-top: var(--dm-spacing-sm);
  margin-bottom: var(--dm-spacing-md);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dm-gray-500);
}

.section-description-modern--wide {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--dm-gray-500);
}

.text-gradient-modern {
  background: var(--dm-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description-modern {
  font-size: 1.125rem;
  color: var(--dm-gray-600);
  line-height: 1.7;
}

/* ========== CARDS MODERNES ========== */
.card-modern {
  background: var(--dm-white);
  border-radius: var(--dm-radius-xl);
  padding: var(--dm-spacing-xl);
  border: 1px solid var(--dm-gray-200);
  transition: all var(--dm-transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--dm-shadow-sm);
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dm-gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dm-transition-slow);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--dm-shadow-xl);
  border-color: var(--dm-gray-300);
}

.card-modern:hover::before {
  transform: scaleX(1);
}

/* ========== GRID LAYOUTS ========== */
.grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--dm-spacing-xl);
}

/* ========== HIGHLIGHTS MODERNES ========== */
.section-highlights-modern {
  position: relative;
}

/* Wrapper pour slider mobile */
.highlights-slider-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--dm-spacing-md);
  align-items: center;
}

.highlights-slider-wrapper .slider-nav-btn {
  display: none; /* Masqué par défaut (desktop) */
}

/* Sur desktop : garder la grille */
.highlights-slider-wrapper .highlights-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--dm-spacing-lg);
}

/* Appliquer le design arrondi seulement en haut sur desktop aussi */
.highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-image-modern {
  border-radius: 16px 16px 0 0; /* Arrondi seulement en haut */
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-image-modern img {
  border-radius: 16px 16px 0 0; /* Arrondi seulement en haut */
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Sur mobile : transformer en slider */
@media (max-width: 768px) {
  .section-highlights-modern {
    padding: 3rem 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .section-highlights-modern .container-modern {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .highlights-slider-wrapper {
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr;
    align-items: stretch;
    position: relative;
  }
  
  .highlights-slider-wrapper .slider-nav-btn {
    display: grid;
    place-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dm-gray-100);
    border: 1px solid var(--dm-gray-200);
    color: var(--dm-gray-700);
    cursor: pointer;
    transition: all var(--dm-transition-base);
    flex-shrink: 0;
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .highlights-slider-wrapper .highlights-prev {
    left: 0.5rem;
  }
  
  .highlights-slider-wrapper .highlights-next {
    right: 0.5rem;
  }
  
  .highlights-slider-wrapper .slider-nav-btn:hover {
    background: var(--dm-gray-200);
    color: var(--dm-red-600);
    border-color: var(--dm-red-300);
  }
  
  .highlights-slider-wrapper .slider-nav-btn:active {
    transform: scale(0.95);
  }
  
  .highlights-slider-wrapper .slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }
  
  .highlights-slider-wrapper .slider-nav-btn svg {
    width: 20px;
    height: 20px;
  }
  
  /* Transformer la grille en slider horizontal */
  .highlights-slider-wrapper .highlights-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }
  
  .highlights-slider-wrapper .highlights-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  /* Chaque carte prend la largeur de l'écran, les flèches chevauchent */
  .highlights-slider-wrapper .highlights-slider .highlight-card-modern {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: auto;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    position: relative;
  }
  
  /* Les images prennent toute la largeur avec border-radius seulement en haut */
  .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-image-modern {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    /* Aspect ratio fixe pour un rendu uniforme */
    aspect-ratio: 4 / 3 !important;
    border-radius: 16px 16px 0 0 !important; /* Arrondi seulement en haut */
    overflow: hidden !important;
    background: #f4f4f4 !important;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1;
  }
  
  /* Images qui remplissent le frame (fit) */
  .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-image-modern img {
    width: 100% !important;
    height: 100% !important; /* Remplit toute la hauteur du conteneur */
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important; /* L'image remplit le frame et peut être légèrement coupée */
    object-position: center center !important;
    display: block !important;
    border-radius: 16px 16px 0 0 !important; /* Arrondi seulement en haut */
    box-sizing: border-box !important;
  }
  
  /* S'assurer que le contenu de la carte est bien visible */
  .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-card-content {
    padding: 1.5rem;
    overflow: visible;
  }
  
  .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-card-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-card-content p {
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 1.1rem;
  }
  
  /* Sur très petits écrans, ajuster la largeur */
  @media (max-width: 480px) {
    .highlights-slider-wrapper .slider-nav-btn {
      width: 36px;
      height: 36px;
      margin: 0 0.25rem;
    }
    
    .highlights-slider-wrapper .slider-nav-btn svg {
      width: 18px;
      height: 18px;
    }
    
    .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-card-content {
      padding: 1.25rem;
    }
    
    .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-card-content h3 {
      font-size: 1.5rem;
    }
    
    .highlights-slider-wrapper .highlights-slider .highlight-card-modern .highlight-card-content p {
      font-size: 1rem;
    }
  }
}

.highlight-card-modern {
  display: flex;
  flex-direction: column;
  gap: var(--dm-spacing-sm);
  align-items: flex-start;
  min-height: 220px;
  padding-bottom: calc(var(--dm-spacing-xl) - var(--dm-spacing-sm));
}

.highlight-image-modern {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dm-gray-100);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.highlight-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-card-with-image {
  padding: 0;
  gap: 0;
  min-height: auto;
}

.highlight-card-with-image .highlight-image-modern {
  aspect-ratio: 4 / 3;
  background: none;
  box-shadow: none;
}

.highlight-card-with-image .highlight-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.highlight-card-with-image .highlight-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--dm-spacing-sm);
  padding: var(--dm-spacing-xl);
}

/* Card "Pri Atè Plat" avec fond vert - Spécificité maximale pour production */
.highlight-card-pri-ate-plat,
body .grid-modern > .highlight-card-modern:nth-child(2),
body .section-highlights-modern .grid-modern > article:nth-child(2),
body .grid-modern > article.highlight-card-modern:nth-child(2),
body .section-highlights-modern .grid-modern > article:nth-child(2),
article.highlight-card-pri-ate-plat {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%) !important;
  background-color: #d1fae5 !important;
  border-color: rgba(63, 174, 42, 0.25) !important;
  border: 1px solid rgba(63, 174, 42, 0.25) !important;
}

.highlight-card-pri-ate-plat .highlight-card-content,
body .grid-modern > .highlight-card-modern:nth-child(2) .highlight-card-content,
body .section-highlights-modern .grid-modern > article:nth-child(2) .highlight-card-content,
body .grid-modern > article.highlight-card-modern:nth-child(2) .highlight-card-content,
body .section-highlights-modern .grid-modern > article:nth-child(2) .highlight-card-content {
  background: transparent !important;
}

.highlight-card-pri-ate-plat::after,
body .grid-modern > .highlight-card-modern:nth-child(2)::after,
body .section-highlights-modern .grid-modern > article:nth-child(2)::after,
body .grid-modern > article.highlight-card-modern:nth-child(2)::after,
body .section-highlights-modern .grid-modern > article:nth-child(2)::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3)) !important;
}

/* Card "Pri Atè Plat" - remplacer hover rouge par blanc */
.highlight-card-pri-ate-plat:hover,
body .highlight-card-pri-ate-plat:hover,
body .grid-modern > .highlight-card-modern:nth-child(2):hover,
body .section-highlights-modern .grid-modern > article:nth-child(2):hover,
body .grid-modern > article.highlight-card-modern:nth-child(2):hover,
body .section-highlights-modern .grid-modern > article:nth-child(2):hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.2) !important;
}

.highlight-card-pri-ate-plat:hover::before,
body .highlight-card-pri-ate-plat:hover::before,
body .grid-modern > .highlight-card-modern:nth-child(2):hover::before,
body .section-highlights-modern .grid-modern > article:nth-child(2):hover::before,
body .grid-modern > article.highlight-card-modern:nth-child(2):hover::before,
body .section-highlights-modern .grid-modern > article:nth-child(2):hover::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3)) !important;
  transform: scaleX(1) !important;
}

.highlight-card-pri-ate-plat:hover::after,
body .highlight-card-pri-ate-plat:hover::after,
body .grid-modern > .highlight-card-modern:nth-child(2):hover::after,
body .section-highlights-modern .grid-modern > article:nth-child(2):hover::after,
body .grid-modern > article.highlight-card-modern:nth-child(2):hover::after,
body .section-highlights-modern .grid-modern > article:nth-child(2):hover::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5)) !important;
  opacity: 1 !important;
}

/* Carte réseaux sociaux - style comme les cartes de magasins */
.store-card-social-image {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.store-social-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-social-actions .btn,
body .store-social-actions .btn,
a.store-social-actions .btn,
button.store-social-actions .btn,
.store-card-social .store-social-actions .btn,
body .store-card-social .store-social-actions .btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  color: #ffffff !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  border: none !important;
  background: transparent !important;
}

.store-social-actions .btn:hover,
body .store-social-actions .btn:hover,
.store-card-social .store-social-actions .btn:hover,
body .store-card-social .store-social-actions .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  color: #ffffff !important;
  color: white !important;
}

.store-social-actions .btn svg,
body .store-social-actions .btn svg,
.store-card-social .store-social-actions .btn svg,
body .store-card-social .store-social-actions .btn svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  fill: #ffffff !important;
  fill: white !important;
  color: #ffffff !important;
  color: white !important;
}

.highlight-card-modern::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(199, 1, 3, 0), rgba(199, 1, 3, 0.12));
  opacity: 0;
  transition: opacity var(--dm-transition-base);
  pointer-events: none;
}

.highlight-card-modern:hover::after {
  opacity: 1;
}

.highlight-icon-modern {
  width: 56px;
  height: 56px;
  border-radius: var(--dm-radius-md);
  display: grid;
  place-content: center;
  background: var(--dm-gradient-subtle);
  color: var(--dm-red);
  margin-bottom: var(--dm-spacing-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.highlight-card-modern h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dm-gray-900);
}

.highlight-card-modern p {
  color: var(--dm-gray-600);
}

/* ========== SLIDERS MODERNES ========== */
.slider-wrapper-modern {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--dm-spacing-md);
  align-items: center;
  position: relative;
}

/* Mobile : carrousel horizontal (desktop ≥768px : Pri Atè Plat + Produits = carrousel) */
@media (max-width: 767px) {
  .section-prixateplat-modern .slider-modern,
  .section-produits-modern .slider-modern,
  .slider-produits-delimart {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .slider-modern::-webkit-scrollbar {
    display: none;
  }

  /* Chaque slide = carte ~80 % (Pri Atè Plat) */
  .slide-modern:not(.slide-produit-delimart),
  .slide-modern:not(.section-produits-modern .slide-produit-delimart) {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
    position: relative;
  }
}

/* Exclure Produits Delimart des styles généraux - les styles spécifiques sont plus bas */

/* Conteneur image dans les sliders - s'adapte au ratio de l'image (styles généraux) */
/* Pour Produits Delimart et Prix Atè Plat, cette règle est surchargée - pas d'aspect-ratio fixe */
.slide-modern-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* Pas d'aspect-ratio fixe pour Produits Delimart - le frame s'adapte au ratio naturel de l'image */
  background: #f3f4f6;
  box-shadow: var(--dm-shadow-lg);
  height: auto;
}

/* L'image remplit bien la carte (styles généraux) */
.slide-modern-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  /* Gérer les images manquantes */
  background-color: var(--dm-gray-50);
}

/* IMPORTANT: Surcharge pour Produits Delimart et Prix Atè Plat - frame s'adapte au ratio de l'image */
.section-produits-modern .slide-modern-image,
.section-prixateplat-modern .slide-modern-image {
  /* Pas d'aspect-ratio fixe - le frame s'adapte au ratio naturel de l'image */
  height: auto !important;
}

.section-produits-modern .slide-modern-image img,
.section-prixateplat-modern .slide-modern-image img {
  width: 100% !important;
  height: auto !important; /* Hauteur automatique pour garder le ratio naturel */
  object-fit: contain !important; /* L'image s'adapte au frame sans être coupée */
}

/* Image de fallback pour les images manquantes */
.slide-modern-image img[src*="logo-delimart"] {
  object-fit: contain;
  padding: var(--dm-spacing-md);
  opacity: 0.3;
}

/* Overlay reste full image */
.slide-modern-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.65) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--dm-spacing-md);
  pointer-events: none;
}

.slide-modern-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-spacing-xs);
  padding: var(--dm-spacing-xs) var(--dm-spacing-sm);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--dm-radius-full);
  color: var(--dm-white);
  font-size: 0.8125rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Badge agrandi de 50% pour les sliders */
.section-produits-modern .slide-modern-badge,
.section-prixateplat-modern .slide-modern-badge {
  font-size: 0.875rem !important; /* agrandi (0.75rem * 1.17 ≈ 0.875rem) */
  padding: 0.375rem 0.75rem !important; /* padding agrandi (0.25rem * 1.5 = 0.375rem) */
}

.section-produits-modern .slide-modern-badge svg,
.section-prixateplat-modern .slide-modern-badge svg {
  width: 18px !important; /* icône agrandie (14px * 1.29 ≈ 18px) */
  height: 18px !important;
}

.slider-btn-modern {
  border: none;
  background: rgba(10, 10, 10, 0.08);
  color: var(--dm-gray-900);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all var(--dm-transition-base);
  box-shadow: var(--dm-shadow-sm);
  touch-action: manipulation;
}

.slider-btn-modern:hover,
.slider-btn-modern:focus-visible {
  transform: translateY(-2px);
  background: rgba(199, 1, 3, 0.12);
  color: var(--dm-red);
  outline: none;
}

.slider-btn-modern svg {
  pointer-events: none;
}

/* ========== PRIX ATÈ PLAT ========== */
.section-prixateplat-modern {
  background: linear-gradient(135deg, rgba(199, 1, 3, 0.05), rgba(63, 174, 42, 0.05));
  border-radius: 0;
  margin: 0;
  padding: var(--dm-spacing-2xl);
  width: 100%;
  max-width: 100%;
}

.section-prixateplat-modern .section-title-modern {
  margin-bottom: var(--dm-spacing-sm);
}

.section-title-modern-month {
  font-size: inherit;
  font-weight: 500;
  color: var(--dm-gray-900);
  margin-left: var(--dm-spacing-xs);
  display: inline-block;
}

/* Section Prix Atè Plat - Utilise les styles de base des sliders */
.section-prixateplat-modern .slide-modern-overlay {
  display: none;
}

/* Supprimer max-height sur les images */
.section-prixateplat-modern img,
.section-prixateplat-modern .slide-modern-image img {
  max-height: none;
}


/* ========== PRODUITS DELIMART ========== */
.section-produits-modern {
  position: relative;
  overflow: hidden;
}

.section-modern-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.08) 0%, rgba(10, 10, 10, 0) 100%);
  pointer-events: none;
}

.section-produits-modern .section-header-modern {
  position: relative;
  z-index: 1;
}

.slider-produits-delimart .slide-modern-image {
  background: radial-gradient(circle at top, rgba(199, 1, 3, 0.14), transparent 60%);
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

/* Section Produits Delimart - Pas d'overlay noir (comme Prix Atè Plat) */
.section-produits-modern .slide-modern-overlay {
  display: none;
}

/* Images adaptées au ratio naturel - frame s'adapte à l'image */
.section-produits-modern img,
.section-produits-modern .slide-modern-image img {
  max-height: none !important;
  width: 100% !important;
  height: auto !important; /* Hauteur automatique pour garder le ratio naturel */
  min-width: 100% !important;
  min-height: 0 !important; /* Pas de hauteur minimale - le frame s'adapte */
}

/* ========== RESPONSIVE SLIDERS - DESKTOP (768px+) ========== */
/* Sur écrans un peu plus larges (tablette / desktop) */
@media (min-width: 768px) {
  .slide-modern,
  .slide-produit-delimart {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* ========== RESPONSIVE SLIDERS - MOBILE TRÈS PETIT (480px) ========== */
/* Pour Produits Delimart, le frame s'adapte au ratio naturel de l'image - pas d'aspect-ratio fixe */
@media (max-width: 480px) {
  .slide-modern-image:not(.section-produits-modern .slide-modern-image):not(.section-prixateplat-modern .slide-modern-image) {
    aspect-ratio: 4 / 5; /* un peu plus "carré" sur très petits écrans - seulement pour les autres sliders */
  }
}

/* ========== ANN KONEKTE ========== */
.section-ankonekte-modern {
  position: relative;
  overflow: hidden;
}

.ankonekte-modern-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(199, 1, 3, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(63, 174, 42, 0.12), transparent 55%);
  pointer-events: none;
}

.ankonekte-modern-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--dm-spacing-xl);
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border-radius: var(--dm-radius-2xl);
  padding: clamp(2rem, 6vw, 3.5rem);
  box-shadow: var(--dm-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ankonekte-modern-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ankonekte-modern-image {
  width: 100%;
  max-width: clamp(320px, 70vw, 520px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(10, 10, 10, 0.22));
  display: block;
  object-fit: contain;
}

/* Bannière : léger décalage à droite du flux ; le +1in a été retiré (image avancée de 1 po vers la gauche) */
.section-ankonekte-modern .ankonekte-modern-image {
  position: relative;
  left: clamp(0.75rem, 2.5vw, 2rem);
}

.ankonekte-iphone-fallback {
  display: none;
  font-size: 6rem;
  text-align: center;
  opacity: 0.3;
  animation: ankonekteFloat 4s ease-in-out infinite;
}

.ankonekte-modern-content {
  display: flex;
  flex-direction: column;
  gap: var(--dm-spacing-md);
}

.ankonekte-modern-heading {
  display: flex;
  flex-direction: column;
  gap: var(--dm-spacing-xxs, 0.35rem);
}

.ankonekte-modern-logo {
  align-self: flex-start;
}

.ankonekte-modern-heading .section-title-modern {
  margin-bottom: 0;
}

.ankonekte-modern-logo img {
  display: block;
  width: clamp(270px, 33vw, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(10, 10, 10, 0.15));
}

.ankonekte-modern-btn {
  align-self: flex-start;
}

.ankonekte-modern-note {
  font-size: 0.95rem;
  color: var(--dm-gray-500);
}

@media (max-width: 900px) {
  .ankonekte-modern-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(2rem, 8vw, 3rem);
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .ankonekte-modern-media {
    order: -1;
    width: 100%;
  }

  .ankonekte-modern-content {
    align-items: center;
    text-align: center;
    gap: var(--dm-spacing-md);
  }

  .ankonekte-modern-logo {
    align-self: center;
  }

  .ankonekte-modern-logo img {
    width: clamp(300px, 67.5vw, 450px);
  }

  .ankonekte-modern-btn {
    align-self: center;
  }

  .ankonekte-modern-note {
    text-align: center;
  }
}

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

@media (max-width: 768px) {
  .ankonekte-modern-image {
    animation: ankonekteFloat 4s ease-in-out infinite;
  }
}

/* ========== STORES ========== */
.stores-grid-modern > div {
  height: 100%;
}

.section-action-modern {
  text-align: center;
  margin-top: var(--dm-spacing-2xl);
}

.section-action-modern .btn-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-spacing-xs);
}

/* ========== ANIMATIONS SCROLL ========== */
/* IMPORTANT:
   Le contenu ne doit JAMAIS être caché si le JS ne s’exécute pas (sinon "page blanche").
   On active l’animation uniquement quand JS ajoute .js-scroll-reveal sur <html>. */
[data-scroll-reveal-modern] {
  opacity: 1;
  transform: none;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-scroll-reveal [data-scroll-reveal-modern] {
  opacity: 0;
  transform: translateY(30px);
}

.js-scroll-reveal [data-scroll-reveal-modern].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-modern {
    min-height: 85vh;
    max-height: 100vh;
    overflow: hidden; /* Garder overflow: hidden pour que les contrôles ne dépassent pas */
    margin-top: 0 !important;
    padding-top: 70px !important; /* Espace pour le header fixe sur mobile */
  }
  
  .hero-slide-modern {
    background-size: cover;
    background-position: center center;
    /* Améliorer le rendu des images sur mobile */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
  }
  
  .hero-carousel-modern {
    /* S'assurer que le carousel couvre bien la zone */
    width: 100%;
    height: 100%;
  }
  
  .hero-content-modern {
    padding: var(--dm-spacing-xl) var(--dm-spacing-md);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  
  .hero-glass-card {
    padding: var(--dm-spacing-lg);
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  
  .hero-title-modern {
    font-size: clamp(5rem, 14vw, 6.5rem);
    margin-bottom: var(--dm-spacing-md);
  }
  
  .hero-merci-logo {
    margin: var(--dm-spacing-md) 0;
  }
  
  .hero-merci-logo img {
    width: clamp(105px, 28vw, 196px);
  }
  
  .hero-actions-modern {
    flex-direction: column;
    width: 100%;
    gap: var(--dm-spacing-sm);
    margin-top: var(--dm-spacing-md);
  }
  
  .btn-modern {
    width: 100%;
    justify-content: center;
    min-height: 48px; /* Touch target confortable */
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Les slides gardent 80% sur mobile (déjà défini dans les styles de base) */
  
  .section-prixateplat-modern {
    margin: 0;
    padding: var(--dm-spacing-xl) var(--dm-spacing-md);
  }
  
  .section-modern {
    padding: var(--dm-spacing-2xl) var(--dm-spacing-md);
  }
  
  .grid-modern {
    grid-template-columns: 1fr;
    gap: var(--dm-spacing-lg);
  }
  
  .hero-orb {
    opacity: 0.05; /* Réduire encore plus sur mobile */
    display: none; /* Optionnel: masquer complètement sur mobile */
  }

  .section-action-modern {
    margin-top: var(--dm-spacing-xl);
  }
  
  .section-action-modern .btn-modern {
    width: 100%;
    justify-content: center;
  }
  
  /* Améliorer les contrôles du hero sur mobile */
  .hero-controls-modern {
    bottom: var(--dm-spacing-md);
    padding: 5px 8px; /* Réduit de 6px 10px à 5px 8px (~20%) */
    gap: 5px; /* Réduit de 6px à 5px */
    max-width: calc(100% - 2rem);
  }
  
  .hero-nav-modern {
    width: 26px; /* Réduit de 28px à 26px */
    height: 26px;
    min-width: 28px; /* Réduit de 32px à 28px */
    min-height: 28px;
    padding: 3px; /* Réduit de 4px à 3px */
    opacity: 0.8;
    flex-shrink: 0;
  }
  
  .hero-nav-modern svg {
    width: 16px; /* Réduit de 18px à 16px */
    height: 16px;
  }
  
  .hero-nav-modern:active {
    opacity: 1;
    transform: scale(0.9);
  }
  
  .hero-dots-modern {
    gap: 3px; /* Réduit de 4px à 3px */
    flex-shrink: 1;
    min-width: 0;
  }
  
  .dot-modern {
    /* Zone tactile réduite mais accessible (32x32px) */
    min-width: 32px;
    min-height: 32px;
    padding: 0;
  }
  
  .dot-modern::before {
    width: 5px; /* Réduit de 6px à 5px */
    height: 5px;
  }
  
  .dot-modern.active {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .dot-modern.active::before {
    width: 16px; /* Réduit de 18px à 16px */
    height: 5px;
    border-radius: 2.5px;
  }
}

@media (max-width: 480px) {
  .hero-modern {
    min-height: 100vh;
    max-height: none;
    overflow: hidden; /* Garder overflow: hidden pour que les contrôles ne dépassent pas */
    -webkit-overflow-scrolling: touch;
  }
  
  .hero-content-modern {
    padding: var(--dm-spacing-lg) var(--dm-spacing-sm);
    min-height: 100vh;
    padding-bottom: calc(var(--dm-spacing-2xl) + 60px); /* Espace pour les contrôles */
  }
  
  .hero-glass-card {
    padding: var(--dm-spacing-md);
  }
  
  .hero-title-modern {
    font-size: clamp(4.5rem, 16vw, 5.5rem);
    line-height: 1.2;
    margin-bottom: var(--dm-spacing-sm);
  }
  
  .title-line-modern:nth-child(1),
  .title-line-modern:nth-child(2) {
    font-size: 1.1em;
  }
  
  .hero-description-modern {
    font-size: 0.95rem;
    margin-bottom: var(--dm-spacing-md);
  }
  
  .hero-merci-logo {
    margin: var(--dm-spacing-sm) 0;
  }
  
  .hero-merci-logo img {
    width: clamp(84px, 35vw, 168px);
  }
  
  .hero-actions-modern {
    gap: var(--dm-spacing-xs);
    margin-top: var(--dm-spacing-sm);
  }
  
  .btn-modern {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .section-title-modern {
    font-size: 1.5rem;
  }
  
  .hero-controls-modern {
    position: absolute !important; /* absolute au lieu de fixed pour rester dans la section hero */
    bottom: var(--dm-spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 6px; /* Réduit de 4px 8px à 3px 6px (~25%) */
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px; /* Réduit de 4px à 3px */
    max-width: 85vw;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    z-index: 3; /* z-index réduit pour rester dans la section hero */
  }
  
  .hero-nav-modern {
    width: 22px; /* Réduit de 24px à 22px */
    height: 22px;
    min-width: 26px; /* Réduit de 28px à 26px */
    min-height: 26px;
    padding: 2px;
    flex-shrink: 0;
  }
  
  .hero-nav-modern svg {
    width: 14px; /* Réduit de 16px à 14px */
    height: 14px;
  }
  
  .hero-dots-modern {
    gap: 2px; /* Réduit de 3px à 2px */
    flex-shrink: 1;
    padding: 0 2px;
  }
  
  .dot-modern {
    /* Zone tactile réduite mais accessible (28x28px) */
    min-width: 28px;
    min-height: 28px;
    padding: 0;
  }
  
  .dot-modern::before {
    width: 4px; /* Réduit de 5px à 4px */
    height: 4px;
  }
  
  .dot-modern.active {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .dot-modern.active::before {
    width: 14px; /* Réduit de 16px à 14px */
    height: 4px;
    border-radius: 2px;
  }
  

  .highlight-card-modern {
    min-height: auto;
    padding-bottom: var(--dm-spacing-lg);
  }
  
}

/* ========== OPTIMISATION ÉCRAN 320×568 (iPhone 5/SE) ========== */
@media (max-width: 320px) {
  .ankonekte-modern-card {
    padding: clamp(1.5rem, 4vw, 2rem);
    gap: var(--dm-spacing-md);
  }
  
  .ankonekte-modern-image {
    max-width: 100%;
    width: auto;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(10, 10, 10, 0.18));
  }
  
  .ankonekte-modern-content {
    padding: 0;
  }
  
  .ankonekte-modern-heading {
    margin-bottom: var(--dm-spacing-sm);
  }
  
  .ankonekte-modern-heading .section-title-modern {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .ankonekte-modern-logo img {
    max-width: 210px;
  }
  
  .ankonekte-modern-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
  
  .ankonekte-modern-note {
    font-size: 0.875rem;
    padding: 0 1rem;
  }
  
  .section-title-modern {
    font-size: 1.5rem;
  }
}

/* Compte à rebours mobile - styles pour 768px et moins */
@media (max-width: 768px) {
  .ankonekte-countdown-wrapper {
    padding: 0 0.5rem !important;
    margin: 1.25rem 0 !important;
  }
  
  .ankonekte-loading-text {
    font-size: 0.9375rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .ankonekte-countdown {
    gap: 0.625rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .ankonekte-countdown-item {
    min-width: 55px !important;
    flex: 1 1 auto;
  }
  
  .ankonekte-countdown-value {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  
  .ankonekte-countdown-label {
    font-size: 0.75rem !important;
    margin-top: 0.25rem !important;
    letter-spacing: 0.03em !important;
  }
  
  .ankonekte-action-btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9375rem !important;
    border-radius: 50px !important;
  }
  
  .ankonekte-modern-note {
    font-size: 0.875rem !important;
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  .ankonekte-modern-card {
    padding: 1.5rem 1rem !important;
    gap: var(--dm-spacing-sm) !important;
  }
  
  .ankonekte-modern-logo img {
    max-width: 180px !important;
  }
  
  .ankonekte-modern-content {
    gap: var(--dm-spacing-sm) !important;
  }
  
  .section-description-modern {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
  
  .ankonekte-countdown-wrapper {
    padding: 0 !important;
    margin: 1rem 0 !important;
  }
  
  .ankonekte-loading-text {
    font-size: 0.875rem !important;
    margin-bottom: 0.625rem !important;
  }
  
  .ankonekte-countdown {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .ankonekte-countdown-item {
    min-width: 50px !important;
  }
  
  .ankonekte-countdown-value {
    font-size: 1.25rem !important;
  }
  
  .ankonekte-countdown-label {
    font-size: 0.6875rem !important;
    margin-top: 0.2rem !important;
  }
  
  .ankonekte-action-btn {
    max-width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
  
  .ankonekte-action-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .ankonekte-modern-note {
    font-size: 0.8125rem !important;
  }
}
    
    .ankonekte-modern-note {
      font-size: 0.8125rem !important;
    }
  }
  
  .slide-modern {
    flex: 0 0 85%;
    max-width: 85%;
  }
  
  .hero-title-modern {
    font-size: clamp(4rem, 17vw, 5rem);
  }
  
  .title-line-modern:nth-child(1),
  .title-line-modern:nth-child(2) {
    font-size: 1.1em;
  }
  
  .hero-description-modern {
    font-size: 0.9rem;
  }
  
  .hero-controls-modern {
    padding: 3px 6px;
    gap: 3px;
    max-width: 90vw;
  }
  
  .hero-nav-modern {
    width: 22px;
    height: 22px;
    min-width: 26px;
    min-height: 26px;
  }
  
  .hero-nav-modern svg {
    width: 14px;
    height: 14px;
  }
  
  .container {
    padding: 0 0.75rem;
  }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU Acceleration */
.hero-slide-modern,
.hero-orb,
.card-modern,
.btn-modern::before,
.slide-modern-image,
.slider-modern {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========== UTILITIES ========== */
.container-modern {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: var(--dm-spacing-lg);
  padding-right: var(--dm-spacing-lg);
  overflow-x: hidden;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

/* ============================
   FIX MOBILE – SLIDERS DELIMART
   Pri Atè Plat + Produits Delimart
   ============================ */

/* Mobile : carrousel horizontal + cartes pleine largeur */
@media (max-width: 767px) {
  .section-prixateplat-modern .slider-modern,
  .section-produits-modern .slider-produits-delimart,
  .section-produits-modern .slider-modern {
    display: flex !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-produits-modern .slide-produit-delimart,
  .section-prixateplat-modern .slide-modern {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: center;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Desktop : Pri Atè Plat + Produits Delimart = carrousel horizontal (flèches + scroll) */
@media (min-width: 768px) {
  .section-prixateplat-modern .slider-modern {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--dm-spacing-md) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .section-prixateplat-modern .slider-modern::-webkit-scrollbar {
    height: 8px;
  }

  .section-prixateplat-modern .slider-modern::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
  }

  .section-prixateplat-modern .slide-modern {
    flex: 0 0 clamp(220px, 24vw, 300px) !important;
    max-width: clamp(220px, 24vw, 300px) !important;
    min-width: 0 !important;
    width: clamp(220px, 24vw, 300px) !important;
    scroll-snap-align: start !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .section-produits-modern .slider-produits-delimart,
  .section-produits-modern .slider-modern {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--dm-spacing-md) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .section-produits-modern .slider-produits-delimart::-webkit-scrollbar,
  .section-produits-modern .slider-modern::-webkit-scrollbar {
    height: 8px;
  }

  .section-produits-modern .slider-produits-delimart::-webkit-scrollbar-thumb,
  .section-produits-modern .slider-modern::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
  }

  .section-produits-modern .slide-produit-delimart,
  .section-produits-modern .slider-produits-delimart .slide-produit-delimart {
    flex: 0 0 clamp(220px, 24vw, 300px) !important;
    max-width: clamp(220px, 24vw, 300px) !important;
    min-width: 0 !important;
    width: clamp(220px, 24vw, 300px) !important;
    scroll-snap-align: start !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .section-produits-modern .slider-wrapper-modern,
  .section-prixateplat-modern .slider-wrapper-modern {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: var(--dm-spacing-md) !important;
  }

  .section-produits-modern .slider-btn-modern,
  .section-prixateplat-modern .slider-btn-modern {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    background: rgba(10, 10, 10, 0.08) !important;
    backdrop-filter: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    border: none !important;
  }
}

/* 🔥 2. Frame s'adapte au ratio naturel de l'image */
.section-produits-modern .slide-modern-image,
.section-prixateplat-modern .slide-modern-image {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  /* Pas d'aspect-ratio fixe - le frame s'adapte au ratio de l'image */
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f4f4f4 !important;
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  height: auto !important; /* Hauteur automatique selon le ratio de l'image */
  min-height: 0 !important; /* Pas de hauteur minimale forcée */
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Pas de hauteur minimale - le frame s'adapte au ratio de l'image */

/* Fix spécifique pour Produits Delimart - frame s'adapte au ratio de l'image */
.section-produits-modern .slide-produit-delimart .slide-modern-image {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  /* Pas d'aspect-ratio fixe - le frame s'adapte au ratio naturel de l'image */
  height: auto !important;
  min-height: 0 !important; /* Pas de hauteur minimale */
}

/* 🔥 3. Images adaptées au frame selon leur ratio naturel */
.section-produits-modern .slide-modern-image img,
.section-prixateplat-modern .slide-modern-image img {
  width: 100% !important;
  height: auto !important; /* Hauteur automatique pour garder le ratio naturel */
  min-width: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important; /* L'image s'adapte au frame sans être coupée */
  object-position: center center !important;
  display: block !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

/* Fix spécifique pour Produits Delimart - images adaptées au ratio naturel */
.section-produits-modern .slide-produit-delimart .slide-modern-image img {
  width: 100% !important;
  height: auto !important; /* Hauteur automatique pour garder le ratio naturel */
  min-width: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important; /* L'image s'adapte au frame sans être coupée */
  object-position: center center !important;
  display: block !important;
  position: relative !important;
}

/* 4. Sécurité : ne jamais réduire la carte à une petite vignette - FIX PRODUITS DELIMART */
/* Le slide prend 100% de largeur (aligné avec CTA) - MOBILE SEULEMENT */
/* Sur desktop, cette règle est surchargée par la media query @media (min-width: 768px) */
@media (max-width: 767px) {
  .section-produits-modern .slide-produit-delimart {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Le conteneur image prend 100% de la largeur du slide - s'adapte au ratio de l'image */
.section-produits-modern .slide-produit-delimart .slide-modern-image {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  /* Pas d'aspect-ratio fixe - le frame s'adapte au ratio naturel de l'image */
  height: auto !important;
}

/* Les images remplissent complètement leur conteneur */
.section-produits-modern .slide-produit-delimart img,
.section-produits-modern .slide-modern img,
.section-prixateplat-modern .slide-modern img {
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 🔥 4. Fix bouton prev/next (ALIGNÉ AVEC CTA - boutons positionnés différemment sur mobile) */
.section-produits-modern .slider-wrapper-modern,
.section-prixateplat-modern .slider-wrapper-modern {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important; /* pas de gap pour aligner avec CTA */
  grid-template-columns: none !important;
  width: 100% !important; /* largeur complète comme le CTA */
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
}

.section-produits-modern .slider-wrapper-modern .slider-modern,
.section-prixateplat-modern .slider-wrapper-modern .slider-modern,
.section-produits-modern .slider-wrapper-modern .slider-produits-delimart {
  flex: 1 !important;
  min-width: 0 !important;
  width: 100% !important; /* largeur complète pour aligner avec CTA */
}

/* Sur mobile, positionner les boutons en overlay pour ne pas réduire la largeur des cartes */
.section-produits-modern .slider-btn-modern,
.section-prixateplat-modern .slider-btn-modern {
  position: absolute !important;
  z-index: 10 !important;
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Bouton précédent à gauche */
.section-produits-modern .slider-btn-modern.prev,
.section-prixateplat-modern .slider-btn-modern.prev {
  left: 8px !important;
  right: auto !important;
}

/* Bouton suivant à droite */
.section-produits-modern .slider-btn-modern.next,
.section-prixateplat-modern .slider-btn-modern.next {
  right: 8px !important;
  left: auto !important;
}

.section-produits-modern .slider-btn-modern svg,
.section-prixateplat-modern .slider-btn-modern svg {
  width: 24px !important; /* icône agrandie (18px * 1.33 = 24px) */
  height: 24px !important;
}

/* ============================
   FIX ULTIME - PRODUITS DELIMART
   Forcer les images à être TRÈS GRANDES - ALIGNÉ AVEC CTA - MOBILE SEULEMENT
   ============================ */
/* Le slide prend 100% - ALIGNÉ AVEC CTA "Voir tous les produits Delimart" - MOBILE SEULEMENT */
/* Sur desktop, cette règle est surchargée par la media query @media (min-width: 768px) */
@media (max-width: 767px) {
  .section-produits-modern .slider-produits-delimart .slide-produit-delimart {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    scroll-snap-align: center !important;
  }
}

/* Le conteneur image prend TOUTE la largeur du slide - s'adapte au ratio naturel de l'image */
.section-produits-modern .slider-produits-delimart .slide-produit-delimart .slide-modern-image {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  /* Pas d'aspect-ratio fixe - le frame s'adapte au ratio naturel de l'image */
  height: auto !important;
  min-height: 0 !important; /* Pas de hauteur minimale - le frame s'adapte */
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  background: #f4f4f4 !important;
}

/* Fix spécifique pour Produits Delimart - frame s'adapte au ratio naturel */
.section-produits-modern .slide-produit-delimart .slide-modern-image {
  /* Pas d'aspect-ratio fixe - le frame s'adapte au ratio naturel de l'image */
  height: auto !important;
  min-height: 0 !important; /* Pas de hauteur minimale */
}

/* L'image s'adapte au frame selon son ratio naturel */
.section-produits-modern .slider-produits-delimart .slide-produit-delimart .slide-modern-image img {
  width: 100% !important;
  height: auto !important; /* Hauteur automatique pour garder le ratio naturel */
  min-width: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important; /* L'image s'adapte au frame sans être coupée */
  object-position: center center !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* =========================================================
   PAGE DE RECHERCHE GLOBALE
   ========================================================= */

.section-search-modern {
  padding: var(--dm-spacing-3xl) 0;
  background: linear-gradient(180deg, var(--dm-gray-50) 0%, #ffffff 100%);
}

.search-form-modern {
  max-width: 720px;
  width: 100%;
  margin: 2rem auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-form-modern__wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.search-form-modern__input {
  flex: 1 !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  background: white !important;
  color: #1a1a1a !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.search-form-modern__input:focus {
  border-color: #c70103 !important;
  box-shadow: 0 0 0 3px rgba(199, 1, 3, 0.1) !important;
}

.search-form-modern__button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #c70103 0%, #fd3b39 100%) !important;
  background-color: #c70103 !important;
  color: white !important;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(199, 1, 3, 0.25);
}

.search-form-modern__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(199, 1, 3, 0.35);
}

.search-form-modern__button:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .search-form-modern__wrapper {
    flex-direction: column;
  }
  
  .search-form-modern__button {
    width: 100%;
    justify-content: center;
  }
}

.search-results-modern {
  max-width: 1200px;
  margin: 0 auto;
}

.search-results-modern__count {
  font-size: 1.1rem;
  color: var(--dm-gray-700);
  margin-bottom: 2rem;
  text-align: center;
}

.search-results-modern__count strong {
  color: var(--dm-gray-900);
  font-weight: 600;
}

.search-results-modern__section {
  margin-bottom: 3rem;
}

.search-results-modern__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dm-gray-900);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--dm-gray-200);
}

.search-results-modern__title svg {
  color: var(--dm-red-500);
}

.search-results-modern__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.search-result-card-modern {
  background: white;
  border: 1px solid var(--dm-gray-200);
  border-radius: var(--dm-radius-lg);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-result-card-modern:hover {
  border-color: var(--dm-red-300);
  box-shadow: 0 4px 16px rgba(199, 1, 3, 0.15);
  transform: translateY(-2px);
}

.search-result-card-modern__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.search-result-card-modern__title a {
  color: var(--dm-gray-900);
  text-decoration: none;
  transition: color 0.2s;
}

.search-result-card-modern__title a:hover {
  color: var(--dm-red-600);
}

.search-result-card-modern__meta {
  font-size: 0.9rem;
  color: var(--dm-gray-600);
  margin: 0.5rem 0;
  line-height: 1.5;
}

.search-result-card-modern__description {
  font-size: 0.95rem;
  color: var(--dm-gray-700);
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.search-result-card-modern__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dm-red-600);
  margin-top: 0.75rem;
}

.search-no-results-modern,
.search-empty-modern {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-no-results-modern svg,
.search-empty-modern svg {
  color: var(--dm-gray-300);
  margin: 0 auto 1.5rem;
}

.search-no-results-modern h2,
.search-empty-modern h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dm-gray-900);
  margin-bottom: 1rem;
}

.search-no-results-modern p,
.search-empty-modern p {
  font-size: 1rem;
  color: var(--dm-gray-600);
  line-height: 1.6;
  margin: 0.5rem 0;
}

.search-no-results-modern a,
.search-empty-modern a {
  color: var(--dm-red-600);
  text-decoration: none;
  font-weight: 600;
}

.search-no-results-modern a:hover,
.search-empty-modern a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .search-form-modern {
    margin: 1.5rem auto 2rem;
  }

  .search-form-modern__wrapper {
    flex-direction: column;
  }

  .search-form-modern__button {
    width: 100%;
    justify-content: center;
  }

  .search-results-modern__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-results-modern__title {
    font-size: 1.25rem;
  }

  .search-no-results-modern,
  .search-empty-modern {
    padding: 3rem 1.5rem;
  }
}

/* ========== Promotions (Pri Atè Plat) — densité mobile, visuels plus larges ========== */
.section-promotions-priateplat .container.container-modern {
  padding-left: 12px;
  padding-right: 12px;
}

.section-promotions-priateplat .promo-card {
  padding: 10px;
  border-radius: 14px;
}

.section-promotions-priateplat .promo-card--image {
  padding: 10px;
  border-radius: 14px;
}

.section-promotions-priateplat .promo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section-promotions-priateplat .promo-card-content {
  padding: 0;
}

.section-promotions-priateplat .promo-card-image {
  padding: 0;
  border-radius: 12px;
}

.section-promotions-priateplat .promo-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .section-promotions-priateplat .container.container-modern {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-promotions-priateplat .promo-card,
  .section-promotions-priateplat .promo-card--image {
    padding: 8px;
  }

  .section-promotions-priateplat .cards-grid {
    gap: 0.75rem;
  }
}

@media (min-width: 769px) {
  .section-promotions-priateplat .container.container-modern {
    padding-left: var(--dm-spacing-lg);
    padding-right: var(--dm-spacing-lg);
  }
}

@media (min-width: 1024px) {
  .section-promotions-priateplat .container.container-modern {
    padding-left: var(--dm-spacing-xl);
    padding-right: var(--dm-spacing-xl);
  }
}
