: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;
}

* {
    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 */
.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; /* Ajuste la hauteur selon la taille de ton logo */
    margin-right: 50px;
}

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

.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; /* Cercle plus grand */
    height: 50px;
    background: rgba(255, 255, 255, 0.1); /* Fond semi-transparent */
    border-radius: 50%; /* Cercle parfait */
    padding: 10px;
    cursor: pointer;
    transition: all 0.4s ease; /* Animation fluide */
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Ombre légère pour la profondeur */
    position: relative;
    z-index: 1000;
}

.search-bar:hover {
    background: var(--primary-yellow); /* Fond jaune au survol */
    color: var(--primary-black); /* Icône noire au survol */
}

.search-bar.active {
    width: 375px; /* Barre plus grande après clic */
    border-radius: 25px; /* Forme allongée */
    background: rgba(255, 255, 255, 0.2);
    justify-content: flex-end; /* Déplacer le contenu vers la droite */
}

.search-input {
    background: none;
    border: none;
    color: var(--primary-white);
    padding: 10px 15px;
    outline: none;
    width: 0; /* Caché initialement */
    opacity: 0; /* Invisible initialement */
    transition: all 0.4s ease-in-out; /* Animation fluide */
    font-size: 16px; /* Texte plus lisible */
}

.search-bar.active .search-input {
    width: 250px; /* Champ de saisie plus grand */
    opacity: 1; /* Visible quand actif */
    margin-right: 100px; /* Espacement à droite */
}

.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; /* Même taille que la barre de recherche */
    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); /* Ombre cohérente avec la barre de recherche */
}

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

/* ========================================
   POPUP MON COMPTE
   ======================================== */

.account-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.account-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.account-popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 25px;
    padding: 40px 50px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary-yellow);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.account-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--primary-white);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.account-popup-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: var(--primary-red);
    transform: rotate(90deg);
}

.account-popup-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-white);
    text-align: center;
    margin-bottom: 35px;
    text-transform: none;
}

.account-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--primary-black);
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.4);
}

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

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 214, 0, 0.6);
}

.btn-register {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-white);
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-login i,
.btn-register i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 576px) {
    .account-popup-content {
        padding: 30px 25px;
    }
    
    .account-popup-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .btn-login,
    .btn-register {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* ========================================
   POPUP CONNEXION ET INSCRIPTION
   ======================================== */

.login-popup,
.register-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.login-popup.active,
.register-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-popup-content,
.register-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-radius: 20px;
    padding: 40px 45px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-popup-close,
.register-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-popup-close:hover,
.register-popup-close:hover {
    background: rgba(213, 0, 0, 0.1);
    color: var(--primary-red);
    transform: rotate(90deg);
}

.login-popup-title,
.register-popup-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-black);
    text-align: center;
    margin-bottom: 30px;
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
}

.form-group-login {
    margin-bottom: 20px;
}

.form-group-login label {
    display: block;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group-login input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group-login input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

.form-group-login input::placeholder {
    color: #bbb;
}

.btn-connexion {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--primary-black);
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.3);
}

.btn-connexion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 214, 0, 0.5);
}

.forgot-password {
    display: block;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-black);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.link-register {
    background: none;
    border: none;
    color: var(--primary-black);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.link-register:hover {
    color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 576px) {
    .login-popup-content,
    .register-popup-content {
        padding: 30px 25px;
    }
    
    .login-popup-title,
    .register-popup-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-group-login input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .btn-connexion {
        padding: 14px;
        font-size: 16px;
    }
}

/* Featured Film Section */
.featured-film-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.featured-film-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.featured-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-out;
}

.featured-film-trailer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    pointer-events: none;
}

.featured-film-trailer-container.active {
    pointer-events: auto;
}

#featuredFilmTrailer {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

.featured-film-trailer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

.featured-film-sound-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 20px;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.featured-film-sound-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
}

.featured-film-sound-btn.unmuted {
    background: rgba(255, 214, 0, 0.2);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.featured-film-sound-btn.unmuted:hover {
    background: rgba(255, 214, 0, 0.3);
}

@media (max-width: 768px) {
    .featured-film-sound-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.featured-film-content {
    position: relative;
    z-index: 2;
    color: var(--primary-white);
    max-width: 600px;
}

.featured-film-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.featured-film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.film-category {
    color: var(--primary-yellow);
    font-weight: 600;
}

.film-duration {
    color: var(--primary-white);
}

.film-actors {
    color: rgba(255, 255, 255, 0.8);
}

.featured-film-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.featured-film-actions-top {
    margin-bottom: 25px;
}

.btn-see-more {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-see-more:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 214, 0, 0.3);
}

.featured-film-schedule {
    margin-bottom: 30px;
}

.schedule-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-yellow);
}

