/* ============================================================
   IMAX UNIVERSE — style.css
   Aesthetic: Cinematic Dark Luxury / Industrial Precision
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black:      #020508;
    --dark:       #050c18;
    --dark-2:     #071020;
    --dark-3:     #0a1628;
    --border:     rgba(0,120,255,0.10);
    --border-2:   rgba(0,120,255,0.22);
    --gold:       #c8a85a;
    --gold-light: #e8c87a;
    --gold-dim:   rgba(200,168,90,0.15);
    --blue:       #0078ff;
    --blue-light: #3399ff;
    --blue-mid:   #1a5fd4;
    --blue-dim:   rgba(0,120,255,0.15);
    --blue-deep:  #001f5c;
    --blue-ultra: #0050cc;
    --cyan:       #00cfff;
    --white:      #deeeff;
    --white-dim:  rgba(190,220,255,0.82);
    --white-mute: rgba(120,180,255,0.55);
    --green:      #00e5a0;
    --purple:     #7a6fff;
    --orange:     #ff8c42;
    --red:        #ff3355;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'Space Mono', monospace;
    --radius:       6px;
    --radius-lg:    12px;
    --section-pad:  100px;
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(ellipse at 20% 0%, rgba(0,60,180,0.35) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 100%, rgba(0,40,140,0.25) 0%, transparent 60%);
}

body.loaded #loader { opacity: 0; pointer-events: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--blue)); border-radius: 2px; }

/* ===== LOADER ===== */
#loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--black);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 24px;
    transition: opacity 0.6s var(--ease-out);
}

.loader-ring {
    width: 64px; height: 64px;
    border: 1.5px solid var(--border-2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 8px;
    color: var(--gold);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ===== SEARCH HIGHLIGHT ===== */
@keyframes searchPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,120,255,0.55), 0 0 0 0 rgba(200,168,90,0.3); }
    40%  { box-shadow: 0 0 0 8px rgba(0,120,255,0.2), 0 0 32px 4px rgba(200,168,90,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(0,120,255,0), 0 0 0 0 rgba(200,168,90,0); }
}

.search-highlight {
    animation: searchPulse 1.8s ease-out forwards !important;
    outline: 1px solid rgba(0,120,255,0.4);
    border-radius: var(--radius-lg);
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center;
    padding: 0 48px;
    height: 64px;
    background: transparent;
    transition: background 0.4s, border-bottom 0.4s;
}

#navbar.scrolled {
    background: rgba(5,5,7,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex; align-items: baseline; gap: 6px;
    text-decoration: none; flex-shrink: 0;
}

.logo-imax {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--blue-light);
    text-shadow: 0 0 20px rgba(51,153,255,0.4);
}

.logo-universe {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
}

.nav-links {
    display: flex; gap: 40px; list-style: none;
    margin-left: auto;
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-dim);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-link.active { color: var(--blue-light); }
.nav-link.active::after { transform: scaleX(1); transform-origin: left; background: var(--blue); }


.status-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.status-error { background: var(--red); animation: none; }

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== HERO SCROLL HINT ===== */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    animation: scrollHintFade 2.5s ease-in-out infinite;
    pointer-events: none;
}

.scroll-hint-text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white-dim);
}

.scroll-hint-arrow {
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scrollBounce 1.4s ease-in-out infinite;
}

@keyframes scrollHintFade {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.9; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* Disparaît dès que l'utilisateur scrolle (géré en JS) */
.hero-scroll-hint.hidden {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ===== HERO VIDEO FULLSCREEN ===== */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2,5,8,0.12) 0%,
        rgba(2,5,8,0.45) 85%,
        rgba(2,5,8,0.85) 100%
    );
    z-index: 1;
}

/* ===== HERO BOTTOM (sous la vidéo) ===== */
.hero-bottom {
    background: var(--black);
    padding: 64px 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex; gap: 0;
    border-top: 1px solid var(--border);
    width: 100%;
    position: relative; z-index: 1;
    opacity: 0;
    transition: opacity 0.8s var(--ease-out) 0.2s;
}

