/* ===== Galerie de photos ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 1em 0 1.5em;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

.gallery-grid img:hover {
    opacity: 0.8;
    transform: scale(1.03);
}

/* Image seule : affichée en pleine largeur */
.gallery-grid img:first-child:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* ===== Lightbox ===== */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 100000 !important;
    align-items: center;
    justify-content: center;
}

#lightbox.lb-active {
    display: flex;
}

#lightbox .lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 64px 80px;
    box-sizing: border-box;
}

#lightbox .lb-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    transition: opacity 0.15s ease;
    cursor: default;
}

.lb-btn {
    position: fixed;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    z-index: 100001 !important;
    transition: color 0.15s;
    font-family: inherit;
    line-height: 1;
}

.lb-btn:hover { color: #fff; }

.lb-close {
    top: 16px;
    right: 20px;
    font-size: 2rem;
    padding: 8px 12px;
}

.lb-prev,
.lb-next {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 80px;
    font-size: 2.8rem;
    padding: 0;
    line-height: 1;
}

.lb-prev { left: 0; }
.lb-next { right: 0; }

.lb-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 100001 !important;
    pointer-events: none;
}

.lb-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    text-align: center;
    max-width: 600px;
    margin: 0;
}

.lb-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    margin: 0;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #lightbox .lb-img-wrap {
        padding: 56px 44px 80px;
    }

    .lb-prev,
    .lb-next {
        font-size: 2rem;
        padding: 8px 12px;
    }
}

/* --- Carousel plateformes réservation --- */
.platforms-carousel {
    overflow: hidden;
    width: 100%;
    padding: 0.75rem 0 1rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.platforms-track {
    display: flex;
    width: max-content;
    animation: scroll-platforms 24s linear infinite;
}

.platforms-track:hover {
    animation-play-state: paused;
}

.platforms-track a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 1.8rem;
    flex-shrink: 0;
    border-bottom: none;
}

.platforms-track img {
    height: 48px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(25%) opacity(0.85);
    transition: filter 0.3s;
}

.platforms-track a:hover img {
    filter: none;
}

@keyframes scroll-platforms {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .platforms-track a {
        padding: 0 1.2rem;
    }
    .platforms-track img {
        height: 40px;
        max-width: 100px;
    }
}
