/* ============================================
   PAGE CAFÉ — victim-of-gold
   ============================================ */

.cafe-main {
    padding: 0;
    margin: 0;
}


/* ---- HERO WRAPPER (hero + texte + graphisme overlay) ---- */

.cafe-hero-wrapper {
    position: relative;
}


/* ---- HERO PHOTO ---- */

.cafe-hero {
    height: 480px;
    overflow: hidden;
}

.cafe-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ---- SECTION TEXTE (beige) ---- */

.cafe-text-section {
    background-color: #f8f3ec;
    height: 480px;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 81px;
    overflow: hidden;
}

.cafe-text-section__inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cafe-text-section__text {
    font-family: 'Priori Serif OT', Georgia, serif;
    font-size: 19px;
    color: #151515;
    text-align: center;
    max-width: 858px;
    line-height: normal;
    letter-spacing: 0.19px;
}

.cafe-text-section__text p {
    margin: 0;
}

br.desktop-break {
    display: inline;
}


/* ---- GRAPHISME CAFÉ (overlay hero + texte) ---- */

.cafe-graphisme {
    position: absolute;
    top: 163px;
    left: 50%;
    transform: translateX(-50%);
    width: 427px;
    height: 541px;
    pointer-events: none;
    z-index: 2;
}

.cafe-graphisme__back,
.cafe-graphisme__front {
    position: absolute;
    display: block;
}

/* Groupe 1 — ombre/arrière */
.cafe-graphisme__back {
    top: 63px;
    left: 0;
    width: 382px;
    height: 478px;
}

/* Groupe 2 — avant */
.cafe-graphisme__front {
    top: 0;
    left: 45px;
    width: 382px;
    height: 479px;
}


/* ---- GRILLES D'IMAGES ---- */

.cafe-images {
    background-color: #000;
}

.cafe-images--desktop {
    display: block;
}

.cafe-images--mobile {
    display: none;
}

/* Desktop : 3 rangées */
.cafe-grid-row {
    display: flex;
    gap: 10px;
    padding: 10px 60px;
}

.cafe-grid-row:first-child {
    padding-top: 50px;
}

.cafe-grid-row:last-child {
    padding-bottom: 50px;
}

.cafe-grid-img img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Proportions 780 / 530 dans 1320px (1440 - 2×60px) */
.cafe-grid-img--large {
    flex: 780;
}

.cafe-grid-img--small {
    flex: 530;
}


/* ---- CAROUSEL MOBILE ---- */

.cafe-carousel {
    position: relative;
}

.cafe-carousel__track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cafe-carousel__track::-webkit-scrollbar {
    display: none;
}

.cafe-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0 20px;
}

.cafe-carousel__slide img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Dots */
.cafe-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 20px;
}

.cafe-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.cafe-carousel__dot--active {
    background: #957b4d;
    transform: scale(1.3);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {

    /* Hero */
    .cafe-hero {
        height: 302px;
    }

    /* Texte */
    .cafe-text-section {
        height: 303px;
        padding: 129px 27px 0;
        align-items: flex-start;
    }

    .cafe-text-section__text {
        font-size: 16px;
        letter-spacing: 0.16px;
        max-width: 320px;
    }

    br.desktop-break {
        display: none;
    }

    /* Graphisme mobile */
    .cafe-graphisme {
        top: 173px;
        left: 102px;
        transform: none;
        width: 171px;
        height: 217px;
    }

    .cafe-graphisme__back {
        top: 25px;
        left: 0;
        width: 153px;
        height: 192px;
    }

    .cafe-graphisme__front {
        top: 0;
        left: 18px;
        width: 153px;
        height: 192px;
    }

    /* Grilles : desktop masqué, mobile carousel visible */
    .cafe-images--desktop {
        display: none;
    }

    .cafe-images--mobile {
        display: block;
    }
}

@media (max-width: 480px) {
    .cafe-carousel__slide img {
        height: 190px;
    }
}
