/* ═══════════════════════════════════════════════════════════════════
   carousel.css - Massages vedettes  v1.0.0
   ═══════════════════════════════════════════════════════════════════ */

/* ── RESET SWIPER ───────────────────────────────────────────────────
   Neutralise le chrome Swiper par défaut avant de remettre le style
   du thème. */

.vedette-swiper {
    --swiper-navigation-color: var(--color-primary);
    --swiper-pagination-color: var(--color-primary);
    --swiper-navigation-size:  18px;
    overflow: visible;          /* slides qui débordent légèrement */
    padding-bottom: 48px;       /* espace pour pagination + shadow */
    box-sizing: border-box;
}

/* Boutons de navigation - masqués sur mobile, visibles ≥ 900px */
.vedette-prev,
.vedette-next {
    display: none;
}

@media (min-width: 900px) {
    .vedette-prev,
    .vedette-next {
        display: flex;
        width: 44px;
        height: 44px;
        background: var(--color-bg-base);
        border: 1px solid var(--color-border);
        border-radius: 50%;
        box-shadow: 0 4px 14px color-mix(in srgb, var(--color-text-base) 8%, transparent);
        transition: border-color 0.2s, box-shadow 0.2s;
        top: calc(45% - 22px);
        margin-top: 0;
    }
    .vedette-prev::after,
    .vedette-next::after {
        font-size: var(--swiper-navigation-size);
        font-weight: 700;
    }
    .vedette-prev:hover,
    .vedette-next:hover {
        border-color: var(--color-primary);
        box-shadow: 0 6px 20px color-mix(in srgb, var(--color-primary) 22%, transparent);
    }
}

/* Pagination dots */
.vedette-pagination {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 1;
}
.vedette-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: var(--color-border);
    opacity: 1;
    margin: 0 4px;
    transition: background 0.2s, transform 0.2s;
}
.vedette-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    transform: scale(1.35);
}


/* ── SECTION ────────────────────────────────────────────────────────  */

#massages-teaser {
    background: var(--color-bg-alt);
    overflow: hidden;           /* clip overflow du swiper au niveau section */
}

.vedette-header {
    max-width: 600px;
    margin-bottom: 40px;
}

.vedette-more {
    text-align: center;
    margin-top: 40px;
}


/* ── SLIDE - structure de base ──────────────────────────────────────  */

.swiper-slide {
    height: auto;               /* uniformise la hauteur des slides */
}

.vedette-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-bg-base);
    border-radius: var(--r-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.vedette-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: 0 0 var(--r-card) var(--r-card);
}

@media (hover: hover) {
    .vedette-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px color-mix(in srgb, var(--color-text-base) 10%, transparent);
    }
    .vedette-card:hover::after {
        transform: scaleX(1);
    }
}


/* ── IMAGE ──────────────────────────────────────────────────────────  */

.vedette-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-alt);
    flex-shrink: 0;
}

.vedette-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

@media (hover: hover) {
    .vedette-card:hover .vedette-card__img img {
        transform: scale(1.06);
    }
}

/* Placeholder cadeau sans image */
.vedette-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 18%, var(--color-bg-dark)) 0%,
        var(--color-bg-dark) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.vedette-card__img--placeholder::after {
    content: '';
    display: block;
    width: 52px;
    height: 52px;
    opacity: 0.35;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3Cline x1='12' y1='7' x2='12' y2='3'/%3E%3Cpath d='M12 3C10.5 1.5 8 2 8 4s2 1 4-1'/%3E%3Cpath d='M12 3C13.5 1.5 16 2 16 4s-2 1-4-1'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ── CORPS DE LA CARTE ──────────────────────────────────────────────  */

.vedette-card__body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vedette-card__cat {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.vedette-card__name {
    font-family: var(--ff-title);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-base);
    margin-bottom: 8px;
}

.vedette-card__price {
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.vedette-card__cta {
    margin-top: auto;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s, color 0.2s;
}

@media (hover: hover) {
    .vedette-card:hover .vedette-card__cta {
        gap: 10px;
        color: var(--color-primary);
    }
}


/* ── SLIDE BON CADEAU ───────────────────────────────────────────────
   Fond sombre, texte clair - distinct mais dans la palette. */

.vedette-card--cadeau {
    background: var(--color-bg-dark);
    color: var(--color-white);
}

.vedette-card--cadeau .vedette-card__cat {
    color: var(--color-primary);
    opacity: 0.9;
}

.vedette-card--cadeau .vedette-card__name {
    color: var(--color-white);
    font-style: italic;
}

.vedette-card--cadeau .vedette-card__cta {
    color: var(--color-primary);
}

.vedette-card--cadeau::after {
    background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 53%, transparent));
}


/* ── RESPONSIVE MOBILE ──────────────────────────────────────────────
   Étend le swiper jusqu'aux bords de la section pour que le "peek"
   de la slide suivante soit visible jusqu'au bord réel (pas clippé
   par le padding 24px de la section). */

@media (max-width: 900px) {
    .vedette-swiper {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
        padding-left: 24px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   SWIPER PRATICIENNE (mobile uniquement)
   La section #praticienne n'a pas de padding horizontal sur mobile
   - on ajoute padding-left directement sur le swiper.
   ═══════════════════════════════════════════════════════════════════ */

.prat-swiper {
    /* swiper-bundle.min.css (chargé après main.css) définit .swiper { display: block }
       avec la même spécificité que .prat-swiper : sans cette règle ici - dans la
       feuille chargée en dernier - le display:none desktop de main.css perd la
       cascade et le carrousel mobile s'affiche en double sous la grille desktop. */
    display: none;
    --swiper-pagination-color: var(--color-primary);
}

@media (max-width: 900px) {
    .prat-swiper {
        display: block;
        overflow: visible;
        margin: 0 0 16px;
        padding-left: 24px;
        padding-bottom: 36px; /* espace pour la pagination absolue */
    }
    .prat-swiper .swiper-wrapper {
        padding: 4px 0;
    }
}

.prat-pagination {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 1;
}

.prat-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: var(--color-border);
    opacity: 1;
    margin: 0 4px;
    transition: background 0.2s, transform 0.2s, width 0.2s;
}

.prat-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    transform: scale(1.2);
    width: 18px;
    border-radius: 999px;
}
