/* ============================================================
   EDUNOVA — Child Theme CSS
   Charte : Bordeaux #911435 | Rose #FDEEEB | Jaune #F3A200
   Fonts  : Borel (titres) | Poppins (corps) | Boris (accent)
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --color-bordeaux:   #911435;
  --color-rose:       #FDEEEB;
  --color-rose-moyen: #FFB29E;
  --color-jaune:      #F3A200;
  --color-beige:      #D1CFB7;
  --color-rouge:      #D00000;
  --color-text:       #2D2D2D;
  --color-white:      #FFFFFF;

  --font-titre:  'Borel', cursive;
  --font-corps:  'Poppins', sans-serif;
  --font-accent: 'Boris', cursive;

  --radius-btn:  25px;
  --radius-card: 16px;
}

/* --- Base ------------------------------------------------- */
body {
  font-family: var(--font-corps) !important;
  background-color: var(--color-rose) !important;
  color: var(--color-text) !important;
}

/* --- Typographie ------------------------------------------ */
h1, h2, h3,
.h1, .h2, .h3,
.section-title,
.page-heading,
.product-title,
.card-product-title {
  font-family: var(--font-titre) !important;
  color: var(--color-bordeaux) !important;
}

h4, h5, h6,
.h4, .h5, .h6 {
  font-family: var(--font-corps) !important;
  font-weight: 600;
  color: var(--color-bordeaux) !important;
}

/* --- Liens ------------------------------------------------ */
a {
  color: var(--color-bordeaux) !important;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-jaune) !important;
  text-decoration: none;
}

/* --- Header ----------------------------------------------- */
#header,
.header-wrapper,
header#header {
  background-color: var(--color-rose) !important;
  border-bottom: 2px solid var(--color-rose-moyen);
}

#header .top-menu > li > a,
#header .main-menu a {
  font-family: var(--font-corps) !important;
  font-weight: 500;
  color: var(--color-bordeaux) !important;
  text-transform: none;
  letter-spacing: 0.02em;
}
#header .top-menu > li > a:hover,
#header .main-menu a:hover {
  color: var(--color-jaune) !important;
}

.blockcart .cart-products-count,
.cart-preview .cart-products-count {
  background-color: var(--color-bordeaux) !important;
  color: var(--color-white) !important;
}

/* --- Boutons ---------------------------------------------- */
.btn-primary,
.btn.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
.add-to-cart,
#add-to-cart-btn {
  background-color: var(--color-jaune) !important;
  border-color: var(--color-jaune) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-corps) !important;
  font-weight: 500;
  padding: 12px 32px;
  transition: all 0.2s ease;
}
.btn-primary:hover,
.btn.btn-primary:hover,
.add-to-cart:hover {
  background-color: #e09200 !important;
  border-color: #e09200 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 162, 0, 0.35);
}

.btn-secondary,
.btn.btn-secondary,
button.btn-secondary {
  background-color: transparent !important;
  border: 2px solid var(--color-bordeaux) !important;
  color: var(--color-bordeaux) !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-corps) !important;
  font-weight: 500;
  padding: 10px 30px;
  transition: all 0.2s ease;
}
.btn-secondary:hover,
.btn.btn-secondary:hover {
  background-color: var(--color-bordeaux) !important;
  color: var(--color-white) !important;
}

/* --- Cards produits --------------------------------------- */
.product-miniature,
.js-product-miniature,
article.product-miniature {
  background: var(--color-white) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: none !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-miniature:hover,
article.product-miniature:hover {
  box-shadow: 0 6px 20px rgba(145, 20, 53, 0.12) !important;
  transform: translateY(-3px);
}

.product-miniature .product-title a,
.product-miniature h3 a {
  font-family: var(--font-corps) !important;
  font-weight: 500;
  color: var(--color-text) !important;
}
.product-miniature .product-title a:hover {
  color: var(--color-bordeaux) !important;
}

.product-miniature .price,
.product-price-and-shipping .price,
span.price {
  color: var(--color-bordeaux) !important;
  font-family: var(--font-corps) !important;
  font-weight: 600;
}

.regular-price,
.product-miniature .regular-price {
  color: #999 !important;
  text-decoration: line-through;
}

/* --- Badges ----------------------------------------------- */
.discount-badge,
.product-flag.discount,
.product-flag.on-sale,
span.badge-discount {
  background-color: var(--color-rouge) !important;
  color: var(--color-white) !important;
  border-radius: 8px !important;
  font-family: var(--font-corps) !important;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-flag.new,
.badge-new,
span.badge-new {
  background-color: var(--color-bordeaux) !important;
  color: var(--color-white) !important;
  border-radius: 8px !important;
  font-family: var(--font-corps) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-montessori {
  background-color: var(--color-jaune) !important;
  color: var(--color-white) !important;
  border-radius: 12px;
  font-family: var(--font-corps) !important;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  display: inline-block;
}

/* Cercles age (section homepage) */
.age-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--color-rose) !important;
  border: 2px solid var(--color-rose-moyen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titre) !important;
  color: var(--color-bordeaux);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.age-circle:hover {
  background-color: var(--color-bordeaux) !important;
  color: var(--color-white) !important;
  border-color: var(--color-bordeaux);
  transform: scale(1.05);
}

/* --- Footer ----------------------------------------------- */
#footer,
footer#footer,
.footer-container {
  background-color: var(--color-bordeaux) !important;
  color: rgba(255,255,255,0.85) !important;
}

#footer a,
footer a,
.footer-container a {
  color: var(--color-rose-moyen) !important;
}
#footer a:hover,
footer a:hover,
.footer-container a:hover {
  color: var(--color-white) !important;
}

#footer h3,
#footer h4,
.footer-container h3,
.footer-container h4 {
  color: var(--color-white) !important;
  font-family: var(--font-titre) !important;
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb-item a {
  color: var(--color-bordeaux) !important;
}
.breadcrumb-item.active {
  color: var(--color-text) !important;
}

/* --- Formulaires / Inputs --------------------------------- */
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-bordeaux) !important;
  box-shadow: 0 0 0 0.2rem rgba(145, 20, 53, 0.15) !important;
}

/* --- Mega Menu dropdown ----------------------------------- */
.popover,
.dropdown-menu,
.ui-autocomplete {
  border-radius: 12px !important;
  border: 1px solid var(--color-rose-moyen) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* --- Newsletter section ----------------------------------- */
.block-newsletter,
#block-newsletter,
.newsletter-section {
  background-color: var(--color-bordeaux) !important;
  color: var(--color-white) !important;
}
.block-newsletter h2,
.newsletter-section h2 {
  font-family: var(--font-titre) !important;
  color: var(--color-white) !important;
}
.block-newsletter .btn-primary,
.newsletter-section .btn-primary {
  background-color: var(--color-jaune) !important;
}

/* --- Wishlist coeur --------------------------------------- */
.wishlist-button-add .wishlist-icon,
.iqit-wishlist .wishlist-icon {
  color: var(--color-rose-moyen) !important;
}
.wishlist-button-add.added .wishlist-icon,
.iqit-wishlist.added .wishlist-icon {
  color: var(--color-rouge) !important;
}

/* --- Pagination ------------------------------------------- */
.pagination .page-link {
  color: var(--color-bordeaux) !important;
  border-color: var(--color-rose-moyen) !important;
}
.pagination .page-item.active .page-link {
  background-color: var(--color-bordeaux) !important;
  border-color: var(--color-bordeaux) !important;
  color: var(--color-white) !important;
}

/* --- Page produit ----------------------------------------- */
.product-name,
h1.page-title {
  font-family: var(--font-titre) !important;
  color: var(--color-bordeaux) !important;
}

.product-information .product-description {
  font-family: var(--font-corps) !important;
  line-height: 1.7;
}

/* --- Tabs ------------------------------------------------- */
.tabs .nav-tabs .nav-link.active {
  color: var(--color-bordeaux) !important;
  border-bottom-color: var(--color-bordeaux) !important;
}

/* --- Search bar ------------------------------------------- */
.search-widget input,
#search_widget input {
  border-radius: var(--radius-btn) !important;
  border-color: var(--color-rose-moyen) !important;
}
.search-widget button,
#search_widget button {
  background-color: var(--color-bordeaux) !important;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0 !important;
  color: var(--color-white) !important;
}

/* --- Scrollbar (cosmetique) ------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-rose); }
::-webkit-scrollbar-thumb { background: var(--color-rose-moyen); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-bordeaux); }

/* --- Logo ------------------------------------------------- */
#header_logo img,
.header-logo img,
.logo img,
a.logo img {
  max-height: 55px !important;
  width: auto !important;
}

/* --- Featured products title ------------------------------ */
.featured-products .h2.products-section-title,
.featured-products h2 {
  font-family: var(--font-titre) !important;
  color: var(--color-bordeaux) !important;
}

/* --- Reassurance bar ------------------------------------- */
.block-reassurance {
  background: var(--color-white) !important;
}

/* --- Logo fix (img IS the logo element) -------------------- */
img.logo {
  max-height: 55px !important;
  width: auto !important;
  display: block;
}

/* --- Logo height auto fix -------------------------------- */
img.logo {
  height: auto !important;
}


/* ================================================================
   EDUNOVA ??? MOBILE-FIRST RESPONSIVE OVERHAUL
   Senior Frontend Design ??? Focus Charte Graphique
   ================================================================ */

/* --- MOBILE VIEWPORT FIX (barres grises) ----------------------- */
html, body {
  width: 100% !important;
  overflow-x: hidden !important;
}
body {
  background-color: #FDEEEB !important;
}
#wrapper, .container {
  max-width: 100% !important;
}

/* --- LOGO RESPONSIVE ------------------------------------------- */
@media (max-width: 768px) {
  #header_logo img,
  .header-logo img,
  img.logo,
  a.logo img {
    max-height: 40px !important;
    width: auto !important;
  }
  
  #header .header-top,
  .header-top {
    padding: 8px 0 !important;
  }
  
  /* Top bar compact */
  .header-top-right,
  .header-nav--right {
    font-size: 0.75rem;
  }
}

/* --- MOBILE NAVIGATION BAR ------------------------------------ */
@media (max-width: 768px) {
  #mobile_top_menu_wrapper,
  .mobile-menu-bar,
  #header .mobile-bar {
    background-color: #FFFFFF !important;
    border-top: 2px solid #911435 !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  }
  
  #mobile_top_menu_wrapper a,
  .mobile-menu-bar a {
    color: #911435 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 500;
  }
  
  #mobile_top_menu_wrapper .active a,
  .mobile-menu-bar .active a {
    color: #F3A200 !important;
  }
}

