/* ============================================
   Variables CSS
   ============================================ */
:root {
    --primary-color: #009639;
    --secondary-color: #DC241F;
    --accent-color: #FCDD09;
}

/* ============================================
   Styles généraux
   ============================================ */
/*body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 0;
}*/

/* ============================================
   En-tête de section
   ============================================ */
/* .section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-top: 25px;
}*/

/* ============================================
   Conteneur de la carte
   ============================================ */
.map-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Grille des cartes de localisation
   ============================================ */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ============================================
   Cartes de localisation
   ============================================ */
.location-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    animation: fadeInUp 0.8s ease;
}

.location-card:nth-child(2) {
    border-top-color: var(--secondary-color);
    animation-delay: 0.2s;
}

.location-card:nth-child(3) {
    border-top-color: var(--accent-color);
    animation-delay: 0.4s;
}

.location-card:nth-child(4) {
    border-top-color: #FF9800;
    animation-delay: 0.6s;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Icônes des cartes
   ============================================ */
.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #00c853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.location-card:nth-child(2) .location-icon {
    background: linear-gradient(135deg, var(--secondary-color), #ff5252);
}

.location-card:nth-child(3) .location-icon {
    background: linear-gradient(135deg, #ff9800, var(--accent-color));
}

.location-card:nth-child(4) .location-icon {
    background: linear-gradient(135deg, #9C27B0, #E91E63);
}

/* ============================================
   Contenu des cartes
   ============================================ */
.location-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.location-info {
    color: #7f8c8d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-info i {
    color: var(--primary-color);
    width: 20px;
}

/* ============================================
   Popups Leaflet
   ============================================ */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 250px;
}

.popup-header {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 15px 20px 10px 20px;
    margin: 0;
}

.popup-info {
    padding: 0 20px 10px 20px;
    color: #555;
    font-size: 0.95rem;
}

.popup-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #DC241F;
    font-weight: 600;
    margin-top: 5px;
}

.popup-phone i {
    font-size: 1rem;
}

/* ============================================
   Bouton "Voir l'itinéraire"
   ============================================ */
.btn-itineraire {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    margin-top: 10px;
}

.btn-itineraire:hover {
    background: linear-gradient(135deg, #45a049, #5cb85c);
    transform: scale(1.02);
}

.btn-itineraire i {
    font-size: 1.1rem;
}

/* ============================================
   Bouton de fermeture du popup
   ============================================ */
.leaflet-popup-close-button {
    color: #999 !important;
    font-size: 20px !important;
    padding: 8px 12px !important;
}

.leaflet-popup-close-button:hover {
    color: #333 !important;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Media Queries - Responsive
   ============================================ */
@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2rem;
    }

    .map-container {
        padding: 20px;
    }

    #map {
        height: 400px;
    }

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