/*
Theme Name: Digiflex Ciné Réunion
Theme URI: https://cine-reunion.com
Description: Child theme personnalisé pour Ciné Réunion - Intégration API programmation cinéma
Author: RunPark
Author URI: https://runpark.re
Template: digiflex
Version: 1.0.0
Text Domain: digiflex-child
*/

/* Import du thème parent */
@import url('../digiflex/style.css');

/* ==========================================================================
   CINE REUNION - CUSTOM STYLES
   ========================================================================== */

/* Variables CSS - THEME DARK */
:root {
    --cine-primary: #e50914;
    --cine-primary-dark: #b20710;
    --cine-secondary: #ffd93d;
    --cine-dark: #0f0f0f;
    --cine-dark-light: #1a1a1a;
    --cine-dark-lighter: #2a2a2a;
    --cine-text: #ffffff;
    --cine-text-muted: #999999;
    --cine-border: #333333;
    --cine-gradient: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* THEME DARK - Fond sombre */
body {
    background: #0f0f0f !important;
    color: #ffffff !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

body.admin-bar {
    padding-top: 0 !important;
}

#page {
    background: #0f0f0f !important;
}

.site-content {
    background: #0f0f0f !important;
    padding: 0 !important;
}

/* Menu principal - fond sombre avec texte clair */
.site-header,
header.header,
.main-header,
nav.navbar,
.navigation {
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333333;
}

.site-header.sticky,
header.header.sticky,
.main-header.sticky {
    background: rgba(26, 26, 26, 1) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Menu links - texte clair sur fond sombre */
.site-header a,
header.header a,
.main-header a,
nav.navbar a,
.navigation a,
.menu-item a {
    color: #ffffff !important;
}

.site-header a:hover,
header.header a:hover,
.main-header a:hover,
nav.navbar a:hover,
.navigation a:hover,
.menu-item a:hover {
    color: #e50914 !important;
}

/* Film thumbnails grid on programmation page */
.cine-film-thumb:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4) !important;
}

/* FIX: Empêcher boutons de se wrapper sur 2 lignes */
.cinema-btn,
.offre-btn,
a.cinema-btn,
a.offre-btn,
button.cinema-btn {
    white-space: nowrap !important;
}

/* FIX: Masquer titres en doublon sur pages avec templates personnalisés */
.page-template-page-programmation-cinema .entry-header,
.page-template-page-tous-les-films .entry-header,
.page-template-page-contact .entry-header,
.page-template-page-cartes-fidelite .entry-header,
.page-template-page-publicite .entry-header,
.page-template-page-espace-pro .entry-header,
.page-template-page-bandes-annonces .entry-header,
.page-template-template-home-cine .entry-header,
.page-template-template-programmation .entry-header {
    display: none !important;
}

/* Alternative: Si le sélecteur ci-dessus ne fonctionne pas */
.entry-title.page-title {
    display: none !important;
}

.page-header {
    display: none !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-to-top:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6) !important;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   PAGE ACCUEIL - HERO SECTION
   ========================================================================== */

.cine-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
}

.cine-hero-slider {
    position: relative;
    height: 100%;
}

.cine-hero-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.cine-hero-slide.active {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 2;
}

.cine-hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.cine-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.cine-hero-info {
    max-width: 600px;
}

.cine-hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--cine-gradient);
    color: var(--cine-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.cine-hero-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--cine-text);
    margin: 0 0 20px 0;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.cine-hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--cine-text-muted);
}

.cine-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cine-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--cine-text);
    margin-bottom: 30px;
    max-width: 500px;
}

.cine-hero-actions {
    display: flex;
    gap: 15px;
}

.cine-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cine-btn-primary {
    background: var(--cine-gradient);
    color: var(--cine-text);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cine-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

.cine-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cine-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cine-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   SECTIONS ACCUEIL
   ========================================================================== */

.cine-section {
    padding: 60px 0;
    background: var(--cine-dark);
}

.cine-section:nth-child(even) {
    background: var(--cine-dark-light);
}

.cine-section-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cine-section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--cine-text);
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

