/* Feuille de style de l'intranet : simple, sans étape de construction. */
:root {
    --bleu: #1b466d;
    --bleu-clair: #236fb2;
    --fond: #f3f5f9;
    --texte: #1c2433;
    --discret: #6b7589;
    --bord: #dfe4ec;
    --rouge: #b42318;
    --vert: #18794e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--bleu-clair); }

.barre {
    background: var(--bleu);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    padding: .75rem 1.25rem;
}

.barre .marque { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.barre nav { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.barre nav a { color: rgba(255, 255, 255, .82); text-decoration: none; padding: .35rem .8rem; border-radius: 2rem; }
.barre nav a:hover, .barre nav a.actif { background: rgba(255, 255, 255, .16); color: #fff; }
.barre .compte { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.barre form { margin: 0; }

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
main.etroit { max-width: 440px; padding-top: 3rem; }

h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }

.carte { background: #fff; border: 1px solid var(--bord); border-radius: .75rem; padding: 1.25rem; margin-bottom: 1rem; }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.discret { color: var(--discret); font-size: .9rem; }

label { display: block; font-weight: 600; margin: 0 0 .25rem; }
.champ { margin-bottom: 1rem; }
.champ .aide { font-weight: 400; color: var(--discret); font-size: .85rem; margin-top: .25rem; }

input[type=text], input[type=email], input[type=password], select {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid #c3cad6;
    border-radius: .5rem;
    font: inherit;
    background: #fff;
}

input:focus, select:focus { outline: 2px solid var(--bleu-clair); outline-offset: 1px; }
.case { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.case input { width: 1.1rem; height: 1.1rem; }

.bouton {
    display: inline-block;
    background: var(--bleu-clair);
    color: #fff;
    border: 0;
    border-radius: .5rem;
    padding: .55rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.bouton:hover { background: var(--bleu); }
.bouton.secondaire { background: #fff; color: var(--bleu); border: 1px solid #c3cad6; }
.bouton.secondaire:hover { background: #eef2f8; }
.bouton.petit { padding: .3rem .7rem; font-size: .88rem; font-weight: 500; }
.barre .bouton.secondaire { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.message { border-radius: .5rem; padding: .7rem .9rem; margin-bottom: 1rem; }
.message.succes { background: #e7f6ee; color: var(--vert); border: 1px solid #b7e2cb; }
.message.erreur { background: #fdecea; color: var(--rouge); border: 1px solid #f5c2bd; }
.erreur-champ { color: var(--rouge); font-size: .88rem; margin-top: .25rem; }

.tableau-defilant { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--bord); vertical-align: middle; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--discret); }
tr.inactif td { color: var(--discret); }

.etiquette { display: inline-block; padding: .1rem .55rem; border-radius: 2rem; font-size: .8rem; font-weight: 600; background: #e9f0fc; color: var(--bleu); }
.etiquette.gris { background: #eceff3; color: var(--discret); }

.message.attention { background: #fff4e0; color: #8a5200; border: 1px solid #f1d19a; }
main.large { max-width: 1400px; }
input[type=number], input[type=date], input[type=time], input[type=tel], textarea { width: 100%; padding: .55rem .7rem; border: 1px solid #c3cad6; border-radius: .5rem; font: inherit; background: #fff; }
input.court { width: 5.5rem; }
td form { margin: 0; }
.ligne { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ligne select { width: auto; min-width: 11rem; padding: .3rem .5rem; }
.famille td { background: #eef2f8; font-weight: 700; text-align: center; }
.vignette { max-height: 3.2rem; max-width: 4rem; display: block; }
.positif { color: var(--vert); font-weight: 700; }
.negatif { color: var(--rouge); font-weight: 700; }
tr.traitee { display: none; }
.voir-traitees tr.traitee { display: table-row; }
details summary { cursor: pointer; color: var(--bleu-clair); }
details .contenu { padding: .5rem 0; white-space: normal; }
fieldset { border: 1px solid var(--bord); border-radius: .75rem; background: #fff; padding: 1rem 1.25rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.deux-colonnes { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
[hidden] { display: none !important; }
.total { font-size: 1.15rem; font-weight: 700; }
.bouton.danger { background: var(--rouge); }
.bouton.danger:hover { background: #8f1c13; }
.moyen { color: #b26a00; font-weight: 700; }
.gras { font-weight: 700; }
.nombre { text-align: right; white-space: nowrap; }
table.serre th, table.serre td { padding: .35rem .5rem; font-size: .88rem; }
table.serre thead tr:first-child th { text-align: center; border-bottom: 0; }
form.grand input[type=text], form.grand input[type=number] { font-size: 1.4rem; padding: .7rem .9rem; }
form.grand .bouton { font-size: 1.2rem; padding: .7rem 1.6rem; }
