:root {
    --primary-yellow: #FFD600;
    --primary-black: #121212;
    --primary-white: #FFFFFF;
    --primary-red: #D50000;
    --secondary-yellow: #FFEB3B;
    --light-yellow: #FFF9C4;
    --dark-red: #B71C1C;
    --light-red: #FFCDD2;
    --dark-gray: #424242;
    --light-gray: #F5F5F5;
    --accent-blue: #2196F3;
    --accent-green: #4CAF50;
    --accent-purple: #9C27B0;
    --accent-orange: #FF9800;
    --text-dark: #212121;
    --text-light: #757575;
    --gradient-dark: linear-gradient(90deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    --gradient-yellow: linear-gradient(90deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    --gradient-red: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--primary-white) 100%);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Animation d'entrée pour les sections */
.animate-entry {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles - IDENTIQUE À LA PAGE ACCUEIL */
.navbar {
    background: linear-gradient(90deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0px 0;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 70% 30%, var(--primary-yellow) 0%, transparent 15%);
    opacity: 0.2;
    z-index: 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--primary-yellow) !important;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand .navbar-logo {
    height: 100px;
    margin-right: 50px;
}

.navbar-nav .nav-link {
    color: var(--primary-white);
    font-weight: 500;
    margin: 0px 10px;
    padding: 10px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-yellow);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-yellow);
    border-radius: 1.5px;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
}

.search-bar:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.search-bar.active {
    width: 375px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    justify-content: flex-end;
}

.search-input {
    background: none;
    border: none;
    color: var(--primary-white);
    padding: 10px 15px;
    outline: none;
    width: 0;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    font-size: 16px;
}

.search-bar.active .search-input {
    width: 250px;
    opacity: 1;
    margin-right: 100px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    flex-shrink: 0;
}

.search-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar.active .search-btn {
    position: static;
    width: 40px;
    height: 40px;
}

.search-bar:hover .search-btn {
    color: var(--primary-black);
}

.profile-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--primary-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-btn:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

/* Responsive - Header Mobile */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 22px;
    }
    
    .navbar-brand .navbar-logo {
        height: 60px;
        margin-right: 15px;
    }
    
    .navbar-nav .nav-link {
        font-size: 15px;
        margin: 0 5px;
        padding: 8px 12px;
    }
    
    .navbar-actions {
        gap: 8px;
    }
    
    .search-bar {
        width: 44px;
        height: 44px;
    }
    
    .search-bar.active {
        width: calc(100vw - 120px);
        max-width: 320px;
    }
    
    .search-bar.active .search-input {
        width: calc(100% - 60px);
        margin-right: 10px;
    }
    
    .profile-btn {
        width: 44px;
        height: 44px;
    }
    
    .search-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        left: 0;
        top: 0;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 6px 10px;
        background-color: rgba(255, 255, 255, 0.1);
        z-index: 1001;
        position: relative;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 214, 0, 0.25);
        border-color: var(--primary-yellow);
    }
    
    .navbar-toggler:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-yellow);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse {
        background-color: rgba(18, 18, 18, 0.98);
        margin-top: 10px;
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgba(255, 214, 0, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
    
    .navbar-brand .navbar-logo {
        height: 50px;
        margin-right: 12px;
    }
    
    .navbar-nav {
        padding: 15px 0;
    }
    
    .navbar-nav .nav-link {
        font-size: 16px;
        margin: 5px 0;
        padding: 10px 15px;
        display: block;
        text-align: center;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .navbar-actions {
        gap: 10px;
        margin-top: 10px;
        justify-content: center;
    }
    
    .search-bar {
        width: 40px;
        height: 40px;
    }
    
    .search-bar.active {
        width: calc(100vw - 100px);
        max-width: 280px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-bar.active .search-input {
        width: calc(100% - 50px);
        margin-right: 8px;
    }
    
    .search-btn {
        font-size: 16px;
        width: 36px;
        height: 36px;
        left: 2px;
        top: 2px;
    }
    
    .search-bar.active .search-btn {
        width: 32px;
        height: 32px;
        position: static;
    }
    
    .profile-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 5px 8px;
        background-color: rgba(255, 255, 255, 0.1);
        z-index: 1001;
        position: relative;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 214, 0, 0.25);
        border-color: var(--primary-yellow);
    }
    
    .navbar-toggler:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-yellow);
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }
    
    .navbar-collapse {
        background-color: rgba(18, 18, 18, 0.98);
        margin-top: 15px;
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgba(255, 214, 0, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../image/event-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--primary-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(213,0,0,0.3) 0%, rgba(255,214,0,0.3) 100%);
    z-index: 0;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.hero-section:hover::before {
    transform: translateY(-10px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-section:hover .hero-subtitle {
    opacity: 1;
}

.btn-hero {
    background: var(--gradient-red);
    color: var(--primary-white);
    border: none;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(213,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.btn-hero:hover::after {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(213,0,0,0.4);
}

/* Pulse Button Animation */
.pulse-btn {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    }
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: var(--gradient-dark);
    color: var(--primary-white);
    position: relative;
}

.events-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, var(--primary-red) 0%, transparent 10%);
    opacity: 0.1;
    z-index: 0;
}

.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-white);
    position: relative;
    display: inline-block;
    cursor: default;
    transition: color 0.3s ease;
}