.cine-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--cine-gradient);
    border-radius: 2px;
}

.cine-section-link {
    color: var(--cine-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.cine-section-link:hover {
    gap: 12px;
}

/* ==========================================================================
   FILMS CAROUSEL
   ========================================================================== */

.cine-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.cine-carousel-wrapper {
    overflow: hidden;
}

.cine-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.cine-movie-card {
    flex: 0 0 180px;
    max-width: 180px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cine-dark-lighter);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cine-movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    z-index: 10;
}

.cine-movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.cine-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}

/* Force qualité HD pour toutes les images de films */
img[class*="wp-post-image"],
img[class*="attachment"],
.cine-movie-poster img,
.cine-prog-poster img,
.cine-film-poster img,
.cine-hero-slide {
    image-rendering: auto !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: high-quality !important;
    -ms-interpolation-mode: bicubic !important;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cine-movie-card:hover .cine-movie-poster img {
    transform: scale(1.1);
}

.cine-movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0) 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cine-movie-overlay .cine-movie-excerpt {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.5;
}

.cine-movie-card:hover .cine-movie-overlay {
    transform: translateY(0);
}

.cine-movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--cine-gradient);
    color: var(--cine-text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
}

.cine-movie-info {
    padding: 15px;
}

.cine-movie-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cine-text);
    margin: 0 0 8px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cine-movie-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--cine-text-muted);
}

.cine-movie-genres {
    font-size: 12px;
    color: var(--cine-primary);
    margin-bottom: 10px;
}

/* Carousel Navigation */
.cine-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.cine-carousel-nav:hover {
    background: var(--cine-gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.cine-carousel-nav.prev {
    left: 20px;
}

.cine-carousel-nav.next {
    right: 20px;
}

/* ==========================================================================
   PROGRAMMATION PAGE
   ========================================================================== */

.cine-prog-header-main {
    background: linear-gradient(135deg, var(--cine-dark) 0%, var(--cine-dark-light) 100%);
    padding: 60px 80px;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--cine-primary);
}

.cine-prog-header-main h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--cine-text);
    margin: 0 0 15px 0;
}