/* Message élégant quand aucune séance n'est disponible (modal, film à la une) */
.no-showtimes-empty {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 214, 0, 0.35);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.95);
}
.no-showtimes-empty .no-showtimes-icon {
    font-size: 2.25rem;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
    display: block;
}
.no-showtimes-empty .no-showtimes-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.no-showtimes-empty .no-showtimes-sub {
    font-size: 0.85rem;
    opacity: 0.88;
    color: rgba(255, 255, 255, 0.8);
}

.schedule-times {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-slot {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-slot.text-muted {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 214, 0, 0.3);
    color: rgba(255, 255, 255, 0.75);
    cursor: default;
}

.time-slot:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.featured-film-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-reserve {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--primary-white);
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(213,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-reserve:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(213,0,0,0.4);
    color: var(--primary-white);
}

.btn-favorite {
    background: rgba(255, 255, 255, 0.2);
    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;
    font-size: 20px;
}

.btn-favorite:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: scale(1.1);
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-location {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
}

.location-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Now Playing Section */
.now-playing-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--primary-white);
    position: relative;
}

.now-playing-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-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-white);
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.movies-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 20px; /* Ajusté pour donner plus d'espace aux flèches */
    padding: 20px 0;
    overflow: visible; /* Changé pour éviter de couper les flèches */
}

.movies-grid {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    flex: 1;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

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

.movies-carousel-container:has(.no-films-message) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.movies-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

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

.carousel-btn:hover {
    background: var(--secondary-yellow);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.carousel-btn-left {
    left: -80px; /* Ajusté pour être à l'intérieur du conteneur */
}

.carousel-btn-right {
    right: -80px; /* Ajusté pour être à l'intérieur du conteneur */
}

.movie-poster {
    flex-shrink: 0;
    width: 200px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.movie-poster:hover {
    transform: translateY(-10px);
}

.movie-poster img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.movie-poster:hover img {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.movie-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    color: var(--primary-white);
    text-align: center;
    line-height: 1.3;
}

/* Avant-premières et préventes Section */
.premieres-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-black) 100%);
    color: var(--primary-white);
    position: relative;
}

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

/* Prochaines sorties Section */
.coming-soon-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-black) 100%);
    color: var(--primary-white);
    position: relative;
    margin-bottom: 0;
}

.coming-soon-section::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 10%);
    opacity: 0.1;
    z-index: 0;
}

/* ===== 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 - 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;
    }
    
    .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;
    }
    
    .search-bar.active .search-btn {
        width: 32px;
        height: 32px;
    }
    
    .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;
    }
    
    .featured-film-section {
        height: auto;
        min-height: 70vh;
        padding: 60px 0 40px 0;
    }
    
    .featured-film-title {
        font-size: 28px !important;
        color: var(--primary-white) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 15px !important;
        line-height: 1.2;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
        font-weight: 900 !important;
        position: relative;
        z-index: 10;
    }
    
    .featured-film-description {
        font-size: 16px;
    }
    
    .featured-film-content {
        padding: 20px 15px !important;
        max-width: 100% !important;
        z-index: 5 !important;
        position: relative;
    }
    
    .featured-film-info {
        position: relative;
        z-index: 10;
    }
    
    .featured-overlay {
        z-index: 1 !important;
        background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%) !important;
    }
    
    .featured-film-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-reserve {
        width: 100%;
        justify-content: center;
    }
    
    .btn-see-more {
        font-size: 14px;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
        border-width: 2px;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        font-weight: 600;
    }
    
    .btn-see-more:hover,
    .btn-see-more:active {
        background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
        color: var(--primary-black);
        border-color: var(--primary-yellow);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 214, 0, 0.5);
    }
    
    .btn-see-more i {
        font-size: 16px;
    }
    
    .movies-carousel-container {
        margin: 0 40px; /* Ajusté pour donner plus d'espace aux flèches */
        overflow: visible; /* Assure que les flèches ne sont pas coupées */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carousel-btn-left {
        left: 0; /* Ajusté pour être à l'intérieur du conteneur */
    }
    
    .carousel-btn-right {
        right: 0; /* Ajusté pour être à l'intérieur du conteneur */
    }
    
    .location-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .movie-poster {
        width: 160px;
    }
    
    .movie-poster img {
        height: 240px;
    }
    
    .movie-title {
        font-size: 14px;
    }
    
    .navbar-brand .navbar-logo {
        height: 30px; /* Réduction pour mobile */
    }
    
    .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;
    }
}

