/* Sémaphore : style minimal, sobre, sans framework. */

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    color: #1c2430;
    background: #f7f8fa;
    line-height: 1.5;
}

header {
    background: #1c2430;
    padding: 0.6rem 1.5rem;
}

header nav a {
    color: #f7f8fa;
    text-decoration: none;
    margin-right: 1.25rem;
}

header nav a:hover {
    text-decoration: underline;
}

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

table {
    border-collapse: collapse;
    width: 100%;
    background: #ffffff;
}

th, td {
    border: 1px solid #d8dde4;
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef1f5;
}

td form {
    display: inline-block;
    margin: 0 0.25rem 0.25rem 0;
}

.badge {
    font-size: 0.75rem;
    background: #eef1f5;
    border: 1px solid #d8dde4;
    border-radius: 3px;
    padding: 0 0.3rem;
    margin-left: 0.3rem;
}

.flash {
    list-style: none;
    padding: 0.75rem 1rem;
    background: #e7f3e7;
    border: 1px solid #b8d8b8;
    border-radius: 4px;
}

.erreur {
    color: #a02020;
}

.avertissement {
    color: #a02020;
}

.cle {
    display: inline-block;
    background: #eef1f5;
    border: 1px solid #d8dde4;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 1.05rem;
    word-break: break-all;
    user-select: all;
}

input[type="text"], input[type="email"], input[type="password"], select {
    padding: 0.35rem 0.5rem;
    border: 1px solid #b9c0ca;
    border-radius: 4px;
    min-width: 18rem;
}

textarea {
    padding: 0.35rem 0.5rem;
    border: 1px solid #b9c0ca;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    max-width: 36rem;
    box-sizing: border-box;
}

.commentaire-ia {
    font-style: italic;
    color: #3a4656;
}

.compteur {
    font-size: 1.15rem;
    font-weight: 600;
}

.note {
    font-size: 0.85rem;
    color: #5a6675;
}

.interpretation, .confirmation {
    background: #ffffff;
    border: 1px solid #d8dde4;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

button, .bouton {
    padding: 0.35rem 0.9rem;
    border: 1px solid #1c2430;
    border-radius: 4px;
    background: #1c2430;
    color: #f7f8fa;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .bouton:hover {
    background: #32405a;
}

/* Onglet de navigation de la page courante (mis en surbrillance). */
header nav a.active {
    background: #32405a;
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
}

/* Bouton secondaire (action moins engageante, ex. enregistrer un brouillon). */
button.bouton-secondaire, .bouton.bouton-secondaire {
    background: transparent;
    color: #1c2430;
    border: 1px solid #b9c0ca;
}

button.bouton-secondaire:hover, .bouton.bouton-secondaire:hover {
    background: #eef1f5;
}

/* Bandeau d'avertissement (ex. messages en brouillon non soumis). */
.bandeau-attention {
    padding: 0.75rem 1rem;
    background: #fdf3e3;
    border: 1px solid #e6c58a;
    border-radius: 4px;
}

/* Tableau de bord "Ma campagne" : pastille de statut + cartes de compteurs. */
.statut-campagne {
    display: inline-block;
    background: #eef1f5;
    border: 1px solid #d8dde4;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-weight: 600;
}

.tableau-bord {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.stat {
    background: #ffffff;
    border: 1px solid #d8dde4;
    border-radius: 6px;
    padding: 0.9rem 1.1rem;
    min-width: 9rem;
}

.stat .valeur {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat .libelle {
    font-size: 0.85rem;
    color: #5a6675;
}

.etapes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
