/**
 * realizations Archive Widget - CSS
 * 
 * Styles pour le widget realizations Archive
 */

/* Structure générale */
.realizations-archive-widget {
    position: relative;
    text-align: center;
}

/* Overlay de chargement lors du filtrage */
.realizations-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.realizations-filter-overlay.active {
    display: flex;
}

.realizations-filter-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.realizations-content {
    position: relative;
    margin-top: 50px;
}

.realizations-content.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.realizations-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #93A823;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Filtres */

.filter-group {
    margin-bottom: 15px;
}

.filter-group h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.realization-filter {
    width: auto;
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive pour les filtres */
@media (max-width: 767px) {
    .realization-filter {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .filter-label {
        text-align: center;
        margin-bottom: 10px;
    }

    .filter-options {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .filter-option {
        display: block;
        max-width: 200px;
    }

    .filter-option span {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }
}

.filter-label {
    color: #1C4F5A;
    text-align: right;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: auto;
    margin-bottom: auto;
}

.filter-options {
    margin-top: auto;
    margin-bottom: auto;
    row-gap: 10px;
}

.filter-option {
    display: inline-block;
}

/* Cacher les checkboxes et radios */
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style pour le span (label) - État non actif */
.filter-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.70);
    border: 1px solid #00000026;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Figtree, sans-serif;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Style pour le span quand l'input est coché - État actif */
.filter-option input[type="checkbox"]:checked+span,
.filter-option input[type="radio"]:checked+span {
    background-color: #000000;
    color: #FFF;
    border: 1px solid #000000;
    font-weight: 900;
}

/* Style au survol */
.filter-option span:hover {
    background-color: #000000;
    color: #FFF;
    border: 1px solid #000000;
}

.filter-search-btn:hover {
    cursor: pointer;
}

/* Grille d'animaux */
.realizations-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

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

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

@media (min-width: 992px) {
    .realizations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Pagination */
.realization-pagination {
    border-top: solid 1px #F3F3F0;
    border-bottom: solid 1px #F3F3F0;
    padding: 15px 0px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination-numbers {
    display: flex;
    gap: 50px;
}

.page-number,
.prev-page,
.next-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
    color: rgba(28, 79, 90, 0.50) !important;
    text-align: center;
    font-family: "Brother 1816", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px;
    text-transform: uppercase;
}

.page-number.active {
    color: #1C4F5A !important;
    font-family: "Brother 1816", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 12px;
    text-transform: uppercase;
}

.page-number:hover,
.prev-page:hover,
.next-page:hover {
    color: #1C4F5A !important;

}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #93A823;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
    position: relative;
}

.load-more-btn:hover {
    background-color: #93A823;
}

.load-more-btn.loading {
    padding-right: 40px;
}

.load-more-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}










/* Styles pour les cartes de réalisations */
.realization-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 385px;
    overflow: hidden;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
}

.realization-card:hover {
    transform: translateY(-5px);
}

/* Wrapper de l'image avec tous les éléments */
.realization-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.realization-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.realization-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%);
    z-index: 1;
    pointer-events: none;
}

.realization-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.realization-card:hover .realization-image img {
    transform: scale(1.05);
}

/* Catégorie positionnée en haut à gauche, collée */
.realization-image-wrapper .realization-category {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    padding: 7px;
    background-color: white;
    color: #000;
    font-family: Figtree, sans-serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    border-radius: 0;
    z-index: 3;
}

/* Overlay pour le contenu en bas */
.realization-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
}

/* Contenu en bas de l'image */
.realization-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 50px;
    gap: 15px;
}

/* Titre en bas à gauche - 60% */
.realization-meta-left {
    flex: 1000%;
    text-align: left;
}

.realization-title {
    margin: 0;
    color: #FFF;
    font-family: Questrial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 34px;
    letter-spacing: 0.48px;
}



.realization-year,
.realization-location {
    color: #FFF;
    font-family: Figtree, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0;
}

/* Responsive pour les petits écrans */
@media (max-width: 576px) {
    .realization-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }


    .realization-title {
        font-size: 20px;
        line-height: 28px;
    }
}