/* --- HERO SECTION MOBILE -------------------------------------- */
@media (max-width: 768px) {
  .edunova-hero,
  .hero-section {
    padding: 24px 16px !important;
  }
  /* Defensive : forcer reset padding sur tous les enfants hero-v2 */
  .hero-v2 [class*="hero-v2__"]:not(.hero-v2__btn):not(.hero-v2__pill):not(.hero-v2__yasmine):not(.hero-v2__sticker):not(.hero-v2__photo) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hero-v2 .hero-v2__badge { padding: 4px 9px !important; }
  .hero-v2 .hero-v2__btn--primary { padding: 14px 16px !important; }
  .hero-v2 .hero-v2__btn--secondary { padding: 8px 12px !important; }
  
  .edunova-hero h1,
  .hero-section h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  
  /* Hide desktop-only icons on mobile */
  .hero-icons-grid,
  
  
  /* Stack buttons */
  .edunova-hero .btn,
  .hero-section .btn {
    display: block !important;
    width: 100% !important;
    margin: 8px 0 !important;
    text-align: center !important;
  }
}

/* --- AGE CIRCLES MOBILE --------------------------------------- */
@media (max-width: 768px) {
  .age-circles-wrapper {
    gap: 12px !important;
    padding: 0 8px !important;
  }
  
  .age-circle {
    width: 65px !important;
    height: 65px !important;
    font-size: 0.8rem !important;
  }
  
  .age-circles-wrapper > a {
    flex: 0 0 calc(33.33% - 12px) !important;
  }
  
  .age-circles-wrapper > a span[style*="display: block"] {
    font-size: 0.65rem !important;
  }
}

/* --- PRODUCT CARDS MOBILE ------------------------------------- */
@media (max-width: 768px) {
  .product-miniature,
  article.product-miniature {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }
  
  .product-miniature .product-title a,
  .product-miniature h3 a {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  .product-miniature .price {
    font-size: 0.9rem !important;
  }
  
  .product-miniature .add-to-cart,
  .product-miniature .btn-primary {
    font-size: 0.75rem !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
  }
}

/* --- FOOTER MOBILE -------------------------------------------- */
@media (max-width: 768px) {
  #footer,
  footer#footer {
    padding: 24px 16px !important;
  }
  
  #footer h3,
  #footer h4,
  .footer-container h3 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }
}

/* --- NEWSLETTER SECTION FIX ----------------------------------- */
.block-newsletter,
#block-newsletter {
  padding: 32px 16px !important;
}

@media (max-width: 768px) {
  .block-newsletter input[type="email"],
  #block-newsletter input[type="email"] {
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
  }
}

/* ================================================================
   CATEGORIES SHOWCASE SECTION
   ================================================================ */
.edunova-categories-section {
  padding: 48px 16px;
  background: #FFFFFF;
  text-align: center;
}

.edunova-categories-section h2 {
  font-family: "Borel", cursive;
  color: #911435;
  font-size: 2rem;
  margin-bottom: 8px;
}

.edunova-categories-section .subtitle {
  color: #666;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.edunova-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.edunova-cat-card {
  background: #FDEEEB;
  border-radius: 16px;
  padding: 24px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.edunova-cat-card:hover {
  border-color: #911435;
  background: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(145, 20, 53, 0.12);
  text-decoration: none;
}

.edunova-cat-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.edunova-cat-card:hover .cat-icon {
  background: #911435;
  color: #FFFFFF;
  transform: scale(1.1);
}

.edunova-cat-card .cat-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #911435;
  font-size: 0.85rem;
}

.edunova-cat-card .cat-count {
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  color: #999;
}

@media (max-width: 768px) {
  .edunova-categories-section {
    padding: 32px 12px;
  }
  
  .edunova-categories-section h2 {
    font-size: 1.5rem;
  }
  
  .edunova-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .edunova-cat-card {
    padding: 16px 10px;
    border-radius: 12px;
  }
  
  .edunova-cat-card .cat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .edunova-cat-card .cat-name {
    font-size: 0.75rem;
  }
}

/* --- STICKY MOBILE CTA BAR ------------------------------------ */
@media (max-width: 768px) {
  .edunova-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 2px solid #911435;
    padding: 8px 16px;
    z-index: 9999;
    display: flex;
    gap: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  }
  
  .edunova-sticky-cta .btn {
    flex: 1;
    text-align: center;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    padding: 10px !important;
  }
  
  /* Add bottom padding to body to account for sticky bar */
  body {
    padding-bottom: 60px !important;
  }
}

/* --- SMOOTH SCROLL & GLOBAL POLISH ---------------------------- */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: #FFB29E;
  color: #911435;
}

/* Focus states accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #F3A200;
  outline-offset: 2px;
}

/* --- TRUST BADGES / REASSURANCE - Mobile ---------------------- */
@media (max-width: 768px) {
  .block-reassurance {
    padding: 12px 8px !important;
  }
  
  .block-reassurance .reassurance-item {
    font-size: 0.75rem !important;
  }
}

/* --- PAGE HEADING Borel on category pages --------------------- */
.page-category h1,
#category h1,
.category-header h1 {
  font-family: "Borel", cursive !important;
  color: #911435 !important;
}


/* ================================================================
   MOBILE HEADER REDESIGN (Eveil Montessori Style)
   ================================================================ */
@media (max-width: 768px) {
  /* 1. Bar promo top - 3 slides crossfade premium (DOM réel injecté par edunova-promo.js) */
  body {
    padding-top: 44px !important;
  }
  #edu-promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(135deg, #911435 0%, #7a0e2c 50%, #911435 100%);
    color: #fff;
    z-index: 5000;
    box-shadow: 0 2px 14px rgba(145, 20, 53, 0.28);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
  }
  #edu-promo-bar .edu-promo-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    opacity: 0;
    animation: eduPromo4Fade 16s infinite ease-in-out;
    white-space: nowrap;
  }
  #edu-promo-bar .edu-promo-emoji {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    flex-shrink: 0;
  }
  #edu-promo-bar .edu-promo-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #edu-promo-bar .edu-promo-slide:nth-child(1) { animation-delay: 0s; }
  #edu-promo-bar .edu-promo-slide:nth-child(2) { animation-delay: 4s; }
  #edu-promo-bar .edu-promo-slide:nth-child(3) { animation-delay: 8s; }
  #edu-promo-bar .edu-promo-slide:nth-child(4) { animation-delay: 12s; }

  @keyframes eduPromo4Fade {
    0%, 22%   { opacity: 1; transform: translateY(0); }
    25%, 95%  { opacity: 0; transform: translateY(-3px); }
    100%      { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    #edu-promo-bar .edu-promo-slide { animation: none; opacity: 0; }
    #edu-promo-bar .edu-promo-slide:first-child { opacity: 1; }
  }

  /* 2. Container for the logo */
  .mobile-main-bar {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-bottom: 1px solid #eee;
  }
  .col-mobile-logo {
    padding: 0 120px !important; /* leaves space for absolute icons */
  }
  #mobile-header .logo {
    max-height: 48px !important;
    width: auto !important;
  }

  /* 3. The bulky tabs bar transformed into transparent overlay */
  #mobile-header-sticky,
  .mobile-buttons-bar {
    position: absolute !important;
    top: 36px !important; /* under the promo bar */
    left: 0;
    right: 0;
    height: 65px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .row-mobile-buttons {
    position: relative;
    height: 65px;
  }

  /* 4. Hide all the big text under icons */
  .m-nav-btn span {
    display: none !important;
  }
  
  /* Style all the icons */
  .m-nav-btn {
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #911435 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .m-nav-btn i {
    font-size: 1.4rem !important;
    margin: 0 !important;
  }
  
  .col-mobile-btn {
    border: none !important;
    background: transparent !important;
    pointer-events: auto !important; /* Catch clicks */
  }

  /* 5. Reposition perfectly: Hamburger LEFT, Search+Cart RIGHT */
  
  /* Menu icon */
  .col-mobile-btn-menu {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px !important;
  }

  /* Hide Connexion (Not needed on strict mobile header, save space) */
  .col-mobile-btn-account {
    display: none !important;
  }

  /* Search icon */
  .col-mobile-btn-search {
    position: absolute;
    right: 50px;
    top: 0;
    width: 50px !important;
  }

  /* Cart icon */
  .col-mobile-btn-cart {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px !important;
  }
  
  /* Counter badge for cart */
  .cart-products-count-btn {
    top: 15px !important;
    right: 8px !important;
    background: #F3A200 !important;
    color: #fff !important;
  }

  /* Fix the search dropdown overlay position */
  #search-widget-mobile {
    top: 65px !important;
    right: -50px !important;
    left: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: 350px !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  }
}

/* ================================================================
   MOBILE HEADER REDESIGN (Eveil Montessori Style) V2
   ================================================================ */
@media (max-width: 768px) {
  /* Hide the desktop top nav (Livraison, Mentions) on mobile to clean up */
  .header-nav {
    display: none !important;
  }

  

  /* Setting header as relative container for absolute positioning */
  #mobile-header {
    position: relative !important;
  }

  /* 2. Container for the logo */
  .mobile-main-bar {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-bottom: 1px solid #eee;
  }
  .col-mobile-logo {
    padding: 0 120px !important; 
  }
  #mobile-header .logo {
    max-height: 40px !important;
    width: auto !important;
  }

  /* 3. The bulky tabs bar transformed into transparent overlay */
  #mobile-header-sticky,
  .mobile-buttons-bar {
    position: absolute !important;
    top: 0 !important; /* It overlays .mobile-main-bar exactly */
    left: 0;
    right: 0;
    height: 65px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .row-mobile-buttons {
    position: relative;
    height: 65px;
  }

  /* 4. Hide all the big text under icons */
  .m-nav-btn span {
    display: none !important;
  }
  
  /* Style all the icons */
  .m-nav-btn {
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #911435 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .m-nav-btn i {
    font-size: 1.4rem !important;
    margin: 0 !important;
  }
  
  .col-mobile-btn {
    border: none !important;
    background: transparent !important;
    pointer-events: auto !important; /* Catch clicks */
  }

  /* 5. Reposition perfectly */
  
  /* Menu icon */
  .col-mobile-btn-menu {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px !important;
  }

  /* Hide Connexion */
  .col-mobile-btn-account {
    display: none !important;
  }

  /* Search icon */
  .col-mobile-btn-search {
    position: absolute;
    right: 50px;
    top: 0;
    width: 50px !important;
  }

  /* Cart icon */
  .col-mobile-btn-cart {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px !important;
  }
  
  /* Counter badge for cart */
  .cart-products-count-btn {
    top: 15px !important;
    right: 8px !important;
    background: #F3A200 !important;
    color: #fff !important;
  }

  /* Fix the search dropdown overlay */
  #search-widget-mobile {
    top: 65px !important;
    right: -50px !important;
    left: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: 350px !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  }
}