.section-title:hover {
    color: var(--primary-yellow);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--primary-red));
    border-radius: 2.5px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 150px;
}

.calendar-btn {
    background: var(--gradient-dark);
    color: var(--primary-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: var(--secondary-yellow);
    color: var(--primary-black);
    transform: scale(1.2);
}

.filter-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: var(--gradient-dark);
    color: var(--primary-white);
    border: none;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--secondary-yellow);
    color: var(--primary-black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bounce-btn {
    transition: transform 0.2s ease;
}

.bounce-btn:active {
    transform: scale(0.9);
}

/* === CAROUSEL ÉVÉNEMENTS - EXACTEMENT COMME PAGE ACCUEIL === */
.events-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0 40px 0;
}

.carousel-prev-btn, .carousel-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-yellow);
    color: var(--primary-black);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.4);
    z-index: 10;
}

.carousel-prev-btn:hover, .carousel-next-btn:hover {
    background: var(--gradient-yellow);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 214, 0, 0.6);
}

.carousel-prev-btn {
    left: -30px;
}

.carousel-next-btn {
    right: -30px;
}

.events-grid-container {
    flex: 1;
    overflow: hidden;
    padding: 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: max-content;
}

/* Centrer le message "Aucun événement" au milieu */
.events-grid:has(.no-events-message) {
    width: 100%;
    justify-content: center;
    align-items: center;
}

.no-events-message {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}

/* Centrer le message de galerie vide */
.no-gallery-events-message {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}

.gallery-grid-paginated:has(.no-gallery-events-message) {
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-grid-wrapper:has(.no-gallery-events-message) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-item {
    flex-shrink: 0;
    width: 400px;
}

.event-card {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.event-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-red);
    color: var(--primary-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(213,0,0,0.3);
    transition: transform 0.3s ease;
}

.event-card:hover .event-badge {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-yellow);
    color: var(--primary-black);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255,214,0,0.3);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.event-card:hover .event-date-badge {
    transform: scale(1.1);
}

.event-date-badge i {
    margin-right: 5px;
}

