/* ===================================================================
   MY BABY+ — Complément au thème Kidschool
   -------------------------------------------------------------------
   Ce fichier n'ajoute QUE ce que le template ne fournissait pas :
   la carte produit, le bandeau défilant et le carrousel des produits
   phares. Il réutilise les variables de couleur de main.css.
   =================================================================== */

/* ---------------------------------------------------------------
   0. Pas de barre de défilement horizontale
      (les illustrations flottantes et les animations AOS débordent
      volontairement sur les côtés)
      « clip » sur body : ce qui dépasse ne compte plus dans la largeur
      de la page. Sans cela, un téléphone élargit la page pour tout
      montrer et la dézoome (bande blanche à droite).
   --------------------------------------------------------------- */
html { overflow-x: hidden; }
body { overflow-x: clip; }

/* ---------------------------------------------------------------
   1. Bandeau typographique défilant (remplace le carrousel de logos)
   --------------------------------------------------------------- */
.mb-bandeau {
    overflow: hidden;
    background: var(--main-600);
    padding-block: 16px;
    transform: rotate(-1.2deg);
    margin-block: 26px;
    position: relative;
    z-index: 2;
}

/* Trois bandes : rose, jaune, bleu clair — inclinaisons et vitesses differentes */
.mb-bandeau--rose  { background: #E8367F; transform: rotate(-1.4deg); }
.mb-bandeau--jaune { background: var(--main-two-600); transform: rotate(1.4deg); margin-top: -58px; }
.mb-bandeau--bleu  { background: #52BCEC; transform: rotate(-1deg);   margin-top: -58px; }

.mb-bandeau--jaune .mb-bandeau__piste { animation-duration: 28s; animation-direction: reverse; }
.mb-bandeau--bleu  .mb-bandeau__piste { animation-duration: 19s; }
.mb-bandeau--jaune .mb-bandeau__mot   { color: #101A2B; }
.mb-bandeau--jaune .mb-bandeau__etoile { color: #101A2B; opacity: .5; }

.mb-bandeau__piste {
    display: flex;
    width: max-content;
    animation: mbDefile 22s linear infinite;
    will-change: transform;
}

.mb-bandeau__groupe {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mb-bandeau__mot {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(18px, 2.1vw, 30px);
    line-height: 1;
    color: #fff;
    padding-inline: 22px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.mb-bandeau__etoile {
    color: #fff;
    opacity: 0.65;
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1;
    display: inline-flex;
}

.mb-bandeau:hover .mb-bandeau__piste {
    animation-play-state: paused;
}

@keyframes mbDefile {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .mb-bandeau__piste { animation: none; }
}

/* ---------------------------------------------------------------
   2. Carte produit
   --------------------------------------------------------------- */
.mb-produit {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    transition: transform .35s cubic-bezier(.22,1,.36,1),
                box-shadow .35s ease, border-color .35s ease;
}

.mb-produit:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 22px 48px rgba(16, 26, 43, .14);
}

/* --- visuel --- */
.mb-produit__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f7fa;
    overflow: hidden;
}

.mb-produit__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.mb-produit:hover .mb-produit__media img { transform: scale(1.08); }

/* --- pastilles --- */
.mb-produit__badge {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding-inline: 13px;
    border-radius: 30px;
    background: var(--main-600);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.mb-produit__badge--promo   { background: #E8367F; }
.mb-produit__badge--new     { background: #58B947; }
.mb-produit__badge--best    { background: #2FA8DC; }
.mb-produit__badge--premium { background: #101A2B; }
.mb-produit__badge--love    { background: var(--main-two-600); color: #101A2B; }

.mb-produit__remise {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 2;
    background: #101A2B;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

/* --- contenu --- */
.mb-produit__corps {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.mb-produit__cat {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #97a1b0;
    display: block;
    margin-bottom: 8px;
}

.mb-produit__nom {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.4;
    color: #101A2B;
    text-decoration: none;
    /* !important : la classe d-block de Bootstrap ecraserait le display */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    margin-bottom: 14px;
    transition: color .2s;
}

.mb-produit__nom:hover { color: var(--main-600); }

.mb-produit__bas { margin-top: auto; }

.mb-produit__prix-ligne {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.mb-produit__prix {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 21px;
    line-height: 1;
    color: var(--main-600);
    white-space: nowrap;
}

.mb-produit__prix-avant {
    font-size: 13.5px;
    color: #aab2bf;
    text-decoration: line-through;
    white-space: nowrap;
}

/* --- bouton --- */
.mb-produit__add {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 13px;
    background: #101A2B;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .25s, transform .2s;
}

.mb-produit__add i { font-size: 17px; line-height: 1; }
.mb-produit__add:hover { background: var(--main-600); }
.mb-produit__add:active { transform: scale(.97); }
.mb-produit__add.est-ajoute { background: #58B947; }

@media (max-width: 575px) {
    .mb-produit { border-radius: 18px; }
    .mb-produit__corps { padding: 14px 14px 16px; }
    .mb-produit__nom { font-size: 14px; }
    .mb-produit__prix { font-size: 18px; }
    .mb-produit__add { height: 40px; font-size: 13px; }
    .mb-produit__media img { padding: 12px; }
}

/* ---------------------------------------------------------------
   3. Section « nos engagements » (fond bleu nuit, animée)
   --------------------------------------------------------------- */
.mb-engage { position: relative; z-index: 2; }

/* Halos animés qui remplissent le fond */
.mb-engage__halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .26;
    pointer-events: none;
    z-index: 0;
}

.mb-engage__halo--1 { width: 420px; height: 420px; background: #E8367F; top: -90px;  left: -80px;  animation: mbFlotte 13s ease-in-out infinite; }
.mb-engage__halo--2 { width: 380px; height: 380px; background: #52BCEC; bottom: -110px; right: -60px; animation: mbFlotte 17s ease-in-out infinite reverse; }
.mb-engage__halo--3 { width: 300px; height: 300px; background: var(--main-two-600); top: 40%; left: 45%; animation: mbFlotte 21s ease-in-out infinite; }

@keyframes mbFlotte {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -40px) scale(1.16); }
}

.mb-engage__grille {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mb-engage__carte {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 24px;
    padding: 34px 26px 30px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform .4s cubic-bezier(.22,1,.36,1), background .4s, border-color .4s;
}

.mb-engage__carte:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .4);
}

.mb-engage__icone {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 34px;
    color: #fff;
    animation: mbRebond 3.4s ease-in-out infinite;
}

.mb-engage__carte:nth-child(1) .mb-engage__icone { background: linear-gradient(140deg, #FC4727, #ff7a4d); animation-delay: 0s; }
.mb-engage__carte:nth-child(2) .mb-engage__icone { background: linear-gradient(140deg, #58B947, #8DC63F); animation-delay: .4s; }
.mb-engage__carte:nth-child(3) .mb-engage__icone { background: linear-gradient(140deg, #2FA8DC, #52BCEC); animation-delay: .8s; }
.mb-engage__carte:nth-child(4) .mb-engage__icone { background: linear-gradient(140deg, #E8367F, #ff6fa5); animation-delay: 1.2s; }

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

.mb-engage__valeur {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.mb-engage__titre {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.mb-engage__texte {
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
    margin: 0;
}

@media (max-width: 1199px) { .mb-engage__grille { grid-template-columns: repeat(2, 1fr); } }

/* Petit écran : les halos (380 px, en partie hors du bloc) élargissaient la page */
@media (max-width: 991px) {
    .mb-engage { overflow-x: clip; }
}
@media (max-width: 575px)  { .mb-engage__grille { grid-template-columns: 1fr; gap: 16px; } }

@media (prefers-reduced-motion: reduce) {
    .mb-engage__halo, .mb-engage__icone { animation: none; }
}

/* ---------------------------------------------------------------
   4. Retouches ponctuelles
   --------------------------------------------------------------- */

/* Les compteurs ne sont pas sélectionnables (évite le surlignage bleu) */
.mb-no-select,
.mb-no-select * {
    -webkit-user-select: none;
    user-select: none;
}

/* Vignettes des cartes « familles » : cadrage propre, plus d'étirement */
.mb-famille__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    display: block;
    background: var(--neutral-50);
}

.mb-famille__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.mb-famille:hover .mb-famille__media img {
    transform: scale(1.06);
}

/* Avis clients : photo ronde */
.mb-avis__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 60px;
}

/* Pied de page : colonnes alignées */
.mb-footer-col h1,
.mb-footer-col h2 {
    min-height: 34px;
}

.mb-footer-produit img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 70px;
}

/* ---------------------------------------------------------------
   5. Pied de page : illustrations décalées vers l'extérieur
      (elles chevauchaient le texte de la première colonne)
   --------------------------------------------------------------- */
.mb-footer-deco {
    opacity: 0.55;
    pointer-events: none;
}

.mb-footer-deco--gauche { margin-inline-start: -170px !important; }
.mb-footer-deco--droite { margin-inline-end: -110px !important; }

@media (max-width: 1399px) {
    .mb-footer-deco { display: none !important; }
}

/* Colonnes du pied de page : rythme régulier */
.mb-footer-col ul,
.mb-footer-col .d-flex.flex-column { margin-top: 0; }

/* ---------------------------------------------------------------
   6. Pied de page : la ligne de contact tient sur une seule ligne
   --------------------------------------------------------------- */
.mb-footer-contact { flex-wrap: nowrap !important; }

.mb-footer-contact span.fw-medium { white-space: nowrap; }

.mb-footer-contact h1,
.mb-footer-contact h2 { white-space: nowrap; font-size: 19px; }

@media (max-width: 1199px) {
    .mb-footer-contact { flex-wrap: wrap !important; }
    .mb-footer-contact h1,
    .mb-footer-contact h2 { white-space: normal; font-size: 17px; }
}

/* ---------------------------------------------------------------
   7. Classes utilitaires absentes du thème
      (le template ne les définit pas ; sans elles certains éléments
       n'avaient AUCUNE contrainte de taille — image du panier, etc.)
      Échelle du thème : tw-w-15 = 3.75rem, soit N x 0.25rem.
   --------------------------------------------------------------- */
.tw-w-20 { width: 5rem; }
.tw-h-20 { height: 5rem; }
.tw-w-25 { width: 6.25rem; }
.tw-h-25 { height: 6.25rem; }
.tw-h-200-px { height: 200px; }
.tw-pt-110-px { padding-top: 110px; }
.tw-rounded-20-px { border-radius: 20px; }

/* ---------------------------------------------------------------
   8. Bloc « Comment passer commande ? »
      La forme organique orange est une image de fond 1170x562.
      En « cover », dès que le bloc devient plus haut que ce ratio
      (texte français plus long), l'image déborde et se retrouve
      coupée à gauche ET à droite. On l'ajuste donc au bloc.
   --------------------------------------------------------------- */
.mb-cta-forme {
    background-size: 100% 100% !important;
    background-position: center center !important;
}

/* ---------------------------------------------------------------
   9. Logo
      Le gabarit ne bornait pas la taille du logo : il s'affichait
      a sa taille naturelle, trop grand dans l'en-tete comme dans
      le pied de page.
   --------------------------------------------------------------- */
.mb-logo { max-width: 120px; height: auto; }
.mb-logo--pied { max-width: 132px; }

@media (max-width: 991px) {
    .mb-logo { max-width: 104px; }
}

/* ---------------------------------------------------------------
   10. Visuels produits : coins arrondis
       Le visuel d'attente est un carre plein ; sans rayon ses angles
       tranchaient avec les cartes, elles-memes arrondies.
   --------------------------------------------------------------- */
img[src*="/products/"] {
    border-radius: 14px;
}

.mb-produit__media img {
    border-radius: 16px;
}

/* ---------------------------------------------------------------
   10 bis. Bloc newsletter : forme orange entière
       La forme est un masque (1169 x 448). En « cover », dès que le
       bloc devient plus haut que ce ratio (titre français sur 3 lignes),
       le masque déborde et la forme est coupée net à droite.
       On l'ajuste au bloc, comme le bloc « Comment passer commande ».
   --------------------------------------------------------------- */
@media (min-width: 1400px) {
    .choose-us-musk-bg-img5 {
        -webkit-mask-image: url(../images/bg/newsletter-bg-img1.png);
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        -webkit-mask-position: center;
        mask-size: 100% 100%;
        mask-position: center;
    }
}

/* pied de page : la colonne « Coups de coeur » n'a plus de vignettes */
.mb-footer-produit > span:empty,
.mb-footer-produit > span:not(:has(img)) {
    display: none;
}

/* ===================================================================
   11. Bandeau d'annonce (tout en haut, texte réglé dans l'administration)
   =================================================================== */
.mb-annonce {
    background: #02023F;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.35;
    position: relative;
    z-index: 5;
}

.mb-annonce .container { padding-block: 9px; }

.mb-annonce__texte {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 28px;
    font-weight: 600;
    text-align: center;
}

.mb-annonce__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mb-annonce__item i {
    color: var(--main-two-600);
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 575px) {
    .mb-annonce { font-size: 12.5px; }
    .mb-annonce__texte { gap: 3px 16px; }
    .mb-annonce__item:nth-child(n+3) { display: none; }
}

/* ===================================================================
   12. Accès rapide aux rayons : pictogrammes sous le menu
   =================================================================== */
.mb-acces {
    background: var(--main-two-200);
    padding: 26px 0 8px;
    position: relative;
    z-index: 4;
}

.mb-acces__liste {
    list-style: none;
    margin: 0;
    padding: 4px 4px 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.mb-acces__liste::-webkit-scrollbar { display: none; }

/* centré quand tout tient, défilant sans rien couper quand la place manque */
.mb-acces__case { flex: 0 0 auto; scroll-snap-align: start; }
.mb-acces__case:first-child { margin-inline-start: auto; }
.mb-acces__case:last-child { margin-inline-end: auto; }

.mb-acces__lien {
    --fond: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    width: 112px;
    padding-top: 4px;
    text-decoration: none;
    color: #101A2B;
}

.mb-acces__pastille {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--fond);
    color: var(--c);
    display: grid;
    place-items: center;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(16, 26, 43, .07);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .25s, color .25s,
                box-shadow .35s, border-color .25s;
}

.mb-picto { display: block; }
.mb-picto .o { fill: var(--fond, #fff); transition: fill .25s; }
.mb-picto .t { fill: currentColor; fill-opacity: .2; }
.mb-picto .p { fill: currentColor; }

.mb-acces__pastille .mb-picto { width: 50px; height: 50px; }

.mb-acces__nom {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.25;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    transition: color .25s;
}

/* promotions et nouveautés : pastille pleine, pour qu'on les repère tout de suite */
.mb-acces__lien.est-special { --fond: var(--c); }
.mb-acces__lien.est-special .mb-acces__pastille { color: #fff; }

.mb-acces__lien:hover,
.mb-acces__lien:focus-visible { --fond: var(--c); color: var(--c); }

.mb-acces__lien:hover .mb-acces__pastille,
.mb-acces__lien:focus-visible .mb-acces__pastille {
    color: #fff;
    transform: translateY(-6px) rotate(-4deg);
    box-shadow: 0 16px 30px rgba(16, 26, 43, .16);
}

.mb-acces__lien:focus-visible { outline: none; }
.mb-acces__lien:focus-visible .mb-acces__pastille { border-color: #101A2B; }

.mb-acces__lien.est-actif .mb-acces__pastille { border-color: var(--c); }
.mb-acces__lien.est-actif .mb-acces__nom { color: var(--c); }

/* l'accès rapide prend déjà de la hauteur : la section qui suit remonte d'autant */
.mb-acces + section { padding-top: 24px !important; }
.mb-acces + section.breadcrumb { padding-top: 60px !important; }

@media (max-width: 991px) {
    .mb-acces { padding-top: 18px; }
    .mb-acces__lien { width: 92px; gap: 9px; }
    .mb-acces__pastille { width: 70px; height: 70px; }
    .mb-acces__pastille .mb-picto { width: 41px; height: 41px; }
    .mb-acces__nom { font-size: 11px; letter-spacing: .04em; }
}

@media (max-width: 767px) {
    /* on devine qu'il reste des rayons à droite */
    .mb-acces__liste {
        -webkit-mask-image: linear-gradient(to right, #000 86%, transparent);
        mask-image: linear-gradient(to right, #000 86%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mb-acces__pastille { transition: none; }
    .mb-acces__lien:hover .mb-acces__pastille { transform: none; }
}

/* ===================================================================
   13. Stock : rupture, quantités limitées
   =================================================================== */
.mb-produit__rupture {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-7deg);
    background: #101A2B;
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(16, 26, 43, .28);
    pointer-events: none;
}

.mb-produit.est-epuise .mb-produit__media img {
    filter: grayscale(.85);
    opacity: .5;
}

.mb-produit.est-epuise .mb-produit__prix { color: #8b95a5; }

.mb-produit__add.est-indispo {
    background: #eef0f4;
    color: #101A2B;
    text-decoration: none;
}

.mb-produit__add.est-indispo:hover { background: #101A2B; color: #fff; }

.mb-produit__stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #D9480F;
    margin: -6px 0 12px;
}

/* fiche produit */
[data-mb-p-desc] { white-space: pre-line; } /* les retours à la ligne saisis dans l'administration */
[data-mb-p-img] { position: relative; }
.mb-produit__rupture--fiche { font-size: 16px; padding: 14px 24px; }
[data-mb-p-img]:has(.mb-produit__rupture) img { filter: grayscale(.8); opacity: .55; }

.mb-dispo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 40px;
}

.mb-dispo i { font-size: 18px; }
.mb-dispo.est-ok      { background: #E7F7E9; color: #17803D; }
.mb-dispo.est-faible  { background: #FFF0E0; color: #C2410C; }
.mb-dispo.est-rupture { background: #FDECEC; color: #B4231F; }

.mb-retour {
    background: #FFF6E5;
    border: 1px solid #FFE0A3;
    border-radius: 20px;
    padding: 20px 22px;
}

.mb-retour[hidden],
[data-mb-p-achat][hidden] { display: none !important; }

.mb-retour__texte {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #4a3b12;
}

.mb-retour__btn,
.mb-bientot__wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 22px;
    border-radius: 16px;
    text-decoration: none;
    transition: background .25s;
}

.mb-retour__btn:hover,
.mb-bientot__wa:hover { background: #1DA851; color: #fff; }

.mb-retour__btn i,
.mb-bientot__wa i { font-size: 20px; }

/* panier et commande */
.mb-avis-stock {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #FDECEC;
    color: #8F1D1A;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.55;
}

.mb-avis-stock i { font-size: 20px; flex: 0 0 auto; margin-top: 1px; }

.mb-ligne-stock {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 700;
}

.mb-ligne-stock.est-rupture { color: #B4231F; }
.mb-ligne-stock.est-faible  { color: #C2410C; }

.mb-ligne-bloquee {
    border-color: #f2b8b3 !important;
    background: #FFF8F7 !important;
}

.mb-valider-bloque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: #e9ebf0;
    color: #5b6475;
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ===================================================================
   14. Boutique : article retiré, famille bientôt en ligne
   =================================================================== */
.mb-avis-retire {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #FFF6E5;
    border: 1px solid #FFE0A3;
    color: #4a3b12;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.55;
}

.mb-avis-retire i {
    font-size: 22px;
    color: #E89A00;
    flex: 0 0 auto;
}

.mb-bientot {
    text-align: center;
    background: #fff;
    border: 2px dashed #ffcdbf;
    border-radius: 26px;
    padding: 56px 24px;
}

.mb-bientot__icone {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #FFF1ED;
    color: var(--main-600);
    display: inline-grid;
    place-items: center;
    font-size: 36px;
    margin-bottom: 18px;
}

.mb-bientot p { max-width: 560px; margin-inline: auto; }

.mb-bientot__tout {
    display: inline-flex;
    align-items: center;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    padding: 11px 22px;
    border-radius: 16px;
    border: 2px solid #101A2B;
    color: #101A2B;
    text-decoration: none;
    transition: background .25s, color .25s;
}

.mb-bientot__tout:hover { background: #101A2B; color: #fff; }

/* ===================================================================
   15. Accueil : tuiles promo et onglets de produits
   =================================================================== */
.mb-tuile {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 218px;
    border-radius: 26px;
    overflow: hidden;
    padding: 24px 0 24px 26px;
    text-decoration: none;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s;
}

.mb-tuile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(16, 26, 43, .13);
}

.mb-tuile--miel   { background: #FFF0CC; }
.mb-tuile--ciel   { background: #E2F3FC; }
.mb-tuile--rose   { background: #FDE6EF; }
.mb-tuile--menthe { background: #E5F5E1; }

.mb-tuile__texte {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: 54%;
}

.mb-tuile__remise {
    background: #E8367F;
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    padding: 6px 11px;
    border-radius: 30px;
}

.mb-tuile__nom {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: #101A2B;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mb-tuile__prix {
    margin-top: auto;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 25px;
    line-height: 1;
    color: var(--main-600);
    white-space: nowrap;
}

.mb-tuile__avant {
    font-size: 13.5px;
    color: #7d8796;
    text-decoration: line-through;
}

.mb-tuile__btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #101A2B;
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 17px;
    border-radius: 30px;
    transition: background .25s;
}

.mb-tuile:hover .mb-tuile__btn { background: var(--main-600); }

.mb-tuile__visuel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 48%;
    display: grid;
    place-items: center;
    padding: 16px 14px 16px 0;
}

.mb-tuile__visuel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 18px;
    mix-blend-mode: multiply;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.mb-tuile:hover .mb-tuile__visuel img { transform: scale(1.07) rotate(-2deg); }

.mb-onglets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
}

.mb-onglets[hidden] { display: none; }

.mb-onglet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #ececf1;
    background: #fff;
    color: #101A2B;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    padding: 11px 22px;
    border-radius: 40px;
    transition: border-color .25s, color .25s, background .25s, box-shadow .25s;
}

.mb-onglet[hidden] { display: none; }
.mb-onglet i { font-size: 18px; }
.mb-onglet:hover { border-color: var(--main-600); color: var(--main-600); }

.mb-onglet.est-actif {
    background: var(--main-600);
    border-color: var(--main-600);
    color: #fff;
    box-shadow: 0 10px 24px rgba(252, 71, 39, .28);
}

[data-mb-promos-bloc][hidden],
[data-mb-onglets-bloc][hidden],
[data-mb-similaires-bloc][hidden] { display: none !important; }

@media (max-width: 575px) {
    .mb-tuile { min-height: 190px; padding: 20px 0 20px 20px; }
    .mb-tuile__prix { font-size: 23px; }
    .mb-onglet { font-size: 14px; padding: 9px 16px; }
}

/* ===================================================================
   16. Téléphone : deux produits par ligne
       Les cartes font alors environ 165 px de large : tout est resserré
       et le bouton dit simplement « Ajouter ».
   =================================================================== */
.mb-produit__add-court { display: none; }

@media (max-width: 575px) {
    [data-mb-grid],
    [data-mb-onglet-grille],
    [data-mb-similaires],
    [data-mb-favoris] { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }

    .mb-produit { border-radius: 16px; }
    .mb-produit:hover { transform: none; }
    .mb-produit__media img { padding: 8px; border-radius: 12px; }
    .mb-produit__corps { padding: 10px 10px 12px; }

    .mb-produit__cat {
        font-size: 9.5px;
        letter-spacing: .04em;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mb-produit__nom { font-size: 13px; line-height: 1.35; margin-bottom: 8px; }
    .mb-produit__prix-ligne { gap: 2px 6px; margin-bottom: 8px; }
    .mb-produit__prix { font-size: 16px; }
    .mb-produit__prix-avant { font-size: 11px; }
    .mb-produit__stock { font-size: 10.5px; gap: 4px; margin: -4px 0 8px; }

    .mb-produit__add { height: 36px; font-size: 12.5px; gap: 6px; border-radius: 11px; }
    .mb-produit__add i { font-size: 15px; }
    .mb-produit__add-long { display: none; }
    .mb-produit__add-court { display: inline; }

    .mb-produit__badge {
        height: 20px;
        padding-inline: 8px;
        font-size: 9px;
        inset-block-start: 8px;
        inset-inline-start: 8px;
    }

    .mb-produit__remise {
        width: 34px;
        height: 34px;
        font-size: 10.5px;
        inset-block-start: 8px;
        inset-inline-end: 8px;
    }

    .mb-produit__rupture { font-size: 9.5px; letter-spacing: .04em; padding: 7px 9px; }
}

/* ===================================================================
   17. Téléphone : numéro et e-mail sur la même ligne, en haut
       (le gabarit les espaçait tant qu'ils passaient sur deux lignes)
   =================================================================== */
@media (max-width: 991px) {
    /* le bloc de droite (adresse, réseaux) est vide à cette taille :
       il gardait sa place et décalait le numéro et l'e-mail vers la gauche */
    body > .tw-py-3.bg-main-two-200 .container > .d-flex > .d-flex:last-child { display: none !important; }

    body > .tw-py-3.bg-main-two-200 .container > .d-flex > .d-flex:first-child {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    body > .tw-py-3.bg-main-two-200 .container > .d-flex > .d-flex:first-child {
        flex: 1 1 auto;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 4px 16px !important;
    }

    body > .tw-py-3.bg-main-two-200 .container > .d-flex > .d-flex:first-child a {
        font-size: 13.5px;
        white-space: nowrap;
    }

    body > .tw-py-3.bg-main-two-200 .container > .d-flex > .d-flex:first-child .tw-text-505 {
        font-size: 17px;
    }
}

/* ===================================================================
   18. Téléphone : textes centrés
       Les sections de présentation (accueil, magasin, avis, conseils,
       pied de page) et les infos des cartes produit sont centrées.
       Restent à gauche, pour la lecture : les formulaires, la FAQ,
       les articles et les pages de boutique (filtres, fiche, panier).
   =================================================================== */
@media (max-width: 767px) {
    body > section:not(.breadcrumb):not(:has(form)):not(:has([class*="accordion"])),
    body > div.bg-neutral-10,
    body > footer.footer {
        text-align: center;
    }

    :is(body > section:not(.breadcrumb):not(:has(form)):not(:has([class*="accordion"])), body > div.bg-neutral-10, body > footer.footer)
        .d-flex:not(:has(.swiper)):not(.swiper-wrapper):not(.mb-tuile) {
        justify-content: center !important;
    }

    :is(body > section:not(.breadcrumb):not(:has(form)):not(:has([class*="accordion"])), body > div.bg-neutral-10, body > footer.footer)
        [class*="max-w-"] {
        margin-inline: auto;
    }

    body > footer.footer ul { padding-inline-start: 0; }

    /* les tuiles promo gardent leur mise en page : texte à gauche, photo à droite */
    .mb-tuile { text-align: left; }

    .mb-produit__corps { text-align: center; }
    .mb-produit__prix-ligne,
    .mb-produit__stock { justify-content: center; }
}

/* ===================================================================
   19. Menu mobile
       Les familles en liste compacte (sans les grandes photos du menu
       ordinateur), et les sous-catégories en retrait sous chacune.
   =================================================================== */
.mobile-menu .mega-menu { padding: 0 0 6px !important; }
.mobile-menu .mega-menu [data-mb-familles] { --bs-gutter-x: 0; --bs-gutter-y: 0; margin: 0; }
.mobile-menu .mega-menu [data-mb-familles] > .col { padding: 0; }
.mobile-menu .mega-menu-item > .position-relative { display: none; }
.mobile-menu .mega-menu-item > .tw-mt-4 { margin-top: 0 !important; text-align: left !important; }

.mobile-menu .mega-menu-item > .tw-mt-4 > a {
    display: block !important;
    padding: 10px 0;
    border-bottom: 1px solid var(--neutral-200);
    font-size: 15px;
}

.mobile-menu .mega-menu-item > .tw-mt-4 > span { display: none !important; }
.mobile-menu .mega-menu > .d-flex { margin-top: 0 !important; padding-top: 10px !important; border-top: 0 !important; }
.mobile-menu .mega-menu > .d-flex > p { display: none; }

/* ===================================================================
   20. En-tête sur tablette et téléphone : recherche, favoris et panier
       restent accessibles (le gabarit les cachait sous 1200 px :
       impossible de rouvrir son panier depuis un téléphone)
   =================================================================== */
@media (max-width: 1199px) {
    .header .d-none:has(> a[href="panier"]),
    .header .d-none:has(> a[href="favoris"]) { display: block !important; }
}

@media (max-width: 767px) {
    .header .d-none:has(> .open-search) { display: block !important; }
}

@media (max-width: 575px) {
    .header nav.tw-p-6 { padding: 14px 16px !important; }
    .header nav > .d-flex,
    .header nav > .d-flex > .d-flex { gap: 8px !important; }
    .header .toggle-mobileMenu { margin-inline-start: 6px !important; }

    .header .open-search,
    .header a[href="panier"],
    .header a[href="favoris"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .header [data-mb-cart-count],
    .header [data-mb-fav-count] { width: 18px !important; height: 18px !important; font-size: 10px !important; }
}

/* ===================================================================
   21. Sous-catégories : vignettes en boutique, cases du filtre, liens du menu
   =================================================================== */
.mb-sous {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -12px 0 28px;
}

.mb-sous[hidden] { display: none; }

.mb-sous__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 104px;
    border: 0;
    background: none;
    padding: 0;
    color: #101A2B;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.2;
    text-align: center;
}

.mb-sous__img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #FFF3E0;
    color: var(--main-600);
    font-size: 30px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ececf1;
    transition: box-shadow .25s, transform .25s;
}

.mb-sous__img img { width: 100%; height: 100%; object-fit: cover; }

.mb-sous__btn:hover .mb-sous__img { box-shadow: 0 0 0 2px var(--main-600); transform: translateY(-2px); }
.mb-sous__btn:hover .mb-sous__nom { color: var(--main-600); }

.mb-sous__btn.est-actif .mb-sous__img { box-shadow: 0 0 0 3px var(--main-600); }
.mb-sous__btn.est-actif .mb-sous__nom { color: var(--main-600); }

.mb-sous__nb {
    font-size: 11.5px;
    font-weight: 600;
    background: #f2f3f7;
    color: #5b6475;
    border-radius: 20px;
    padding: 1px 8px;
}

.mb-sous__btn.est-actif .mb-sous__nb { background: var(--main-600); color: #fff; }

@media (max-width: 767px) {
    /* une seule ligne qui défile sous le doigt */
    .mb-sous {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 6px;
        margin: -16px -12px 22px;
        padding: 4px 12px 4px;
    }
    .mb-sous::-webkit-scrollbar { display: none; }
    .mb-sous__btn { flex: 0 0 auto; width: 84px; font-size: 12.5px; }
    .mb-sous__img { width: 66px; height: 66px; font-size: 24px; }
    /* centrées tant qu'elles tiennent, défilement normal sinon */
    .mb-sous__btn:first-child { margin-left: auto; }
    .mb-sous__btn:last-child { margin-right: auto; }
}

/* filtre de la boutique : sous-catégories en retrait sous leur famille */
.mb-fsous {
    margin: -6px 0 14px 9px;
    padding-left: 18px;
    border-left: 2px solid #f2f3f7;
}

.mb-fsous__case {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 15px;
    color: var(--paragraph-600);
}

.mb-fsous__case input { width: 17px; height: 17px; }
.mb-fsous__case:hover .mb-fsous__nom { color: var(--main-600); }
.mb-fsous__case input:checked + .mb-fsous__nom { color: var(--main-600); font-weight: 600; }

.mb-fsous__nb {
    margin-left: auto;
    font-size: 12px;
    color: #8a93a5;
    background: #f5f6f9;
    border-radius: 20px;
    padding: 0 8px;
}

/* menu : sous-catégories sous chaque famille */
.mb-menu-sous {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
}

.mb-menu-sous a {
    font-size: 13.5px;
    color: var(--paragraph-600);
    text-decoration: none;
    transition: color .2s;
}

.mb-menu-sous a:hover { color: var(--main-600); }

.mobile-menu .mb-menu-sous { display: block; margin: 0; padding: 0 0 4px 16px; }

.mobile-menu .mb-menu-sous a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed var(--neutral-200);
    font-size: 14px;
}

/* ===================================================================
   22. Fiche produit : galerie de plusieurs photos
   =================================================================== */
.mb-galerie { position: relative; }

.mb-galerie__fleche {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #101A2B;
    box-shadow: 0 4px 14px rgba(16, 26, 43, .14);
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: background .2s, color .2s;
    z-index: 2;
}

.mb-galerie__fleche:hover { background: var(--main-600); color: #fff; }
.mb-galerie__fleche.est-prec { left: 12px; }
.mb-galerie__fleche.est-suiv { right: 12px; }

.mb-galerie__compte {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 26, 43, .7);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 11px;
    z-index: 2;
}

[data-mb-p-vignettes][hidden] { display: none !important; }

@media (max-width: 575px) {
    .mb-galerie__fleche { width: 36px; height: 36px; font-size: 16px; }
    .mb-galerie__fleche.est-prec { left: 6px; }
    .mb-galerie__fleche.est-suiv { right: 6px; }
    [data-mb-p-vignettes] { justify-content: center; }
    [data-mb-p-vignettes] button { width: 64px !important; height: 64px !important; }
}
