/* Feuille unique, sans dépendance réseau : trois personnes, un test de deux
   semaines, aucun besoin d'un cadre CSS complet. Mobile d'abord. */

:root {
  --fond: #f7f6f3;
  --carte: #ffffff;
  --encre: #1d1c1a;
  --doux: #6a675f;
  --trait: #dedbd2;
  --accent: #2f5d50;
  --accent-clair: #e6efec;
  --alerte: #8a4b2f;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); }

.bandeau {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline;
  padding: .75rem 1rem; background: var(--accent); color: #fff;
}
.bandeau .marque { color: #fff; font-weight: 600; text-decoration: none; }
.onglets { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .95rem; }
.onglets a { color: #d9e6e2; text-decoration: none; padding: .1rem 0; }
.onglets a.actif, .onglets a:hover { color: #fff; border-bottom: 2px solid #fff; }
.onglets a.discret { margin-left: auto; color: #b9cdc7; }

.page { max-width: 62rem; margin: 0 auto; padding: 1rem; }

.carte {
  background: var(--carte); border: 1px solid var(--trait); border-radius: 10px;
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
h1 { font-size: 1.35rem; margin: .2rem 0 .6rem; }
h2 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.chapeau { color: var(--doux); margin-top: 0; }
.note { color: var(--doux); font-size: .86rem; }
.vide { color: var(--doux); font-style: italic; }

.messages {
  background: var(--accent-clair); border: 1px solid #c9dcd6; border-radius: 8px;
  padding: .6rem .9rem; margin-bottom: 1rem;
}
.messages p { margin: .2rem 0; }

.formulaire { display: flex; flex-direction: column; gap: .35rem; max-width: 32rem; }
.formulaire label { font-size: .9rem; color: var(--doux); }
.formulaire .ligne { display: flex; flex-wrap: wrap; gap: .8rem; }
input[type=text], input[type=email], input[type=password], input:not([type]),
input[type=date], select {
  font: inherit; padding: .45rem .55rem; border: 1px solid var(--trait);
  border-radius: 6px; background: #fff; color: var(--encre);
}
button, .bouton {
  font: inherit; padding: .45rem .9rem; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  text-decoration: none; display: inline-block;
}
button.secondaire, .bouton.secondaire {
  background: #fff; color: var(--accent);
}
button.discret { background: none; border: 0; color: var(--doux); padding: .2rem 0;
  text-decoration: underline; }
button[disabled] { opacity: .5; cursor: default; }
.en-ligne { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ── E1 : la grille 7 × 48 ─────────────────────────────────────────────── */
.resume {
  background: var(--accent-clair); border-radius: 8px; padding: .5rem .8rem;
  margin: 0 0 .6rem;
}
.sous-onglets { display: flex; gap: 1rem; font-size: .9rem; margin-bottom: .6rem; }
.sous-onglets a { text-decoration: none; color: var(--doux); }
.sous-onglets a.actif { color: var(--accent); font-weight: 600; }

.tresse-defilement { overflow-x: auto; max-height: 70vh; overflow-y: auto; }
.tresse { border-collapse: collapse; width: 100%; font-size: .8rem; }
.tresse th, .tresse td { border: 1px solid var(--trait); padding: 0; text-align: center; }
.tresse thead th {
  position: sticky; top: 0; background: var(--carte); padding: .3rem .2rem;
  font-weight: 600;
}
.tresse thead th small { display: block; font-weight: 400; color: var(--doux); }
.tresse th.heure {
  width: 3.4rem; color: var(--doux); font-weight: 400; padding: .1rem .3rem;
  text-align: right; background: #fbfaf7;
}
.tresse tr.paire th.heure { background: #f2f0eb; }
.tresse td { width: 2.1rem; height: 1.35rem; }
.case { display: block; cursor: pointer; }
.case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.case span { display: block; height: 1.35rem; }
.case input:checked + span { background: var(--accent); }
.case input:focus-visible + span { outline: 2px solid var(--alerte); }
.tresse tr.paire .case span { background: rgba(0, 0, 0, .02); }
.tresse tr.paire .case input:checked + span { background: var(--accent); }
.copie { margin-top: 1.4rem; }

/* ── E2 : les fiches ──────────────────────────────────────────────────── */
.fiche {
  border: 1px solid var(--trait); border-radius: 8px; padding: .7rem .9rem;
  margin-bottom: .8rem; background: #fff;
}
.fiche header { display: flex; justify-content: space-between; align-items: baseline;
  gap: .6rem; }
.fiche h2 { margin: 0; }
.fiche p { margin: .3rem 0; }
.etat { font-size: .8rem; padding: .1rem .5rem; border-radius: 99px;
  background: #f0eee8; color: var(--doux); }
.etat--en-retard { background: #f7e7df; color: var(--alerte); }
.etat--bientôt { background: #f6f1dd; color: #7a6420; }
.declaration strong { color: var(--encre); }
.cadence { color: var(--doux); }
.appel-nu { margin-top: .5rem; color: var(--doux); font-size: .86rem; }

/* ── E3 : les cartes ──────────────────────────────────────────────────── */
.proposition {
  border: 1px solid var(--trait); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: .8rem 1rem; margin-bottom: .9rem;
}
.proposition h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.creneau { font-size: 1.05rem; margin: .1rem 0; }
.anciennete, .etat-proposition { color: var(--doux); font-size: .88rem; margin: .1rem 0; }
.apres-appel { background: var(--accent-clair); border-radius: 8px; padding: .7rem .9rem; }

/* ── divers ───────────────────────────────────────────────────────────── */
.liste { margin: .2rem 0 .8rem 1.1rem; padding: 0; }
.liste li { margin: .15rem 0; }
.liste-ligne { margin: .2rem 0; }
.promesses { margin: .8rem 0 0 1.1rem; color: var(--doux); font-size: .88rem; }
.fixe { background: #f0eee8; border-radius: 6px; padding: .4rem .6rem; }
.compteurs { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem;
  color: var(--doux); }
.message-boite .meta { color: var(--doux); font-size: .85rem; margin: .1rem 0 .5rem; }
.message-boite pre.texte { white-space: pre-wrap; font: inherit; background: #fbfaf7;
  border: 1px solid var(--trait); border-radius: 6px; padding: .6rem; }
.liens { margin: .4rem 0 0 1.1rem; font-size: .88rem; }
.liens code { color: var(--doux); font-size: .78rem; }
.lien { color: var(--accent); }
.pied { max-width: 62rem; margin: 0 auto; padding: 1rem; color: var(--doux);
  font-size: .82rem; display: flex; gap: 1rem; }
.pied .version { margin-left: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