/* ================================================================
   MOBILE HEADER REDESIGN (Eveil Montessori Style) V3
   ================================================================ */
@media (max-width: 768px) {
  /* Hide the desktop top nav (Livraison, Mentions) on mobile to clean up */
  .header-nav { display: none !important; }

  /* Setting header as relative container */
  #mobile-header {
    position: relative !important;
    height: 70px;
  }

  /* 1. Container for the logo (Position Absolute dead center) */
  .mobile-main-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-bottom: 2px solid #FDEEEB;
    z-index: 1;
  }
  .col-mobile-logo { padding: 0 !important; }
  #mobile-header .logo {
    max-height: 40px !important;
    width: auto !important;
  }

  /* 2. The bulky tabs bar transformed into transparent overlay */
  #mobile-header-sticky,
  .mobile-buttons-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    height: 70px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2; /* Sits ON TOP of the logo */
    pointer-events: none; /* Let clicks pass through to logo */
  }
  
  .row-mobile-buttons {
    position: relative;
    display: flex;
    justify-content: space-between; /* pushes hamburger left, search+cart right */
    align-items: center;
    height: 70px;
    padding: 0 10px;
  }

  /* 3. Hide all the big text under icons */
  .m-nav-btn span { display: none !important; }
  
  /* Style all the icons */
  .m-nav-btn { height: 70px !important; width: 50px !important; ; /* Fixed width to prevent overlap */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #911435 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .m-nav-btn i {
    font-size: 1.4rem !important;
    margin: 0 !important;
  }
  
  .col-mobile-btn {
    border: none !important;
    background: transparent !important;
    pointer-events: auto !important; /* Catch clicks */
    flex: 0 0 auto !important; /* Do not stretch */
    width: auto !important;
  }

  /* 4. Layout configuration */
  
  /* Menu icon */
  .col-mobile-btn-menu {
    margin-right: auto; /* Pushes everything else to the right */
  }

  /* Hide Connexion */
  .col-mobile-btn-account {
    display: none !important;
  }

  /* Search and Cart stay together on the right */
  .col-mobile-btn-search { margin-right: 20px !important; }
  
  /* Counter badge for cart */
  .cart-products-count-btn {
    top: 15px !important;
    right: 5px !important;
    background: #F3A200 !important;
    color: #fff !important;
  }

  /* Dropdown search fix positioning */
  #search-widget-mobile {
    top: 70px !important;
    right: 5px !important;
    left: auto !important;
    width: calc(100vw - 20px) !important;
    max-width: 350px !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  }
}

/* --- Interactive Cards (Hero Section) --- */
.cat-card {
  transition: all 0.3s ease !important;
}
.cat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(145,20,53,0.15) !important;
  border: 1px solid #911435 !important;
}

/* --- Hero Buttons (Perfect Colors & Hover) --- */
.hero-btn-primary {
  display: inline-block;
  background-color: #F3A200 !important;
  color: #FFFFFF !important;
  padding: 14px 32px;
  border-radius: 25px;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(243,162,0,0.35);
  transition: all 0.3s ease !important;
  border: 2px solid #F3A200 !important;
}
.hero-btn-primary:hover, .hero-btn-primary:active, .hero-btn-primary:focus {
  background-color: #FFFFFF !important;
  color: #F3A200 !important;
  border-color: #F3A200 !important;
  box-shadow: 0 6px 20px rgba(243,162,0,0.45);
}

.hero-btn-secondary {
  display: inline-block;
  background-color: transparent !important;
  border: 2px solid #911435 !important;
  color: #911435 !important;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease !important;
}
.hero-btn-secondary:hover, .hero-btn-secondary:active, .hero-btn-secondary:focus {
  background-color: #911435 !important;
  color: #FFFFFF !important;
  border-color: #911435 !important;
}

/* Fix global a:hover overwriting text colors inside buttons */
a.hero-btn-primary:hover, a.hero-btn-secondary:hover {
  text-decoration: none !important;
}

/* --- Button Bordeaux (Solid) --- */
.hero-btn-bordeaux {
  display: inline-block;
  background-color: #911435 !important;
  color: #FFFFFF !important;
  padding: 12px 32px;
  border-radius: 25px;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease !important;
  border: 2px solid #911435 !important;
}
.hero-btn-bordeaux:hover, .hero-btn-bordeaux:active, .hero-btn-bordeaux:focus {
  background-color: #FFFFFF !important;
  color: #911435 !important;
  border-color: #911435 !important;
}
a.hero-btn-bordeaux:hover {
  text-decoration: none !important;
  color: #911435 !important;
}

/* --- Modern Newsletter Input --- */
.block-newsletter .newsletter-input-group {
    background: #FFFFFF;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center;
    border: none;
}
.block-newsletter .newsletter-input-group .form-control.input-subscription {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 14px;
    height: auto;
}
.block-newsletter .newsletter-input-group .form-control.input-subscription:focus {
    outline: none !important;
}
.block-newsletter .newsletter-input-group .input-group-append {
    margin: 0;
}
.block-newsletter .newsletter-input-group .btn-subscribe {
    border-radius: 50px !important;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(243,162,0,0.3) !important;
    margin-left: 10px;
}
.block-newsletter .newsletter-input-group .btn-subscribe i {
    font-size: 16px;
    margin: 0;
}
/* Re-style the text */
.ps-emailsubscription-conditions {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 16px !important;
    font-family: 'Poppins', sans-serif;
}


/* ================================================================
   CUTE COOKIE LAW BANNER OVERHAUL
   ================================================================ */
#iqitcookielaw {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  color: #911435 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(145, 20, 53, 0.15) !important;
  padding: 16px !important;
  border: 1px solid #FDEEEB !important;
  width: calc(100% - 32px) !important;
  max-width: 320px !important;
  left: 16px !important;
  bottom: 16px !important;
  right: auto !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Make the button cute */
#iqitcookielaw .iqitcookielaw-accept,
#iqitcookielaw button {
  background-color: #F3A200 !important;
  color: transparent !important; 
  border-radius: 20px !important;
  padding: 8px 24px !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(243, 162, 0, 0.3) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  height: 38px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#iqitcookielaw button::after {
  content: "D'accord !" !important;
  color: #FFFFFF !important;
  position: absolute !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
}

#iqitcookielaw button:hover {
  background-color: #e09200 !important;
  transform: translateY(-2px) !important;
}


/* ================================================================
   BEST SELLERS CAROUSEL & PRODUCT CARDS FORMAT FIX
   ================================================================ */

/* 1. Hide slider arrows ONLY on touch devices/mobile */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev,
  .slick-prev,
  .slick-next,
  .owl-prev,
  .owl-next {
    display: none !important;
  }
}

/* 2. Product Card Container - Nice rounded UI */
.product-miniature {
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05) !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  margin: 5px !important; /* tiny margin to prevent shadow cutoff */
  display: flex !important;
  flex-direction: column !important;
  height: auto !important; /* Fixed: Don't force height, let it flow */
  /* REMOVED width: 100% !important to stop breaking swiper JS */
}

/* On desktop, add beautiful rich shadow on hover */
@media (min-width: 769px) {
  .product-miniature:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(145,20,53,0.12) !important;
  }
  
  /* Ensure product title doesn't look weird on desktop */
  .product-miniature .product-title a {
    font-size: 14px !important;
  }
}

/* 3. Product Thumbnail Image - Square aspect ratio */
.product-miniature .thumbnail-container {
  overflow: hidden !important;
  background: #fff !important;
  padding: 15px !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.product-miniature .product-thumbnail {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  overflow: hidden;
}

.product-miniature .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* 4. Description Area */
.product-miniature .product-description {
  padding: 0 15px 20px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* 5. Title */
.product-miniature .product-title a,
.product-miniature h3.h3.product-title a,
.product-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2D2D2D !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 6px !important;
  white-space: normal !important; /* overrides squished text nowrap */
  word-break: break-word !important;
}

.product-miniature .product-category-name,
.product-miniature .product-reference {
  font-size: 11px !important;
  color: #888 !important;
  margin-bottom: 6px !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 6. Price */
.product-miniature .price {
  color: #911435 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 15px !important;
  margin-top: auto !important; /* Push price and button to bottom */
  display: block !important;
}

/* 7. "Ajouter au panier" Button - Icon and Text */
.product-miniature .add-to-cart,
.product-miniature .btn-primary,
.product-miniature .btn-primary.add-to-cart {
  background: #F3A200 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 25px !important; /* nice rounded pill */
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 10px 20px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  margin: 0 auto !important;
}

.product-miniature .add-to-cart i {
   margin-right: 6px !important;
}

.product-miniature .add-to-cart:hover,
.product-miniature .btn-primary:hover {
  background: #e09200 !important;
  transform: translateY(-2px);
}

/* Badges (New, Sale) */
.product-flag.new, .product-flag.on-sale, .product-flag.discount {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  background: #911435 !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
  top: 10px !important;
  left: 10px !important;
  box-shadow: 0 4px 10px rgba(145,20,53,0.3) !important;
  color: #fff !important;
}

.product-flag.on-sale {
  background: #D00000 !important;
}

/* Mobile specific tweaks */
@media (max-width: 768px) {
  .product-miniature .thumbnail-container { padding: 8px !important; }
  .product-miniature .product-description { padding: 0 8px 12px !important; }
  .product-miniature .product-title a { font-size: 12px !important; }
  .product-miniature .price { font-size: 14px !important; margin-bottom: 10px !important; }
  .product-miniature .add-to-cart,
  .product-miniature .btn-primary {
    font-size: 11px !important;
    padding: 8px 12px !important;
    width: 100% !important; /* Full width on mobile */
    border-radius: 12px !important;
  }
}


/* ================================================================
   CRITICAL FIX: PREVENT BOOTSTRAP FROM CRUSHING SWIPER SLIDES
   ================================================================ */
.swiper-container .swiper-wrapper .swiper-slide,
.swiper-container .swiper-wrapper .swiper-slide > div,
.products.row .swiper-slide {
    max-width: none !important;
    flex: 0 0 auto !important;
    
}

/* Let Swiper handle the width of .swiper-slide, but force the inner wrapper to fill it */
.swiper-container .swiper-slide .js-product-miniature-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
}

/* Restore the flex-wrap for swiper */
.swiper-wrapper {
    flex-wrap: nowrap !important;
}

/* Ensure slides stretch equally */
.swiper-slide {
    display: flex !important;
    height: auto !important;
}
/* ========================================
   Edunova UX Fixes — 2026-04-16
   ======================================== */

/* ---- 1. Phone in header top-right ---- */
.right-nav::before {
  content: "\f095 +212 663 34 54 38";
  font-family: "FontAwesome", "Poppins", sans-serif;
  font-size: 13px;
  color: #911435;
  font-weight: 600;
  margin-right: 16px;
  letter-spacing: 0.3px;
}
.right-nav a[href^="tel"] {
  color: #911435;
  font-weight: 600;
  font-size: 13px;
}

/* ---- 2. WhatsApp floating button ---- */
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
#whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.55);
  color: #fff;
  text-decoration: none;
}
#whatsapp-float .wa-icon {
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 767px) {
  #whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 0; /* icon only on mobile */
    width: 54px;
    height: 54px;
    justify-content: center;
    border-radius: 50%;
  }
  #whatsapp-float .wa-icon {
    font-size: 26px;
  }
}

