/* ============================================
   SOUVENIRS — RESPONSIVE COMPLET 📱
   ============================================ */

/* --- FIX DÉBORDEMENT HORIZONTAL --- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* --- CONTAINER PRINCIPAL --- */
.content {
    padding: 20px 16px 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- INTRO --- */
.souvenirs-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}


    /* Titres principaux (h1) - Style Netflix sophistiqué */
.souvenirs-intro h1 {
    font-family: 'DancingScript', cursive, Arial, sans-serif;
    font-size: 2.5rem; /* Taille de police importante */ 
    color: color: black; /* Couleur du texte noir */ 
    font-weight: normal; /* Normal pour respecter la police manuscrite */
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 2px; /* Espacement des lettres pour un effet moderne */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5), /* Ombre portée pour profondeur */
        0 0 10px #E50914; /* Halo lumineux rouge pour un effet flashy */
    margin-bottom: 30px;
    text-align: center; /* Centré pour un look professionnel */
    transition: all 0.4s ease;
}

.souvenirs-intro h1:hover {
    text-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.7),
        0 0 15px #E50914;
    transform: scale(1.05); /* Légère mise en valeur au hover */
}

.souvenirs-intro p {
    color: #6b5b4d;
    font-size: clamp(0.9em, 3vw, 1.1em);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- SWIPER CONTAINER --- */
.swiper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    /* empêche tout débordement latéral */
    box-sizing: border-box;
    left: 0;
    right: 0;
}

/* --- SLIDE --- */
.swiper-slide {
    display: flex;
    flex-direction: column;
    background: #fff;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.swiper-slide-active {
    opacity: 1;
}

/* --- IMAGE : hauteur fluide avec aspect-ratio --- */
.swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;   /* carré-ish, agréable sur mobile */
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

/* zoom doux desktop uniquement */
@media (hover: hover) {
    .swiper-slide-active img {
        transform: scale(1.05);
    }
}

/* effet page — desktop seulement pour ne pas casser mobile */
@media (min-width: 640px) {
    .swiper-slide {
        transform: rotateY(6deg);
    }
    .swiper-slide-active {
        transform: rotateY(0deg);
    }
}

/* --- BLOC TEXTE --- */
.texte-slide {
    width: 100%;
    padding: 22px 16px;
    background: linear-gradient(to bottom, #f8f5f2, #eee6df);
    border-top: 1px solid #d6c3a3;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* --- TEXTE --- */
.texte-slide p {
    margin: 0;
    max-width: 640px;
    width: 100%;
    font-size: clamp(0.88em, 2.8vw, 1.1em);
    color: #3e2f23;
    line-height: 1.75;
    text-align: center;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
    box-sizing: border-box;
}

.swiper-slide-active .texte-slide p {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION (flèches) --- */
.swiper-button-next,
.swiper-button-prev {
    color: #8c6f4e !important;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    /* taille adaptative */
    width: clamp(36px, 8vw, 46px) !important;
    height: clamp(36px, 8vw, 46px) !important;

    /* centré verticalement sur l'image */
    top: calc(var(--img-ratio, 37.5%) / 2) !important;
}

/* icônes plus petites sur mobile */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: clamp(12px, 3vw, 18px) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 16px rgba(0,0,0,0.28);
}

/* garder les flèches visibles sur mobile (juste plus petites) */
.swiper-button-next { right: 8px !important; }
.swiper-button-prev { left: 8px !important; }

/* --- PAGINATION --- */
.swiper-pagination {
    bottom: 8px !important;
}

.swiper-pagination-bullet {
    background: #8c6f4e !important;
    opacity: 0.35;
    transition: 0.3s;
    width: 8px !important;
    height: 8px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #3e2f23 !important;
    transform: scale(1.25);
}

/* =====================
   RESPONSIVE DÉTAIL
   ===================== */

/* Petit mobile (< 400px) */
@media (max-width: 400px) {
    .souvenirs-intro {
        margin-bottom: 20px;
    }

    .texte-slide {
        padding: 16px 10px;
    }

    .texte-slide p {
        padding: 10px 12px;
    }
}

/* Tablette et desktop */
@media (min-width: 640px) {
    .swiper-slide img {
        aspect-ratio: 16 / 9;   /* paysage sur grand écran */
    }

    .texte-slide {
        padding: 28px 24px;
    }

    .texte-slide p {
        padding: 18px 26px;
    }
}

@media (min-width: 900px) {
    .content {
        padding: 30px 24px 60px;
    }
}
