:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --blue-gradient-start: #4facfe;
    --blue-gradient-end: #00f2fe;
    --purple-gradient-start: #667eea;
    --purple-gradient-end: #764ba2;
    --coral-gradient-start: #fa709a;
    --coral-gradient-end: #fee140;
    --green-gradient-start: #30cfd0;
    --green-gradient-end: #330867;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --danger-color: #fc5c65;
    --success-color: #26de81;
    --warning-color: #fed330;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: var(--dark-color);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    font-weight: 700;
}

header .subtitle {
    color: #5a6c7d;
    font-size: 1.1em;
    font-weight: 300;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-section:hover {
    box-shadow: var(--shadow-colored);
    transform: translateY(-2px);
}

.search-box {
    flex: 1;
    display: flex;
    gap: 10px;
    min-width: 250px;
    position: relative;
}

#citySearch {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

#citySearch:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

#searchBtn, .geoloc-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

#searchBtn::before, .geoloc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#searchBtn:hover::before, .geoloc-btn:hover::before {
    left: 100%;
}

#searchBtn:hover, .geoloc-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

#searchBtn:active, .geoloc-btn:active {
    transform: translateY(-1px);
}

/* Carte météo France */
.france-map-section {
    margin-bottom: 40px;
}

.france-map-section h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.france-map-section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.france-map-section .section-subtitle {
    color: #5a6c7d;
    margin-bottom: 20px;
    font-size: 1em;
}

.france-map-container {
    height: 600px;
    min-height: 600px;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: white;
    margin-bottom: 20px;
    position: relative;
}

/* Fix pour Leaflet */
#franceMap {
    height: 100%;
    width: 100%;
    border-radius: 25px;
}

.map-legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--dark-color);
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Leaflet custom styles */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
}

.map-popup-content {
    min-width: 280px;
    max-width: 320px;
}

.map-popup-content h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.map-popup-temp {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.map-popup-desc {
    color: #718096;
    text-transform: capitalize;
    margin-bottom: 10px;
    font-size: 1em;
}

.map-popup-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.85em;
    color: var(--dark-color);
    margin-top: 12px;
}

.map-popup-details div {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.08);
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.map-popup-details div:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.03);
}

.map-popup-details i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    font-size: 1.1em;
}

.map-popup-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.map-popup-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

/* Custom marker animation */
.custom-marker div:hover {
    transform: scale(1.15) !important;
}

.custom-marker {
    transition: all 0.3s ease;
}

/* Animation d'apparition des marqueurs */
@keyframes markerAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.leaflet-marker-icon {
    animation: markerAppear 0.5s ease-out;
}

/* Quick Access Cities */
.quick-access {
    margin-bottom: 40px;
}

.quick-access h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.city-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-gradient-end));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

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

.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    color: white;
}

.city-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.city-card:hover i {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.city-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Current Weather */
.weather-section {
    margin-bottom: 30px;
}

.current-weather-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weather-header h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.weather-header p {
    color: #7f8c8d;
}

.weather-main {
    margin-top: 20px;
}

.temp-display {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.weather-icon {
    font-size: 5em;
    color: var(--primary-color);
}

.temperature {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.description {
    font-size: 1.3em;
    color: #7f8c8d;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.detail-item span {
    font-size: 1em;
}

/* Forecast */
.forecast-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.forecast-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 700;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.forecast-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.forecast-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--coral-gradient-start), var(--coral-gradient-end));
    opacity: 0;
    transition: opacity 0.4s;
}

.forecast-card:hover::before {
    opacity: 0.15;
}

