/* decouvrir.css - Styles pour la page de découverte de la France */

/* Reset du main */
main {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Hero Section */
.hero-decouvrir {
    position: relative;
    padding: 4rem 2rem 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-decouvrir::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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,133.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 0;
}

.hero-decouvrir-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-decouvrir-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-decouvrir-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Container principal */
.decouvrir-container {
    background: #f5f5f5;
    min-height: calc(100vh - 300px);
}

/* Section carte */
.map-section {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ffffff 100%);
    padding: 4rem 2rem;
}

.map-section .map-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: auto !important;
}

/* Header de la carte */
.map-section .map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.map-section .map-header-content {
    flex: 1;
}

.map-section .map-title {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-section .map-title i {
    font-size: 2rem;
}

.map-section .map-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

/* Contrôles de la carte */
.map-section .map-controls {
    display: flex;
    gap: 0.75rem;
}

.map-section .map-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.map-section .map-control-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.map-section .map-control-btn i {
    font-size: 1.2rem;
}

/* Wrapper de la carte */
.map-section .map-wrapper {
    position: relative;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 900px;
}

/* Info bulle au-dessus de la carte */
.map-section .map-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #bbdefb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1565c0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-section .map-info i {
    font-size: 1.3rem;
    color: #667eea;
}

.map-section .map-info span {
    flex: 1;
}

.map-section #map {
    height: 850px !important;
    width: 100% !important;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block !important;
}

/* Footer avec stats */
.map-section .map-footer {
    display: flex;
    justify-content: space-around;
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.map-section .map-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555;
}

.map-section .map-stat i {
    font-size: 1.5rem;
    color: #667eea;
}

.map-section .map-stat span {
    font-size: 0.95rem;
}

.map-section .map-stat strong {
    color: #333;
    font-weight: 700;
}

/* Mode plein écran */
.map-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    background: white;
    overflow: hidden;
}

.map-section.fullscreen .map-container {
    max-width: none;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
}

.map-section.fullscreen .map-header {
    height: 85px;
}

.map-section.fullscreen .map-wrapper {
    padding: 0;
    min-height: 0;
    height: calc(100vh - 85px);
    overflow: hidden;
}

.map-section.fullscreen .map-info {
    display: none;
}

.map-section.fullscreen .map-footer {
    display: none;
}

.map-section.fullscreen #map {
    width: 100% !important;
    height: calc(100vh - 85px) !important;
    border-radius: 0;
    box-shadow: none;
}

/* Style des tooltips des régions */
.region-tooltip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.region-tooltip::before {
    border-top-color: #667eea !important;
}

/* Style des contrôles de zoom Leaflet */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #667eea !important;
    border: none !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.leaflet-control-zoom a:hover {
    background: #667eea !important;
    color: white !important;
}

.leaflet-control-zoom a:first-child {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-decouvrir {
        padding: 3rem 1rem 2rem 1rem;
    }

    .hero-decouvrir-title {
        font-size: 2rem;
    }

    .hero-decouvrir-subtitle {
        font-size: 1.1rem;
    }

    .map-section {
        padding: 2rem 1rem;
    }

    .map-section .map-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .map-section .map-wrapper {
        padding: 1rem;
        min-height: 600px;
    }

    .map-section #map {
        height: 600px !important;
    }

    .map-section .map-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .map-section .map-stat {
        justify-content: center;
    }
}