/* ---- 3. Reassurance bar ---- */
#edunova-reassurance {
  background: #fff;
  border-top: 1px solid #f0e0e0;
  border-bottom: 1px solid #f0e0e0;
  padding: 14px 0;
  font-family: 'Poppins', sans-serif;
}
#edunova-reassurance .reassurance-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#edunova-reassurance .r-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
}
#edunova-reassurance .r-item i {
  color: #911435;
  font-size: 20px;
  min-width: 22px;
}
#edunova-reassurance .r-item strong {
  color: #911435;
  display: block;
  font-size: 13px;
  line-height: 1.2;
}
#edunova-reassurance .r-item span {
  font-size: 11px;
  color: #888;
}
@media (max-width: 600px) {
  #edunova-reassurance .reassurance-inner {
    justify-content: flex-start;
    gap: 10px;
  }
  #edunova-reassurance .r-item {
    width: calc(50% - 10px);
  }
}

/* ---- 4. Product name — forcer title case visuellement ---- */
.product-title a,
.product-miniature .product-title,
h1.page-heading,
.product-detail h1 {
  text-transform: capitalize;
  font-size: inherit;
}

/* ---- 5. Newsletter title en francais (override via CSS content) ---- */
.block-newsletter h5 {
  font-size: 0 !important;
}
.block-newsletter h5::before {
  content: "Rejoignez notre newsletter";
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #333;
}


/* ---- 7. Prix avec DH plutot que MAD ---- */
/* Note: le symbole monnaie est controle par PS — fix via DB */

/* ---- 8. Amelioration bouton commander dans panier ---- */
a.btn-checkout,
.cart-summary-totals .checkout-button,
.cart-summary a[href*="commande"] {
  background: #911435 !important;
  border-color: #911435 !important;
  color: #fff !important;
}

/* ---- Best Sellers: masquer description courte sur les cards ---- */
#featured-products .product-description-short,
#featured-products .product-description .product-description-short {
  display: none !important;
}

/* ---- Ordre homepage : Best Sellers au-dessus de Nos Marques ---- */
#content.page-home {
  display: flex;
  flex-direction: column;
}
#iqithtmlandbanners-block-2  { order: 1; }
#iqithtmlandbanners-block-3  { order: 2; }
#featured-products           { order: 3; }
#iqithtmlandbanners-block-6  { order: 4; }
#educateurMontessoriSection  { order: 5; }
#edunova-reassurance         { order: 6; }
#edunova-about-home          { order: 7; }

/* ============== EDUNOVA — REFONTE FICHE PRODUIT (2026-04-29) ============== */

/* --- 1. Borel scope strict : H1 produit only, jamais H2/H3/commentaires --- */
#product .product-title,
#product h1.h1,
#product .h1.product-title {
  font-family: var(--font-titre) !important;
}
#product h2,
#product h3,
#product h4,
#product h5,
#product h6,
#product .nav-tabs .nav-link,
#product .product-tabs h2,
#product .product-tabs h3,
#product .comment-title,
#product .review-title,
#product .product-comment-list-item .grade-stars + h4,
#product .productcomments-section h2,
#product .productcomments-section h3,
#product .product-comment-form h3,
#product .block-reassurance .h6,
#product .block-reassurance h6 {
  font-family: var(--font-corps) !important;
  font-weight: 600 !important;
  color: var(--color-bordeaux);
}

/* --- 2. Hide empty review/comment counters ----------------------------- */
#product .nav-tabs .nav-link[href*="comment"]:has(span:contains("(0)")),
#product .nav-tabs .nav-link.tab-pane-link[data-href*="comments"]:has(:contains("(0)")),
#product .product-comments-additional-info .comments-nb[data-count="0"],
#product .comments-nb-empty,
#product .empty-comments-count {
  display: none !important;
}
/* Fallback: hide the entire comments tab+pane if the visible label literally ends with "(0)" — handled by JS in custom.js */

/* --- 3. Layout balance : right column sticky on desktop -------------- */
#product .product-information,
#product .product-info-row .col-md-7,
#product .product-info-row .product-information {
  align-self: flex-start;
}
@media (min-width: 992px) {
  #product .product-info-row .product-information {
    position: sticky;
    top: 90px;
  }
}

/* --- 4. Pills row (age / cat / stock) -------------------------------- */
.edu-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.edu-pill {
  font-family: var(--font-corps);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.edu-pill-age   { background: #FBEAF0; color: #993556; }
.edu-pill-cat   { background: #E1F5EE; color: #0F6E56; }
.edu-pill-stock { background: #EAF3DE; color: #3B6D11; }
.edu-pill-stock.out { background: #FBE1DC; color: #8B1A1A; }

/* --- 5. Coup de cœur tag (classe prête, activée plus tard) --------- */
.edu-tag-coup {
  display: inline-block;
  background: var(--color-jaune);
  color: #fff;
  font-family: var(--font-corps);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* --- 6. Prix : TTC label + savings ----------------------------------- */
#product .edu-price-block {
  margin: 8px 0 14px;
}
#product .edu-price-block .current-price,
#product .edu-price-block .product-price {
  font-family: var(--font-corps) !important;
}
.edu-price-tax {
  display: block;
  font-family: var(--font-corps);
  font-size: 11px;
  color: #888780;
  margin-top: 2px;
  letter-spacing: 0.3px;
}
.edu-price-savings {
  display: inline-block;
  font-family: var(--font-corps);
  font-size: 12px;
  color: #3B6D11;
  font-weight: 600;
  margin-top: 4px;
  background: #EAF3DE;
  padding: 3px 10px;
  border-radius: 12px;
}

/* --- 7. CTA row + COD block ----------------------------------------- */
.edu-cta-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 12px 0;
  flex-wrap: wrap;
}
.edu-cta-row .product-add-to-cart,
.edu-cta-row .add { flex: 1 1 auto; }
.edu-cod {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EAF3DE;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-corps);
  font-size: 12px;
  color: #2C5C12;
  margin-bottom: 12px;
  line-height: 1.4;
}
.edu-cod-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #639922;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.edu-cod strong { color: #1F4209; }

/* --- 8. Trust badges (blockreassurance) en grille 3 cols ------------ */
#product .block-reassurance {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  margin: 12px 0 !important;
}
#product .block-reassurance ul,
#product .block-reassurance > div > ul {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
#product .block-reassurance li {
  background: #fff;
  border: 0.5px solid #F0E0D0;
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
}
#product .block-reassurance li .block-icon,
#product .block-reassurance li img,
#product .block-reassurance li svg {
  max-width: 28px;
  height: auto;
  margin: 0 auto 2px;
  flex-shrink: 0;
}
#product .block-reassurance li > div,
#product .block-reassurance li .block-reassurance-item {
  text-align: center;
  width: 100%;
}
#product .block-reassurance li span,
#product .block-reassurance li p {
  display: block;
  font-family: var(--font-corps) !important;
  font-size: 11px !important;
  font-weight: 600;
  color: #2C2C2A;
  margin: 0 !important;
  line-height: 1.3;
}
#product .block-reassurance li .block-reassurance-item-text {
  font-weight: 500;
  font-size: 10.5px !important;
  color: #888780;
}
@media (max-width: 575px) {
  #product .block-reassurance ul {
    grid-template-columns: 1fr !important;
  }
}

/* --- 9. Description tab — h2/h3 Poppins + bullets verts ------------ */
#product .product-description h2,
#product .product-description h3,
#product .tab-pane h2,
#product .tab-pane h3 {
  font-family: var(--font-corps) !important;
  font-weight: 600 !important;
  color: var(--color-bordeaux);
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 8px;
}
#product .product-description h4,
#product .tab-pane h4 {
  font-family: var(--font-corps) !important;
  font-weight: 600 !important;
  color: var(--color-bordeaux);
  font-size: 14px;
  margin-top: 14px;
  margin-bottom: 6px;
}
#product .product-description ul,
#product .tab-pane ul {
  padding-left: 0;
  list-style: none;
  margin: 8px 0;
}
#product .product-description ul li,
#product .tab-pane ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-family: var(--font-corps);
  font-size: 14px;
  line-height: 1.55;
  color: #444441;
}
#product .product-description ul li::before,
#product .tab-pane ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #639922;
  font-weight: 700;
  font-size: 14px;
}
#product .product-description p,
#product .tab-pane p {
  font-family: var(--font-corps);
  line-height: 1.6;
  color: #444441;
  margin-bottom: 12px;
}
/* Bloc d'info / conseil éducatrice (à activer dans le contenu) */
.edu-note {
  background: #FAEEDA;
  border-left: 3px solid var(--color-jaune);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-family: var(--font-corps);
  font-size: 13px;
  color: #633806;
  margin: 16px 0;
  line-height: 1.55;
}
.edu-note strong { color: #4A2904; }

/* --- 10. Tabs styling ------------------------------------------------ */
#product .nav-tabs,
#product .tabs .nav-tabs {
  border-bottom: 1px solid #F0E0D0 !important;
  gap: 4px;
}
#product .nav-tabs .nav-link {
  font-family: var(--font-corps) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  color: #888780 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  transition: color 0.2s, border-color 0.2s;
}
#product .nav-tabs .nav-link:hover {
  color: var(--color-bordeaux) !important;
}
#product .nav-tabs .nav-link.active {
  color: var(--color-bordeaux) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--color-bordeaux) !important;
  background: transparent !important;
}