.forecast-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.forecast-date {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.forecast-icon {
    font-size: 3.5em;
    margin: 20px 0;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

.forecast-temp {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0;
    position: relative;
    z-index: 1;
}

.forecast-description {
    color: #718096;
    text-transform: capitalize;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.forecast-details {
    margin-top: 12px;
    font-size: 0.9em;
    color: #718096;
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}

.forecast-details div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loader */
.loader {
    text-align: center;
    padding: 60px;
    color: white;
}

.loader i {
    font-size: 3.5em;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

.loader p {
    font-size: 1.3em;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, var(--danger-color), #ff6b81);
    color: white;
    padding: 25px 30px;
    border-radius: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
    font-size: 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.4s ease;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px 0;
    margin-top: 50px;
    color: #5a6c7d;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

footer p {
    margin: 0;
    font-weight: 300;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.footer-links span {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    header .subtitle {
        font-size: 1em;
    }

    .search-section {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .geoloc-btn {
        width: 100%;
    }

    .france-map-container {
        height: 400px;
    }

    .map-legend {
        padding: 15px 20px;
    }

    .legend-item {
        font-size: 0.8em;
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .temp-display {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .temperature {
        font-size: 2.5em;
    }

    .weather-icon {
        font-size: 4em;
    }

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

    .weather-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .city-card {
        padding: 15px;
    }

    .city-card i {
        font-size: 1.5em;
    }

    .city-card h3 {
        font-size: 1em;
    }

    .current-weather-card {
        padding: 20px;
    }

    .temperature {
        font-size: 2em;
    }

    .forecast-section {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.weather-section, .forecast-section {
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

/* Autocomplétion */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: fadeIn 0.3s ease;
}

.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    font-size: 0.95em;
    line-height: 1.5;
}

.autocomplete-item strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05em;
}

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

.autocomplete-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    padding-left: 24px;
}

.autocomplete-item:hover strong {
    color: var(--secondary-color);
}

.autocomplete-item:first-child {
    border-radius: 15px 15px 0 0;
}

.autocomplete-item:last-child {
    border-radius: 0 0 15px 15px;
}

/* Sections de régions */
.all-cities-section {
    margin-bottom: 40px;
}

.all-cities-section h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.8em;
}

.section-subtitle {
    color: #5a6c7d;
    margin-bottom: 20px;
    font-size: 1em;
}

.regions-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.region-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.region-section:hover {
    box-shadow: var(--shadow-lg);
}

.region-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    position: relative;
    overflow: hidden;
}

.region-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    opacity: 0;
    transition: opacity 0.4s;
}

.region-header:hover::before {
    opacity: 1;
}

.region-header:hover {
    color: white;
}

.region-header h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 0;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.region-header:hover h3 {
    color: white;
}

.city-count {
    font-size: 0.8em;
    font-weight: normal;
    opacity: 0.7;
}

.region-toggle {
    color: var(--primary-color);
    transition: transform 0.3s, color 0.3s;
    position: relative;
    z-index: 1;
}

.region-header:hover .region-toggle {
    color: white;
}

.region-cities {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    transition: all 0.3s;
}

.city-card-small {
    background: rgba(102, 126, 234, 0.08);
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    border: 1px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.city-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-gradient-end));
    opacity: 0;
    transition: opacity 0.3s;
}

.city-card-small:hover::before {
    opacity: 1;
}

.city-card-small:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.city-card-small i {
    color: var(--primary-color);
    font-size: 1.2em;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.city-card-small:hover i {
    color: white;
}

.city-card-small span {
    position: relative;
    z-index: 1;
}

.city-population {
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: normal;
}

.view-all-cities-link {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-cities-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.view-all-cities-link:hover::before {
    left: 100%;
}

.view-all-cities-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.view-all-cities-link i {
    transition: transform 0.3s;
}

.view-all-cities-link:hover i {
    transform: translateX(5px);
}

/* Section Vigilance Météo */
section.vigilance-section {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px !important;
    padding: 40px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

.vigilance-header {
    text-align: center;
    margin-bottom: 30px;
}

.vigilance-header h2 {
    color: var(--dark-color);
    font-size: 2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.vigilance-header h2 i {
    color: #ff6b6b;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.vigilance-subtitle {
    color: var(--text-color);
    font-size: 1em;
}

.vigilance-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vigilance-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
    font-size: 1.1em;
}

.vigilance-loading i {
    margin-right: 10px;
}

.vigilance-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-left: 5px solid !important;
    transition: all 0.3s ease;
    display: block !important;
}

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

.vigilance-card.vigilance-level-1 {
    border-left-color: #fed330 !important;
}

.vigilance-card.vigilance-level-2 {
    border-left-color: #ff9f43 !important;
}

.vigilance-card.vigilance-level-3 {
    border-left-color: #ee5a6f !important;
}

.vigilance-card.vigilance-level-4 {
    border-left-color: #c44569 !important;
}

.vigilance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vigilance-card-header h3 {
    color: var(--dark-color);
    font-size: 1.2em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vigilance-badge {
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-size: 0.85em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: white !important;
    display: inline-block !important;
}

.vigilance-badge.vigilance-level-1 {
    background: #fed330 !important;
}

.vigilance-badge.vigilance-level-2 {
    background: #ff9f43 !important;
}

.vigilance-badge.vigilance-level-3 {
    background: #ee5a6f !important;
}

.vigilance-badge.vigilance-level-4 {
    background: #c44569 !important;
}

.vigilance-card-body {
    color: var(--text-color);
}

.vigilance-card-body p {
    margin: 10px 0;
    line-height: 1.6;
}

.vigilance-code {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

.vigilance-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

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

.vigilance-color {
    width: 30px;
    height: 20px;
    border-radius: 5px;
    display: inline-block;
}

.vigilance-color.vigilance-level-1 {
    background: #fed330;
}

.vigilance-color.vigilance-level-2 {
    background: #ff9f43;
}

.vigilance-color.vigilance-level-3 {
    background: #ee5a6f;
}

.vigilance-color.vigilance-level-4 {
    background: #c44569;
}

/* Responsive pour les régions */
@media (max-width: 768px) {
    .region-cities {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .region-header {
        padding: 15px 20px;
    }

    .region-header h3 {
        font-size: 1.1em;
    }

    .vigilance-section {
        padding: 20px;
    }

    .vigilance-alerts {
        grid-template-columns: 1fr;
    }

    .vigilance-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Global Map Access Section */
.global-access {
    margin-bottom: 30px;
}

.global-map-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.global-map-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.global-map-link:hover::before {
    opacity: 1;
}

.global-map-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.global-map-link > i.fa-globe-americas {
    font-size: 48px;
    opacity: 0.95;
    flex-shrink: 0;
    z-index: 1;
}

.global-map-link-content {
    flex: 1;
    z-index: 1;
    min-width: 0;
}

.global-map-link-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.global-map-link-content p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.9em;
    line-height: 1.4;
    color: white;
}

.global-map-link > i.fa-arrow-right {
    font-size: 24px;
    opacity: 0.9;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.global-map-link:hover > i.fa-arrow-right {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .global-map-link {
        padding: 20px;
        gap: 15px;
        min-height: 80px;
    }

    .global-map-link > i.fa-globe-americas {
        font-size: 36px;
    }

    .global-map-link-content h3 {
        font-size: 1.1em;
    }

    .global-map-link-content p {
        font-size: 0.8em;
    }

    .global-map-link > i.fa-arrow-right {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .global-map-link {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }

    .global-map-link > i.fa-globe-americas {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }

    .global-map-link-content {
        order: 2;
        width: 100%;
    }

    .global-map-link > i.fa-arrow-right {
        order: 3;
        margin: 10px auto 0;
    }
}

/* Hero Section & SEO Content */
.site-title {
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.hero-title {
    color: var(--dark-color);
    font-size: 1.9em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-description {
    color: #5a6c7d;
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    margin-top: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.seo-block {
    margin-bottom: 40px;
}

.seo-block:last-child {
    margin-bottom: 0;
}

.seo-block h2 {
    color: var(--dark-color);
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.seo-block h2 i {
    color: var(--primary-color);
    font-size: 0.9em;
}

.seo-block p {
    color: #4a5568;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

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

.seo-list li {
    color: #4a5568;
    font-size: 1em;
    line-height: 1.7;
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

.seo-list li strong {
    color: var(--dark-color);
}

.regions-list {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 15px 0;
}

.regions-list p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.8;
}

.regions-list strong {
    white-space: normal;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 25px 20px;
    }

    .hero-title {
        font-size: 1.4em;
    }

    .hero-description {
        font-size: 0.95em;
    }

    .seo-content {
        padding: 30px 20px;
    }

    .seo-block h2 {
        font-size: 1.3em;
    }

    .seo-block p,
    .seo-list li {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4em;
    }

    .hero-section {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 1.15em;
    }

    .hero-description {
        font-size: 0.85em;
    }

    .seo-content {
        padding: 25px 15px;
    }

    .seo-block h2 {
        font-size: 1.1em;
        align-items: center;
        gap: 8px;
    }

    .seo-block p,
    .seo-list li {
        font-size: 0.85em;
    }

    .seo-list li {
        padding-left: 25px;
    }
}

/* Section Actualités */
.news-section {
    margin-bottom: 40px;
}

.news-section h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.news-section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.news-section .section-subtitle {
    color: #5a6c7d;
    margin-bottom: 30px;
    font-size: 1em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.news-card-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mode bloc métro pour les 2 premières cartes (plus grandes) */
.news-grid .news-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
}

.news-grid .news-card:nth-child(1) .news-card-image {
    height: 250px;
}

.news-grid .news-card:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.news-grid .news-card:nth-child(2) .news-card-image {
    height: 250px;
}

/* Responsive pour la section actualités */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid .news-card:nth-child(1) {
        grid-column: span 2;
    }
    
    .news-grid .news-card:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .news-section {
        margin-bottom: 30px;
    }
    
    .news-section h2 {
        font-size: 1.5em;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-grid .news-card:nth-child(1),
    .news-grid .news-card:nth-child(2) {
        grid-column: span 1;
    }
    
    .news-card-image {
        height: 180px;
    }
    
    .news-card-content {
        padding: 15px;
    }
    
    .news-card-title {
        font-size: 1.1em;
    }
    
    .news-card-excerpt {
        font-size: 0.9em;
    }
}