
/*actu filters*/
.actualites-filters-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-direction: column;
}
.actualites-filters-wrapper .actu-filter.active{
    padding: 5px 10px;
    background-color: #820027;
    color: white;
    border-radius: 4px;
}
.actualites-filters-wrapper .actu-filter{
    padding: 5px 10px;
    background-color: #FAEEE3;
    color: #290200;
    border-radius: 4px;
}

.estimated-reading{
    color: white;
}

/* État de chargement pour les actualités */
.actualites-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

/* Filtres actualités */
.actualites-filters-wrapper .filtres-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actualites-filters-wrapper .filtres-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #D7B19C;
    text-transform: uppercase;
    font-weight: bold;
}




.actualites-filters-wrapper .filtres-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}
.actualites-filters-wrapper .filtres-content.active {

    max-height: 100px;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

.actualites-filters-wrapper .actu-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Checkbox custom */
.actualites-filters-wrapper .actu-filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #E3D1CF;
    border-radius: 4px;
    background-color: #FDF6F2;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.actualites-filters-wrapper .actu-filter-checkbox:checked {
    background-color: #820027;
    border-color: #820027;
}

.actualites-filters-wrapper .actu-filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-106%, -26%);
}

.actualites-filters-wrapper .cat-title{
    font-weight: bold;
}
.meta-data {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.actu-type {
    width: fit-content;
    padding: 5px 15px;

    color: #4D481D;
    background: #EDE7D9;
    border-radius: 4px;
}
.actu-date {
    color: #7E7372;
}


@media screen and (max-width:980px){
    .actualites-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .actualites-wrapper .actu-item:first-of-type {
        grid-column: 1;
        flex-direction: column;
    }
    .actualites-wrapper .actu-item:first-of-type .actu-textes,
    .actualites-wrapper .actu-item:first-of-type img.actu-image {
        width: 100%;
    }
    .actualites-wrapper .actu-item .actu-textes {
        padding: 15px;
    }
}

/*realisations*/

.project-item{
    position: relative;
    overflow: hidden;
}

.overlay {
    opacity: 0;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(0deg, #290200, transparent);
    color: white;
    transition: all 0.4s ease-in-out;
}

.overlay-text{
    color: white;
}

.project-item:hover .overlay {
    opacity: 1;
}

/* Filtres réalisations */
.realisations-filters-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-direction: column;
}

.realisations-filters-wrapper .filtres-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.realisations-filters-wrapper .filtres-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #D7B19C;
    text-transform: uppercase;
    font-weight: bold;
}
.realisations-filters-wrapper .cat-title{
    font-weight: bold;
}


.realisations-filters-wrapper .filtres-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

.realisations-filters-wrapper .filtres-content.active {
    max-height: 500px;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

.realisations-filters-wrapper .realisation-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Checkbox custom réalisations */
.realisations-filters-wrapper .realisation-filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #E3D1CF;
    border-radius: 4px;
    background-color: #FDF6F2;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.realisations-filters-wrapper .realisation-filter-checkbox:checked {
    background-color: #820027;
    border-color: #820027;
}

.realisations-filters-wrapper .realisation-filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-106%, -26%);
}

/* État de chargement pour les réalisations */
.realisations-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

/* Curseur cliquable sur les projets */
.project-item {
    cursor: pointer;
}

/* Lightbox réalisations */
.adt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.adt-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.adt-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.adt-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.adt-lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: opacity 0.2s;
}

.adt-lightbox-close:hover {
    opacity: 0.7;
}

.adt-lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.adt-lightbox-infos {
    text-align: center;
    color: white;
    margin-top: 16px;
    max-width: 600px;
}

.adt-lightbox-title {
    font-size: 22px;
    margin: 0 0 6px;
    color: white;
}

.adt-lightbox-category {
    font-size: 15px;
    margin: 0;
    opacity: 0.75;
    color: white;
}

/* Flèches de navigation */
.adt-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.adt-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.adt-lightbox-prev {
    left: 20px;
}

.adt-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .adt-lightbox-content {
        max-width: 95vw;
    }

    .adt-lightbox-close {
        top: -35px;
        right: 0;
    }

    .adt-lightbox-title {
        font-size: 18px;
    }

    .adt-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .adt-lightbox-prev {
        left: 8px;
    }

    .adt-lightbox-next {
        right: 8px;
    }
}