.stat-item {
    flex: 1;
    padding: 32px 0;
    border-right: 1px solid var(--border);
    padding-right: 32px;
    margin-right: 32px;
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--white-mute);
    margin-top: 6px;
    text-transform: uppercase;
}

body.loaded .hero-stats { opacity: 1; }

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-pad) 48px;
    position: relative;
}

.section-dark {
    background: var(--dark-2);
    background-image: linear-gradient(135deg, rgba(10,30,80,0.4) 0%, transparent 60%),
                      linear-gradient(315deg, rgba(5,20,60,0.3) 0%, transparent 60%);
}

.section-header {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.95;
    margin-bottom: 20px;
    color: var(--white);
}

.section-title .accent { color: var(--gold); }

.section-desc {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.7;
}

/* ===== FILTERS ===== */
.filters {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white-dim);
    font-family: var(--font-body);
    font-size: 13px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-btn:hover { border-color: var(--border-2); color: var(--white); }

.filter-btn.active {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
}

.filter-count {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--border-2);
    padding: 1px 6px;
    border-radius: 100px;
}

/* ===== FILMS GRID ===== */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.film-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    animation: fadeSlideIn 0.5s var(--ease-out) both;
    animation-delay: var(--delay, 0ms);
}

.film-card:hover {
    background: var(--dark-3);
    border-color: rgba(74,158,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(20,60,160,0.25), 0 0 0 1px rgba(74,158,255,0.15);
}

.film-card.hidden { display: none; }

/* Poster */
.film-poster {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--dark-3);
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out), filter 0.4s;
    filter: brightness(0.88) saturate(1.1);
}

.film-card:hover .film-poster img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

.film-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, var(--dark-3) 0%, rgba(10,30,80,0.6) 100%);
}

.film-poster-placeholder svg {
    opacity: 0.3;
    color: var(--blue-light);
}

.film-poster-placeholder span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--white-mute);
    text-transform: uppercase;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(4,5,10,0.85) 100%);
    pointer-events: none;
}

/* Badge "À l'affiche" sur poster */
.poster-affiche-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(62,207,138,0.9);
    color: #031a0a;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.card-inner {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 20px 20px;
    position: relative; z-index: 1;
}

.card-number {
    font-family: var(--font-display);
    font-size: 32px;
    color: rgba(100,160,255,0.18);
    line-height: 1;
    min-width: 40px;
    transition: color 0.3s;
}

.film-card:hover .card-number { color: var(--blue-light); }

.card-body { flex: 1; min-width: 0; }

.film-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s;
}

.film-card:hover .film-title { color: var(--blue-light); }

.film-meta {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 12px;
}

.film-salle, .film-capacity {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px;
    color: var(--white-mute);
}

.film-badges {
    display: flex; flex-wrap: wrap; gap: 6px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.badge-green  { background: rgba(62,207,138,0.12); color: var(--green);  border: 1px solid rgba(62,207,138,0.25); }
.badge-gold   { background: rgba(200,168,90,0.12);  color: var(--gold);   border: 1px solid rgba(200,168,90,0.28); }
.badge-blue   { background: rgba(74,158,255,0.12);  color: var(--blue-light); border: 1px solid rgba(74,158,255,0.25); }
.badge-purple { background: rgba(155,114,255,0.1);  color: var(--purple); border: 1px solid rgba(155,114,255,0.22); }
.badge-gray   { background: rgba(180,200,255,0.07); color: var(--white-dim); border: 1px solid var(--border); }
.badge-red   { background: rgba(255,51,85,0.1);    color: var(--red);    border: 1px solid rgba(255,51,85,0.22); }

.card-arrow {
    font-size: 18px;
    color: rgba(100,160,255,0.2);
    align-self: center;
    transition: color 0.3s, transform 0.3s;
}

.film-card:hover .card-arrow { color: var(--blue); transform: translateX(4px); }

.card-glow {
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(74,158,255,0.08), transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s var(--ease-out), opacity 0.5s;
    pointer-events: none;
}

.film-card:hover .card-glow { transform: translate(-50%, -50%) scale(2); }

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

/* ===== SALLES GRID ===== */
.salles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.salle-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    animation: fadeSlideIn 0.5s var(--ease-out) both;
    animation-delay: var(--delay, 0ms);
}

