/* =========================================================
   Accueil : section « La maison » et galerie de bouteilles, responsive
   Complète 020 (positions des bouteilles par largeur d'écran).
   ========================================================= */

/* Section « La maison » */
.bacchus-landing-house-section {
    box-sizing: border-box;
}

/* Sous-section contenant les trois blocs image + texte */
.bacchus-landing-house-section>.wp-block-column>.wp-block-columns {
    box-sizing: border-box;
}

/* Tablettes et mobiles : même rendu que 600–781px */
@media (max-width: 781px) {
    .bacchus-landing-house-section>.wp-block-column>.wp-block-columns>.wp-block-column {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* À partir de 1024px : on réduit les paddings de la même manière */
@media (max-width: 1024px) {
    .bacchus-landing-house-section {
        padding-top: 2.5rem !important;
        padding-right: clamp(1.5rem, 5vw, 3rem) !important;
        padding-bottom: 2.5rem !important;
        padding-left: clamp(1.5rem, 5vw, 3rem) !important;
    }

    .bacchus-landing-house-section>.wp-block-column>.wp-block-columns {
        padding-right: 0 !important;
        padding-left: 0 !important;
        gap: clamp(2rem, 5vw, 2.5rem);
    }

    .bacchus-landing-house-section h3 {
        margin-bottom: 1.75rem !important;
    }

    .bacchus-landing-house-section h5 {
        margin-bottom: 0.75rem !important;
    }

    .bacchus-landing-house-section p {
        margin-bottom: 0 !important;
    }

    /* On retire le margin-top négatif et on met une vraie marge */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles {
        margin-top: 2rem !important;
        min-height: 520px;
        padding-top: 15px;
    }

    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image img {
        max-height: 520px;
    }

    /* État final : déploiement adapté */

    /* 1 - Prestige Millesime */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(1) {
        transform: translateX(-380px) translateY(-25px) scale(0.78);
    }

    /* 2 - Secret d'Aphrodite */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(2) {
        transform: translateX(-280px) translateY(-18px) scale(0.86);
    }

    /* 3 - Cupidon */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(3) {
        transform: translateX(-180px) translateY(-8px) scale(0.93);
    }

    /* 4 - Prana = centre */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(4) {
        transform: translateX(-50%) scale(1);
    }

    /* 5 - Antique */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(5) {
        transform: translateX(45px) translateY(-8px) scale(0.93);
    }

    /* 6 - Olympe */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(6) {
        transform: translateX(150px) translateY(-12px) scale(0.86);
    }

    /* 7 - Nova */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(7) {
        transform: translateX(250px) translateY(-18px) scale(0.78);
    }
}

/* ========== MOBILES : ≤ 781px ========== */

@media (max-width: 781px) {
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles {
        margin-top: 1.5rem !important;
        min-height: 360px;
        padding-top: 10px;
    }

    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image img {
        max-height: 360px;
    }

    /* État initial : toutes empilées, mais plus petites */

    /* 1 - Prestige Millesime */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(1) {
        transform: translateX(-60px) translateY(8px) scale(0.70);
    }

    /* 2 - Secret d'Aphrodite */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(2) {
        transform: translateX(-70px) translateY(5px) scale(0.76);
    }

    /* 3 - Cupidon */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(3) {
        transform: translateX(-80px) translateY(2px) scale(0.84);
    }

    /* 4 - Prana = centre */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(4) {
        transform: translateX(-50%) scale(1);
    }

    /* 5 - Antique */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(5) {
        transform: translateX(-70px) translateY(2px) scale(0.84);
    }

    /* 6 - Olympe */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(6) {
        transform: translateX(-70px) translateY(5px) scale(0.76);
    }

    /* 7 - Nova */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image:nth-child(7) {
        transform: translateX(-70px) translateY(-8px) scale(0.70);
    }

    /* État final : déploiement, mais contenu dans l'écran */

    /* 1 - Prestige Millesime */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(1) {
        transform: translateX(-260px) translateY(-18px) scale(0.78);
    }

    /* 2 - Secret d'Aphrodite */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(2) {
        transform: translateX(-190px) translateY(-12px) scale(0.86);
    }

    /* 3 - Cupidon */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(3) {
        transform: translateX(-120px) translateY(-5px) scale(0.93);
    }

    /* 4 - Prana = centre */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(4) {
        transform: translateX(-50%) scale(1);
    }

    /* 5 - Antique */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(5) {
        transform: translateX(30px) translateY(-5px) scale(0.93);
    }

    /* 6 - Olympe */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(6) {
        transform: translateX(100px) translateY(-8px) scale(0.86);
    }

    /* 7 - Nova */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(7) {
        transform: translateX(170px) translateY(-12px) scale(0.78);
    }
}

/* ========== PETITS MOBILES : < 480px (optionnel) ========== */

@media (max-width: 480px) {
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles {
        margin-top: 1rem !important;
        min-height: 250px;
    }

    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles>figure.wp-block-image img {
        max-height: 250px;
    }

    /* État final encore plus compact */

    /* 1 - Prestige Millesime */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(1) {
        transform: translateX(-170px) translateY(-12px) scale(0.78);
    }

    /* 2 - Secret d'Aphrodite */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(2) {
        transform: translateX(-130px) translateY(-8px) scale(0.86);
    }

    /* 3 - Cupidon */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(3) {
        transform: translateX(-80px) translateY(-4px) scale(0.93);
    }

    /* 4 - Prana = centre */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(4) {
        transform: translateX(-50%) scale(1);
    }

    /* 5 - Antique */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(5) {
        transform: translateX(20px) translateY(-4px) scale(0.93);
    }

    /* 6 - Olympe */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(6) {
        transform: translateX(70px) translateY(-6px) scale(0.86);
    }

    /* 7 - Nova */
    figure.wp-block-gallery.has-nested-images.bacchus-landing-bottles.is-inview>figure.wp-block-image:nth-child(7) {
        transform: translateX(115px) translateY(-8px) scale(0.78);
    }
}
