/**
 * Réalisations Styles
 * Styles for the réalisations archive and taxonomy pages
 * @package ACX Divi Child Theme
 */
/* ==========================================================================
   Banner Styles
   ========================================================================== */
.realisations-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.realisations-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.realisations-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
/* ==========================================================================
   Container Styles
   ========================================================================== */

.realisations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}
.realisations-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #313131;
    text-transform: uppercase;
}
.realisations-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}
/* ==========================================================================
   Filter Buttons
   ========================================================================== */

.realisations-filters {
    text-align: center;
    margin-bottom: 35px;
}
.realisations-filters .filter-btn {
    background: #72a84f;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    margin: 5px;
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}
.realisations-filters .filter-btn:hover,
.realisations-filters .filter-btn:active,
.realisations-filters .filter-btn:focus,
.realisations-filters .filter-btn.is-checked {
    background: #555555;
    color: #ffffff;
}
/* ==========================================================================
   Grid Layout (Masonry)
   ========================================================================== */

.realisations-grid {
    margin: 0;
}
/* Sizer elements for Isotope */
.realisations-grid .grid-sizer,
.realisations-grid .grid-item {
    width: calc(25% - 12px);
}
.realisations-grid .gutter-sizer {
    width: 8px;
}
.realisations-grid .grid-item {
    margin-bottom: 8px;
}
@media (max-width: 991px) {
    .realisations-grid .grid-sizer,
    .realisations-grid .grid-item {
        width: calc(33.333% - 6px);
    }
}
@media (max-width: 767px) {
    .realisations-grid .grid-sizer,
    .realisations-grid .grid-item {
        width: calc(50% - 4px);
    }
    .realisations-grid .gutter-sizer {
        width: 8px;
    }
}
@media (max-width: 480px) {
    .realisations-grid .grid-sizer,
    .realisations-grid .grid-item {
        width: 100%;
    }
    .realisations-grid .gutter-sizer {
        width: 0;
    }
}
/* ==========================================================================
   Figure and Image Styles
   ========================================================================== */
.realisation-figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}
.realisation-figure a {
    display: block;
    position: relative;
    text-decoration: none;
}
.realisation-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
/*.realisation-figure .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #72a84f;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}*/
.realisation-figure a:hover .overlay,
.realisation-figure a:active .overlay,
.realisation-figure a:focus .overlay {
    opacity: 0.6;
}
.realisation-figure a:hover img {
    transform: scale(1.05);
}
/* ==========================================================================
   Figcaption Styles
   ========================================================================== */
.realisation-figure figcaption {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: #72a84f;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.realisation-figure figcaption h3 {
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    line-height: 1.3;
	text-transform: none;
}
.realisation-figure a:hover figcaption,
.realisation-figure a:active figcaption,
.realisation-figure a:focus figcaption {
    background: #555555;
}
/* ==========================================================================
   Taxonomy Page Specific Styles
   ========================================================================== */
.realisations-taxonomy-page .realisation-figure figcaption {
    opacity: 0;
    position: absolute;
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 2px solid #fff;
    width: 80%;
    height: auto;
    min-height: auto;
    padding: 20px;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.realisations-taxonomy-page .realisation-figure a:hover figcaption,
.realisations-taxonomy-page .realisation-figure a:active figcaption,
.realisations-taxonomy-page .realisation-figure a:focus figcaption {
    opacity: 1;
    background: transparent;
}
/* ==========================================================================
   GLightbox Custom Styles
   ========================================================================== */
/* Reset pointer-events on the container to allow clicks */
.glightbox-container,
.glightbox-container * {
    pointer-events: auto;
}
/* But disable on the overlay background */
.glightbox-container .goverlay {
    pointer-events: auto;
}
.gslide-description {
    background: rgba(0, 0, 0, 0.9) !important;
    padding: 20px 25px !important;
    position: relative !important;
    z-index: 100 !important;
}
.gslide-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
}
.gslide-desc {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #ffffff !important;
}
.gslide-desc a {
    color: #72a84f !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}
.gslide-desc a:hover {
    color: #9ccc65 !important;
}
.gslide-desc .products-label {
    font-weight: 600;
    color: #72a84f !important;
    display: inline;
}
/* Navigation arrows */
.glightbox-container .gnext,
.glightbox-container .gprev {
    z-index: 50;
}
/* Close button */
.glightbox-container .gclose {
    z-index: 150;
}
/* ==========================================================================
   No Results
   ========================================================================== */
.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 40px 0;
}
/* ==========================================================================
   Isotope Transitions
   ========================================================================== */