/* --- 11. Wishlist & compare buttons subtle, pas envahissants -------- */
#product .product-actions .iqitwishlist-button,
#product .product-actions .compare {
  border: 1px solid #E5D0C0 !important;
  background: #fff !important;
  color: var(--color-bordeaux) !important;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#product .product-actions .iqitwishlist-button:hover {
  background: #FBEAF0 !important;
}

/* --- Tax label PS natif (.tax-shipping-delivery-label) --- */
#product .tax-shipping-delivery-label {
  display: block;
  font-family: var(--font-corps);
  font-size: 11px;
  color: #888780;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* --- Trust badges blockreassurance (structure réelle .blockreassurance_product) --- */
#product .blockreassurance_product {
  margin: 14px 0 !important;
}
#product .blockreassurance_product > div {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}
#product .blockreassurance_product .item-product {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px;
  background: #fff;
  border: 0.5px solid #F0E0D0;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  margin: 0 !important;
}
#product .blockreassurance_product .item-product svg,
#product .blockreassurance_product .item-product img {
  width: 32px !important;
  height: 32px !important;
  margin-bottom: 4px;
  flex-shrink: 0;
}
#product .blockreassurance_product .item-product .block-title {
  font-family: var(--font-corps) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2C2C2A !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  display: block !important;
}
#product .blockreassurance_product .item-product p,
#product .blockreassurance_product .item-product span:not(.block-title) {
  font-family: var(--font-corps) !important;
  font-size: 11px !important;
  font-weight: 500;
  color: #888780 !important;
  margin: 2px 0 0 !important;
  line-height: 1.3 !important;
}
@media (max-width: 575px) {
  #product .blockreassurance_product > div {
    grid-template-columns: 1fr !important;
  }
  #product .blockreassurance_product .item-product {
    flex-direction: row !important;
    text-align: left !important;
    gap: 12px;
  }
}

/* --- Trust badges blockreassurance — structure 3 div directs --- */
#product .blockreassurance_product {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  margin: 14px 0 !important;
}
#product .blockreassurance_product > div:not(.clearfix) {
  background: #fff !important;
  border: 0.5px solid #F0E0D0 !important;
  border-radius: 8px !important;
  padding: 12px 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px;
  margin: 0 !important;
  width: auto !important;
  min-height: auto !important;
}
#product .blockreassurance_product > div.clearfix {
  display: none !important;
}
#product .blockreassurance_product .item-product {
  display: block !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}
#product .blockreassurance_product .item-product svg {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  margin: 0 auto !important;
}
#product .blockreassurance_product .block-title {
  font-family: var(--font-corps) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2C2C2A !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  display: block !important;
  text-align: center !important;
}
#product .blockreassurance_product p {
  font-family: var(--font-corps) !important;
  font-size: 11px !important;
  font-weight: 400;
  color: #888780 !important;
  margin: 2px 0 0 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}
@media (max-width: 575px) {
  #product .blockreassurance_product {
    grid-template-columns: 1fr !important;
  }
}

/* ============== EDUNOVA — GALERIE THUMBS LATÉRAUX (style eveil-montessori) ============== */

/* Wrapper colonne thumbs gauche */
#product .images-container-left .col-left-product-thumbs {
  flex: 0 0 96px !important;
  max-width: 96px !important;
  padding-right: 12px !important;
}
#product .images-container-left .col-left-product-cover {
  flex: 1 1 auto !important;
  max-width: calc(100% - 96px) !important;
}

/* Image principale carrée */
#product .images-container-left .product-cover,
#product .images-container-left .product-lmage-large,
#product .images-container-left .swiper-slide-active .product-lmage-large {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid #F0E0D0;
}
#product .images-container-left .product-cover img,
#product .images-container-left .js-qv-product-cover img,
#product .images-container-left .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 12px;
}

/* Thumbs verticales */
#product .images-container-left .swiper-thumbs .swiper-wrapper {
  gap: 8px;
}
#product .images-container-left .swiper-thumbs .swiper-slide {
  width: 84px !important;
  height: 84px !important;
  margin-bottom: 8px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1.5px solid transparent !important;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
#product .images-container-left .swiper-thumbs .swiper-slide-thumb-active,
#product .images-container-left .swiper-thumbs .swiper-slide.js-thumb-selected {
  border-color: var(--color-bordeaux) !important;
}
#product .images-container-left .swiper-thumbs .thumb-container {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
#product .images-container-left .swiper-thumbs .thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Hauteur du conteneur de thumbs : adapte à l'image principale */
#product .images-container-left #product-images-thumbs {
  max-height: 100%;
}

/* Mobile : thumbs en bas (reset) */
@media (max-width: 767px) {
  #product .images-container-left .col-left-product-thumbs,
  #product .images-container-left .col-left-product-cover {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  #product .images-container-left .row.no-gutters {
    flex-direction: column;
  }
  #product .images-container-left .col-left-product-thumbs {
    order: 2;
    margin-top: 12px;
  }
  #product .images-container-left .col-left-product-cover {
    order: 1;
  }
  #product .images-container-left .swiper-thumbs .swiper-wrapper {
    flex-direction: row;
  }
}

/* ============================================================
   EDUNOVA — FILTRES NICHE + SOUS-CATÉGORIES (2026-05-01)
   Charte: bordeaux #911435, rose poudre #FDEEEB, rose moyen #FFB29E,
           jaune accent #F3A200, bordeaux dark hover #6f0e29
   Fonts:  Borel (titres décor), Poppins (UI)
   ============================================================ */

/* ===== 1) BLOC SOUS-CATÉGORIES EN HAUT DE PAGE CATÉGORIE ===== */
.edu-subcat-block {
    margin: 1rem 0 2rem;
    padding: 0;
}
.edu-subcat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.edu-subcat-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px 14px;
    background: #fff;
    border: 1px solid #F0E0D0;
    border-radius: 14px;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}
.edu-subcat-card:hover {
    transform: translateY(-3px);
    border-color: #911435;
    box-shadow: 0 8px 22px rgba(145, 20, 53, .10);
}
.edu-subcat-thumb {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #FDEEEB;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.edu-subcat-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.edu-subcat-thumb .edu-subcat-icon svg {
    width: 36px; height: 36px;
}
.edu-subcat-name {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: .92rem !important;
    color: #911435 !important;
    line-height: 1.25;
    margin-bottom: 4px;
    display: block;
}
.edu-subcat-card:hover .edu-subcat-name { color: #6f0e29 !important; }
.edu-subcat-count {
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    color: #8a8a8a;
    font-weight: 500;
}

@media (max-width: 1199px) { .edu-subcat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  {
    .edu-subcat-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .edu-subcat-thumb { width: 64px; height: 64px; }
    .edu-subcat-name  { font-size: .82rem !important; }
}

/* Masque l'ancien rendu warehouse si présent en parallèle */
.product-list-subcategories { display: none !important; }


/* ===== 2) SIDEBAR FILTRES PS_FACETEDSEARCH (DESKTOP) ===== */
#search_filters_wrapper, #search_filters {
    font-family: 'Poppins', sans-serif !important;
}
@media (min-width: 992px) {
    #search_filters_wrapper {
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        scrollbar-width: thin;
        padding-right: 6px;
    }
    #search_filters_wrapper::-webkit-scrollbar { width: 6px; }
    #search_filters_wrapper::-webkit-scrollbar-thumb { background: #FFB29E; border-radius: 3px; }
}
#search_filters {
    background: #fff;
    border: 1px solid #F0E0D0;
    border-radius: 14px;
    padding: 18px 18px 8px;
}
#search_filters .h6,
#search_filters .facet-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: .95rem !important;
    color: #911435 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #FDEEEB;
    padding-bottom: 8px;
}
#search_filters .facet { margin-bottom: 18px; padding-bottom: 4px; }
#search_filters .facet:last-child { border-bottom: none; }

/* Checkboxes */
#search_filters .facet-label {
    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    font-size: .88rem;
    color: #444;
    line-height: 1.35;
    transition: color .15s;
}
#search_filters .facet-label:hover { color: #911435; }
#search_filters .facet-label .custom-checkbox,
#search_filters .facet-label input[type="checkbox"] {
    margin-right: 9px;
    width: 18px; height: 18px;
    accent-color: #911435;
    flex-shrink: 0;
}
#search_filters .magnitude {
    color: #999;
    font-size: .78rem;
    margin-left: auto;
    padding-left: 6px;
}

/* Facet active */
#search_filters .facet-label--checkbox-active,
#search_filters input[type="checkbox"]:checked + label,
#search_filters .active a {
    color: #911435 !important;
    font-weight: 600;
}

/* Slider prix */
#search_filters .ui-slider {
    background: #FDEEEB;
    height: 6px;
    border-radius: 3px;
    border: none;
    margin: 18px 6px 12px;
    position: relative;
}
#search_filters .ui-slider .ui-slider-range {
    background: #911435;
    height: 6px;
    border-radius: 3px;
}
#search_filters .ui-slider .ui-slider-handle {
    width: 18px; height: 18px;
    background: #fff;
    border: 2px solid #911435;
    border-radius: 50%;
    top: -7px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(145, 20, 53, .25);
}
#search_filters .ui-slider .ui-slider-handle:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 178, 158, .45); }
#search_filters [data-toggle="collapse"] { color: #911435; text-decoration: none; }


