* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: #f5f6f8;
    color: #222;
}
.nav-principale {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #1e2a3a;
    padding: 0.8rem 1.5rem;
}
.nav-principale a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}
.nav-principale a:hover { text-decoration: underline; }
.nav-user { margin-left: auto; color: #9fb0c3; font-size: 0.85rem; }
.nav-logout { color: #ff8a80 !important; }

main {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 1.5rem; }

.bouton, button {
    background: #1e88e5;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}
.bouton:hover, button:hover { background: #1565c0; }

.tableau {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tableau th, .tableau td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.9rem;
}
.tableau th { background: #eef1f5; }

.filtres-inline {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.filtres-inline input, .filtres-inline select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-militant, .form-contact {
    background: #fff;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 600px;
}
.form-militant label, .form-contact label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    gap: 0.25rem;
}
.form-militant input, .form-militant textarea, .form-militant select,
.form-contact input, .form-contact textarea, .form-contact select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
fieldset { border: 1px solid #ddd; border-radius: 4px; padding: 0.6rem; }
.case-type { flex-direction: row !important; align-items: center; gap: 0.4rem !important; display: inline-flex; margin-right: 1rem; }

.saisie-rapide {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.saisie-rapide textarea { width: 100%; margin: 0.5rem 0; padding: 0.5rem; }

.alerte-doublon {
    background: #fff3e0;
    border-left: 4px solid #fb8c00;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.alerte-relances {
    background: #fff3e0;
    border-left: 4px solid #fb8c00;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
}
.succes { color: #2e7d32; font-weight: 600; }
.info { color: #1565c0; font-weight: 600; }
.erreur { color: #c62828; }

.badge-statut {
    display: inline-block;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Carte */
.carte-layout {
    display: flex;
    height: calc(100vh - 60px);
}
.carte-filtres {
    width: 240px;
    padding: 1rem;
    background: #fff;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}
.filtre-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.carte-conteneur { flex: 1; }
.legende-statuts { margin-top: 0.8rem; font-size: 0.8rem; }
.legende-statuts span { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.legende-statuts i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.marqueur-maire span { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,0.5); }

/* Login */
.page-login { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 300px;
}
.login-box label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.login-box input { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; }

.fiche section {
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
