/* Slider de l'accueil, pleine largeur (V10). Swiper Crafto. Palette MASSAN : pétrole #0D3A42, menthe #2EC99B.
   Section bord à bord (rayon 0, aucune 100vw) : chaque diapositive porte un .container interne qui aligne
   le texte, et les commandes suivent la même grille Bootstrap sans déborder. */

/* ── Cadre pleine largeur ─────────────────────────────────────────────── */
.massan-slider.massan-slider--fullwidth { position: relative; width: 100%; margin: 0; border-radius: 0; }
.massan-slider--fullwidth .massan-slider__swiper { position: relative; width: 100%; border-radius: 0; overflow: hidden; }

/* ── Diapositive : image cover toute largeur, texte dans un container ──── */
.massan-slide {
    position: relative; display: flex; align-items: center; width: 100%;
    min-height: 560px;                              /* secours sans unité svh */
    min-height: clamp(520px, 70svh, 680px);
    color: #fff; background: var(--massan-petrole, #0D3A42) center / cover no-repeat;
}
.massan-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13, 58, 66, .94) 0%, rgba(13, 58, 66, .78) 55%, rgba(13, 58, 66, .38) 100%);
}
.massan-slide--vendeur { background-image: url('/images/slides/massan-boutique-v1.jpeg'); }
.massan-slide--social { background-image: url('/images/slides/massan-pharmacie-v1.jpeg'); }
.massan-slide--commercial { background-image: linear-gradient(135deg, #0D3A42 0%, #14525C 60%, #1FAE84 160%); }
.massan-slide--commercial::before { background: none; }
.massan-slide .container { position: relative; z-index: 1; }
.massan-slide__corps { position: relative; max-width: 620px; padding: 56px 0; }
.massan-slide__kicker {
    display: inline-block; margin-bottom: 14px; font-size: .8125rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--massan-mint, #2EC99B);
}
/* Titre 44–52px : sélecteur spécifique pour surcharger .massan-main h2 (34px / 26px). */
.massan-slider--fullwidth .massan-slide__titre {
    margin: 0 0 14px; color: #fff; font-size: clamp(44px, 3.6vw, 52px);
    line-height: 1.1; letter-spacing: -.5px;
}
.massan-slider--fullwidth .massan-slide__texte {
    margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .9);
}

/* ── Commandes : grille Bootstrap identique au texte, sans déborder ────── */
.massan-slider__commandes { position: absolute; z-index: 5; left: 0; right: 0; bottom: 24px; pointer-events: none; }
.massan-slider__commandes-bar { display: flex; align-items: center; gap: 12px; pointer-events: none; }
.massan-slider__commandes-bar > * { pointer-events: auto; }
.massan-slider__prev, .massan-slider__next, .massan-slider__toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 22px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .55); background: rgba(13, 58, 66, .55); color: #fff;
    font-size: .9375rem; line-height: 1; transition: background-color .2s ease, border-color .2s ease;
}
.massan-slider__prev:hover, .massan-slider__next:hover, .massan-slider__toggle:hover {
    background: var(--massan-mint, #2EC99B); border-color: var(--massan-mint, #2EC99B); color: var(--massan-petrole, #0D3A42);
}
.massan-slider__prev:focus-visible, .massan-slider__next:focus-visible, .massan-slider__toggle:focus-visible,
.massan-slider .swiper-pagination-bullet:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.massan-slider__toggle { margin-left: auto; }
.massan-slider__toggle[hidden] { display: none; }
.massan-slider .massan-slider__pagination { position: static; display: flex; align-items: center; gap: 6px; width: auto; }
.massan-slider .swiper-pagination-bullet {
    width: 12px; height: 12px; margin: 0; background: #fff; opacity: .55; border-radius: 6px;
    transition: width .2s ease, opacity .2s ease, background-color .2s ease;
}
.massan-slider .swiper-pagination-bullet-active { width: 28px; opacity: 1; background: var(--massan-mint, #2EC99B); }

/* ── Mobile : hauteur adaptable au contenu, commandes dégagées ─────────── */
@media (max-width: 767px) {
    .massan-slide { min-height: 520px; }
    .massan-slide__corps { max-width: 100%; padding: 40px 0 132px; }
    .massan-slider--fullwidth .massan-slide__titre { font-size: 32px; }
    .massan-slider--fullwidth .massan-slide__texte { font-size: 16px; }
    .massan-slider__commandes { bottom: 20px; }
    .massan-slider__commandes-bar { flex-wrap: wrap; row-gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .massan-public:not(.massan-motion-opt-in) .massan-slider * { transition: none !important; }
}