.event-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary-black);
    flex-grow: 1;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* Conteneur des boutons (Plus d'infos + Réserver) */
.event-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.btn-event-info {
    background: var(--gradient-dark);
    color: var(--primary-white);
    border: none;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-event-info::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.btn-event-info:hover::after {
    left: 100%;
}

.btn-event-info:hover {
    background: var(--gradient-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.btn-event-reserve {
    background: var(--gradient-yellow);
    color: var(--primary-black);
    border: none;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255,214,0,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-event-reserve::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.btn-event-reserve:hover::after {
    left: 100%;
}

.btn-event-reserve:hover {
    background: var(--gradient-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255,214,0,0.5);
}

/* Ancien style .btn-event conservé pour compatibilité */
.btn-event {
    background: var(--gradient-red);
    color: var(--primary-white);
    border: none;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(213,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn-event::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.btn-event:hover::after {
    left: 100%;
}

/* Modal Styles - Amélioré */
.modal-custom {
    background: var(--primary-white);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.modal-custom.show {
    transform: scale(1);
    opacity: 1;
}

/* Bordure décorative jaune */
.modal-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-yellow);
    z-index: 10;
}

.modal-header {
    background: var(--gradient-dark);
    color: var(--primary-white);
    border-bottom: 3px solid var(--primary-yellow);
    padding: 25px 30px;
    position: relative;
    z-index: 1;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--primary-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title::before {
    content: "●";
    color: var(--primary-yellow);
    font-size: 20px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.modal-body {
    position: relative;
    z-index: 1;
    padding: 35px 30px;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: visible;
}

.modal-body img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
    border: 3px solid var(--primary-yellow);
}

.modal-body img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(255,214,0,0.3);
}

.modal-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-yellow);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-yellow);
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--primary-white);
    line-height: 1.7;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.modal-body p strong {
    color: var(--primary-yellow);
    font-weight: 700;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-body p strong::before {
    content: "▶";
    color: var(--primary-yellow);
    font-size: 12px;
}

.modal-body p span {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-yellow);
    color: var(--primary-white);
}

.custom-reserve, .custom-close {
    position: relative;
    overflow: hidden;
}

.custom-reserve::after, .custom-close::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s ease;
}

.custom-reserve:hover::after, .custom-close:hover::after {
    left: 100%;
}

.modal-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--primary-yellow);
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.custom-reserve {
    background: var(--gradient-yellow);
    color: var(--primary-black);
    border: 2px solid var(--primary-yellow);
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(255,214,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-reserve:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,214,0,0.5);
    border-color: var(--secondary-yellow);
}

.btn-close {
    background: transparent;
    opacity: 1;
    width: 35px;
    height: 35px;
    border-radius: 0;
    transition: all 0.3s ease;
    filter: invert(1);
}

.btn-close:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.custom-close {
    background: var(--gradient-dark);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.custom-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Système de sélection d'horaires */
.showtimes-container {
    max-height: none;
    overflow: visible;
}

.showtimes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    overflow: visible;
}

/* Cacher toutes les scrollbars dans le modal */
.modal-custom *::-webkit-scrollbar,
.showtimes-container::-webkit-scrollbar,
.showtimes-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.modal-custom *,
.showtimes-container,
.showtimes-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showtime-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 214, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--primary-white);
}

.showtime-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.1) 0%, rgba(255, 214, 0, 0.05) 100%);
    box-shadow: 0 5px 15px rgba(255, 214, 0, 0.3);
}

.showtime-btn.selected {
    border-color: var(--primary-yellow);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.2) 0%, rgba(255, 214, 0, 0.1) 100%);
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.showtime-day {
    font-weight: 700;
    color: var(--primary-yellow);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.showtime-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.showtime-time {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 8px;
}

.showtime-time i {
    color: var(--primary-yellow);
    margin-right: 5px;
}

.showtime-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-yellow);
    font-family: 'Montserrat', sans-serif;
}

/* Animation de shake pour l'avertissement */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.text-warning {
    color: var(--primary-yellow) !important;
    font-weight: 600;
    padding: 10px 15px;
    background: rgba(255, 214, 0, 0.1);
    border-left: 3px solid var(--primary-yellow);
    border-radius: 5px;
}

/* Cacher les boutons "Réserver" directs des cartes - forcer sélection d'horaire */
.btn-event-reserve {
    display: none !important;
}

/* Ajuster le bouton "Plus d'infos" pour prendre toute la largeur */
.event-buttons {
    justify-content: center !important;
}

.btn-event-info {
    flex: 1;
    max-width: 100%;
}

/* Calendar Modal Styles */
.calendar-container {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.calendar-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, var(--primary-yellow) 0%, transparent 15%);
    opacity: 0.1;
    z-index: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.calendar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-black);
    transition: transform 0.3s ease;
}

.calendar-container:hover .calendar-title {
    transform: scale(1.05);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: var(--gradient-dark);
    color: var(--primary-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.calendar-nav button:hover {
    background: var(--secondary-yellow);
    color: var(--primary-black);
    transform: scale(1.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    padding: 10px 0;
    color: var(--primary-black);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-gray) 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calendar-day.has-event {
    background: var(--secondary-yellow);
}

.calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
}

.calendar-day-number {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-black);
}

.calendar-event-indicator {
    font-size: 10px;
    color: var(--primary-red);
    margin-top: 2px;
    text-align: center;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.calendar-day:hover .calendar-event-indicator {
    opacity: 0;
}

.calendar-day.has-event:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    background: var(--gradient-dark);
    color: var(--primary-white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
    white-space: nowrap;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0 100px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-black) 100%);
    color: var(--primary-white);
    position: relative;
    overflow: visible;
}

