@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.media-gallery-outer-1f425718, 
.media-gallery-outer-1f425718 * {
    font-family: 'Montserrat', sans-serif !important;
}

.media-gallery-layout-split-1f425718 {
    display: flex;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .media-gallery-layout-split-1f425718 {
        flex-direction: column;
    }
}

.media-gallery-filters-sidebar-1f425718 {
    flex: 0 0 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 991px) {
    .media-gallery-filters-sidebar-1f425718 {
        flex: none;
        width: 100%;
    }
}

.media-gallery-filter-col-1f425718 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.media-filter-header-1f425718 {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.media-filter-header-1f425718.only-title-1f425718 {
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.filter-title-text-1f425718 {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #333333;
}

.media-filter-subs-1f425718 {
    display: flex;
    flex-direction: column;
    gap: 3px !important; /* Espacement de 3px demandé pour les sous-catégories */
    padding-right: 5px;
}

.media-filter-label-1f425718 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    padding: 1px 0;
    transition: color 0.2s;
}

.media-filter-label-1f425718.label-parent-1f425718 {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.media-filter-label-1f425718.label-child-1f425718 {
    font-size: 14px;
    line-height: 1.1;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 8px;
    color: #555;
}

.media-filter-label-1f425718:hover {
    color: #000;
}

.media-filter-checkbox-1f425718 {
    margin: 0;
    cursor: pointer;
}

.media-gallery-wrapper-1f425718 {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.media-gallery-grid-1f425718 {
    display: grid;
    gap: 20px;
    width: 100%;
    transition: opacity 0.2s ease-in-out;
    margin-bottom: 30px;
}

.media-gallery-item-1f425718 {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
}

.media-gallery-link-1f425718 {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.media-gallery-item-1f425718 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-gallery-item-1f425718:hover img {
    transform: scale(1.05);
}

.media-gallery-overlay-1f425718 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 67, 224, 0.85));
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.media-gallery-item-1f425718:hover .media-gallery-overlay-1f425718 {
    opacity: 1;
}

.media-gallery-title-1f425718 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.media-gallery-placeholder-1f425718 {
    background-size: cover;
    background-position: center;
}

.media-gallery-pagination-container-1f425718 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.media-gallery-counter-displayed-1f425718 {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.media-gallery-counter-remaining-1f425718 {
    font-size: 13px;
    color: #707070;
    font-weight: 400;
}

.media-gallery-load-more-btn-1f425718 {
    background-color: #0043AE;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.media-gallery-load-more-btn-1f425718:hover {
    background-color: #00265B;
}

.media-gallery-load-more-btn-1f425718:active {
    transform: scale(0.98);
}

.media-gallery-load-more-btn-1f425718.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}
