/* ================================
   GALERIE D'ÉVÉNEMENTS - STANDARDIX
   Fichier CSS externe
   ================================ */

/* Section principale */

/* coming soon */
.eco-coming-soon {
    position: relative;
    min-height: 600px;
    /* background-image: url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1920&q=80"); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.eco-animated-entry {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.eco-animated-entry:nth-child(1) {
    animation-delay: 0.3s;
}

.eco-animated-entry:nth-child(2) {
    animation-delay: 1.1s;
}

.eco-animated-entry:nth-child(3) {
    animation-delay: 1.9s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eco-text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.stdx-gallery-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.stdx-gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #386641;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* .stdx-gallery-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
} */

/* Cards d'événements */
.stdx-event-card {
    position: relative;
    overflow: hidden;
    /* border-radius: 12px; */
    cursor: pointer;
    height: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stdx-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stdx-event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stdx-event-card:hover .stdx-event-img {
    transform: scale(1.1);
}

/* Overlay au survol */
.stdx-event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stdx-event-card:hover .stdx-event-overlay {
    transform: translateY(0);
}

.stdx-event-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stdx-event-date {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 400;
}

/* ================================
   MODAL
   ================================ */

.stdx-event-modal .modal-backdrop {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.75);
}

.stdx-modal-dialog {
    max-width: 1200px;
}

.stdx-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Bouton de fermeture */
.stdx-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stdx-modal-close:hover {
    background-color: #28a745;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.stdx-modal-close:hover::before,
.stdx-modal-close:hover::after {
    background-color: #ffffff;
}

/* Colonne image */
.stdx-modal-image-col {
    background-color: #1a1a1a;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stdx-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.stdx-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation d'images */
.stdx-image-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.stdx-nav-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stdx-nav-btn:hover {
    background-color: #28a745;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.stdx-nav-btn:active {
    transform: scale(0.95);
}

.stdx-image-counter {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Colonne informations */
.stdx-modal-info-col {
    background-color: #ffffff;
}

.stdx-modal-body {
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stdx-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Meta informations */
.stdx-event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.stdx-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    font-size: 1rem;
}

.stdx-meta-item i {
    font-size: 1.2rem;
    color: #28a745;
}

/* Description */
.stdx-modal-description {
    flex: 1;
    margin-bottom: 30px;
}

.stdx-modal-description p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Tags */
.stdx-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stdx-event-tag {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.stdx-event-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cta-parallax-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.cta-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* background-image: url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?w=1920&q=80"); */
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
    color: #ffffff;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.cta-content {
    position: relative;
    z-index: 10;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 991px) {
    .stdx-modal-dialog {
        max-width: 90%;
    }

    .stdx-modal-image-col,
    .stdx-modal-info-col {
        min-height: auto;
    }

    .stdx-image-container {
        min-height: 350px;
    }

    .stdx-modal-body {
        padding: 35px 30px;
    }

    .stdx-modal-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .stdx-gallery-title {
        font-size: 2rem;
    }

    .stdx-event-card {
        height: 250px;
    }

    .stdx-event-title {
        font-size: 1.1rem;
    }

    .stdx-modal-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }

    .stdx-modal-body {
        padding: 25px 20px;
    }

    .stdx-modal-title {
        font-size: 1.4rem;
    }

    .stdx-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575px) {
    .stdx-gallery-section {
        padding: 60px 0;
    }

    .stdx-event-card {
        height: 220px;
    }

    .stdx-image-container {
        min-height: 300px;
    }
    .stdx-gallery-title {
        font-size: 1.2rem;
    }
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes stdxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stdx-event-modal.show .stdx-modal-content {
    animation: stdxFadeIn 0.3s ease-out;
}

/* Smooth scroll pour la navigation */
html {
    scroll-behavior: smooth;
}

/* Curseur pointer pour éléments interactifs */
.stdx-event-card,
.stdx-nav-btn,
.stdx-modal-close {
    cursor: pointer;
}

/* Focus visible pour l'accessibilité */
.stdx-nav-btn:focus-visible,
.stdx-modal-close:focus-visible {
    outline: 3px solid #28a745;
    outline-offset: 2px;
}
