/* ========================================
   POLICES PERSONNALISÉES - @font-face
   ======================================== */

@font-face {
    font-family: 'Migra';
    src: url('/wp-content/themes/scents-theme/assets/fonts/Migra-Extrabold.woff2') format('woff2'),
         url('/wp-content/themes/scents-theme/assets/fonts/Migra-Extrabold.woff') format('woff'),
         url('/wp-content/themes/scents-theme/assets/fonts/Migra-Extrabold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sauce One';
    src: url('/wp-content/themes/scents-theme/assets/fonts/OpenSauceOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sauce One';
    src: url('/wp-content/themes/scents-theme/assets/fonts/OpenSauceOne-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sauce Sans';
    src: url('/wp-content/themes/scents-theme/assets/fonts/OpenSauceSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   RESPONSIVE DESIGN FLUIDE ET PROPORTIONNEL
   Support: 320px à 3440px+
   BREAKPOINT UNIQUE: 900px pour passage en carrousel
   ======================================== */

/* ========================================
   SECTIONS - FULL WIDTH (DESKTOP)
   ======================================== */

.concept-section,
.olfactory-section,
.featured-section,
.follow-us-section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  padding: clamp(30px, 4vw, 80px) 0 !important;
}

.section-container {
  width: 100% !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* ========================================
   DESKTOP - GRILLES (> 900px)
   ======================================== */

/* CONCEPT - 3 colonnes */
.concept-grid-new {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.concept-image-wrapper {
  height: clamp(200px, 35vw, 500px) !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  margin-bottom: 6px !important;
}

.concept-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.concept-card-title {
  font-size: clamp(14px, 1.8vw, 22px) !important;
  margin: 0 0 4px 0 !important;
}

.concept-card-subtitle {
  font-size: clamp(11px, 1.4vw, 16px) !important;
  line-height: clamp(1.4, 1.5, 1.6) !important;
}

/* COLLECTIONS - 5 colonnes */
.olfactory-grid-new {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.olfactory-image-new {
  height: clamp(150px, 35vw, 550px) !important;
  object-fit: cover !important;
  width: 100% !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease !important;
}

.olfactory-card-new:hover .olfactory-image-new {
  transform: scale(1.05) !important;
}

.olfactory-name-new {
  font-size: clamp(14px, 1.8vw, 22px) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* ICONICS - 5 produits DESKTOP (pas de scroll horizontal) */
.featured-carousel {
  display: flex !important;
  gap: 5px !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  padding: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
}

.featured-carousel-item {
  flex: 1 1 calc((100% - 20px) / 5) !important;
  min-width: 0 !important;
  max-width: calc((100% - 20px) / 5) !important;
  margin-right: 5px !important;
}

.featured-carousel-image {
  min-height: clamp(300px, 40vw, 550px) !important;
  width: 100% !important;
  object-fit: cover !important;
  border-radius: clamp(4px, 0.5vw, 12px) !important;
  padding: 0 !important;
}

/* FOLLOW US - 4 colonnes */
.social-icons {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(15px, 2.5vw, 40px) !important;
  margin-top: clamp(20px, 3vw, 50px) !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.social-icon {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  border-radius: clamp(4px, 0.5vw, 12px) !important;
  padding: clamp(15px, 2vw, 30px) !important;
  transition: all 0.4s ease !important;
}

.social-icon:hover {
  transform: translateY(-5px) !important;
}

.social-icon svg {
  width: clamp(35px, 5vw, 70px) !important;
  height: clamp(35px, 5vw, 70px) !important;
  margin-bottom: clamp(10px, 1.5vw, 20px) !important;
}

.social-icon-label {
  font-size: clamp(12px, 1.5vw, 20px) !important;
}

/* ========================================
   MOBILE/TABLET - CARROUSEL UNIFIÉ (< 900px)
   TOUTES LES SECTIONS PASSENT EN CARROUSEL 1 CARD
   ======================================== */

@media (max-width: 900px) {
  
  /* === RÈGLE UNIVERSELLE CARROUSEL === */
  /* Toutes les grilles deviennent des carrousels horizontaux */
  .concept-grid-new,
  .olfactory-grid-new,
  .featured-carousel,
  .social-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    grid-template-columns: none !important;
  }
  
  /* === RÈGLE UNIVERSELLE CARDS === */
  /* Toutes les cards prennent 100% de la largeur */
  .concept-card-new,
  .olfactory-card-new,
  .featured-carousel-item,
  .social-icon {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* === IMAGES HAUTEUR MOBILE === */
  .concept-image-wrapper {
    height: clamp(250px, 70vw, 400px) !important;
    border-radius: 0 !important;
    margin-bottom: 6px !important;
  }
  
  .olfactory-image-new {
    height: clamp(250px, 70vw, 400px) !important;
    border-radius: 0 !important;
  }
  
  .featured-carousel-image {
    min-height: clamp(300px, 80vw, 450px) !important;
    border-radius: 0 !important;
  }
  
  .social-icon {
    aspect-ratio: 1/1 !important;
    min-height: 200px !important;
  }
  
  /* === HEADERS UNIFIÉS MOBILE === */
  .collections-header,
  .featured-header,
  .follow-us-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  
  /* === TITRES UNIFIÉS MOBILE === */
  .section-title-concept {
    font-family: 'Migra', serif !important;
    font-size: clamp(24px, 6vw, 32px) !important;
    font-weight: 700 !important;
    letter-spacing: -1px !important;
    color: #4A4233 !important;
    text-transform: capitalize !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }
  
  /* === BOUTONS SEE MORE UNIFIÉS MOBILE === */
  .see-more-btn,
  .featured-see-collection {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    background: #E0DDD4 !important;
    border: none !important;
    padding: 10px 18px !important;
    margin: 0 !important;
    align-self: center !important;
  }
  
  /* === FOLLOW US HEADER MOBILE === */
  .follow-us-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    margin-bottom: 5px !important;
  }
  
  .follow-us-header .instagram-btn {
    display: none !important;
  }
  
  /* === INSTAGRAM / SMASH BALLOON - CARROUSEL 1 IMAGE === */
  /* Override COMPLET et FORCÉ pour le plugin Smash Balloon */
  #sb_instagram,
  .sb_instagram_feed,
  [id*="sb_instagram"],
  .instagram-carousel-wrapper,
  .sbi_feed_container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  /* Container des images Instagram */
  #sb_instagram #sbi_images,
  #sb_instagram .sbi_images,
  #sbi_images,
  .sbi_images,
  [id*="sbi_images"],
  .sbi_feed_container .sbi_images {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0 !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    width: 100% !important;
  }
  
  /* Chaque item Instagram = 100% largeur */
  #sb_instagram .sbi_item,
  #sbi_images .sbi_item,
  .sbi_item,
  [class*="sbi_item"],
  .sbi_feed_container .sbi_item {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Photo wrapper Instagram */
  .sbi_item .sbi_photo_wrap,
  #sb_instagram .sbi_item .sbi_photo_wrap,
  [class*="sbi_photo_wrap"],
  .sbi_feed_container .sbi_photo_wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }
  
  /* Photo Instagram */
  .sbi_item .sbi_photo,
  #sb_instagram .sbi_item .sbi_photo,
  [class*="sbi_photo"],
  .sbi_feed_container .sbi_photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Masquer la barre de scroll */
  #sb_instagram #sbi_images::-webkit-scrollbar,
  .sbi_images::-webkit-scrollbar,
  .concept-grid-new::-webkit-scrollbar,
  .olfactory-grid-new::-webkit-scrollbar,
  .featured-carousel::-webkit-scrollbar {
    display: none !important;
  }
  
  #sb_instagram #sbi_images,
  .sbi_images,
  .concept-grid-new,
  .olfactory-grid-new,
  .featured-carousel {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  
  /* === INDICATEURS DE SCROLL (DOTS) === */
  .instagram-scroll-indicator {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
    padding: 10px 0 !important;
  }
  
  .scroll-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #D0CCC4 !important;
    transition: all 0.3s ease !important;
  }
  
  .scroll-dot.active {
    background: #4A4233 !important;
    width: 10px !important;
    height: 10px !important;
  }
  
  /* === BOUTON INSTAGRAM MOBILE === */
  .instagram-btn-mobile {
    display: flex !important;
    justify-content: center !important;
    margin-top: 20px !important;
  }
  
  .instagram-btn-mobile .instagram-btn {
    display: inline-flex !important;
  }
  
  /* === ANIMATION CONCEPT - NOIR & BLANC VERS COULEUR === */
  /* En mode carrousel, les images Concept commencent en N&B */
  .concept-image {
    filter: grayscale(100%) !important;
    transition: filter 0.8s ease-out !important;
  }
  
  /* Quand la card est visible (au centre), transition vers couleur */
  .concept-card-new.is-visible .concept-image,
  .concept-image.in-view {
    filter: grayscale(0%) !important;
  }
}

/* ========================================
   TRÈS PETITS ÉCRANS (< 480px)
   Ajustements mineurs seulement
   ======================================== */

@media (max-width: 480px) {
  .section-title-concept {
    font-size: clamp(20px, 5.5vw, 28px) !important;
  }
  
  .see-more-btn,
  .featured-see-collection {
    font-size: 0.6rem !important;
    padding: 8px 14px !important;
  }
  
  .concept-image-wrapper,
  .olfactory-image-new {
    height: clamp(200px, 65vw, 350px) !important;
  }
  
  .featured-carousel-image {
    min-height: clamp(250px, 75vw, 400px) !important;
  }
}

/* ========================================
   SUPPORT TRÈS GRANDS ÉCRANS (1920px+)
   ======================================== */

@media (min-width: 1920px) {
  .concept-image-wrapper {
    height: clamp(400px, 40vw, 750px) !important;
  }
  .olfactory-image-new {
    height: clamp(300px, 32vw, 600px) !important;
  }
  .featured-carousel-image {
    min-height: clamp(400px, 40vw, 650px) !important;
  }
}

@media (min-width: 2560px) {
  .concept-image-wrapper {
    height: clamp(500px, 38vw, 850px) !important;
  }
  .olfactory-image-new {
    height: clamp(400px, 30vw, 750px) !important;
  }
  .featured-carousel-image {
    min-height: clamp(500px, 38vw, 750px) !important;
  }
}

@media (min-width: 3440px) {
  .concept-image-wrapper {
    height: clamp(600px, 35vw, 950px) !important;
  }
  .olfactory-image-new {
    height: clamp(500px, 28vw, 850px) !important;
  }
  .featured-carousel-image {
    min-height: clamp(600px, 35vw, 850px) !important;
  }
}

/* ========================================
   FOOTER - SUPPRIMER L'ESPACE BLANC
   ======================================== */

footer,
.site-footer,
footer.site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body {
  margin-bottom: 0 !important;
}

/* ========================================
   ANIMATIONS ET TRANSITIONS
   ======================================== */

.olfactory-image {
  transition: all 0.8s ease !important;
}

.olfactory-card:hover .olfactory-image {
  transform: scale(1.08) !important;
  filter: brightness(1.05) !important;
}

/* ========================================
   TEXTES FLUIDES
   ======================================== */

.info-text h3 {
  font-size: clamp(14px, 1.8vw, 22px) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.info-text p {
  font-size: clamp(11px, 1.4vw, 16px) !important;
  color: #666 !important;
}

.olfactory-name {
  font-size: clamp(12px, 2vw, 20px) !important;
  margin: clamp(12px, 1.5vw, 20px) 0 !important;
}

.olfactory-content {
  padding: clamp(15px, 2vw, 35px) clamp(12px, 1.5vw, 28px) !important;
}

.featured-title {
  font-size: clamp(14px, 2.2vw, 28px) !important;
  margin: clamp(12px, 1.5vw, 20px) 0 !important;
}

.featured-price {
  font-size: clamp(12px, 1.8vw, 22px) !important;
  margin: clamp(8px, 1vw, 15px) 0 !important;
}

.featured-volume {
  font-size: clamp(10px, 1.2vw, 16px) !important;
}

/* ========================================
   BOUTONS - FLUIDES
   ======================================== */

.btn-add-to-cart-scents {
  padding: clamp(10px, 1.2vw, 16px) clamp(20px, 2vw, 40px) !important;
  font-size: clamp(11px, 1.3vw, 16px) !important;
  border-radius: clamp(3px, 0.3vw, 8px) !important;
  letter-spacing: clamp(0.5px, 0.1vw, 1px) !important;
}

.accordion-button-scents {
  font-size: clamp(10px, 1.2vw, 14px) !important;
  letter-spacing: clamp(0.5px, 0.1vw, 1px) !important;
}

.note-item-scents {
  font-size: clamp(9px, 1vw, 13px) !important;
  padding: clamp(8px, 1vw, 14px) clamp(10px, 1.2vw, 16px) !important;
}

.product-volume-scents {
  font-size: clamp(9px, 1vw, 13px) !important;
}

.product-price-scents {
  font-size: clamp(12px, 1.5vw, 18px) !important;
  margin: clamp(8px, 1vw, 15px) 0 !important;
}
