/* ======= Styles de base ======= */

/* Fond général */
body {
    background-color: #f9fafb;
    font-family: 'Arial', sans-serif;
}

/* Liens dans le header et le footer */
.ea-link {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.ea-link:hover {
    color: #93c5fd;
}

/* ======= Header ======= */

.ea-header {
    background-color: #2563eb;
    color: white;
    padding: 1.5rem 0;
    position: relative; /* pour z-index */
    z-index: 50;
}

.ea-header .ea-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ea-header img {
    height: 4rem;
    width: 4rem;
    margin-right: 1rem;
}

.ea-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.ea-header nav ul {
    display: flex;
    gap: 1rem;
}

.ea-header nav ul li a {
    color: white;
}

.ea-header nav ul li a:hover {
    color: #93c5fd;
}

/* ======= Section principale ======= */

.ea-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.ea-main-text {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Grille des pavés */
.ea-grid {
    display: grid;
    gap: 2rem;
}

.ea-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pavés de services */
.ea-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.ea-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.ea-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Bouton */
.ea-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

.ea-button:hover {
    background-color: #1e40af;
}

/* ======= Champs dynamiques ======= */

.ea-flex { display: flex; }
.ea-items-center { align-items: center; }
.ea-block { display: block; }
.ea-hidden { display: none; }
.ea-w-full { width: 100%; }
.ea-w-1/2 { width: 50%; }
.ea-pl-4 { padding-left: 1rem; }

/* ======= Footer ======= */

.ea-footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.ea-footer a {
    color: #3b82f6;
}

.ea-footer a:hover {
    color: #93c5fd;
}

/* ======= Hauteur personnalisée pour la carte Leaflet ======= */

.ea-map-height {
    height: 500px;
}

/* ======= Style discret pour la légende Leaflet ======= */

.leaflet-control-attribution {
    font-size: 0.75rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.75);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.leaflet-control-attribution a {
    color: #3b82f6;
    text-decoration: none;
}

.leaflet-control-attribution a:hover {
    text-decoration: underline;
}

/* ======= Titre épongé centré dans la carte ======= */

.ea-map-overlay {
    position: absolute;
    top: 1rem;
    left: auto;
    right: 1rem;
    background: rgba(255, 255, 255, 0.85);
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 1.2rem;
    border-radius: 0.375rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
