/* ========================================
   GALERIE.CSS - Styles spécifiques page galerie
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(43, 122, 157, 0.95) 0%, rgba(245, 133, 31, 0.9) 100%), 
                url('../images/hero-bg.jpg') center/cover fixed;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, rgba(43, 122, 157, 0.95), rgba(245, 133, 31, 0.9)),
                url('../images/hero-bg.jpg') center/cover fixed;
    margin-top: 80px;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(245, 133, 31, 0.3), transparent 70%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-orange);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.95;
}

.gallery-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, var(--white));
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    padding: 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(43, 122, 157, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(43, 122, 157, 0.3);
}

.filter-btn i {
    font-size: 16px;
}

.results-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--primary-blue);
}

.results-info i {
    color: var(--primary-orange);
    font-size: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 400px;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.card-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card:hover .card-media img,
.gallery-card:hover .card-media video {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(245, 133, 31, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--primary-orange);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 12px;
}

.card-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.card-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.5;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
}

.view-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateX(5px);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    color: #d0d0d0;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-body {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-body img,
.modal-body video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.close-modal {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    background: var(--dark-orange);
    transform: rotate(90deg);
}

#modalTitle {
    text-align: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 24px;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    padding: 80px 0;
    margin-top: 80px;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text {
    flex: 1;
    color: var(--white);
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.cta-actions .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-actions .btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gallery-card {
        height: 350px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-bar {
        padding: 16px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .close-modal {
        top: -50px;
        width: 45px;
        height: 45px;
    }
}
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-header p {
    font-family: var(--font-body);
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Galerie Section */
.galerie-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, var(--white) 100%);
}

/* Filtres améliorés */
.galerie-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    padding: 0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.filter-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    color: var(--primary-blue);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.filter-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(43, 122, 157, 0.2);
}

.filter-btn:hover i {
    transform: scale(1.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    border-color: transparent;
}

.filter-btn.active a {
    color: var(--white);
}

/* Compteur de résultats */
.results-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 15px 30px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary-blue);
}

.results-count i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

/* Grille galerie améliorée */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 350px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--dark-gray);
}

.galerie-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 122, 157, 0.8) 0%, rgba(245, 133, 31, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.galerie-item:hover::before {
    opacity: 1;
}

.galerie-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.galerie-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.galerie-media img,
.galerie-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galerie-item:hover .galerie-media img,
.galerie-item:hover .galerie-media video {
    transform: scale(1.15);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--white);
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.galerie-item:hover .video-icon {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

/* Overlay galerie */
.galerie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(43, 122, 157, 0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.4s;
    padding: 30px;
    z-index: 3;
}

.galerie-item:hover .galerie-overlay {
    opacity: 1;
}

.galerie-info {
    color: var(--white);
    width: 100%;
}

.galerie-category {
    background: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.galerie-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.galerie-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.95;
    line-height: 1.5;
}

.btn-view {
    background: var(--white);
    color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-view:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateX(5px);
}

/* No Content */
.no-content {
    text-align: center;
    padding: 100px 20px;
}

.no-content-icon {
    font-size: 6rem;
    color: var(--light-gray);
    margin-bottom: 30px;
    opacity: 0.5;
}

.no-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.no-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Modal amélioré */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 3% auto;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(245, 133, 31, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
}

.modal-close:hover {
    background: var(--primary-orange);
    transform: rotate(90deg);
}

#modalCaption {
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    padding: 80px 0;
    margin-top: 80px;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text {
    flex: 1;
    color: var(--white);
}

.cta-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-text p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 18px 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.cta-buttons .btn-primary:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .galerie-item {
        height: 300px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
    }
    
    .modal-close {
        top: -45px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
}