/* ========================================
   MODAL DE SÉLECTION D'HORAIRE - FILM EN VEDETTE
   ======================================== */

.featured-showtime-dialog {
    max-width: 1200px !important;
    width: 95%;
}

.featured-showtime-modal .modal-content {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98) 0%, rgba(35, 35, 35, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 214, 0, 0.4);
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 214, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.featured-showtime-modal .modal-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-bottom: 2px solid rgba(255, 214, 0, 0.5);
    padding: 18px 30px;
    position: relative;
    backdrop-filter: blur(10px);
}

.featured-showtime-modal .modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
}

.featured-showtime-modal .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #FFD600 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(255, 214, 0, 0.3);
}

.featured-showtime-modal .modal-title i {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.featured-showtime-modal .btn-close {
    background: rgba(255, 214, 0, 0.1);
    opacity: 1;
    filter: invert(1);
    transition: all 0.4s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-showtime-modal .btn-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.featured-showtime-modal .modal-body {
    padding: 25px 30px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(5px);
}

.film-info-quick {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.15) 0%, rgba(255, 214, 0, 0.08) 100%);
    border-left: 5px solid var(--primary-yellow);
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.film-info-quick::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 214, 0, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.film-info-quick h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 19px;
    color: var(--primary-yellow);
    margin-bottom: 8px;
}

.film-info-quick p {
    color: var(--primary-white);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.film-info-quick i {
    color: var(--primary-yellow);
    margin-right: 5px;
}

.showtime-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 19px;
    background: linear-gradient(135deg, #FFD600 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-yellow) 0%, transparent 100%) 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-showtimes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
}

/* Scrollbar personnalisée */
.featured-showtimes-grid::-webkit-scrollbar {
    width: 8px;
}

.featured-showtimes-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.featured-showtimes-grid::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 10px;
}

.featured-showtimes-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-yellow);
}

.featured-showtime-btn {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.6) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 2px solid rgba(255, 214, 0, 0.4);
    border-radius: 15px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    color: var(--primary-white);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.featured-showtime-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.featured-showtime-btn:hover::before {
    left: 100%;
}

.featured-showtime-btn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-yellow);
    border-width: 2.5px;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.25) 0%, rgba(255, 214, 0, 0.12) 100%);
    box-shadow: 0 12px 30px rgba(255, 214, 0, 0.5), 0 0 20px rgba(255, 214, 0, 0.3);
}

.featured-showtime-btn.selected {
    border-color: var(--primary-yellow);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.4) 0%, rgba(255, 214, 0, 0.2) 100%);
    box-shadow: 0 15px 40px rgba(255, 214, 0, 0.7), inset 0 0 20px rgba(255, 214, 0, 0.2);
    transform: translateY(-8px) scale(1.08);
}

.featured-showtime-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

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

.showtime-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

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

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

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

.sold-out {
    display: block;
    background: var(--primary-red);
    color: var(--primary-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coming-soon {
    display: block;
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-showtime-modal .modal-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    border-top: 2px solid rgba(255, 214, 0, 0.5);
    padding: 18px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    backdrop-filter: blur(10px);
}

.featured-showtime-modal .custom-reserve {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    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 15px rgba(255, 214, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.featured-showtime-modal .custom-reserve:hover::after {
    left: 100%;
}

.featured-showtime-modal .custom-reserve:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.6);
}

.featured-showtime-modal .custom-close {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: var(--primary-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    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;
}

.featured-showtime-modal .custom-close:hover {
    transform: translateY(-3px);
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(213, 0, 0, 0.4);
}

.text-warning {
    color: var(--primary-yellow) !important;
    font-weight: 600;
    padding: 12px 20px;
    background: rgba(255, 214, 0, 0.15);
    border-left: 4px solid var(--primary-yellow);
    border-radius: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive pour le modal */
@media (max-width: 1200px) {
    .featured-showtime-dialog {
        max-width: 95% !important;
    }
}

@media (max-width: 768px) {
    .featured-showtime-dialog {
        max-width: 100% !important;
        width: 100%;
        margin: 10px;
    }
    
    .featured-showtimes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 18px;
        max-height: 400px;
        padding-top: 8px;
        padding-left: 5px;
    }
    
    .featured-showtime-btn {
        padding: 18px 15px;
    }
    
    .showtime-section-title {
        font-size: 18px;
    }
    
    .film-info-quick h3 {
        font-size: 18px;
    }
}

/* ===== BOUTON LIKE DANS LE MODAL ===== */
.movie-modal-btn-like {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.movie-modal-btn-like i {
    transition: all 0.3s ease;
}

.movie-modal-btn-like.liked {
    background: linear-gradient(135deg, #ff0050 0%, #ff4081 100%) !important;
    border-color: #ff0050 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.movie-modal-btn-like.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

.movie-modal-btn-like:hover {
    transform: translateY(-2px);
}

.movie-modal-btn-like.liked:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.6);
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.2);
    }
}

/* ===== MODAL D'AVIS ===== */
.reviews-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 214, 0, 0.3);
    border-radius: 15px;
    color: var(--primary-white);
}