.salle-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.salle-card:hover {
    border-color: rgba(74,158,255,0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10,40,140,0.2);
}

.salle-card:hover::before { opacity: 1; }

.salle-header {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 20px;
}

.salle-num {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--border-2);
    line-height: 1;
    min-width: 40px;
}

.salle-info { flex: 1; }

.salle-info h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.salle-filiale {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1px;
}

.salle-cap { text-align: right; }

.cap-number {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--gold);
    line-height: 1;
}

.cap-label {
    font-size: 11px;
    color: var(--white-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.salle-details {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.salle-detail-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--white-dim);
}

.salle-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
    transition: color 0.2s;
}

.salle-link:hover { color: var(--gold); }

.salle-ecrans {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}

.ecran-tag {
    display: flex; align-items: center; gap: 6px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    transition: border-color 0.3s;
}

.salle-card:hover .ecran-tag { border-color: rgba(200,168,90,0.2); }

.ecran-type {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gold);
}

.ecran-taille {
    font-size: 11px;
    color: var(--white-mute);
}

.salle-histoire {
    font-size: 13px;
    color: rgba(180,200,255,0.6);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.salle-bar {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
}

.salle-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    border-radius: 1px;
    width: 0;
    transition: width 1.2s var(--ease-out);
}

/* ===== FILIALES LIST ===== */
.filiales-list {
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.filiale-row {
    display: grid;
    grid-template-columns: 48px 90px 1fr auto 200px;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    background: var(--dark);
    transition: background 0.2s, border-left-color 0.3s;
    animation: fadeSlideIn 0.5s var(--ease-out) both;
    animation-delay: var(--delay, 0ms);
}

.filiale-row:last-child { border-bottom: none; }
.filiale-row:hover { background: var(--dark-3); border-left-color: var(--blue); }

.filiale-logo {
    width: 80px; height: 36px;
    color: var(--blue);
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.filiale-logo img { 
    max-width: 80px; 
    max-height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.3s;
}

.filiale-logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 1px;
    color: currentColor;
    white-space: nowrap;
}

.filiale-logo svg { width: 100%; height: 100%; }
.filiale-row:hover .filiale-logo { opacity: 1; color: var(--gold); }
.filiale-row:hover .filiale-logo img { opacity: 1; filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg); }

.filiale-rank {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--border-2);
}

.filiale-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.filiale-location {
    font-size: 12px;
    color: var(--white-mute);
    font-family: var(--font-mono);
}

.filiale-salles { text-align: center; }

.filiale-count {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--gold);
    line-height: 1;
}

.filiale-count-label {
    font-size: 11px;
    color: var(--white-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-track {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    border-radius: 2px;
    width: 0;
    transition: width 1.2s var(--ease-out);
}

/* ===== PAYS GRID ===== */
.pays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.pays-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
    animation: fadeSlideIn 0.5s var(--ease-out) both;
    animation-delay: var(--delay, 0ms);
    overflow: hidden;
}

.pays-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom left, rgba(74,158,255,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.pays-card:hover {
    border-color: rgba(74,158,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10,40,140,0.2);
}
.pays-card:hover::after { opacity: 1; }

.pays-rank {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--border);
    position: absolute;
    top: 12px; right: 20px;
    line-height: 1;
}

.pays-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 6px;
    position: relative; z-index: 1;
}

