/***************************************************************
Filtres du catalogue
***************************************************************/

.filters button.active {
    background: var(--pink-strong);
    color: var(--white);
    border-color: var(--ink);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filters button {
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--white);
    color: var(--ink);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
}

.gallery-link {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pink-strong);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/***************************************************************
Catalogue et galerie photo
***************************************************************/

.gallery .heading {
    padding: 25px 0 15px;
}

.photo {
    padding: 0;
    border: 0;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    color: var(--ink);
}

.gallery-photo {
    padding: 0;
    border: 0;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    color: var(--ink);
}

.photo span {
    border-bottom: 4px solid var(--cyan);
    display: block;
    padding: 13px 16px;
    font-weight: 700;
}

.gallery-photo span {
    border-bottom: 4px solid var(--cyan);
    display: block;
    padding: 13px 16px;
    font-weight: 700;
}

.gallery {
    padding-top: 55px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.photo img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: var(--surface);
    display: block;
}

.photo:hover {
    box-shadow: 0 0 0 2px var(--pink);
}

.photo[hidden] {
    display: none;
}

.gallery-photo img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: var(--surface);
    display: block;
}

.gallery-photo:hover {
    box-shadow: 0 0 0 2px var(--pink);
}

.event-gallery {
    margin-top: 0;
}

.photo .photo-pending {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 0;
    color: var(--muted);
    font-size: 16px;
}

.photo[data-category="Manèges"] {
    --category-color: var(--pink);
}

.photo[data-category="Structures gonflables"] {
    --category-color: var(--cyan);
}

.photo[data-category="Stands & jeux"] {
    --category-color: var(--yellow);
}

.gallery .heading h1 {
    margin: 0 0 12px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -1px;
    text-align: center;
}

#photos.gallery {
    padding-top: 20px;
}

/***************************************************************
Informations et tarifs
***************************************************************/

.rental-cta {
    max-width: 1280px;
    width: calc(100% - 32px);
    background: var(--surface-blue);
    border-radius: 30px;
    margin: 45px auto 40px;
    text-align: center;
    padding: 55px 0 65px;
}

.rental-cta p {
    color: var(--muted);
    margin-bottom: 22px;
}

.photo .rental-title {
    font-size: 20px;
    padding: 16px 18px 8px;
    border: 0;
    letter-spacing: -.3px;
}

.photo .rental-meta {
    padding: 0 18px 12px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    border: 0;
    min-height: 42px;
}

.photo .rental-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 9px;
    background: var(--white);
    border: 0;
    border-radius: 20px;
}

.photo .rental-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px 17px;
    border-bottom: 4px solid var(--cyan);
    border-bottom-color: var(--category-color,var(--cyan));
}

.photo .rental-bottom span {
    font-size: 14px;
    color: var(--pink-strong);
    padding: 0;
    border: 0;
}

.rental-terms {
    max-width: 800px;
    margin: 0 auto 28px;
    text-align: center;
    line-height: 1.6;
    color: var(--muted);
    font-size: 15px;
}

.rental-facts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 20px 0;
}

.rental-facts>div {
    padding: 15px;
    background: var(--surface-blue);
    border-radius: 13px;
}

.rental-facts dt {
    font-size: 14px;
    color: var(--muted);
}

.rental-facts dd {
    margin: 5px 0 0;
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.rental-price-note {
    font-size: 14px;
    color: var(--muted);
}

.rental-bottom strong small {
    display: block;
    font-size: 12px;
    font-weight: 400;
}

/***************************************************************
Agrandissement et fiche détaillée
***************************************************************/

#photo-dialog {
    max-width: 1050px;
    padding: 18px;
}

#photo-dialog img {
    max-height: 75vh;
    object-fit: contain;
    background: var(--surface);
    margin: 0;
}

#photo-caption {
    margin: 10px 5px;
    font-weight: 700;
}

#photo-dialog h2 {
    font-size: 29px;
    margin: 20px 0 15px;
}

#photo-dialog img[hidden] {
    display: none;
}

/***************************************************************
Univers des mascottes
***************************************************************/

.mascots {
    padding-top: 55px;
}

.mascot-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.mascot-card {
    background: var(--surface-blue);
    border-radius: 20px;
    padding: 25px;
    border-top: 5px solid var(--cyan);
}

.mascot-card:nth-child(2) {
    border-color: var(--pink);
}

.mascot-card:nth-child(3) {
    border-color: var(--green);
}

.mascot-card:nth-child(4) {
    border-color: var(--yellow);
}

.mascot-card h3 {
    font-size: 21px;
}

.mascot-card ul {
    padding-left: 20px;
    margin: 16px 0 0;
    line-height: 1.9;
}

.mascot-contact {
    text-align: center;
    margin: 28px 0 0;
}

/***************************************************************
Adaptations : @media(max-width:1000px)
***************************************************************/

@media(max-width:1000px) {
    .photo img {
        height: 180px;
    }

}

/***************************************************************
Adaptations : @media(max-width:720px)
***************************************************************/

@media(max-width:720px) {
    .photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .photo img {
        height: 150px;
    }

    .photo span {
        font-size: 14px;
        padding: 12px;
    }

    .gallery {
        padding-top: 35px;
    }

    .gallery-photo img {
        height: 150px;
    }

    .gallery-photo span {
        font-size: 14px;
        padding: 12px;
    }

    .photo .photo-pending {
        height: 150px;
    }

    .mascot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .mascot-card {
        padding: 18px;
    }

    .mascot-card h3 {
        font-size: 19px;
    }

    .photo .rental-title {
        font-size: 18px;
        padding: 12px;
    }

    .photo .rental-meta {
        padding: 0 12px 8px;
        min-height: 74px;
    }

    .photo .rental-bottom {
        padding: 8px 12px 12px;
        flex-wrap: wrap;
    }

    .rental-facts {
        grid-template-columns: 1fr 1fr;
    }

    .rental-facts dd {
        font-size: 17px;
    }

}

/***************************************************************
Adaptations : @media(max-width:400px)
***************************************************************/

@media(max-width:400px) {
    .photo img {
        height: 125px;
    }

    .gallery-photo img {
        height: 125px;
    }

    .photo .photo-pending {
        height: 125px;
    }

    .photo .rental-badge {
        font-size: 12px;
    }

    .mascot-grid {
        grid-template-columns: 1fr;
    }

}

