:root {
    --bleu: #1a73c7;
    --gris-fond: #f4f5f7;
    --gris-texte: #333;
    --gris-bordure: #ddd;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--gris-texte);
    background: var(--gris-fond);
}

.entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 24px;
    border-bottom: 1px solid var(--gris-bordure);
}
.entete .logo {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--bleu);
    text-decoration: none;
}
.entete nav a {
    margin-left: 20px;
    color: var(--gris-texte);
    text-decoration: none;
}
.entete nav a:hover { text-decoration: underline; }

.fil-ariane {
    padding: 10px 24px;
    background: #eef1f5;
    font-size: 0.9em;
}
.fil-ariane a { color: var(--bleu); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane .separateur { margin: 0 8px; color: #999; }

.contenu {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

h1 { margin-top: 0; }

#carte {
    width: 100%;
    height: 560px;
    border-radius: 8px;
    border: 1px solid var(--gris-bordure);
    background: white;
}

.legende {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 24px;
    font-size: 0.9em;
}
.legende span.puce {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

table.stats {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: white;
}
table.stats th, table.stats td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gris-bordure);
    text-align: left;
}
table.stats th { background: #f0f2f5; }
table.stats tr:hover { background: #f7f9fc; }
table.stats a { color: var(--gris-texte); text-decoration: none; }
table.stats a:hover { text-decoration: underline; }

.barre {
    display: inline-block;
    width: 120px;
    height: 10px;
    background: #e6e6e6;
    border-radius: 5px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}
.barre-remplie {
    height: 100%;
    background: #1a9850;
}

.carte-objectifs {
    background: white;
    border: 1px solid var(--gris-bordure);
    border-radius: 8px;
    padding: 0;
    margin-top: 20px;
    overflow: hidden;
}
.objectif {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gris-bordure);
}
.objectif:last-child { border-bottom: none; }
.objectif .coche {
    font-size: 1.3em;
    margin-right: 12px;
}
.objectif.valide .coche { color: #1a9850; }
.objectif:not(.valide) .coche { color: #ccc; }
.objectif .details { flex: 1; }
.objectif .nom { font-weight: 600; }
.objectif .desc { font-size: 0.85em; color: #666; margin-top: 2px; }
.objectif .valeur { font-size: 0.9em; color: #444; white-space: nowrap; margin-left: 12px; }

.chiffre-cle {
    display: inline-block;
    background: white;
    border: 1px solid var(--gris-bordure);
    border-radius: 8px;
    padding: 14px 20px;
    margin: 0 10px 10px 0;
    text-align: center;
}
.chiffre-cle .valeur { font-size: 1.8em; font-weight: bold; color: var(--bleu); }
.chiffre-cle .label { font-size: 0.85em; color: #666; }

.formulaire label { display: block; margin: 12px 0 4px; font-weight: 600; }
.formulaire input, .formulaire textarea, .formulaire select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gris-bordure);
    border-radius: 6px;
    font-size: 1em;
}
.formulaire button, .bouton {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--bleu);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
}
.formulaire button:hover, .bouton:hover { background: #145a9e; }

.message-erreur { color: #c0392b; margin: 10px 0; }
.message-ok { color: #1a9850; margin: 10px 0; }

.pied {
    text-align: center;
    color: #888;
    font-size: 0.85em;
    padding: 20px;
}