.cine-prog-cinema-info {
    color: var(--cine-text-muted);
    font-size: 18px;
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.cine-prog-cinema-info span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filtres de programmation */
.cine-prog-filters {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 80px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cine-filter-btn {
    padding: 10px 20px;
    background: var(--cine-dark-lighter);
    color: var(--cine-text);
    border: 2px solid var(--cine-border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cine-filter-btn:hover,
.cine-filter-btn.active {
    background: var(--cine-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Liste programmation améliorée */
.cine-programmation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px 60px;
}

.cine-prog-item {
    background: linear-gradient(135deg, var(--cine-dark-light) 0%, var(--cine-dark-lighter) 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 6px solid var(--cine-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.cine-prog-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.2);
}

.cine-prog-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--cine-border);
}

.cine-prog-poster {
    flex-shrink: 0;
    width: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.cine-prog-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.cine-prog-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cine-prog-info h3 {
    font-size: 28px;
    font-weight: 900;
    color: var(--cine-text);
    margin: 0 0 15px 0;
}

.cine-prog-meta {
    display: flex;
    gap: 20px;
    color: var(--cine-text-muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.cine-prog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cine-prog-meta span::before {
    content: '•';
    color: var(--cine-primary);
    font-size: 20px;
}

.cine-prog-meta span:first-child::before {
    display: none;
}

.cine-prog-synopsis {
    color: var(--cine-text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
}

/* Horaires optimisés pour le clic */
.cine-prog-sessions {
    margin-top: 25px;
}

.cine-session-day {
    margin-bottom: 25px;
}

.cine-session-date {
    font-weight: 700;
    font-size: 16px;
    color: var(--cine-text);
    text-transform: capitalize;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--cine-primary);
    border-radius: 6px;
    display: inline-block;
}

.cine-session-times {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cine-session-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--cine-gradient);
    color: var(--cine-text);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.cine-session-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cine-session-time:hover::before {
    left: 100%;
}

.cine-session-time:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.cine-session-time:active {
    transform: translateY(-2px) scale(1.02);
}

.cine-session-time .version {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-weight: 600;
}

.cine-session-time .icon-ticket::before {
    content: '🎫';
    font-size: 20px;
}

/* Call-to-action pour réservation */
.cine-booking-cta {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 217, 61, 0.1);
    border: 2px dashed var(--cine-secondary);
    border-radius: 12px;
    text-align: center;
}

.cine-booking-cta p {
    color: var(--cine-text-muted);
    margin: 0 0 15px 0;
    font-size: 14px;
}

.cine-booking-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--cine-secondary) 0%, #ffc107 100%);
    color: var(--cine-dark);
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.cine-booking-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 217, 61, 0.6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .cine-movie-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    .cine-hero-content,
    .cine-section-header,
    .cine-carousel,
    .cine-programmation,
    .cine-prog-header-main {
        padding-left: 40px;
        padding-right: 40px;
    }

    .cine-hero-title {
        font-size: 42px;
    }

    .cine-movie-card {
        flex: 0 0 calc(50% - 10px);
    }

    .cine-prog-filters {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .cine-hero {
        height: 60vh;
        min-height: 500px;
    }

    .cine-hero-content,
    .cine-section-header,
    .cine-carousel,
    .cine-programmation,
    .cine-prog-header-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cine-hero-title {
        font-size: 32px;
    }

    .cine-hero-description {
        font-size: 16px;
    }

    .cine-section-title {
        font-size: 24px;
    }

    .cine-movie-card {
        flex: 0 0 calc(50% - 10px);
    }

    .cine-prog-header {
        flex-direction: column;
        gap: 20px;
    }

    .cine-prog-poster {
        width: 100%;
        max-width: 200px;
    }

    .cine-session-times {
        gap: 8px;
    }

    .cine-session-time {
        padding: 12px 18px;
        font-size: 16px;
    }

    .cine-prog-filters {
        padding: 0 20px;
    }

    .cine-prog-header-main h1 {
        font-size: 32px;
    }

    .cine-prog-cinema-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cine-movie-card {
        flex: 0 0 100%;
    }

    .cine-hero-actions {
        flex-direction: column;
    }

    .cine-btn {
        width: 100%;
        justify-content: center;
    }

    .cine-session-time {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}

/* Code couleur par cinéma */
.cinema-cambaie { color: #ff6b6b; }
.cinema-grandsud { color: #ffd93d; }
.cinema-lacaze { color: #6bcfff; }


/* ========================================
   SYSTÈME DE FILTRAGE CINÉ RÉUNION
   ======================================== */

/* Container principal de recherche */
.search-filter-container {
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 15px;
    margin: 20px 0 30px 0;
    backdrop-filter: blur(10px);
}

/* Wrapper du champ de recherche */
.search-input-wrapper {
    position: relative;
    display: inline-block;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

/* Champ de recherche principal */
.search-input, #search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    font-family: inherit;
}

.search-input:focus, #search-input:focus {
    border-color: #007cba;
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.2);
    transform: translateY(-2px);
}

.search-input::placeholder, #search-input::placeholder {
    color: #888;
    opacity: 0.8;
}

/* Icône de recherche */
.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #666;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #007cba;
}

/* Statistiques de recherche */
.search-stats {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-stats.visible {
    opacity: 1;
}

/* Mise en surbrillance des résultats */
.search-highlight {
    background: linear-gradient(120deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Message "Aucun résultat" */
.no-results-message {
    text-align: center;
    padding: 50px 30px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-results-content h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* Bouton effacer recherche */
.clear-search-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-search-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.clear-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.3);
}

/* Animations pour les cartes */
.film-card, .trailer-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.film-card.filtered-out, .trailer-card.filtered-out {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
}

.film-card:not(.filtered-out), .trailer-card:not(.filtered-out) {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .search-filter-container {
        margin: 15px 0 25px 0;
        padding: 15px;
    }
    
    .search-input-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .search-input, #search-input {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 12px 45px 12px 18px;
    }
    
    .search-icon {
        right: 15px;
        font-size: 16px;
    }
    
    .no-results-message {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .no-results-content h3 {
        font-size: 20px;
    }
    
    .clear-search-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-filter-container {
        padding: 10px;
    }
    
    .search-input, #search-input {
        padding: 10px 40px 10px 15px;
        font-size: 16px;
    }
    
    .no-results-content h3 {
        font-size: 18px;
    }
    
    .no-results-content p {
        font-size: 14px;
    }
}

/* Amélioration de l'accessibilité */
.search-input:focus, #search-input:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.clear-search-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Dark mode support - DÉSACTIVÉ pour forcer thème clair */
/*
@media (prefers-color-scheme: dark) {
    .search-filter-container {
        background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.1) 100%);
    }

    .search-input, #search-input {
        background: rgba(0, 0, 0, 0.8);
        color: white;
        border-color: #444;
    }

    .search-input::placeholder, #search-input::placeholder {
        color: #ccc;
    }

    .search-icon {
        color: #ccc;
    }

    .no-results-message {
        background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
        border-color: #444;
        color: #fff;
    }

    .no-results-content h3 {
        color: #fff;
    }

    .no-results-content p {
        color: #ccc;
    }

    .search-highlight {
        background: linear-gradient(120deg, #444 0%, #666 100%);
        color: #ffd700;
    }
}
*/


/* ==========================================================================
   FIX URGENT MENU + TABS + SEARCH - 16 NOV 2025
   ========================================================================== */

/* FIX 1: Menu items empilés -> horizontal */
.navbar .site-menu ul.menu-horizontal {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .site-menu ul.menu-horizontal > li {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

.navbar .site-menu ul.menu-horizontal > li > a {
    white-space: nowrap;
    display: inline-block;
}

/* FIX 2: Tabs visibility */
.filter-tabs {
    display: flex !important;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-tab {
    cursor: pointer;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--primary-color, #e50914);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* FIX 3: Search results visibility */
.film-card,
.trailer-card {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
}

.film-card .film-info,
.trailer-card .film-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.film-card .film-btn,
.film-card .film-card-btn {
    margin-top: auto !important;
}

.film-card.filtered-out,
.trailer-card.filtered-out {
    display: none !important;
}

/* ==========================================================================
   FIX MENU NAVIGATION HORIZONTAL - 17 NOV 2025
   ========================================================================== */

.navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 40px !important;
}

.navbar .site-menu {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.navbar .site-menu ul,
.navbar .site-menu ul.menu-horizontal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 15px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .site-menu ul > li,
.navbar .site-menu ul.menu-horizontal > li {
    display: inline-flex !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .site-menu ul > li > a,
.navbar .site-menu ul.menu-horizontal > li > a {
    white-space: nowrap !important;
    display: inline-block !important;
    padding: 10px 15px !important;
}

@media (max-width: 992px) {
    .navbar .site-menu {
        display: none !important;
    }
}

/* ==========================================================================
   CRITICAL FIX - Menu + Z-index Search - 17 NOV 2025
   ========================================================================== */

/* Menu horizontal - Force specificity */
.navbar .site-menu ul.menu-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.navbar .site-menu ul.menu-horizontal > li {
    display: inline-block !important;
    float: none !important;
    position: relative !important;
    margin: 0 15px 0 0 !important;
    padding: 0 !important;
}

.navbar .site-menu ul.menu-horizontal > li > a {
    display: block !important;
    padding: 10px 15px !important;
    white-space: nowrap !important;
    color: #fff !important;
}

/* Z-index hierarchy correct */
#cineSearchBtn {
    z-index: 999999 !important;
    position: fixed !important;
}

#cineSearchModal {
    z-index: 999998 !important;
    position: fixed !important;
}

.navbar {
    z-index: 99990 !important;
    position: relative !important;
}


/* ==========================================================================
   FORCER THEME CLAIR - CIBLÉ ET SÉLECTIF
   ========================================================================== */

/* Wrapper principal de contenu */
.site-main,
.content-wrapper,
.page-wrapper,
article,
.entry-content {
    background: transparent !important;
}

/* Titres - texte foncé sur fond clair */
h1:not(.site-title):not(.logo),
h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Texte général */
p {
    color: #ffffff !important;
}

/* Menu texte visible */
.site-header a,
.main-navigation a,
.nav-menu a,
#primary-menu a,
.navbar a {
    color: #ffffff !important;
    text-shadow: none !important;
}

.site-header a:hover,
.main-navigation a:hover,
.nav-menu a:hover,
#primary-menu a:hover,
.navbar a:hover {
    color: #e50914 !important;
}

/* Footer reste sombre */
footer,
.site-footer {
    background: #2c2c2c !important;
    color: #FFFFFF !important;
}

footer *,
.site-footer * {
    color: #FFFFFF !important;
}

footer a,
.site-footer a {
    color: #ffd93d !important;
}

footer a:hover,
.site-footer a:hover {
    color: #FFFFFF !important;
}


/* ==========================================================================
   FIX MENU - TEXTE VISIBLE SUR FOND BLANC
   ========================================================================== */

/* FORCER texte menu en noir - toutes variantes possibles */
.site-header *,
.main-header *,
.site-navigation *,
.main-navigation *,
#site-navigation *,
#primary-menu *,
.nav-menu *,
.menu *,
.navbar *,
.navbar-nav *,
header a,
header li,
header span,
header .menu-item,
header .menu-item a,
.site-branding a,
.site-title a {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Hover menu */
.site-header a:hover,
.main-header a:hover,
header a:hover,
.menu-item a:hover,
#primary-menu a:hover {
    color: #e50914 !important;
}

/* Logo text */
.site-title,
.site-title a {
    color: #ffffff !important;
}


/* ==========================================================================
   CORRECTIONS FINALES - TEXTES ET COULEURS
   ========================================================================== */

/* Hero section - textes blancs */
.hero-title,
.hero-description,
.hero-meta,
.hero-meta span {
    color: #ffffff !important;
}

/* Pages film - textes foncés */
.film-title,
.film-info h1,
.film-info h2,
.film-info h3,
.synopsis-text,
.casting-list,
.film-details {
    color: #ffffff !important;
}

/* Lightbox - bouton visible */
.lightbox-button,
.modal-button,
button.reserver-btn {
    color: #ffffff !important;
    background: var(--cine-primary) !important;
}

/* Menu - fond transparent et texte visible */
.site-header {
    background: transparent !important;
}

.site-header,
.site-header a,
.site-header .menu-item a {
    color: #ffffff !important;
}


/* FORCER header transparent - toutes variantes */
header,
.header,
.site-header,
.main-header,
.top-header,
.header-wrapper,
#masthead {
    background: transparent !important;
    background-color: transparent !important;
}

/* FORCER texte menu noir - toutes variantes */
header *,
.header *,
.site-header *,
.main-header *,
nav *,
.navigation *,
.menu *,
#primary-menu *,
.nav-menu * {
    color: #ffffff !important;
}

/* Liens menu hover */

/* ==========================================================================
   CORRECTION FOOTER - PROTÉGER TEXTE BLANC
   ========================================================================== */

footer,
footer *,
.site-footer,
.site-footer *,
.footer,
.footer *,
#footer,
#footer * {
    color: #ffffff !important;
}

footer a,
.site-footer a,
.footer a {
    color: #ffffff !important;
}

footer a:hover,
.site-footer a:hover,
.footer a:hover {
    color: #ffd93d !important;
}


/* ==========================================================================
   MENU HEADER - CIBLÉ SANS WILDCARD
   ========================================================================== */

/* Header backgrounds transparents */
header {
    background: transparent !important;
    background-color: transparent !important;
}

.site-header,
.main-header,
#masthead {
    background: transparent !important;
    background-color: transparent !important;
}

/* Navigation menu texte noir */
nav a,
.nav a,
.navigation a,
.main-navigation a,
#primary-menu a,
.menu a {
    color: #ffffff !important;
}

/* Logo texte noir */
.site-title,
.site-title a,
.logo a {
    color: #ffffff !important;
}


/* ==========================================================================
   PAGES FILM - TEXTE NOIR (SAUF FOOTER)
   ========================================================================== */

/* Cibler spécifiquement zone contenu film (pas footer) */
.single-cine_film .site-main,
.single-cine_film article,
.single-cine_film .entry-content {
    color: #ffffff !important;
}

.single-cine_film h1,
.single-cine_film h2,
.single-cine_film h3,
.single-cine_film p,
.single-cine_film .cine-film-info,
.single-cine_film .cine-film-synopsis {
    color: #ffffff !important;
}

/* Exceptions : boutons et horaires restent blancs */
.single-cine_film button,
.single-cine_film .btn,
.single-cine_film .cine-session-time {
    color: #ffffff !important;
}

/* Dernière modification : 2025-12-21 12:15 - Fix footer + règles ciblées */


/* ==========================================================================
   FORCE MAXIMALE - TOUS LES HEADERS POSSIBLES
   ========================================================================== */

/* Supprimer backgrounds même inline */
header[style],
.site-header[style],
.main-header[style],
#masthead[style],
.header[style] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Tous les éléments div dans le header */
header div,
.site-header div,
.main-header div,
#masthead div {
    background: transparent !important;
    background-color: transparent !important;
}

/* Navigation - force texte noir partout */
header nav,
header nav a,
header .navigation,
header .navigation a,
header .menu,
header .menu a {
    color: #ffffff !important;
    background: transparent !important;
}



/* ==========================================================================
   FIX NAVBAR - CIBLER CLASSE EXACTE DU THÈME PARENT
   ========================================================================== */

nav.navbar {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

nav.navbar * {
    background: transparent !important;
    background-color: transparent !important;
}

nav.navbar a,
nav.navbar .menu a,
nav.navbar .site-menu a {
    color: #ffffff !important;
}

/* Mobile menu aussi */
nav.mobile-menu {
    background: transparent !important;
}

nav.mobile-menu a {
    color: #ffffff !important;
}



/* ==========================================================================
   MENU BLANC ACCUEIL - FIX FINAL ULTRA SPÉCIFIQUE
   Timestamp: 2025-12-21 13:00
   ========================================================================== */

body nav.navbar,
body.home nav.navbar,
.page-template-template-home-cine nav.navbar {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

body nav.navbar > *,
body nav.navbar div {
    background: transparent !important;
    background-color: transparent !important;
}

/* Forcer tous les wrappers possibles */
body .navbar,
body header,
body .site-header {
    background: transparent !important;
    background-color: transparent !important;
}



/* ==========================================================================
   PAGES CINÉMAS - FORCER FOND BEIGE PARTOUT
   Timestamp: 2025-12-21 13:30
   ========================================================================== */

/* Pages programmations */
.page-template-page-cine-cambaie,
.page-template-page-cine-grandsud,
.page-template-page-cine-lacaze,
.page-template-page-cine-cambaie *,
.page-template-page-cine-grandsud *,
.page-template-page-cine-lacaze * {
    background-color: transparent !important;
}

.page-template-page-cine-cambaie body,
.page-template-page-cine-grandsud body,
.page-template-page-cine-lacaze body {
    background: #0f0f0f !important;
}

.page-template-page-cine-cambaie .cinema-detail-page,
.page-template-page-cine-grandsud .cinema-detail-page,
.page-template-page-cine-lacaze .cinema-detail-page {
    background: #0f0f0f !important;
}

/* Wrapper principal si existe */
#page,
#main,
.site-main,
.content-area {
    background: transparent !important;
}