/* ===== 3) PILLS FILTRES ACTIFS (au-dessus de la grille produits) ===== */
.js-active-search-filters,
#js-active-search-filters,
.active_filters {
    margin: 14px 0 18px !important;
    padding: 12px 14px !important;
    background: #FDEEEB !important;
    border-radius: 10px !important;
    border: 1px solid #FFB29E40 !important;
}
.active_filters .active-filter-title,
.active_filters > p:first-child {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    color: #911435 !important;
    margin-right: 10px;
    font-size: .88rem;
}
.active_filters .filter-block,
.js-search-filter-button {
    display: inline-flex !important;
    align-items: center;
    background: #fff !important;
    border: 1px solid #911435 !important;
    color: #911435 !important;
    border-radius: 22px !important;
    padding: 4px 14px !important;
    margin: 3px 6px 3px 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: .83rem !important;
    font-weight: 500 !important;
    transition: all .15s;
    cursor: pointer;
    text-decoration: none !important;
}
.active_filters .filter-block:hover,
.js-search-filter-button:hover {
    background: #911435 !important;
    color: #fff !important;
}
.active_filters .filter-block .close,
.active_filters .filter-block i,
.js-search-filter-button .close {
    margin-left: 8px !important;
    font-size: 1rem;
    color: inherit !important;
    opacity: .8;
}
.js-search-filters-clear-all,
.js-search-filters-clear-all-link {
    background: #F3A200 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 22px !important;
    padding: 5px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: .82rem !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-left: 6px;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none !important;
}
.js-search-filters-clear-all:hover { background: #d68a00 !important; }


/* ===== 4) DRAWER MOBILE FILTRE ===== */
@media (max-width: 991px) {
    /* Bouton sticky bottom */
    .edu-mobile-filter-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 999;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #fff;
        border-top: 1px solid #F0E0D0;
        box-shadow: 0 -4px 14px rgba(0,0,0,.06);
        padding: 10px 12px;
        gap: 10px;
    }
    .edu-mobile-filter-bar button {
        background: #911435;
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 12px 16px;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: .9rem;
        cursor: pointer;
    }
    .edu-mobile-filter-bar button:active { background: #6f0e29; }
    .edu-mobile-filter-bar button.outline {
        background: #fff;
        color: #911435;
        border: 1.5px solid #911435;
    }

    #search_filters_wrapper {
        position: fixed !important;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: #fff;
        z-index: 1050;
        transform: translateY(100%);
        transition: transform .25s ease;
        overflow-y: auto;
        padding: 0;
        max-height: none;
    }
    #search_filters_wrapper.is-open {
        transform: translateY(0);
    }
    #search_filters_wrapper::before {
        content: 'Filtrer';
        display: block;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        color: #911435;
        font-size: 1.1rem;
        padding: 18px 18px 10px;
        border-bottom: 1px solid #FDEEEB;
    }
    .edu-filter-close {
        position: absolute;
        top: 10px; right: 10px;
        width: 36px; height: 36px;
        background: #fff;
        border: 1px solid #FDEEEB;
        border-radius: 50%;
        font-size: 1.4rem;
        color: #911435;
        cursor: pointer;
        line-height: 1;
        z-index: 10;
        display: grid;
        place-items: center;
        box-shadow: 0 2px 6px rgba(145,20,53,0.12);
    }
    /* Espace pour la X au-dessus du header EFFACER/OK */
    body.edu-filter-open #search_filters_wrapper { padding-top: 8px !important; }
    /* Encart vide des filtres actifs : masquer quand .hide ou empty */
    #js-active-search-filters.hide,
    #js-active-search-filters:empty,
    .active_filters:empty { display: none !important; }
    .active_filters .active-filter-title:empty { display: none; }
    .active_filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

    /* FontAwesome non charge: masquer le <i> et rajouter un X texte propre */
    .js-search-filters-clear-all i.fa { display: none !important; }
    .js-search-filters-clear-all::before {
        content: "×";
        margin-right: 8px;
        font-weight: 700;
        font-size: 1.1em;
        line-height: 1;
        display: inline-block;
    }
    body.edu-filter-open { overflow: hidden; }

    /* Espace bas pour ne pas masquer dernière row par la barre */
    main, #main { padding-bottom: 80px; }
}
@media (min-width: 992px) {
    .edu-mobile-filter-bar { display: none !important; }
}


/* ===== 5) GRILLE PRODUITS — sticky filter side ===== */
@media (min-width: 992px) {
    #content-wrapper.col-lg-9,
    #content-wrapper.col-md-9 {
        padding-left: 28px;
    }
}

/* Compteur résultats au-dessus de la grille */
.total-products,
#js-product-list-top .total-products p {
    font-family: 'Poppins', sans-serif !important;
    color: #555;
    font-size: .9rem;
}
.total-products strong { color: #911435; font-weight: 600; }

/* ===== 6) FILTRES EN ACCORDÉON (UX collapsed-by-default) ===== */
#search_filters .facet { position: relative; }
#search_filters .facet-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
    transition: color .15s;
}
#search_filters .facet-title::after {
    content: '';
    width: 10px; height: 10px;
    border-right: 2px solid #911435;
    border-bottom: 2px solid #911435;
    transform: rotate(-45deg);
    transition: transform .22s ease;
    margin-left: 10px;
    flex-shrink: 0;
    margin-top: -3px;
}
#search_filters .facet.is-open .facet-title::after {
    transform: rotate(45deg);
    margin-top: 3px;
}
#search_filters .facet-title:hover { color: #6f0e29 !important; }
#search_filters .facet > ul,
#search_filters .facet > .facet-block,
#search_filters .facet > div:not(.facet-title-wrapper),
#search_filters .facet .ui-slider,
#search_filters .facet .faceted-slider {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, opacity .2s ease, margin .2s ease;
    opacity: 0;
    margin-top: 0 !important;
}
#search_filters .facet.is-open > ul,
#search_filters .facet.is-open > .facet-block,
#search_filters .facet.is-open > div:not(.facet-title-wrapper),
#search_filters .facet.is-open .ui-slider,
#search_filters .facet.is-open .faceted-slider {
    max-height: 800px;
    opacity: 1;
    overflow-y: auto;
    margin-top: 8px !important;
    padding-top: 4px;
}
#search_filters .facet.is-open > ul {
    border-top: 1px solid #FDEEEB;
    padding-top: 10px;
}

/* "Voir plus" toggle des facets longs reste visible */
#search_filters .facet [data-toggle="collapse"] { display: block; }


/* ===== 6b) DESKTOP — facets toujours ouverts ===== */
@media (min-width: 992px) {
  #search_filters .facet > ul,
  #search_filters .facet > .facet-block,
  #search_filters .facet > div:not(.facet-title-wrapper),
  #search_filters .facet .ui-slider,
  #search_filters .facet .faceted-slider {
    max-height: 1000px !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    margin-top: 8px !important;
    pointer-events: auto !important;
  }
  /* Désactiver le cursor pointer sur desktop (pas de toggle) */
  #search_filters .facet-title { cursor: default; }
  #search_filters .facet-title::after { display: none !important; }
}

/* ===== 7) FIX VIDE SIDEBAR + ENCART AIDE ===== */
@media (min-width: 992px) {
    /* Empêche la col sidebar d'étirer son fond avec la grid produits */
    #wrapper .row > #left-column,
    #wrapper .row > .col-lg-3 {
        align-self: flex-start;
    }
    #left-column { margin-bottom: 30px; }
    #search_filters_wrapper {
        max-height: none !important;
        overflow: visible !important;
        position: sticky;
        top: 90px;
    }
}

/* Encart aide sous les filtres */
.edu-help-card {
    margin-top: 18px;
    padding: 18px 18px 16px;
    background: linear-gradient(160deg, #FDEEEB 0%, #FFFFFF 100%);
    border: 1px solid #FFB29E;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
}
.edu-help-card__title {
    font-weight: 600;
    color: #911435;
    font-size: 1rem;
    margin: 0 0 6px;
}
.edu-help-card__text {
    color: #555;
    font-size: .82rem;
    line-height: 1.5;
    margin: 0 0 12px;
}
.edu-help-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 9px 14px;
    border-radius: 22px;
    font-weight: 600;
    font-size: .85rem;
    transition: background .15s;
}
.edu-help-card__cta:hover { background: #1ebe57; color: #fff !important; }
.edu-help-card__cta svg { width: 16px; height: 16px; }

/* ===== 8) FIX ESPACEMENT FACETS FERMÉS ===== */
#search_filters .facet {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 1px solid #FDEEEB;
}
#search_filters .facet:last-child { border-bottom: none; }
#search_filters .facet-title {
    padding: 14px 0 14px !important;
    margin: 0 !important;
    border-bottom: none !important;
}
#search_filters .facet.is-open .facet-title {
    padding-bottom: 6px !important;
}
#search_filters .facet.is-open > ul {
    padding-bottom: 12px;
    border-top: none;
    padding-top: 4px;
}
/* Cache facets vides (sans valeurs) */
#search_filters .facet:not(:has(li)):not(:has(.ui-slider)) { display: none; }
#search_filters {
    padding: 6px 18px !important;
}

/* ===== 9) ÉCRASE MARGINS RÉSIDUELS FACETS ===== */
#search_filters aside.facet,
#search_filters .facet {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #FDEEEB !important;
}
#search_filters .facet:last-child { border-bottom: none !important; }
#search_filters .facet > * { margin: 0 !important; }
#search_filters .facet-title {
    padding: 12px 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
#search_filters .facet > ul,
#search_filters .facet > div,
#search_filters .facet > .ui-slider,
#search_filters .facet > .faceted-slider {
    margin: 0 !important;
    padding: 0 !important;
}
#search_filters .facet.is-open > ul {
    padding: 4px 0 12px !important;
}
#search_filters .facet.is-open .facet-title { padding-bottom: 4px !important; }

/* === HERO V2 — 2026-05-11 === */
/* Hero homepage Edunova — remplace iqit_html_banners block id=2     */
/* Toutes les règles sont scopées sous .hero-v2 pour isoler du reste */
/* Rollback : supprimer ce bloc complet jusqu'au /* === FIN HERO V2 === */

/* === HERO V2 CAROUSEL — 2026-05-18 === */
.hero-v2__carousel { position: relative; }
.hero-v2__carousel .hero-v2__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: heroV2Fade 18s infinite ease-in-out;
}
.hero-v2__carousel .hero-v2__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-v2__carousel .hero-v2__slide:nth-child(1) { animation-delay: 0s; }
.hero-v2__carousel .hero-v2__slide:nth-child(2) { animation-delay: 6s; }
.hero-v2__carousel .hero-v2__slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroV2Fade {
  0%   { opacity: 1; }
  28%  { opacity: 1; }
  33%  { opacity: 0; }
  94%  { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2__carousel .hero-v2__slide { animation: none; opacity: 0; }
  .hero-v2__carousel .hero-v2__slide:first-child { opacity: 1; }
}
/* === FIN HERO V2 CAROUSEL === */
 */

html { scroll-behavior: smooth; }
.hero-v2 {
  scroll-margin-top: 80px;
  background:
    radial-gradient(circle at 90% 10%, rgba(243, 162, 0, 0.08), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255, 178, 158, 0.15), transparent 50%),
    #FDEEEB;
  overflow: hidden;
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #2a1418;
  line-height: 1.55;
}
.hero-v2 *,
.hero-v2 *::before,
.hero-v2 *::after { box-sizing: border-box; }