/* Let Isotope handle all transitions for grid items */
.realisations-grid .grid-item {
    /* Prevent any inherited transforms from interfering */
    will-change: transform, opacity;
}
/* Hidden state - disable interaction */
.realisations-grid .grid-item.isotope-hidden {
    pointer-events: none;
}
/* ==========================================================================
   Modern Loader
   ========================================================================== */
.acx-loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.acx-loader-wrapper.is-hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    overflow: hidden;
}
.acx-loader {
    position: relative;
    width: 50px;
    height: 50px;
}
.acx-loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #72A84F;
    animation: acx-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.acx-loader-ring:nth-child(1) {
    animation-delay: -0.45s;
}
.acx-loader-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-top-color: rgba(114, 168, 79, 0.6);
    animation-delay: -0.3s;
}
.acx-loader-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: rgba(114, 168, 79, 0.3);
    animation-delay: -0.15s;
}
@keyframes acx-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Hide grid while loading */
.realisations-grid.is-loading {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    position: absolute;
}
.realisations-grid.is-loaded {
    opacity: 1;
    visibility: visible;
    height: auto;
    position: relative;
    animation: acx-fadeIn 0.5s ease forwards;
}
/* Don't use transform in grid animation - it conflicts with Isotope item positioning */
@keyframes acx-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* ==========================================================================
   Réalisations on Product Pages [realisations-produit]
   ========================================================================== */
.realisations-produit-wrapper {
    margin: 2rem 0;
    position: relative;
}
.realisations-produit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #313131;
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Slightly smaller grid for product pages (context is narrower) */
/* Using margin-based spacing for equal gaps on all sides */
.realisations-produit-grid.grid .grid-sizer,
.realisations-produit-grid.grid .grid-item {
    width: calc(25% - 8px);
}
.realisations-produit-grid.grid .grid-item {
    margin-right: 8px;
    margin-bottom: 8px;
}
.realisations-produit-grid.grid .gutter-sizer {
    width: 0;
}
@media (max-width: 991px) {
    .realisations-produit-grid.grid .grid-sizer,
    .realisations-produit-grid.grid .grid-item {
        width: calc(33.333% - 8px);
    }
}
@media (max-width: 767px) {
    .realisations-produit-grid.grid .grid-sizer,
    .realisations-produit-grid.grid .grid-item {
        width: calc(50% - 8px);
    }
}
@media (max-width: 480px) {
    .realisations-produit-grid.grid .grid-sizer,
    .realisations-produit-grid.grid .grid-item {
        width: calc(100% - 8px);
    }
}
/* CSS Grid fallback when Isotope hasn't initialized yet */
.realisations-produit-grid.grid:not(.isotope) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.realisations-produit-grid.grid:not(.isotope) .grid-sizer,
.realisations-produit-grid.grid:not(.isotope) .gutter-sizer {
    display: none;
}
.realisations-produit-grid.grid:not(.isotope) .grid-item {
    flex: 0 0 calc(25% - 6px);
    max-width: calc(25% - 6px);
}
@media (max-width: 991px) {
    .realisations-produit-grid.grid:not(.isotope) .grid-item {
        flex: 0 0 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
    }
}
@media (max-width: 767px) {
    .realisations-produit-grid.grid:not(.isotope) .grid-item {
        flex: 0 0 calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
}
@media (max-width: 480px) {
    .realisations-produit-grid.grid:not(.isotope) .grid-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}