.gallery-section .container {
    max-width: 87%;
    padding-left: 20px;
    padding-right: 20px;
}

.gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../image/pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}


/* Pagination Buttons */
.pagination-btn {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.4);
    flex-shrink: 0;
}

.pagination-btn i {
    font-size: 24px;
    color: var(--primary-black);
}

.pagination-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 214, 0, 0.6);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.pagination-btn:disabled:hover {
    transform: scale(1);
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.2);
}

/* Pagination Info */
.pagination-info {
    font-size: 16px;
    color: var(--primary-yellow);
    font-weight: 600;
}

/* Gallery Grid Pagination Container */
.gallery-grid-pagination-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.gallery-grid-wrapper {
    flex: 1;
    overflow: visible;
    padding: 20px 0;
}

.gallery-grid-paginated {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px 15px;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Gallery Card Item */
.gallery-card-item {
    position: relative;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    height: 280px;
    border: 2px solid transparent;
}

.gallery-card-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 214, 0, 0.4);
    z-index: 10;
    border-color: rgba(255, 214, 0, 0.3);
}

.gallery-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border-radius: 20px;
}

.gallery-card-item:hover img {
    transform: scale(1.15);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.85) 40%, 
        rgba(0, 0, 0, 0.6) 70%, 
        transparent 100%);
    padding: 24px 20px;
    opacity: 1;
    transition: all 0.4s ease;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(2px);
}

.gallery-card-item:hover .gallery-card-overlay {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(0, 0, 0, 0.92) 40%, 
        rgba(0, 0, 0, 0.75) 70%, 
        transparent 100%);
    padding: 28px 20px;
}

.gallery-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-item:hover .gallery-card-title {
    color: var(--primary-yellow);
    text-shadow: 0 2px 12px rgba(255, 214, 0, 0.5);
}

.gallery-card-date {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gallery-card-date i {
    color: var(--primary-yellow);
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.gallery-card-badge {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--primary-black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
    transition: all 0.3s ease;
}

.gallery-card-item:hover .gallery-card-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 214, 0, 0.6);
}

