/* ============================
   S3 — DESKTOP
   ============================ */

#s3 {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#s3 .inner {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.s3-title {
    font-size: 56px;
    font-weight: 200;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

/* DESKTOP ONLY */
.s3-gallery-static {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.s3-item {
    width: 350px;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.s3-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s3-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
    color: #f5eeda;
    font-size: 20px;
}

/* MOBILE ONLY (hidden by default) */
.s3-mobile-list {
    display: none;
}

#s3 .cta-wrapper {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#s3 .cta-banniere {
    display: inline-block;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
}

#s3 .fleche-scroll {
    width: 17px;
    height: 17px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
    margin: 10px auto 0 auto;
    opacity: 0.8;
}









/* ============================
   HOVER DESKTOP SUR LES IMAGES
   ============================ */

@media (hover: hover) and (pointer: fine) {

    /* Le conteneur des 3 images */
    .s3-gallery-static {
        display: flex;
        gap: 0;
        justify-content: space-between;
    }

    /* Chaque image */
    .s3-item {
        position: relative;
        width: 32%;
        height: 400px;
        overflow: hidden;
        border-radius: 2px;
    }

    .s3-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        opacity: 0.88;
        transition: filter 0.4s ease, opacity 0.4s ease;
    }

    .s3-item:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }

    /* Légende */
    .s3-caption {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
        color: #f5eeda;
        font-size: 22px;
        pointer-events: none;
    }

    /* Flèche blanche */
    .s3-item::after {
        content: "";
        position: absolute;
        right: 18px;
        bottom: 18px;
        width: 12px;
        height: 12px;
        border-right: 2px solid rgba(255,255,255,0.6);
        border-bottom: 2px solid rgba(255,255,255,0.6);
        transform: rotate(-45deg);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .s3-item:hover::after {
        opacity: 1;
    }
}

/* ============================
   S3 — MOBILE
   ============================ */

/* ============================
   S3 — MOBILE (VERSION FINALE)
   ============================ */

/* ============================
   S3 — MOBILE (VERSION FINALE)
   ============================ */

@media (max-width: 1200px) {

    /* SECTION : hauteur 100vh + CTA en bas */
    #s3 {
        min-height: 100vh;
        padding-top: 0;
        padding-bottom: 100px; /* espace pour le CTA */
        position: relative;
        display: block;
    }

    /* On remonte TOUT le bloc texte */
    #s3 .inner {
        padding: 0 20px !important;
        padding-top: 0 !important;
        margin-top: -80px !important;  /* ← C’EST ÇA QUI REMONTE LE TEXTE */
    }

    /* Desktop OFF */
    .s3-gallery-static {
        display: none !important;
    }

    /* Mobile ON */
    .s3-mobile-list {
        display: block !important;
        margin-top: 20px !important; /* léger espace sous le titre */
    }

    /* Titre */
    .s3-title {
        font-size: 40px !important;
        margin-bottom: 10px;
        text-align: center;
    }

    /* Thèmes */
    .s3-mobile-list .theme {
        font-size: 24px !important;
        color: #fff;
        margin-top: 18px;
        margin-bottom: 5px;text-align:center !important;
    }
	
	
	.s3-mobile-list .theme a {
color:bisque !important;	
	
}
.s3-mobile-list .theme {
color: #ffcc66 !important;

	
}

    /* Liens */
    .s3-mobile-list .gallery {
        display: block;
        font-size: 20px;
        color: #f5eeda;
        text-decoration: none;
        padding-left: 10px;
        margin-bottom: 4px;
    }

    /* CTA FIXÉ EN BAS */
    #s3 .cta-wrapper {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        text-align: center !important;
        width: 100%;
    }

    #s3 .cta-banniere {
        display: inline-block !important;
        margin: 0 auto 10px auto !important;
    }

    #s3 .fleche-scroll {
        margin: 0 auto !important;
    }
}
