/* =========================================================
   Mshop Gadget — Carrousel de bannières marketing
   À charger dans le layout : css/carousel.css
   ========================================================= */

.mshop-hero {
    --rose: #EB1A61;
    --rose-dark: #C4104E;
    --nuit: #0E1B3D;
    --nuit-2: #16295C;
    --jaune: #FFD400;
    --cyan: #00E2D2;
    --ink: #111214;

    position: relative;
    width: 100%;
    overflow: hidden;
    /* border-radius: 16px; */
    background: #F1F1F3;
    margin-bottom: 1.25rem;
}

/* --- Ratios : large en desktop, plus haut en mobile --- */
.mshop-hero__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
}

@media (min-width: 576px) {
    .mshop-hero__viewport {
        aspect-ratio: 21 / 8;
    }
}

@media (min-width: 992px) {
    .mshop-hero__viewport {
        aspect-ratio: 1200 / 300;
    }
}

.mshop-hero__track {
    display: flex;
    height: 100%;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.mshop-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ============ THÈMES ============ */
.t-rose {
    background: linear-gradient(120deg, var(--rose) 0%, #D80438 100%);
    color: #fff;
}

.t-nuit {
    background: linear-gradient(120deg, var(--nuit) 0%, #061339 100%);
    color: #fff;
}

.t-clair {
    background: linear-gradient(120deg, #FFFFFF 0%, #F8F9F8 100%);
    color: var(--ink);
}

/* ============ FORMES DÉCORATIVES ============ */
.mshop-slide__shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-a {
    width: 340px;
    height: 340px;
    top: -140px;
    right: 18%;
    background: rgba(255, 255, 255, .07);
}

.shape-b {
    width: 200px;
    height: 200px;
    bottom: -110px;
    left: 22%;
    background: rgba(255, 255, 255, .05);
}

.t-clair .shape-a {
    background: rgba(235, 26, 97, .07);
}

.t-clair .shape-b {
    background: rgba(235, 26, 97, .05);
}

/* ============ CONTENU ============ */
.mshop-slide__content {
    position: relative;
    z-index: 3;
    padding: 1.1rem 1.15rem;
    max-width: 62%;
}

@media (min-width: 576px) {
    .mshop-slide__content {
        padding: 1.5rem 2rem;
        max-width: 56%;
    }
}

@media (min-width: 992px) {
    .mshop-slide__content {
        padding: 2rem 3rem;
        max-width: 52%;
    }
}

.mshop-slide__eyebrow {
    display: inline-block;
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    margin-bottom: .5rem;
}

.t-clair .mshop-slide__eyebrow {
    background: rgba(235, 26, 97, .1);
    color: var(--rose-dark);
}

@media (min-width: 576px) {
    .mshop-slide__eyebrow {
        font-size: .66rem;
        margin-bottom: .65rem;
    }
}

.mshop-slide__title {
    font-size: clamp(1.05rem, 4.2vw, 2.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 .35rem;
}

.mshop-slide__title em {
    font-style: normal;
    color: var(--jaune);
}

.t-clair .mshop-slide__title em {
    color: var(--rose);
}

.mshop-slide__sub {
    font-size: clamp(.7rem, 2.1vw, .95rem);
    line-height: 1.45;
    opacity: .9;
    margin: 0 0 .75rem;
    max-width: 34ch;
}

/* --- Pastilles d'arguments --- */
.mshop-slide__pills {
    display: none;
    flex-direction: column;
    gap: .3rem;
    margin: 0 0 .85rem;
}

@media (min-width: 768px) {
    .mshop-slide__pills {
        display: inline;
    }
}

.mshop-pill {
    background: #fff;
    color: var(--rose-dark);
    font-size: .76rem;
    font-weight: 700;
    padding: .38rem 1rem;
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
}

.t-nuit .mshop-pill {
    color: var(--nuit);
}

.t-clair .mshop-pill {
    background: var(--ink);
    color: #fff;
}

/* --- CTA --- */
.mshop-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.15rem;
    border-radius: 10px;
    font-size: clamp(.72rem, 2vw, .88rem);
    font-weight: 800;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.mshop-slide__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.cta-jaune {
    background: var(--jaune);
    color: var(--ink);
}

.cta-cyan {
    background: var(--cyan);
    color: var(--ink);
}

.cta-rose {
    background: var(--rose);
    color: #fff;
}

.cta-blanc {
    background: #fff;
    color: var(--rose-dark);
}

/* ============ VISUEL ============ */
.mshop-slide__visual {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 48%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.mshop-slide__visual img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
}

/* Sur mobile, le visuel reste visible mais en petit : sa largeur est en %
   (comme .mshop-slide__content), donc il se redimensionne automatiquement
   selon l'écran — pas de taille fixe en px à ajuster manuellement.
   object-fit:contain (ci-dessus) fait le reste : l'image rétrécit dans son
   conteneur sans être rognée. */
@media (max-width: 767px) {
    .mshop-slide__visual {
        width: 30%;
    }

    .mshop-slide__content {
        max-width: 68%;
    }
}

/* ============ NAVIGATION ============ */
.mshop-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .85);
    color: var(--ink);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
}

.mshop-hero:hover .mshop-hero__nav {
    display: flex;
}

.mshop-hero__nav:hover {
    background: #fff;
}

.mshop-hero__nav.prev {
    left: 12px;
}

.mshop-hero__nav.next {
    right: 12px;
}

@media (max-width: 767px) {
    .mshop-hero__nav {
        display: none !important;
    }
}

/* --- Barres de progression --- */
.mshop-hero__dots {
    position: absolute;
    bottom: 10px;
    left: 1.15rem;
    z-index: 5;
    display: flex;
    gap: .35rem;
}

@media (min-width: 992px) {
    .mshop-hero__dots {
        left: 3rem;
        bottom: 14px;
    }
}

.mshop-dot {
    width: 26px;
    height: 4px;
    border-radius: 2px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.mshop-dot i {
    position: absolute;
    inset: 0;
    width: 0;
    background: #fff;
    display: block;
}

.mshop-dot.active i {
    width: 100%;
    transition: width var(--delay, 6s) linear;
}

.mshop-hero[data-theme-light] .mshop-dot {
    background: rgba(17, 18, 20, .2);
}

.mshop-hero[data-theme-light] .mshop-dot i {
    background: var(--rose);
}

/* --- Bouton pause --- */
.mshop-hero__pause {
    position: absolute;
    bottom: 8px;
    right: 12px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .mshop-hero__track {
        transition: none;
    }

    .mshop-dot.active i {
        transition: none;
        width: 100%;
    }
}