* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i { margin-right: 10px; font-size: 1.8rem; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Home */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.hero h1 { font-size: 4rem; margin-bottom: 10px; font-weight: 700; }
.hero h2 { font-size: 1.5rem; margin-bottom: 20px; opacity: 0.9; }

.hero-buttons {
    margin-top: 30px;
    gap: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #ffd700;
    color: #333;
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,215,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat h3 { font-size: 3rem; color: #ffd700; margin-bottom: 5px; }

/* Sections */
.features, .news-section {
    padding: 100px 0;
    background: #f8f9ff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e3c72;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

/* Team */
.team {
    padding: 100px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.supervisor {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* News */
.news-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}

.news-section .container { max-width: 1000px; }

.news-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #1e3c72;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #1e3c72;
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-badge.urgent { background: #ff4757; color: white; }
.news-badge.info { background: #3742fa; color: white; }
.news-badge.update { background: #ffa502; color: white; }

.news-card h3 {
    margin-bottom: 10px;
    color: #1e3c72;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.risk {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.risk.low { background: #2ed573; color: white; }
.risk.medium { background: #ffa502; color: white; }
.risk.high { background: #ff6348; color: white; }

/* Map */
.map-hero {
    padding: 140px 0 20px;
    background: #1a1a2e;
    color: white;
}

.map-controls {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-item span {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-item.low span { background: #2ed573; }
.legend-item.medium span { background: #ffa502; }
.legend-item.high span { background: #ff6348; }
.legend-item.critical span { background: #ff4757; }

#map { 
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.map-stats {
    padding: 50px 0;
    background: #16213e;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-card h3 { font-size: 2.5rem; color: #ffd700; margin-bottom: 10px; }

/* Footer */
.footer {
    background: #1e1e1e;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu { 
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #1e3c72;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }
    
    .nav-menu.active { left: 0; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { gap: 20px; }
    .stat h3 { font-size: 2rem; }
    
    .features-grid, .news-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .map-controls { flex-direction: column; text-align: center; }
    .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
}
.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    flex-wrap: nowrap; /* Garde tout sur la même ligne */
}

.search-box {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 5px 15px;
    width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    padding: 8px;
}

.search-box button {
    background: none;
    border: none;
    color: #1e3c72;
    cursor: pointer;
    font-size: 1.1rem;
}

.legend {
    display: flex;
    gap: 15px;
}
/* ===== LONG TERM MAP ===== */
.longterm-legend { 
    background: rgba(255,255,255,0.95); 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.forecast-tabs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
}

.tab-btn { 
    padding: 12px 24px; 
    border: 2px solid #1e3c72; 
    background: white; 
    border-radius: 25px; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-weight: 500;
}

.tab-btn.active, .tab-btn:hover { 
    background: #1e3c72 !important; 
    color: white !important; 
}

.forecast-date { 
    font-weight: bold; 
    color: #ffd700; 
    margin-bottom: 15px; 
    font-size: 1.1em;
}

.custom-marker {
    background: transparent;
    border: none;
}

/* Stats améliorées */
.map-stats .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}