/* Responsive Gallery Grid */
@media (max-width: 992px) {
    .gallery-grid-paginated {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .gallery-card-item {
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* Galerie transformée en carrousel sur mobile */
    .gallery-section {
        padding: 50px 0 60px 0;
    }
    
    .gallery-section .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 15px;
    }
    
    .gallery-header .section-title {
        font-size: 24px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    /* Masquer l'info de pagination sur mobile */
    .pagination-info {
        display: none !important;
    }
    
    /* Transformer en carrousel horizontal */
    .gallery-grid-pagination-container {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        padding: 0 8px;
        overflow: hidden;
        margin: 0;
    }
    
    /* Effet de fondu sur les bords pour un rendu premium */
    .gallery-grid-pagination-container::before,
    .gallery-grid-pagination-container::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 28px;
        pointer-events: none;
        z-index: 5;
    }
    .gallery-grid-pagination-container::before {
        left: 0;
        background: linear-gradient(90deg, rgba(18,18,18,1) 0%, rgba(18,18,18,0.7) 40%, rgba(18,18,18,0) 100%);
    }
    .gallery-grid-pagination-container::after {
        right: 0;
        background: linear-gradient(270deg, rgba(18,18,18,1) 0%, rgba(18,18,18,0.7) 40%, rgba(18,18,18,0) 100%);
    }
    
    .gallery-grid-wrapper {
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    
    .gallery-grid-paginated {
        display: flex !important;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
        /* Masquer la scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .gallery-grid-paginated::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-card-item {
        flex-shrink: 0;
        width: calc(100vw - 116px) !important;
        max-width: 340px;
        min-width: 260px;
        height: 340px !important;
        scroll-snap-align: center;
        display: block !important; /* Forcer l'affichage de tous les éléments */
        opacity: 1 !important;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 214, 0, 0.15);
        transition: all 0.3s ease;
    }
    
    .gallery-card-item:active {
        transform: scale(0.98);
    }
    
    .gallery-card-item img {
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        transition: transform 0.4s ease;
    }
    
    .gallery-card-item:active img {
        transform: scale(1.05);
    }
    
    /* Mobile optimizations for gallery modal */
    #galleryEventDetailModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #galleryEventDetailModal .modal-body {
        padding: 15px;
    }
    
    #galleryEventDetailModal #ge-poster {
        max-height: 250px;
    }
    
    #galleryEventDetailModal .ge-images-carousel-container {
        padding: 0 40px;
    }
    
    #galleryEventDetailModal .ge-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    #galleryEventDetailModal #ge-images-grid > div {
        width: 240px;
        min-width: 240px;
    }
    
    #galleryEventDetailModal #ge-images-grid img {
        height: 180px;
    }
    
    /* Better touch targets */
    #galleryEventDetailModal .gallery-image-item {
        touch-action: pan-y;
    }
    
    /* Improve modal scrolling on mobile */
    #galleryEventDetailModal .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize image loading on mobile */
    #galleryEventDetailModal #ge-images-grid img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .gallery-card-overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, 
            rgba(0,0,0,0.97) 0%, 
            rgba(0,0,0,0.92) 40%, 
            rgba(0,0,0,0.75) 70%, 
            transparent 100%);
        padding: 26px 20px;
        border-radius: 0 0 20px 20px;
        backdrop-filter: blur(4px);
        border-top: 2px solid rgba(255, 214, 0, 0.2);
    }
    
    .gallery-card-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-card-title {
        font-size: 19px;
        margin: 0;
        line-height: 1.4;
        font-weight: 800;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        letter-spacing: 0.3px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .gallery-card-date {
        font-size: 15px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }
    
    .gallery-card-date i {
        color: var(--primary-yellow);
        font-size: 18px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }
    
    .gallery-card-badge {
        display: inline-block;
        background: var(--primary-yellow);
        color: var(--primary-black);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 4px;
        align-self: flex-start;
        box-shadow: 0 4px 12px rgba(255, 214, 0, 0.4);
    }
    
    /* Boutons de navigation carrousel */
    .pagination-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        z-index: 10;
        box-shadow: 0 6px 16px rgba(255, 214, 0, 0.35);
        background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
        opacity: 0.95;
    }
    
    .pagination-btn:hover {
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 8px 25px rgba(255, 214, 0, 0.7);
        opacity: 1;
    }
    
    .pagination-btn-left {
        left: 16px;
    }
    
    .pagination-btn-right {
        right: 16px;
    }
    
    .pagination-btn i {
        font-size: 22px;
        font-weight: bold;
    }
    
    .pagination-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .pagination-btn:disabled:hover {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 6px 20px rgba(255, 214, 0, 0.3);
    }
}

/* Event Modal Styles */
.event-modal-custom {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: none;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 214, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.event-modal-header {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.15) 0%, rgba(255, 214, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 214, 0, 0.3);
    padding: 25px 35px;
    position: relative;
    backdrop-filter: blur(10px);
}

.event-modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-red) 0%, 
        var(--primary-yellow) 25%,
        var(--primary-yellow) 75%, 
        var(--primary-red) 100%);
    box-shadow: 0 2px 15px rgba(220, 38, 38, 0.6);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% {
        box-shadow: 0 2px 15px rgba(220, 38, 38, 0.6);
    }
    50% {
        box-shadow: 0 2px 25px rgba(255, 214, 0, 0.7),
                    0 0 40px rgba(220, 38, 38, 0.5);
    }
}

.event-modal-header .modal-title {
    color: var(--primary-yellow);
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255, 214, 0, 0.3);
    letter-spacing: 0.5px;
}

.event-modal-body {
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
}

/* Scrollbar personnalisée */
.event-modal-body::-webkit-scrollbar {
    width: 8px;
}

.event-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.event-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-yellow), var(--secondary-yellow));
    border-radius: 10px;
}

.event-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-yellow);
}

/* Vidéo Section */
.event-video-section {
    width: 100%;
    background: #000;
    padding: 0;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.event-video-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    pointer-events: none;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Image principale (pour événements sans vidéo) */
.event-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 500px;
}

/* Galerie d'images Section */
.event-gallery-section {
    padding: 45px 35px;
    background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
    position: relative;
    border: none;
    outline: none;
}

.event-gallery-section .event-gallery-image,
.event-gallery-section .event-gallery-image img {
    border: none !important;
    outline: none !important;
}