.hero-v2__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* Badge */
.hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #911435;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(145, 20, 53, 0.08);
}
.hero-v2__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #F3A200;
  border-radius: 50%;
}

/* Title */
.hero-v2__title {
  font-family: 'Borel', cursive;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  color: #911435;
  margin: 24px 0 0;
  font-weight: 400;
}
.hero-v2__title-line2 { display: block; position: relative; }
.hero-v2__highlight {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #F3A200;
}
.hero-v2__sparkle {
  position: absolute;
  top: -8px;
  right: -32px;
  width: 36px;
  height: 36px;
  color: #F3A200;
  animation: heroV2Spin 8s linear infinite;
}
@keyframes heroV2Spin { to { transform: rotate(360deg); } }

/* Lead */
.hero-v2__lead {
  font-size: 17px;
  color: #6b5258;
  margin: 24px 0 0;
  max-width: 540px;
}
.hero-v2__lead strong { color: #911435; font-weight: 600; }

/* Age selector */
.hero-v2__age { margin: 32px 0 0; }
.hero-v2__age-label {
  font-size: 13px;
  font-weight: 600;
  color: #2a1418;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-v2__age-label::before {
  content: "›";
  color: #911435;
  font-weight: 700;
}
.hero-v2__age-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-v2__pill {
  padding: 10px 20px;
  border-radius: 100px;
  background: #fff;
  border: 1.5px solid rgba(145, 20, 53, 0.15);
  font-size: 14px;
  font-weight: 500;
  color: #911435 !important;
  text-decoration: none !important;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-block;
}
.hero-v2__pill:hover {
  background: #911435;
  color: #fff !important;
  border-color: #911435;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145, 20, 53, 0.2);
}

/* CTAs */
.hero-v2__cta-row {
  margin: 32px 0 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-v2__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none !important;
  line-height: 1;
}
.hero-v2__btn--primary {
  background: linear-gradient(135deg, #F3A200, #ffb629);
  color: #911435 !important;
  box-shadow: 0 8px 20px rgba(243, 162, 0, 0.35);
}
.hero-v2__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(243, 162, 0, 0.45);
}
.hero-v2__btn--primary svg { width: 18px; height: 18px; }
.hero-v2__btn--secondary {
  background: transparent;
  color: #911435 !important;
  border: 1.5px solid #911435;
}
.hero-v2__btn--secondary:hover {
  background: #911435;
  color: #fff !important;
}

/* Trust badges */
.hero-v2__trust {
  margin: 36px 0 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-v2__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b5258;
}
.hero-v2__trust-item svg {
  width: 22px;
  height: 22px;
  color: #911435;
  flex-shrink: 0;
}
.hero-v2__trust-item strong {
  color: #2a1418;
  font-weight: 600;
  display: block;
  font-size: 14px;
}
.hero-v2__trust-item span {
  font-size: 11px;
  color: #6b5258;
}

/* Visual / photo */
.hero-v2__visual { position: relative; }
.hero-v2__photo {
  aspect-ratio: 4 / 4.5;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(145, 20, 53, 0.3),
    0 18px 36px -18px rgba(145, 20, 53, 0.25);
  position: relative;
  background: #FFB29E;
}
.hero-v2__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-v2__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(145, 20, 53, 0.15));
  pointer-events: none;
}
.hero-v2__dots {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(circle, #911435 1.5px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.25;
  z-index: 0;
}
.hero-v2__star {
  position: absolute;
  top: 24px;
  right: -16px;
  width: 64px;
  height: 64px;
  color: #F3A200;
  filter: drop-shadow(0 4px 12px rgba(243, 162, 0, 0.4));
  z-index: 2;
}

/* Yasmine card */
.hero-v2__yasmine {
  margin-top: 20px;
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(145, 20, 53, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.15);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
}
.hero-v2__yasmine:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.2);
}
.hero-v2__yasmine-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #25D366;
  background: linear-gradient(135deg, #FFB29E, #911435);
}
.hero-v2__yasmine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-v2__yasmine-text { flex: 1; }
.hero-v2__yasmine-title {
  font-size: 14px;
  font-weight: 600;
  color: #2a1418;
  margin: 0;
}
.hero-v2__yasmine-subtitle {
  font-size: 12px;
  color: #6b5258;
  margin: 2px 0 0;
}
.hero-v2__yasmine-btn {
  background: #25D366;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-v2__yasmine-btn svg { width: 22px; height: 22px; }

/* Sticker rond "Conçu selon la pédagogie Montessori ♥" */
.hero-v2__sticker {
  position: absolute;
  bottom: 16px;
  right: -10px;
  z-index: 3;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #911435, #6e0d27);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  box-shadow: 0 10px 24px rgba(145, 20, 53, 0.4);
  transform: rotate(-8deg);
  border: 3px solid #fff;
}
.hero-v2__sticker-top,
.hero-v2__sticker-mid {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.2;
  color: #fff;
}
.hero-v2__sticker-big {
  font-family: 'Borel', cursive;
  font-size: 18px;
  color: #fff;
  line-height: 1;
  margin: 3px 0 4px;
}
.hero-v2__sticker-heart {
  width: 14px;
  height: 14px;
  color: #F3A200;
}

/* Responsive : tablet (2 cols) */
@media (max-width: 980px) and (min-width: 641px) {
  .hero-v2__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    padding: 32px 22px 40px;
    align-items: center;
  }
  .hero-v2__content, .hero-v2__visual { min-width: 0; }
  .hero-v2__title { font-size: clamp(34px, 5.5vw, 46px); }
  .hero-v2__photo { aspect-ratio: 4 / 4.8; border-radius: 22px; }
  .hero-v2__star { width: 48px; height: 48px; }
  .hero-v2__sticker { width: 96px; height: 96px; bottom: 10px; right: -8px; }
  .hero-v2__sticker-big { font-size: 15px; }
}