.pays-location {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--white-mute);
    margin-bottom: 28px;
    letter-spacing: 1px;
    position: relative; z-index: 1;
}

.pays-salles {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 16px;
    position: relative; z-index: 1;
}

.pays-number {
    font-family: var(--font-display);
    font-size: 52px;
    color: var(--gold);
    line-height: 1;
}

.pays-unit {
    font-size: 13px;
    color: var(--white-mute);
}

.pays-bar {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
    position: relative; z-index: 1;
}

.pays-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    width: 0;
    border-radius: 1px;
    transition: width 1.4s var(--ease-out);
}

/* ===== FOOTER ===== */
#footer {
    background: var(--black);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 48px 48px;
    border-bottom: 1px solid var(--border);
}

.footer-logo { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }

.footer-tagline {
    font-size: 13px;
    color: var(--white-mute);
    line-height: 1.7;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 10px;
}

.footer-nav-list li { font-size: 13px; color: var(--white-mute); }
.footer-nav-list a {
    color: var(--white-mute);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--white); }
.footer-nav-list code { font-family: var(--font-mono); font-size: 11px; color: var(--gold); }

.footer-bottom {
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-status-row {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--white-mute);
}

.footer-legal-row {
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--white-mute);
}

.footer-ml-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--white-mute);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    padding: 0;
}
.footer-ml-btn:hover { color: var(--blue-light); }

/* ===== LEGAL MODAL ===== */
.legal-modal {
    background: var(--dark-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-family: var(--font-body);
    padding: 0;
    max-width: 640px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,30,0.8), 0 0 0 1px rgba(74,158,255,0.1);
}

.legal-modal::backdrop {
    background: rgba(4,5,10,0.8);
    backdrop-filter: blur(4px);
}

.legal-modal-inner {
    padding: 40px;
    overflow-y: auto;
    max-height: 80vh;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--dark-3);
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    color: var(--white-dim);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.modal-close:hover { border-color: var(--blue); color: var(--white); }

.modal-title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.modal-section p {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.75;
    margin-bottom: 8px;
}

/* ===== INTERSECTION / REVEAL GENERAL ===== */
.salle-card,
.pays-card,
.filiale-row,
.film-card,
.section-header {
    opacity: 0;
}

.salle-card.visible,
.pays-card.visible,
.filiale-row.visible,
.film-card.visible,
.section-header.visible {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 64px; }

    #navbar { padding: 0 20px; }
    .nav-links { display: none; }

    #hero { height: 100vh; }
    .hero-bottom { padding: 48px 20px 0; gap: 28px; }
    .hero-stats { flex-wrap: wrap; }
    .stat-item { min-width: 45%; }

    .section { padding: var(--section-pad) 20px; }

    .films-grid { grid-template-columns: 1fr; }
    .salles-grid { grid-template-columns: 1fr; }
    .pays-grid { grid-template-columns: repeat(2, 1fr); }

    .filiale-row {
        grid-template-columns: 40px 36px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }
    .filiale-salles { grid-column: 2 / 4; }
    .filiale-progress { grid-column: 1 / -1; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 20px 32px; }
    .footer-bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
    .footer-legal-row { gap: 16px; }
}

/* ===== VIDEO PAUSE CONTROL ===== */
.hero-video-control {
    position: absolute;
    bottom: 20px;
    right: 24px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-video-control:hover {
    background: rgba(74,158,255,0.25);
    border-color: rgba(74,158,255,0.5);
    transform: translateY(-1px);
}
.hero-video-control:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}
.hvc-icon { display: flex; align-items: center; }

/* ===== NAVBAR SEARCH — always visible inline ===== */
.nav-search {
    flex: 1;
    max-width: 320px;
    margin: 0 32px;
    position: relative;
}

.nav-search-inline {
    position: relative;
    width: 100%;
}

.nav-search-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(74,158,255,0.2);
    border-radius: 100px;
    padding: 8px 16px 8px 40px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 14px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.28); }