.event-gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(220, 38, 38, 0.6) 30%,
        rgba(255, 214, 0, 0.5) 50%,
        rgba(220, 38, 38, 0.6) 70%,
        transparent 100%);
}

.gallery-title {
    color: var(--primary-yellow);
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(255, 214, 0, 0.3);
    letter-spacing: 0.5px;
}

.gallery-title i {
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.6));
}

.event-images-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    outline: none;
}

.event-images-carousel-container * {
    box-sizing: border-box;
}

.event-carousel-btn {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 25px rgba(255, 214, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.event-carousel-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.event-carousel-btn:hover::before {
    width: 100%;
    height: 100%;
}

.event-carousel-btn i {
    font-size: 22px;
    color: var(--primary-black);
    position: relative;
    z-index: 1;
}

.event-carousel-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 35px rgba(255, 214, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.event-carousel-btn:active {
    transform: scale(0.95);
}

.event-images-carousel {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    display: flex;
    gap: 15px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    border: none;
    outline: none;
}

.event-images-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.event-images-carousel * {
    border: none;
    outline: none;
}

.event-gallery-image {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    border: none !important;
    outline: none !important;
    background: transparent;
}

.event-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none !important;
    outline: none !important;
    border-radius: 12px;
}

/* Description Section */
.event-description-section {
    padding: 45px 35px 50px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
}

.event-description-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(220, 38, 38, 0.6) 30%,
        rgba(255, 214, 0, 0.5) 50%,
        rgba(220, 38, 38, 0.6) 70%,
        transparent 100%);
}

.description-title {
    color: var(--primary-yellow);
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(255, 214, 0, 0.3);
    letter-spacing: 0.5px;
}

.description-title i {
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.6));
}

.event-info-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.event-info-grid .info-item {
    flex: 1;
    min-width: 250px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.08) 0%, 
        rgba(255, 214, 0, 0.05) 100%);
    border-left: 4px solid var(--primary-red);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 214, 0, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.info-item:hover::before {
    left: 100%;
}

.info-item:hover {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.15) 0%, 
        rgba(255, 214, 0, 0.1) 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4),
                0 4px 15px rgba(255, 214, 0, 0.2);
    border-left-width: 5px;
}

.info-item i {
    font-size: 22px;
    color: var(--primary-red);
    filter: drop-shadow(0 2px 5px rgba(220, 38, 38, 0.6));
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-yellow);
    filter: drop-shadow(0 2px 8px rgba(255, 214, 0, 0.7));
}

.info-item span {
    color: var(--primary-white);
    font-size: 15px;
    line-height: 1.6;
}

.info-item strong {
    color: var(--primary-yellow);
    margin-right: 5px;
    font-weight: 700;
}

.event-description-text {
    margin-top: 35px;
    padding: 25px 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 214, 0, 0.25);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2),
                0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.event-description-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--primary-red) 0%,
        var(--primary-yellow) 50%, 
        var(--primary-red) 100%);
    border-radius: 15px 0 0 15px;
}

.event-description-text p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15.5px;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
    letter-spacing: 0.2px;
}

/* Modal Footer */
.event-modal-footer {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.08) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-top: 1px solid rgba(255, 214, 0, 0.3);
    padding: 25px 35px;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

.event-modal-footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-red) 0%,
        var(--primary-yellow) 25%,
        var(--primary-yellow) 75%, 
        var(--primary-red) 100%);
    box-shadow: 0 -2px 15px rgba(220, 38, 38, 0.6);
}

.event-btn-close {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--primary-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 13px 28px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.event-btn-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.event-btn-close:hover::before {
    width: 300px;
    height: 300px;
}

.event-btn-close:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-3px);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3),
                0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-btn-reserve {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--primary-black);
    border: none;
    padding: 13px 35px;
    font-weight: 800;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 25px rgba(255, 214, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.event-btn-reserve::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.event-btn-reserve:hover::before {
    width: 300px;
    height: 300px;
}

.event-btn-reserve:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 35px rgba(255, 214, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--primary-black);
}

.event-btn-reserve i,
.event-btn-close i {
    position: relative;
    z-index: 1;
}

