/* ==========================================================================
   BENIN ESCAPES - Widget Galerie & Filtrage des Réalisations
   ========================================================================== */

.be-gallery {
    width: 100%;
    padding: 100px 0;
    background-color: #ffffff;
}

.be-gallery__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.be-gallery__header {
    text-align: left;
    margin-bottom: 36px;
}

.be-gallery__subtitle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.be-gallery__subtitle-line {
    width: 32px;
    height: 2px;
    background-color: #1b5e20;
}

.be-gallery__subtitle {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1b5e20;
}

.be-gallery__title {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    color: #141b2b;
    margin: 0;
}

/* Filtres */
.be-gallery__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.be-gallery__filter-btn {
    appearance: none;
    border: none;
    background-color: #f1f3ff;
    color: #424940;
    padding: 10px 20px;
    border-radius: 9999px;
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.be-gallery__filter-btn:hover {
    background-color: #e2e7ff;
    color: #141b2b;
}

.be-gallery__filter-btn.is-active {
    background-color: #1b5e20;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}

/* Grille */
.be-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .be-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.be-gallery__card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf0f8;
    box-shadow: 0 4px 20px rgba(20, 27, 43, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    position: relative;
    cursor: pointer;
}

.be-gallery__card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: block;
}

.be-gallery__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(20, 27, 43, 0.12);
    border-color: #dbe4f0;
}

.be-gallery__card-media {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1b5e20 0%, #141b2b 100%);
}

.be-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.be-gallery__card:hover .be-gallery__img {
    transform: scale(1.06);
}

.be-gallery__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(20, 27, 43, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #9ff79f;
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    z-index: 2;
}

.be-gallery__card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.be-gallery__card-title {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #141b2b;
    margin: 0 0 8px 0;
}

.be-gallery__card-specs {
    font-family: var(--be-font-body, 'Manrope', sans-serif);
    font-size: 13px;
    line-height: 1.5;
    color: #555d50;
    margin: 0 0 20px 0;
    flex: 1;
}

.be-gallery__card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f8;
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: #1b5e20;
}

.be-gallery__card-footer .material-symbols-outlined {
    font-size: 18px;
}
