/**
 * REALISATIONS-V4.CSS
 * Styles pour la page galerie des réalisations
 * 
 * @version 4.0.0
 * @date 9 Décembre 2025
 * 
 * Sections :
 * - Breadcrumb
 * - Hero
 * - Filtres
 * - Grille Masonry
 * - Carte réalisation
 * - Lightbox
 * - CTA Section
 * - No Results
 * - Responsive
 * - Lazy Loading
 */

/* ============================================
   BREADCRUMB / FIL D'ARIANE
   ============================================ */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #aaa;
}

.breadcrumb a {
    color: #c41e3a;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #a01830;
    text-decoration: underline;
}

/* ============================================
   HERO RÉALISATIONS
   ============================================ */
.gs-realisations-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.gs-realisations-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.gs-realisations-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.gs-realisations-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(196, 30, 58, 0.9);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.gs-realisations-counter i {
    font-size: 1.2rem;
}

/* ============================================
   FILTRES
   ============================================ */
.gs-realisations-filters {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gs-filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.gs-filter-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gs-filter-btn:hover {
    background: #eee;
    color: #333;
}

.gs-filter-btn.active {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
}

.gs-filter-btn .count {
    display: inline-block;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.gs-filter-btn.active .count {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   GRILLE MASONRY
   ============================================ */
.gs-realisations-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
}

.gs-masonry {
    column-count: 3;
    column-gap: 20px;
}

/* ============================================
   CARTE RÉALISATION
   ============================================ */
.gs-realisation-card {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    
    /* Animation fade-in */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.gs-realisation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.gs-realisation-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Image */
.gs-realisation-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gs-realisation-card:hover img {
    transform: scale(1.05);
}

/* Overlay au hover */
.gs-realisation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gs-realisation-card:hover .gs-realisation-overlay {
    opacity: 1;
}

.gs-realisation-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gs-realisation-card:hover .gs-realisation-overlay i {
    transform: scale(1);
}

/* Badge type produit */
.gs-realisation-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    transition: background 0.3s ease;
}

.gs-realisation-card:hover .gs-realisation-badge {
    background: #c41e3a;
}

.gs-realisation-badge i {
    font-size: 0.9rem;
}

/* Icône vidéo */
.gs-video-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,0,0,0.9);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.gs-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gs-lightbox.active {
    display: flex;
}

.gs-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.gs-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.gs-lightbox-content iframe {
    width: 80vw;
    height: 45vw;
    max-height: 80vh;
    border-radius: 8px;
}

.gs-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gs-lightbox-close:hover {
    transform: rotate(90deg);
}

.gs-lightbox-badge {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #c41e3a;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

/* Footer lightbox avec badge et bouton devis */
.gs-lightbox-footer {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gs-lightbox-footer .gs-lightbox-badge {
    position: static;
    transform: none;
}

.gs-lightbox-devis-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #333;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.gs-lightbox-devis-btn:hover {
    background: linear-gradient(135deg, #ffca2c 0%, #ffd54f 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    color: #333;
    text-decoration: none;
}

.gs-lightbox-devis-btn i {
    font-size: 1.1rem;
}

/* Navigation lightbox */
.gs-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gs-lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.gs-lightbox-prev {
    left: -70px;
}

.gs-lightbox-next {
    right: -70px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.gs-realisations-cta {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.gs-realisations-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.gs-realisations-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.gs-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.gs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gs-cta-btn.primary {
    background: white;
    color: #c41e3a;
}

.gs-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gs-cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.gs-cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ============================================
   MESSAGE AUCUN RÉSULTAT
   ============================================ */
.gs-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.gs-no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.gs-no-results h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .gs-masonry {
        column-count: 2;
    }
    
    .gs-realisations-hero h1 {
        font-size: 2.2rem;
    }
    
    .gs-lightbox-nav {
        display: none;
    }
    
    .gs-lightbox-content iframe {
        width: 90vw;
        height: 50vw;
    }
}

@media (max-width: 768px) {
    .gs-realisations-hero {
        padding: 40px 20px;
    }
    
    .gs-realisations-hero h1 {
        font-size: 1.8rem;
    }
    
    .gs-realisations-hero p {
        font-size: 1rem;
    }
    
    .gs-filters-container {
        gap: 10px;
    }
    
    .gs-filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .gs-realisations-cta h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .gs-masonry {
        column-count: 1;
        column-gap: 0;
    }
    
    .gs-realisation-card {
        margin-bottom: 15px;
    }
    
    .gs-realisations-grid {
        padding: 20px 15px 40px 15px;
    }
    
    .gs-filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .gs-filter-btn .count {
        display: none;
    }
    
    .gs-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gs-cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ============================================
   LAZY LOADING
   ============================================ */
.gs-realisation-card img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gs-realisation-card img.lazy.loaded {
    opacity: 1;
}