.nav-search-input:focus {
    border-color: rgba(74,158,255,0.5);
    background-color: rgba(74,158,255,0.07);
    box-shadow: 0 0 0 3px rgba(74,158,255,0.08);
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(8, 10, 18, 0.97);
    border: 1px solid rgba(74,158,255,0.25);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
}
.nav-search-results:empty { display: none; }
.nav-search-results::-webkit-scrollbar { width: 4px; }
.nav-search-results::-webkit-scrollbar-track { background: transparent; }
.nav-search-results::-webkit-scrollbar-thumb { background: rgba(74,158,255,0.3); border-radius: 4px; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    transition: background 0.15s;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.focused { background: rgba(74,158,255,0.1); }
.sri-type { font-size: 16px; flex-shrink: 0; }
.sri-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sri-label {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sri-label mark {
    background: none;
    color: var(--gold, #c8a85a);
    font-weight: 700;
}
.sri-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sri-sub mark { background: none; color: rgba(200,168,90,0.6); }
.sri-badge {
    font-size: 10px;
    padding: 2px 7px;
    background: rgba(74,158,255,0.15);
    border: 1px solid rgba(74,158,255,0.3);
    border-radius: 100px;
    color: var(--blue-light, #7bbcff);
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

/* ===== BURGER MENU ===== */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    padding: 0;
    position: relative;
    z-index: 300;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.nav-burger:hover {
    border-color: rgba(74,158,255,0.5);
    background: rgba(74,158,255,0.1);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-burger-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: rgba(6, 8, 16, 0.97);
    border: 1px solid rgba(74,158,255,0.18);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
    z-index: 200;
}
.nav-burger-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.burger-links { list-style: none; padding: 0; margin: 0; }
.burger-link {
    display: block;
    padding: 11px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-mono, monospace);
    transition: color 0.15s, background 0.15s;
}
.burger-link:hover {
    color: #fff;
    background: rgba(74,158,255,0.08);
}
.burger-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 6px 0;
}
.burger-legal-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 20px;
    background: none;
    border: none;
    color: rgba(200,168,90,0.85);
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: var(--font-mono, monospace);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    text-align: left;
}
.burger-legal-link:hover {
    color: var(--gold, #c8a85a);
    background: rgba(200,168,90,0.06);
}

/* Show burger on tablet/mobile, hide on desktop */
@media (max-width: 900px) {
    .nav-burger { display: flex; }
    .nav-links { display: none !important; }
    .nav-search { max-width: 200px; margin: 0 12px; }
}

/* On desktop, still show search, hide burger */
@media (min-width: 901px) {
    .nav-burger { display: none; }
    .nav-burger-menu { display: none !important; }
}

/* Responsive: on mobile search panel full width */
@media (max-width: 480px) {
    .nav-search { max-width: 140px; margin: 0 8px; }
}

/* ============================================================
   SOUS-PAGES — Page Hero + Back link
   ============================================================ */

/* nav-logo as link */
a.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

/* Page hero banner (remplace le hero vidéo sur les sous-pages) */
.page-hero {
    padding: 140px 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid var(--border);
}

.page-hero-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    opacity: 0.85;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-bottom: 18px;
}

.page-hero-desc {
    font-size: 16px;
    color: var(--white-mute);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-mute);
    text-decoration: none;
    border: 1px solid var(--border-2);
    padding: 9px 18px;
    border-radius: var(--radius);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.page-back-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-dim);
}

.page-hero-stat {
    text-align: right;
    flex-shrink: 0;
}

.page-stat-number {
    font-family: var(--font-display);
    font-size: clamp(64px, 10vw, 120px);
    line-height: 1;
    background: linear-gradient(135deg, var(--gold), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-mute);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .page-hero {
        flex-direction: column;
        padding: 120px 24px 48px;
        align-items: flex-start;
    }
    .page-hero-stat {
        text-align: left;
    }
}