/* Animation d'ouverture de la modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.show .event-modal-custom {
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation de pulsation pour les titres */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(255, 214, 0, 0.3),
                     0 0 15px rgba(220, 38, 38, 0.2);
    }
    50% {
        text-shadow: 0 2px 15px rgba(220, 38, 38, 0.5),
                     0 0 25px rgba(255, 214, 0, 0.4);
    }
}

.gallery-title,
.description-title {
    animation: titleGlow 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .event-info-grid {
        flex-direction: column;
    }
    
    .event-info-grid .info-item {
        min-width: 100%;
    }
    
    .event-gallery-image {
        width: 150px;
        height: 100px;
    }
    
    .video-container {
        padding-bottom: 75%; /* 4:3 pour mobile */
    }
    
    .event-modal-header {
        padding: 20px 25px;
    }
    
    .event-modal-header .modal-title {
        font-size: 20px;
    }
    
    .event-gallery-section,
    .event-description-section {
        padding: 35px 25px;
    }
    
    .gallery-title,
    .description-title {
        font-size: 18px;
    }
    
    .event-modal-footer {
        flex-direction: column;
        padding: 20px 25px;
    }
    
    .event-btn-close,
    .event-btn-reserve {
        width: 100%;
        justify-content: center;
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(90deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--primary-white);
    padding: 60px 0 30px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}


footer p, footer a, footer h5 {
    color: var(--primary-white);
}

footer h5 {
    color: var(--primary-yellow) !important;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-logo::before {
    position: absolute;
    left: -40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.6);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 500;
    background-color: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--primary-yellow);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 214, 0, 0.2);
    text-align: center;
    color: var(--primary-white);
}

.copyright p {
    color: var(--primary-white);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-actions {
        gap: 10px;
    }
    
    .search-bar {
        width: 40px;
        height: 40px;
    }
    
    .search-bar.active {
        width: 300px;
    }
    
    .search-bar.active .search-input {
        width: 180px;
    }
    
    .search-btn {
        font-size: 18px;
        width: 32px;
        height: 32px;
        left: 4px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .event-image {
        height: 150px;
    }
    
    .navbar-brand .navbar-logo {
        height: 30px;
    }
    
    .modal-body img {
        max-height: 200px;
        margin-bottom: 10px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .custom-reserve, .custom-close {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* RESPONSIVE CAROUSEL */
    .carousel-prev-btn, .carousel-next-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-prev-btn {
        left: 10px;
    }
    
    .carousel-next-btn {
        right: 10px;
    }
    
    .events-grid-container {
        padding: 0 40px;
    }
    
    .event-item {
        width: 280px !important;
    }
    
    .event-image {
        height: 160px !important;
    }
    
    .event-info {
        padding: 18px !important;
    }
    
    .event-title {
        font-size: 22px !important;
        margin-bottom: 12px !important;
        color: var(--primary-black) !important;
        font-weight: 900 !important;
    }
    
    .event-badge, .event-date-badge {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    .event-date-badge {
        top: 10px !important;
        left: 10px !important;
    }
    
    .event-badge {
        top: 10px !important;
        right: 10px !important;
    }
    
    .event-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-event-info, .btn-event-reserve {
        width: 100%;
        font-size: 13px !important;
        padding: 7px 14px !important;
    }
    
    .calendar-title { 
        font-size: 22px !important; 
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-icons {
        justify-content: center;
    }
    
    /* Footer Mobile Styles */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-logo {
        font-size: 26px;
        text-align: center;
        display: block;
        margin-bottom: 15px;
    }
    
    .footer-logo::before {
        display: none;
    }
    
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 30px;
    }
    
    footer .col-lg-4:last-of-type {
        margin-bottom: 0;
    }
    
    footer p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    footer h5 {
        font-size: 18px;
        margin-bottom: 15px !important;
    }
    
    .social-icons {
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .footer-links a {
        padding: 12px 20px;
        font-size: 15px;
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        background-color: rgba(255, 214, 0, 0.2);
        transform: translateX(5px);
        color: var(--primary-yellow);
    }
    
    .copyright {
        margin-top: 30px;
        padding-top: 20px;
        text-align: center;
    }
    
    .copyright p {
        font-size: 13px;
        opacity: 0.9;
    }
}

/* Animation jours calendrier */
.animate-day {
    animation: fadeInDay 0.5s ease forwards;
}

@keyframes fadeInDay {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}