/* Mobile : stack compact — photo immersive 4:5 en haut, content dense dessous */
@media (max-width: 640px) {
  .hero-v2__inner {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px 20px;
  }
  .hero-v2__visual {
    order: 1;
    min-width: 0;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
  }
  .hero-v2__content {
    order: 2;
    min-width: 0;
    margin-top: 0;
    padding: 4px 0 0 !important;
  }
  .hero-v2__photo {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
  }
  .hero-v2__photo {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    margin: 0 auto;
  }
  .hero-v2__photo img { object-position: center 30%; }
  .hero-v2__dots, .hero-v2__star { display: none; }
  .hero-v2__title {
    font-size: clamp(17px, 4.4vw, 22px);
    line-height: 1.0;
    margin-top: 12px;
    letter-spacing: -0.015em;
    word-spacing: -0.04em;
  }
  .hero-v2__title-line2 { white-space: nowrap; }
  .hero-v2__sparkle { width: 18px; height: 18px; right: -6px; top: -3px; }
  .hero-v2__lead {
    font-size: 12.5px;
    line-height: 1.45;
    margin-top: 10px;
  }
  .hero-v2__badge { font-size: 9px; padding: 4px 9px; letter-spacing: 0.05em; margin-top: 4px; }
  .hero-v2__cta-row {
    gap: 8px;
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-v2__cta-row .hero-v2__btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.2;
  }
  .hero-v2__btn--primary svg { width: 14px; height: 14px; }
  .hero-v2__age { display: none; }
  .hero-v2__trust {
    margin-top: 14px;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero-v2__trust-item {
    font-size: 11px;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .hero-v2__trust-item svg { width: 18px; height: 18px; }
  .hero-v2__trust-item strong { font-size: 12px; }
  /* Sticker mobile : carte horizontale propre en bas-droite (pas circulaire) */
  .hero-v2__sticker {
    width: auto;
    height: auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #911435;
    bottom: 14px;
    top: auto;
    right: 14px;
    padding: 8px 12px;
    border-width: 0;
    border: 1px solid rgba(145, 20, 53, 0.12);
    transform: none;
    box-shadow: 0 6px 18px rgba(145, 20, 53, 0.18);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 28px);
  }
  .hero-v2__sticker-top, .hero-v2__sticker-mid {
    display: none;
  }
  .hero-v2__sticker-big {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #911435;
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .hero-v2__sticker-big::before {
    content: "♥ Pédagogie ";
    font-weight: 500;
    color: #D00000;
    text-transform: none;
    font-size: 11px;
    margin-right: 2px;
  }
  .hero-v2__sticker-heart {
    display: none !important;
  }
  .hero-v2 .hero-v2__sticker {
    max-width: 220px;
  }
  .hero-v2__yasmine { display: none; }
}
@media (max-width: 380px) {
  .hero-v2__inner { padding: 14px 12px 22px; gap: 12px; }
  .hero-v2__title { font-size: clamp(16px, 4.6vw, 20px); }
  .hero-v2__lead { font-size: 12px; }
  .hero-v2__trust { flex-direction: column; gap: 6px; }
  .hero-v2__trust-item { flex: 1 1 100%; }
  .hero-v2__sticker { width: 72px; height: 72px; top: 10px; right: 10px; }
  .hero-v2__sticker-big { font-size: 11px; }
  .hero-v2__sticker-top, .hero-v2__sticker-mid { font-size: 6px; }
}

/* === CTA HIERARCHY MOBILE — secondary plus subtle === */
@media (max-width: 640px) {
  .hero-v2 .hero-v2__btn--secondary {
    background: transparent !important;
    border: none !important;
    color: #911435 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
  }
  .hero-v2 .hero-v2__btn--secondary:hover {
    background: transparent !important;
    color: #6e0d27 !important;
  }
  .hero-v2 .hero-v2__btn--primary {
    padding: 14px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }
}
/* === FIN CTA HIERARCHY === */
/* === HERO V2 MOBILE REBALANCE — 2026-05-18 === */
@media (max-width: 640px) {
  /* Photo carre = ratio neutre, fonctionne pour enfant+blocs / chambre / train */
  .hero-v2 .hero-v2__photo { aspect-ratio: 1 / 1 !important; }

  /* Inner : respiration laterale + verticale */
  .hero-v2 .hero-v2__inner { padding: 16px 16px 24px !important; gap: 0 !important; }

  /* Badge : lisibilite restauree */
  .hero-v2 .hero-v2__badge {
    font-size: 10.5px !important;
    padding: 6px 12px !important;
    letter-spacing: 0.08em !important;
    margin-top: 18px !important;
  }

  /* Title Borel : impact retabli (l'ame de la marque Edunova) */
  .hero-v2 .hero-v2__title {
    font-size: clamp(28px, 8.5vw, 38px) !important;
    line-height: 1.05 !important;
    margin-top: 16px !important;
    letter-spacing: -0.005em !important;
    word-spacing: 0 !important;
  }
  .hero-v2 .hero-v2__title-line2 { white-space: normal !important; }
  .hero-v2 .hero-v2__highlight { display: inline !important; }
  .hero-v2 .hero-v2__sparkle { width: 22px !important; height: 22px !important; right: -10px !important; top: -4px !important; }

  /* Lead : 14px confort lecture */
  .hero-v2 .hero-v2__lead {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-top: 14px !important;
    color: #6b5258 !important;
  }

  /* CTA hierarchie reaffirmee */
  .hero-v2 .hero-v2__cta-row { margin-top: 22px !important; gap: 6px !important; }
  .hero-v2 .hero-v2__btn--primary {
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  .hero-v2 .hero-v2__btn--secondary {
    padding: 10px 12px !important;
    font-size: 13.5px !important;
  }

  /* Trust : respire mieux */
  .hero-v2 .hero-v2__trust { margin-top: 20px !important; gap: 10px !important; }
  .hero-v2 .hero-v2__trust-item { font-size: 12px !important; }
  .hero-v2 .hero-v2__trust-item strong { font-size: 13px !important; }
  .hero-v2 .hero-v2__trust-item span { font-size: 11px !important; }

  /* Sticker : pill bordeaux chartee au lieu de blanc fade */
  .hero-v2 .hero-v2__sticker {
    background: #911435 !important;
    color: #fff !important;
    border: 1.5px solid #FFB29E !important;
    bottom: 12px !important;
    right: 12px !important;
    padding: 8px 14px !important;
    box-shadow: 0 8px 22px rgba(145, 20, 53, 0.35) !important;
  }
  .hero-v2 .hero-v2__sticker-big {
    color: #fff !important;
    font-family: 'Borel', cursive !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  .hero-v2 .hero-v2__sticker-big::before {
    content: "" !important;
    margin-right: 0 !important;
  }
  /* On reaffiche le coeur jaune (charte accent) */
  .hero-v2 .hero-v2__sticker-heart {
    display: block !important;
    color: #F3A200 !important;
    width: 14px !important;
    height: 14px !important;
  }
}
/* === FIN HERO V2 MOBILE REBALANCE === */

/* === FIN HERO V2 === */


/* === EDA3D HEADER CONTRAST FIX — 2026-05-12 ===
   Le carrousel d'age (.eda3d-shell) a un fond bordeaux #911435.
   Le theme warehouse force h2{color:#911435 !important} -> texte invisible.
   On retablit la couleur blanche du H2 + l'accent jaune charte. */
.eda3d-header h2 { color: #fff !important; font-family: 'Borel', cursive !important; }
.eda3d-header p  { color: #fff !important; opacity: .9; }
.eda3d-accent    { color: #F3A200 !important; }
/* === FIN EDA3D HEADER CONTRAST FIX === */


/* === WHATSAPP FLOAT — force couleur SVG blanche === */
#whatsapp-float,
#whatsapp-float:hover,
#whatsapp-float:focus,
#whatsapp-float:visited {
  color: #fff !important;
}
#whatsapp-float svg.wa-icon { fill: #fff; }
/* === FIN WHATSAPP FLOAT === */

/* === EDUNOVA MENU MOBILE — 2026-05-18 === */
@media (max-width: 991px) {
  /* Background charté + structure verticale */
  #iqitmegamenu-mobile.mobile-menu {
    background: linear-gradient(180deg, #FDEEEB 0%, #FFE8E0 60%, #FDEEEB 100%) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
  }

  /* Header sticky charté */
  #iqitmegamenu-mobile .mm-panel__header.mobile-menu__header-wrapper {
    background: rgba(253, 238, 235, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(145, 20, 53, 0.10) !important;
    padding: 12px 16px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 56px !important;
  }
  #iqitmegamenu-mobile .mobile-menu__header {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-height: 40px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #iqitmegamenu-mobile .mobile-menu__header::before {
    visibility: visible !important;
  }
  #iqitmegamenu-mobile .mobile-menu__header::before {
    content: "Edunova";
    font-family: 'Borel', cursive !important;
    font-size: 22px !important;
    color: #911435 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 0 !important;
  }
  #iqitmegamenu-mobile .mobile-menu__back-btn {
    display: none !important;
  }
  #iqitmegamenu-mobile .mobile-menu__close {
    background: #fff !important;
    border: 1px solid rgba(145, 20, 53, 0.15) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    color: #911435 !important;
    box-shadow: 0 4px 12px rgba(145, 20, 53, 0.12) !important;
    flex-shrink: 0 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    transition: all 0.2s !important;
  }
  #iqitmegamenu-mobile .mobile-menu__close:hover,
  #iqitmegamenu-mobile .mobile-menu__close:active {
    background: #911435 !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
  }
  #iqitmegamenu-mobile .mobile-menu__close .fa-times {
    font-size: 16px !important;
  }

  /* Section Par âge */
  #iqitmegamenu-mobile .edu-menu-age {
    padding: 18px 18px 12px !important;
    background: transparent;
  }
  #iqitmegamenu-mobile .edu-menu-age__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #911435;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #iqitmegamenu-mobile .edu-menu-age__label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #F3A200;
    border-radius: 50%;
    display: inline-block;
  }
  #iqitmegamenu-mobile .edu-menu-age__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  #iqitmegamenu-mobile .edu-menu-pill {
    background: #fff;
    color: #911435 !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid rgba(145, 20, 53, 0.15);
    transition: all 0.2s;
    line-height: 1;
    white-space: nowrap;
  }
  #iqitmegamenu-mobile .edu-menu-pill:hover,
  #iqitmegamenu-mobile .edu-menu-pill:active {
    background: #911435;
    color: #fff !important;
    border-color: #911435;
  }

  /* Label section catégories */
  #iqitmegamenu-mobile .edu-menu-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #911435;
    padding: 14px 18px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #iqitmegamenu-mobile .edu-menu-section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #F3A200;
    border-radius: 50%;
    display: inline-block;
  }

  /* Liste catégories chartée */
  #iqitmegamenu-mobile .mobile-menu__content {
    margin: 0 !important;
    padding: 0 !important;
  }
  #iqitmegamenu-mobile ul.mm-panel__scroll,
  #iqitmegamenu-mobile .mobile-menu__content > ul {
    padding: 0 12px !important;
    background: transparent !important;
  }
  #iqitmegamenu-mobile .mobile-menu__content li {
    list-style: none;
    border: none !important;
    background: transparent !important;
    margin-bottom: 6px;
  }
  #iqitmegamenu-mobile .mobile-menu__link {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    color: #2a1418 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    font-family: 'Poppins', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 1px 4px rgba(145, 20, 53, 0.05) !important;
    border: 1px solid rgba(145, 20, 53, 0.06) !important;
    transition: all 0.2s;
    text-decoration: none !important;
  }
  #iqitmegamenu-mobile .mobile-menu__link:hover,
  #iqitmegamenu-mobile .mobile-menu__link:active,
  #iqitmegamenu-mobile .mobile-menu__link.active {
    background: #911435 !important;
    color: #fff !important;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(145, 20, 53, 0.2) !important;
  }
  #iqitmegamenu-mobile .mobile-menu__link:hover .edu-menu-icon,
  #iqitmegamenu-mobile .mobile-menu__link:active .edu-menu-icon {
    color: #F3A200 !important;
  }
  #iqitmegamenu-mobile .mobile-menu__link:hover .mobile-menu__link-arrow svg,
  #iqitmegamenu-mobile .mobile-menu__link:active .mobile-menu__link-arrow svg,
  #iqitmegamenu-mobile .mobile-menu__link:hover .fa,
  #iqitmegamenu-mobile .mobile-menu__link:active .fa {
    color: #fff !important;
  }

  /* Icône SVG inline */
  #iqitmegamenu-mobile .edu-menu-icon {
    width: 22px;
    height: 22px;
    color: #911435;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #iqitmegamenu-mobile .edu-menu-icon svg {
    width: 100%;
    height: 100%;
  }

  /* Texte item prend tout l'espace, chevron à droite */
  #iqitmegamenu-mobile .mobile-menu__link-content,
  #iqitmegamenu-mobile .mobile-menu__link > span:not(.edu-menu-icon) {
    flex: 1;
    text-align: left;
  }
  #iqitmegamenu-mobile .mobile-menu__link-arrow,
  #iqitmegamenu-mobile .mobile-menu__link .fa-angle-down,
  #iqitmegamenu-mobile .mobile-menu__link .fa-chevron-down {
    color: #911435 !important;
    opacity: 0.6;
    margin-left: auto !important;
  }

  /* Carte Yasmine WhatsApp footer */
  #iqitmegamenu-mobile .edu-menu-yasmine {
    margin: 20px 14px 24px !important;
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: #fff !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25) !important;
  }
  #iqitmegamenu-mobile .edu-menu-yasmine__avatar {
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  #iqitmegamenu-mobile .edu-menu-yasmine__avatar svg {
    width: 22px; height: 22px;
  }
  #iqitmegamenu-mobile .edu-menu-yasmine__text { flex: 1; }
  #iqitmegamenu-mobile .edu-menu-yasmine__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.2;
  }
  #iqitmegamenu-mobile .edu-menu-yasmine__sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.3;
  }

  /* Submenu (mm-panel--child) restera fonctionnel — pas touché ici */
}
/* === FIN EDUNOVA MENU MOBILE === */

/* ============================================================
   Shipping banner panier — livraison gratuite dès 400 MAD
   ============================================================ */
.edu-shipping-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFF8F0;
  border: 1px solid #FFB29E;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.4;
}
.edu-shipping-banner--free {
  background: #f0fdf4;
  border-color: #6ee7a0;
  color: #166534;
}
.edu-shipping-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
