:root {
    --blue-primary: #4A90E2;
    --blue-dark:    #46618C;
    --blue-deep:    #2B89CE;
    --blue-light:   #87CEEB;
    --bg-page:      #f0f4f8;
    --bg-card:      #ffffff;
    --bg-muted:     #f8f9fa;
    --text-main:    #1e2b3a;
    --text-muted:   #6b7a8d;
    --border:       #e4eaf1;
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --shadow-sm:    0 1px 4px rgba(30,43,74,0.07);
    --shadow-md:    0 4px 16px rgba(30,43,74,0.10);
    --shadow-lg:    0 8px 32px rgba(30,43,74,0.13);
    --transition:   0.22s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--blue-primary);
}

a:hover {
    text-decoration: underline;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

.header {
    background: linear-gradient(135deg, rgba(0,128,204,0.9) 0%, rgba(42,82,152,0.9) 50%, rgba(30,60,114,0.9) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,100 C150,200 350,0 500,100 C650,200 850,0 1000,100 L1000,300 L0,300 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.echo-logo {
    width: 300px;
    height: 300px;
    background: url('https://echobleu.org/images/logo.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.4));
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.nav-bar {
    background: var(--blue-dark);
    padding: 0;
    box-shadow: 0 2px 12px rgba(30,43,74,0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Bouton hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    justify-content: space-around;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation du hamburger quand ouvert */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    padding: 16px 22px;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition), background var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--blue-light);
    color: #fff;
}

.user-info {
    color: white;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
}

.social-icons .icon {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
    transition: transform 0.2s ease;
}

.social-icons a:hover .icon {
    transform: scale(1.1);
}

.btn-connexion {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background var(--transition), border-color var(--transition);
    height: 28px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    text-decoration: none;
    outline: none;
    letter-spacing: 0.03em;
}

.btn-connexion:focus, .btn-connexion:active {
    outline: none;
}

.btn-connexion:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.6);
    text-decoration: none;
    color: white;
}

/* RESPONSIVE - TRÈS IMPORTANT */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0px;
        left: -100% !important;
        width: 90% !important;
        height: calc(100vh - 70px) !important;
        background-color: #46618C !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 2rem !important;
        transition: left 0.3s ease !important;
        gap: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-item {
        width: 90% !important;
        text-align: center !important;
        padding: 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        border-left: none !important;
        margin: 0 !important;
    }

    .nav-item:hover, .nav-item.active {
        background: rgba(255,255,255,0.2) !important;
        border-bottom-color: rgba(255,255,255,0.1) !important;
    }

    .user-info {
        position: absolute !important;
        top: 50% !important;
        right: 60px !important;
        transform: translateY(-50%) !important;
    }

    .nav-container {
        padding: 0 20px !important;
        height: 70px !important;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 480px) {
    .user-info {
        right: 10px !important;
    }

    .social-icons {
        gap: 5px !important;
    }

    .social-icons .icon {
        width: 20px !important;
        height: 20px !important;
    }

    .btn-connexion {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-section {
    display: none;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.page-section.active {
    display: block;
}

.section-header {
    background: linear-gradient(100deg, var(--blue-dark), var(--blue-deep));
    color: white;
    padding: 24px 36px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.section-content {
    padding: 30px;
}

.form-container {
    max-width: 460px;
    margin: 30px auto;
    padding: 32px 36px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-main);
    background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.12);
}

.btn {
    background: var(--blue-primary);
    color: #fff;
    padding: 11px 26px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(74,144,226,0.25);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:focus, .btn:active {
    outline: none;
}

.btn:hover {
    background: #357ABD;
    box-shadow: 0 4px 16px rgba(74,144,226,0.35);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    background: var(--blue-light);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #6BB6E8;
    box-shadow: none;
}

#interactiveMap {
    height: 500px;
    border-radius: 8px;
    margin: 20px 0;
}

.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: end;
}

.filter-group {
    flex: 1;
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
    color: white;
    padding: 24px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.trends-section {
    background: var(--bg-muted);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-arrow {
    font-size: 1.2em;
    font-weight: bold;
}

.trend-up { color: #dc3545; }
.trend-down { color: #28a745; }
.trend-stable { color: #ffc107; }

.photos-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-type {
    font-size: 12px;
    font-weight: bold;
}

.photo-location {
    font-size: 10px;
    opacity: 0.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: var(--bg-card);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-card h3 {
    color: var(--blue-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.charte-section {
    background: var(--bg-card);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.charte-intro {
    background: linear-gradient(135deg, #45618C, #2B89CE);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.engagement-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.engagement-list li {
    background: var(--bg-muted);
    padding: 14px 18px;
    margin: 10px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.engagement-list li strong {
    color: var(--blue-primary);
}

.responsibility-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.responsibility-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.warning-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box h4 {
    color: #721c24;
    margin-bottom: 10px;
}

.alert {
    padding: 14px 18px;
    margin: 15px 0;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-success {
    background: #edfaf2;
    color: #166534;
    border-color: #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.hidden {
    display: none !important;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.section {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.section h2 {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.01em;
}

.section h3 {
    color: var(--blue-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-item {
    background: var(--bg-muted);
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.action-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.action-item h4 {
    color: var(--blue-primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.threats-list {
    list-style: none;
    padding: 0;
}

.threats-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.threats-list li:before {
    content: "•";
    color: #4A90E2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.ocean-image {
    width: 100%;
    height: 400px;
    background: url('https://echobleu.org/images/plongeur.jpeg') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ocean-image::after {
    content: '© echobleu 2025';
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    font-size: 12px;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.ocean-image2 {
    width: 100%;
    height: 400px;
    background: url('https://echobleu.org/images/plongeur2.jpeg') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ocean-image2::after {
    content: '© echobleu 2025';
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    font-size: 12px;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.ocean-image3 {
    width: 100%;
    height: 100%;
    background: url('https://echobleu.org/images/plongeur3.jpeg') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ocean-image3::after {
    content: '© echobleu 2025';
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    font-size: 12px;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.ocean-image4 {
    width: 100%;
    height: 330px;
    background: url('https://echobleu.org/images/plongeur4.jpeg') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ocean-image4::after {
    content: '© echobleu 2025';
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: white;
    font-size: 12px;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.partner-item {
    background: var(--bg-muted);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.partner-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.partner-item h4 {
    color: var(--blue-primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info {
    background: #46618C;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

.member-access-panel {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.member-access-panel h3 {
    color: white;
    margin-bottom: 20px;
}

.access-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.access-btn {
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 14px 18px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    outline: none;
}

.access-btn:focus, .access-btn:active {
    outline: none;
}

.access-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Pop-up Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    border-top: 3px solid #4A90E2;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text strong {
    color: #87CEEB;
}

.cookie-text a {
    color: #87CEEB;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    outline: none;
}

.cookie-btn:focus, .cookie-btn:active {
    outline: none;
}

.cookie-btn-accept {
    background: #4A90E2;
    color: white;
}

.cookie-btn-accept:hover {
    background: #357ABD;
}

.cookie-btn-decline {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
}

/* Modal de politique de confidentialité */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
}

.privacy-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.privacy-modal h3 {
    color: #4A90E2;
    margin-bottom: 20px;
    border-bottom: 2px solid #87CEEB;
    padding-bottom: 10px;
}

.privacy-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.privacy-modal-close:hover {
    color: #4A90E2;
}

/* Légende de la carte */
.map-legend {
    background: var(--bg-muted);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.map-legend h4 {
    color: #4A90E2;
    margin-bottom: 15px;
    font-size: 18px;
}

.map-legend h5 {
    color: #4A90E2;
    margin: 15px 0 10px 0;
    font-size: 14px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.severity-legend {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.severity-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.severity-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
    }

    .severity-items {
        flex-direction: column;
        gap: 10px;
    }
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}
