:root {
  --marine: #13233f;
  --encre: #202b3e;
  --discret: #536176;
  --trait: #ccd5e1;
  --fond: #eef2f7;
  --surface: #ffffff;
  --corail: #c94838;
  --corail-doux: #fff0ed;
  --bleu-doux: #edf4ff;
  color: var(--encre);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; color: var(--marine); }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; color: var(--marine); }
a { color: var(--marine); }
code { overflow-wrap: anywhere; font-size: .85em; }

.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .75rem 1rem; background: var(--marine); }
.entete a { color: #fff; text-decoration: none; }
.entete a:hover { text-decoration: underline; }
.entete nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.marque { font-weight: 700; }

.contenu { max-width: 70rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.page-carte .contenu { max-width: 26rem; padding-top: 12vh; }
.carte { padding: 1.5rem; background: var(--surface); border: 1px solid var(--trait); border-radius: .75rem; }
.lien-secondaire { margin: 1rem 0 0; text-align: center; }

form > div { margin-bottom: 1rem; }
form > div > div { margin-bottom: 1rem; }
label { display: block; margin-bottom: .25rem; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), select { width: 100%; max-width: 30rem; min-height: 2.75rem; padding: .5rem .75rem; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--trait); border-radius: .5rem; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; margin-right: .5rem; }
input[type=checkbox] + label { display: inline; font-weight: 400; }
:focus-visible { outline: 3px solid #2f6fdb; outline-offset: 2px; }
.help-text, form p { color: var(--discret); font-size: .9rem; margin: .25rem 0 0; }
form ul { margin: .25rem 0; padding: 0; list-style: none; color: var(--corail); font-size: .9rem; }

button, .bouton { display: inline-block; min-height: 2.75rem; padding: .55rem 1.1rem; font: inherit; font-weight: 600; color: #fff; text-decoration: none; background: var(--marine); border: 1px solid var(--marine); border-radius: .5rem; cursor: pointer; }
.carte button { width: 100%; }
.bouton-secondaire { color: var(--marine); background: var(--surface); border-color: var(--trait); }
.bouton-danger { background: var(--corail); border-color: var(--corail); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions form > div { margin: 0; }
.titre-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.titre-action h1 { margin: 0; }

.message { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .5rem; }
.message-info { background: var(--bleu-doux); }
.message-erreur { color: #8f2c1f; background: var(--corail-doux); }

.tableau-defilant { overflow-x: auto; background: var(--surface); border: 1px solid var(--trait); border-radius: .5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
th { color: var(--discret); font-size: .85rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td button { min-height: 2.25rem; padding: .25rem .75rem; }

.qr { display: block; margin: .75rem 0; background: #fff; }
.pagination { display: flex; gap: 1rem; }

.pastille { display: inline-block; min-width: 1.4em; padding: 0 .35em; font-size: .8em; text-align: center; color: #fff; background: var(--corail); border-radius: 1em; }
.filtres { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.filtres > div { margin: 0; flex: 1 1 9rem; }
.onglets { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.onglets [aria-current=page] { font-weight: 700; }
.retard { color: #8f2c1f; font-weight: 600; }
.meta { color: var(--discret); font-size: .9rem; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(15rem, 1fr)); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban h2 { margin: 0 0 .5rem; font-size: 1rem; }
.colonne { padding: .75rem; background: #e3e9f1; border-radius: .5rem; }
.fiche { margin-bottom: .5rem; padding: .75rem; background: var(--surface); border: 1px solid var(--trait); border-radius: .5rem; }
.fiche form > div { margin: 0; }
.fiche button { min-height: 2.25rem; margin-top: .5rem; padding: .25rem .6rem; font-size: .9rem; }
.commentaire { margin-bottom: .75rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: .5rem; }
.texte-libre { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { width: 100%; max-width: 40rem; min-height: 7rem; padding: .5rem .75rem; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--trait); border-radius: .5rem; }
.liste-simple { padding: 0; list-style: none; }
.liste-simple li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .35rem 0; }
.liste-simple form > div { margin: 0; }
.liste-simple button { min-height: 2.25rem; padding: .25rem .6rem; }
.fait { text-decoration: line-through; color: var(--discret); }
.non-lue { font-weight: 600; }

.bandeau-chrono { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .5rem 1rem; background: var(--bleu-doux); border-bottom: 1px solid var(--trait); }
.bandeau-chrono button { min-height: 2.25rem; padding: .25rem .75rem; }
.bandeau-chrono form > div { margin: 0; }
.nombre { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-top: 2px solid var(--trait); border-bottom: 0; }
.alerte { color: #8f2c1f; font-weight: 600; }
td details { min-width: 14rem; }
td textarea { min-height: 4rem; }
.etat { white-space: nowrap; font-weight: 600; }

.mot-de-passe { position: relative; display: block; max-width: 30rem; }
.mot-de-passe input { padding-right: 3rem !important; }
.carte .oeil, .oeil { position: absolute; top: 50%; right: .25rem; display: grid; place-items: center; width: 2.5rem; min-height: 2.5rem; height: 2.5rem; padding: 0; color: var(--discret); background: transparent; border: 0; border-radius: 50%; transform: translateY(-50%); }
.oeil:hover { color: var(--marine); background: var(--fond); }
.oeil svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }

.bandeau-rappel { margin: 0; padding: .6rem 1rem; color: #6b4a00; background: #fff6dc; border-bottom: 1px solid var(--trait); }
