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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    min-height: 100vh;
    padding: 1rem;
}

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

/* Header Card */
.header-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #4b5563;
}

/* ========== BANNIÈRE ========== */
.banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.banner-content {
    flex: 1;
    z-index: 1;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0;
    font-weight: 500;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .banner {
        gap: 1rem;
        padding: 1rem;
    }
    
    .banner-icon {
        width: 50px;
        height: 50px;
    }
    
    .banner-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .banner-subtitle {
        font-size: 0.875rem;
    }
    
    .banner-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
}

/* Mode nuit */
body.dark-mode .banner {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
    box-shadow: 0 10px 30px -5px rgba(76, 29, 149, 0.6);
}

body.dark-mode .banner-icon {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .banner-badge {
    background: rgba(255, 255, 255, 0.2);
}


/* Search Card */
.search-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.search-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-wrapper {
    position: relative;
    margin-bottom: 0;
}

.address-input {
    background-color: #f0fdf4;
    border-color: #86efac;
}

.address-input:focus {
    border-color: #22c55e;
    background-color: white;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #6366f1;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #4b5563;
}

.result-count {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Address Suggestions */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

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

.suggestion-label {
    font-size: 0.875rem;
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.suggestion-context {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Address Result */
.address-result {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.address-result h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.address-details p {
    margin-bottom: 0.25rem;
}

.address-details p:last-child {
    margin-bottom: 0;
}

.address-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-view-sector {
    background: white;
    color: #059669;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-view-sector:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
}

.btn-new-search {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-new-search:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hidden {
    display: none !important;
}

/* Sectors Header */
.sectors-header {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sectors-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.sectors-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Sector Cards */
.sector-card {
    border: 2px solid;
    border-radius: 0.5rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sector-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.sector-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.sector-number {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.sector-zones {
    margin-bottom: 0.75rem;
}
/* Bouton Contact */
.btn-contact {
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-contact {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Styles du formulaire de contact */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
}

.form-status {
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    background: #f3f4f6;
    color: #4b5563;
}

.form-status-success {
    background: #d1fae5;
    color: #065f46;
}

.form-status-error {
    background: #fee2e2;
    color: #991b1b;
}

.modal-btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: #9ca3af;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn-secondary:hover {
    background-color: #6b7280;
}
.zone-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.zone-text {
    font-size: 0.875rem;
}

.zone-more {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 1.5rem;
}

.sector-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
}

.footer-item {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.footer-item:first-child {
    font-weight: 600;
}

/* Sector Colors */
.bg-blue-100 { background-color: #dbeafe; border-color: #93c5fd; }
.bg-green-100 { background-color: #dcfce7; border-color: #86efac; }
.bg-yellow-100 { background-color: #fef9c3; border-color: #fde047; }
.bg-red-100 { background-color: #fee2e2; border-color: #fca5a5; }
.bg-purple-100 { background-color: #f3e8ff; border-color: #d8b4fe; }
.bg-pink-100 { background-color: #fce7f3; border-color: #f9a8d4; }
.bg-indigo-100 { background-color: #e0e7ff; border-color: #a5b4fc; }
.bg-orange-100 { background-color: #ffedd5; border-color: #fdba74; }
.bg-teal-100 { background-color: #ccfbf1; border-color: #5eead4; }
.bg-cyan-100 { background-color: #cffafe; border-color: #67e8f9; }
.bg-lime-100 { background-color: #ecfccb; border-color: #bef264; }
.bg-emerald-100 { background-color: #d1fae5; border-color: #6ee7b7; }
.bg-sky-100 { background-color: #e0f2fe; border-color: #7dd3fc; }
.bg-violet-100 { background-color: #ede9fe; border-color: #c4b5fd; }
.bg-fuchsia-100 { background-color: #fae8ff; border-color: #f0abfc; }
.bg-rose-100 { background-color: #ffe4e6; border-color: #fda4af; }
.bg-amber-100 { background-color: #fef3c7; border-color: #fcd34d; }

/* No Results */
.no-results {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-results-text {
    color: #6b7280;
}

/* Info Card */
.info-card {
    margin-top: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.info-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 48rem;
    width: 100%;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

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

.modal-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: #4f46e5;
}

/* Modal Content Sections */
.modal-section {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.modal-section h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-section p {
    margin-bottom: 0.5rem;
}

.modal-section ul {
    margin-left: 1rem;
}

.modal-section a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.modal-section a:hover {
    text-decoration: underline;
}

.bg-gray-50 { background-color: #f9fafb; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-red-50 { background-color: #fef2f2; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-teal-50 { background-color: #f0fdfa; }

.text-indigo-600 { color: #4f46e5; }
.text-red-600 { color: #dc2626; }
.text-purple-600 { color: #9333ea; }
.text-green-600 { color: #16a34a; }
.text-gray-600 { color: #4b5563; }
.text-blue-600 { color: #2563eb; }
.text-teal-600 { color: #0d9488; }

.text-sm {
    font-size: 0.875rem;
}

.italic {
    font-style: italic;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}
/* Footer Signature */
.footer-signature {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
}

.footer-signature p {
    margin: 0;
}

/* Bouton À propos */
.btn-about {
    background: white;
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-about:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-about {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
/* Module Carte Interactive */
.map-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}


.map-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.map-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-map {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-map:hover {
    background: #f9fafb;
    border-color: #6366f1;
}

.btn-map.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.map-legend {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.map-legend h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Style des popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.popup-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.popup-info {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.popup-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.popup-btn:hover {
    background: #4f46e5;
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}
/* Mode Nuit */
.btn-dark-mode {
    background: white;
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-dark-mode:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-dark-mode {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(to bottom right, #1e293b, #0f172a);
    color: #e2e8f0;
}

body.dark-mode .header-card,
body.dark-mode .search-card,
body.dark-mode .sectors-header,
body.dark-mode .info-card,
body.dark-mode .map-card {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

body.dark-mode .main-title,
body.dark-mode .search-title,
body.dark-mode .sectors-title,
body.dark-mode .info-title,
body.dark-mode .map-title {
    color: #f1f5f9;
}

body.dark-mode .subtitle,
body.dark-mode .search-subtitle,
body.dark-mode .sectors-subtitle,
body.dark-mode .map-subtitle {
    color: #94a3b8;
}

body.dark-mode .search-input {
    background-color: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .search-input:focus {
    border-color: #6366f1;
    background-color: #1e293b;
}

body.dark-mode .suggestions-list {
    background: #1e293b;
    border-color: #475569;
}

body.dark-mode .suggestion-item {
    border-bottom-color: #334155;
}

body.dark-mode .suggestion-item:hover {
    background-color: #334155;
}

body.dark-mode .suggestion-label {
    color: #f1f5f9;
}

body.dark-mode .suggestion-context {
    color: #94a3b8;
}

body.dark-mode .sector-card {
    background: #1e293b;
    border-color: #475569;
}

body.dark-mode .sector-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body.dark-mode .sector-title {
    color: #f1f5f9;
}

body.dark-mode .sector-number {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .zone-text {
    color: #cbd5e1;
}

body.dark-mode .zone-more {
    color: #94a3b8;
}

body.dark-mode .footer-item {
    color: #cbd5e1;
}

body.dark-mode .modal-content {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .modal-title {
    color: #f1f5f9;
}

body.dark-mode .modal-section {
    border: 1px solid #334155;
}

body.dark-mode .modal-section h3 {
    color: #f1f5f9;
}

body.dark-mode .modal-section p,
body.dark-mode .modal-section li {
    color: #cbd5e1;
}

body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .form-label {
    color: #f1f5f9;
}

body.dark-mode .info-list li {
    color: #cbd5e1;
}

body.dark-mode .footer-signature {
    color: #94a3b8;
    border-top-color: #334155;
}

body.dark-mode .map-container {
    border-color: #475569;
}

body.dark-mode .map-legend {
    background: #0f172a;
}

body.dark-mode .map-legend h3 {
    color: #f1f5f9;
}

body.dark-mode .legend-item {
    color: #cbd5e1;
}

body.dark-mode .btn-map {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .btn-map:hover {
    background: #334155;
    border-color: #6366f1;
}

body.dark-mode .btn-map.active {
    background: #6366f1;
    color: white;
}

body.dark-mode .no-results {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .no-results-title {
    color: #f1f5f9;
}

body.dark-mode .no-results-text {
    color: #94a3b8;
}

/* Dark Mode - Couleurs des secteurs */
body.dark-mode .bg-blue-100 { 
    background-color: #1e3a8a; 
    border-color: #3b82f6; 
}

body.dark-mode .bg-green-100 { 
    background-color: #064e3b; 
    border-color: #10b981; 
}

body.dark-mode .bg-yellow-100 { 
    background-color: #713f12; 
    border-color: #fbbf24; 
}

body.dark-mode .bg-red-100 { 
    background-color: #7f1d1d; 
    border-color: #ef4444; 
}

body.dark-mode .bg-purple-100 { 
    background-color: #581c87; 
    border-color: #a855f7; 
}

body.dark-mode .bg-pink-100 { 
    background-color: #831843; 
    border-color: #ec4899; 
}

body.dark-mode .bg-indigo-100 { 
    background-color: #312e81; 
    border-color: #818cf8; 
}

body.dark-mode .bg-orange-100 { 
    background-color: #7c2d12; 
    border-color: #fb923c; 
}

body.dark-mode .bg-teal-100 { 
    background-color: #134e4a; 
    border-color: #14b8a6; 
}

body.dark-mode .bg-cyan-100 { 
    background-color: #164e63; 
    border-color: #06b6d4; 
}

body.dark-mode .bg-lime-100 { 
    background-color: #3f6212; 
    border-color: #84cc16; 
}

body.dark-mode .bg-emerald-100 { 
    background-color: #065f46; 
    border-color: #10b981; 
}

body.dark-mode .bg-sky-100 { 
    background-color: #0c4a6e; 
    border-color: #0ea5e9; 
}

body.dark-mode .bg-violet-100 { 
    background-color: #4c1d95; 
    border-color: #8b5cf6; 
}

body.dark-mode .bg-fuchsia-100 { 
    background-color: #701a75; 
    border-color: #d946ef; 
}

body.dark-mode .bg-rose-100 { 
    background-color: #881337; 
    border-color: #f43f5e; 
}

body.dark-mode .bg-amber-100 { 
    background-color: #78350f; 
    border-color: #f59e0b; 
}

/* Dark Mode - Couleurs des sections dans les modals */
body.dark-mode .bg-gray-50 { 
    background-color: #374151; 
}

body.dark-mode .bg-indigo-50 { 
    background-color: #312e81; 
    border-color: #6366f1;
}

body.dark-mode .bg-yellow-50 { 
    background-color: #713f12; 
    border-color: #fbbf24;
}

body.dark-mode .bg-red-50 { 
    background-color: #7f1d1d; 
    border-color: #ef4444;
}

body.dark-mode .bg-purple-50 { 
    background-color: #581c87; 
    border-color: #a855f7;
}

body.dark-mode .bg-green-50 { 
    background-color: #064e3b; 
    border-color: #10b981;
}

body.dark-mode .bg-blue-50 { 
    background-color: #1e3a8a; 
    border-color: #3b82f6;
}

body.dark-mode .bg-teal-50 { 
    background-color: #134e4a; 
    border-color: #14b8a6;
}

/* Dark Mode - Texte des liens dans les modals */
body.dark-mode .text-indigo-600 { color: #818cf8; }
body.dark-mode .text-red-600 { color: #f87171; }
body.dark-mode .text-purple-600 { color: #c084fc; }
body.dark-mode .text-green-600 { color: #4ade80; }
body.dark-mode .text-blue-600 { color: #60a5fa; }
body.dark-mode .text-teal-600 { color: #2dd4bf; }

/* Dark Mode - Labels de la carte Leaflet toujours en noir */
body.dark-mode .custom-label div,
body.dark-mode .hospital-marker div {
    color: #000000 !important;
    background: white !important;
}

body.dark-mode .leaflet-popup-content-wrapper {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .popup-title {
    color: #f1f5f9;
}

body.dark-mode .popup-info {
    color: #cbd5e1;
}

body.dark-mode .popup-btn {
    background: #6366f1;
    color: white;
}

body.dark-mode .popup-btn:hover {
    background: #4f46e5;
}

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

.sector-card {
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
}

.sector-card:nth-child(1) { animation-delay: 0.1s; }
.sector-card:nth-child(2) { animation-delay: 0.2s; }
.sector-card:nth-child(3) { animation-delay: 0.3s; }
.sector-card:nth-child(4) { animation-delay: 0.4s; }
.sector-card:nth-child(5) { animation-delay: 0.5s; }
.sector-card:nth-child(6) { animation-delay: 0.6s; }

/* Dans style.css */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

.address-result {
    animation: pulse 2s infinite;
}


/* Effet de survol plus spectaculaire */
.sector-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.sector-card:hover::before {
    left: 100%;
}

.sector-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 
                0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

/* ========== BOUTON DOCUMENTS ========== */
.btn-documents {
    background: white;
    border: 2px solid #f59e0b;
    color: #f59e0b;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-documents:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-documents {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ========== MODAL DOCUMENTS ========== */
.documents-intro {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #78350f;
}

.documents-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.document-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

.document-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    overflow: hidden;
    cursor: pointer;
}

.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.document-preview:hover img {
    transform: scale(1.05);
}

.document-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.document-info {
    padding: 1rem;
}

.document-category {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.document-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.document-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.document-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.document-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.btn-download,
.btn-print {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download {
    background: #10b981;
    color: white;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-print {
    background: #6366f1;
    color: white;
}

.btn-print:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.documents-footer {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* ========== NOTIFICATION TOAST ========== */
.notification-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1f2937;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MODE NUIT - DOCUMENTS ========== */
body.dark-mode .documents-intro {
    background: #713f12;
    color: #fef3c7;
}

body.dark-mode .document-card {
    background: #0f172a;
    border-color: #475569;
}

body.dark-mode .document-card:hover {
    border-color: #f59e0b;
}

body.dark-mode .document-preview {
    background: #1e293b;
}

body.dark-mode .document-category {
    background: #1e3a8a;
    color: #93c5fd;
}

body.dark-mode .document-title {
    color: #f1f5f9;
}

body.dark-mode .document-description {
    color: #cbd5e1;
}

body.dark-mode .document-meta {
    color: #64748b;
}

body.dark-mode .document-actions {
    background: #1e293b;
    border-top-color: #334155;
}

body.dark-mode .documents-footer {
    background: #1e3a8a;
    color: #dbeafe;
}

/* Loading pour les aperçus */
.preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
}

.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Mode nuit - Preview loading */
body.dark-mode .preview-loading {
    color: #94a3b8;
}

/* ========== RECHERCHE PAR DATE DE NAISSANCE (COMPACTE) ========== */
.birth-search-compact {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.birth-compact-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.birth-compact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
}

.birth-input-compact,
.birth-select-compact {
    padding: 0.5rem 0.75rem;
    border: 2px solid #fbbf24;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    background: white;
    font-weight: 600;
}

.birth-input-compact {
    width: 60px;
    text-align: center;
}

.birth-select-compact {
    width: 100px;
}

.birth-input-compact:focus,
.birth-select-compact:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-birth-compact {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-birth-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-birth-clear-compact {
    background: none;
    border: none;
    color: #92400e;
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.btn-birth-clear-compact:hover {
    color: #78350f;
}

.birth-result {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease-out;
}

.birth-result h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.birth-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    padding: 0.625rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.birth-details p {
    margin-bottom: 0.25rem;
}

.birth-details p:last-child {
    margin-bottom: 0;
}

.birth-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.birth-actions .btn-view-sector {
    background: white;
    color: #d97706;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.birth-actions .btn-view-sector:hover {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 768px) {
    .birth-compact-header {
        justify-content: space-between;
    }
    
    .birth-compact-label {
        flex: 1 0 100%;
        margin-bottom: 0.25rem;
    }
    
    .birth-input-compact {
        flex: 1;
    }
    
    .birth-select-compact {
        flex: 2;
    }
}

/* Mode nuit */
body.dark-mode .birth-search-compact {
    background: #78350f;
    border-left-color: #f59e0b;
}

body.dark-mode .birth-compact-label {
    color: #fef3c7;
}

body.dark-mode .birth-input-compact,
body.dark-mode .birth-select-compact {
    background: #451a03;
    border-color: #92400e;
    color: #fef3c7;
}

body.dark-mode .birth-input-compact:focus,
body.dark-mode .birth-select-compact:focus {
    border-color: #f59e0b;
    background: #78350f;
}

body.dark-mode .btn-birth-clear-compact {
    color: #fef3c7;
}

body.dark-mode .btn-birth-clear-compact:hover {
    color: #fde68a;
}

body.dark-mode .birth-details {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .birth-actions .btn-view-sector {
    background: #fef3c7;
    color: #78350f;
}

body.dark-mode .birth-actions .btn-view-sector:hover {
    background: #fde68a;
}