.reviews-modal-header {
    background: linear-gradient(90deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    border-bottom: 2px solid var(--primary-yellow);
    padding: 20px 25px;
}

.reviews-modal-header .modal-title {
    color: var(--primary-yellow);
    font-size: 22px;
    font-weight: 600;
}

.reviews-modal-header .modal-title i {
    margin-right: 10px;
}

.reviews-modal-body {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
    /* Improve scroll on mobile */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Mobile scroll improvements for modal bodies */
@media (max-width: 768px) {
    .reviews-modal-body {
        max-height: 60vh;
        padding: 20px 15px;
        /* Better touch scrolling on mobile */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .movie-modal-body {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .review-form-modal-body {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 20px 15px;
    }

    /* Ensure modals are scrollable on mobile */
    .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Fix modal height on mobile */
    .modal-dialog {
        max-height: 90vh;
        margin: 10px auto;
    }

    .modal-content {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
    }
}

.reviews-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 214, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
}

.reviews-count, .reviews-average {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.reviews-count i, .reviews-average i {
    color: var(--primary-yellow);
    font-size: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.review-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-yellow);
    transition: all 0.3s ease;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    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: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-info strong {
    color: var(--primary-white);
    font-size: 16px;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.review-rating .stars {
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-rating .rating-number {
    color: var(--primary-yellow);
    font-size: 14px;
    font-weight: 600;
}

.review-comment {
    color: #ddd;
    line-height: 1.6;
    font-size: 15px;
}

.reviews-modal-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 214, 0, 0.2);
    padding: 20px 25px;
    display: flex;
    justify-content: center;
}

.btn-give-review {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--primary-black);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-give-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.5);
}

/* ===== MODAL FORMULAIRE D'AVIS ===== */
.review-form-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 214, 0, 0.3);
    border-radius: 15px;
    color: var(--primary-white);
}

.review-form-modal-header {
    background: linear-gradient(90deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    border-bottom: 2px solid var(--primary-yellow);
    padding: 20px 25px;
}

.review-form-modal-header .modal-title {
    color: var(--primary-yellow);
    font-size: 20px;
    font-weight: 600;
}

.review-form-modal-body {
    padding: 30px;
}

#reviewForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 15px;
}

.review-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 214, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff !important;
    font-size: 15px;
    transition: all 0.3s ease;
}

.review-input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.2);
    color: #ffffff !important;
}

.review-input::placeholder {
    color: #999 !important;
}

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 32px;
    padding: 10px 0;
}

.star-icon {
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-icon:hover {
    transform: scale(1.2);
}

.btn-submit-review {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-yellow) 100%);
    color: var(--primary-black);
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 214, 0, 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Scrollbar personnalisée pour la liste d'avis */
.reviews-modal-body::-webkit-scrollbar {
    width: 8px;
}

.reviews-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.reviews-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 10px;
}

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


/* Horizontal poster for movie details modal (desktop and mobile) */
.movie-modal-horizontal-poster {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 150px !important;
    height: auto !important;
    margin: 0 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    border-radius: 12px;
    overflow: visible !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative !important;
    z-index: 10 !important;
    order: -1 !important; /* Force it to be first in flex container */
    flex-shrink: 0 !important;
}

.movie-modal-horizontal-poster-img {
    width: 100% !important;
    min-height: 150px !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 12px;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.5s ease-out;
}

/* Hide the vertical poster media when horizontal is shown (desktop and mobile) */
.movie-modal-body .movie-modal-media {
    display: none !important;
}

/* Horizontal trailer video container (desktop and mobile) */
.movie-modal-horizontal-trailer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 150px;
    max-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    z-index: 2;
    background: #000;
}

.movie-modal-horizontal-trailer-iframe {
    width: 100%;
    height: 100%;
    min-height: 150px;
    max-height: 300px;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    /* Additional mobile-specific adjustments if needed */
    .movie-modal-body {
        padding-top: 20px !important;
    }
}