:root { 
    --primary: #E42313; 
    --dark: #2A327B; 
    --light: #f8f9fa; 
    --accent: #0e112d; 
    --secondary: #de6f8d;
}

* { 
    box-sizing: border-box; 
}

html{
    scroll-behavior: smooth;
}
body { 
    font-family: 'Poppins', sans-serif; 
    margin: 0; 
    background: var(--light); 
    color: var(--dark); 
    scroll-behavior: smooth; 
}

nav { 
    background: white; 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.logo { 
    font-weight: 600; 
    font-size: 1.5rem; 
    color: var(--primary); 
    z-index: 1001;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    margin: 0; 
    padding: 0;
}

nav a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Menu Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: all 0.3s;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero { 
    height: 40vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: var(--dark);
    color: white; 
    margin-top: 60px; 
}

.hero h1 { 
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0.5rem 0;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
}

.search-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #d62839;
}

.search-result {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.search-result.show {
    display: block;
}

.search-result.error {
    background: #ffe5e5;
    color: #d62839;
}

.search-result.success {
    background: #e5ffe5;
    color: #2d6a2d;
}

#carte { 
    height: 600px; 
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    margin-bottom: 3rem;
}

.stats-section {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}


.filters-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent);
    background: white;
    color: var(--accent);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.stat-card h3 {
    color: var(--dark);
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-detail {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.stat-detail strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.3rem;
}

/* === SECTION SÉLECTEUR ET GRAPHIQUE === */

.selector-container {
    text-align: center;
    margin: 3rem 0 2rem;
}

.selector-container h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

#topCinemaSelect {
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

#topCinemaSelect:hover {
    background: var(--light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.result-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary);
    transition: all 0.3s;
    min-width: 0;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.result-card h4 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cinema-info {
    text-align: center;
}

.cinema-info h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* === ABOUT SECTION === */

.about-section {
    background:  var(--dark);
    padding: 4rem 2rem;
    margin: 3rem 0 0 0;
    color: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 {
    color: white;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.about-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.about-card {
    text-align: center;
}

.about-card p {
    margin: 0.5rem 0;
}

.linkedin-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.linkedin-link:hover {
    opacity: 0.8;
}

/* === FOOTER === */

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-logos img {
    height: 60px;
    width: auto;
    background-color: white;
    border-radius: 12px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-logos {
        gap: 30px;
    }
    
    .footer-logos img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-logos {
        gap: 20px;
    }
    
    .footer-logos img {
        height: 40px;
    }
}


.footer-logos img {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* === LEAFLET CUSTOMIZATION === */

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    border-top: 3px solid var(--primary);
}

.leaflet-popup-content {
    font-family: 'Poppins', sans-serif;
}

.marker-cluster-small {
    background-color: rgba(0, 168, 225, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(0, 168, 225, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(228, 0, 59, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(228, 0, 59, 0.8);
}

.marker-cluster-large {
    background-color: rgba(0, 158, 224, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(0, 158, 224, 0.8);
}

/* === RESPONSIVE MEDIA QUERIES === */

/* Tablettes */
@media (max-width: 968px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 35vh;
    }
    
    #carte {
        height: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    nav {
        padding: 1rem 3%;
    }
    
    nav ul {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        gap: 1rem;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .hero {
        height: 30vh;
    }
    
    #carte {
        height: 300px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-container {
        padding: 0 1rem;
    }
    
    .stats-section {
        padding: 0 1rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .chart-container {
        height: 350px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    nav {
        padding: 0.8rem 3%;
    }
    
    .search-box input,
    .search-box button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    #carte {
        height: 350px;
    }
    
    #topCinemaSelect {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        height: 100%;
    }
    
    .about-section {
        padding: 3rem 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}