/* Le portail Marceau : une colonne, lisible au soleil d'un chantier. */
:root {
  --fond: #f6f4ef;
  --carte: #ffffff;
  --texte: #1f2a30;
  --discret: #5d6a70;
  --accent: #1f5f4a;
  --accent-texte: #ffffff;
  --bord: #dcd8cf;
  --erreur: #9b2c2c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #151a1c;
    --carte: #1e2528;
    --texte: #eef1f2;
    --discret: #a3b0b5;
    --accent: #5fbf9c;
    --accent-texte: #0e1a15;
    --bord: #33403f;
    --erreur: #f19a9a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.carte {
  max-width: 44rem;
  margin: 2rem auto;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 14px;
}
@media (max-width: 40rem) { .carte { margin: 0; border-radius: 0; border: 0; min-height: 100vh; } }
.marque { font-weight: 700; letter-spacing: .04em; color: var(--accent); margin: 0 0 1rem; }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.grand { font-size: 1.15rem; }
.discret { color: var(--discret); font-size: .92rem; }
.message { padding: .75rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.erreur { color: var(--erreur); font-weight: 600; }
label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
input {
  width: 100%;
  font: inherit;
  padding: .75rem .85rem;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--fond);
  color: var(--texte);
}
.bouton {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-texte);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bouton.secondaire { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 1rem; }
th, td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.recherche { display: flex; gap: .5rem; align-items: end; }
.recherche .bouton { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.actions form { margin: 0; }
.actions label { display: inline; font-weight: 400; margin: 0 .4rem 0 0; }
.actions input[type=number] { width: 5rem; padding: .4rem; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; }
.fiche dt { color: var(--discret); }
.fiche dd { margin: 0; overflow-wrap: anywhere; }
.etat-echec { color: var(--erreur); font-weight: 600; }
@media (max-width: 40rem) { .carte { overflow-x: auto; } .fiche { grid-template-columns: 1fr; } }
