/* Feuille de style commune aux trois interfaces de teleMamie (thème clair). */
:root {
  --fond: #f6f5f1;
  --carte: #ffffff;
  --encre: #1c1f23;
  --doux: #5b636d;
  --trait: #dcd8cf;
  --trait-fort: #b9b3a6;
  --vert: #1f6b55;
  --vert-doux: #e2f1eb;
  --ambre: #8a5300;
  --ambre-doux: #fdf0d9;
  --rouge: #a3271f;
  --rouge-doux: #fbe3e1;
  --bleu: #22558c;
  --bleu-doux: #e3edf8;
  --gris-doux: #eeece6;
  --rayon: 12px;
  --police: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--police); font-size: 15px; line-height: 1.5; }
a { color: var(--bleu); }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
p { margin: 6px 0; }
code, .mono { font-family: var(--mono); font-size: 13px; }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; margin-bottom: 16px; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ligne { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.doux { color: var(--doux); }
.petit { font-size: 13px; }

/* Pastilles d'état */
.pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--gris-doux); color: var(--encre); white-space: nowrap; }
.pastille.vert { background: var(--vert-doux); color: var(--vert); }
.pastille.ambre { background: var(--ambre-doux); color: var(--ambre); }
.pastille.rouge { background: var(--rouge-doux); color: var(--rouge); }
.pastille.bleu { background: var(--bleu-doux); color: var(--bleu); }

/* Bandeaux */
.bandeau { border-radius: var(--rayon); padding: 12px 16px; margin-bottom: 16px; border: 1px solid; }
.bandeau.vert { background: var(--vert-doux); border-color: var(--vert); }
.bandeau.ambre { background: var(--ambre-doux); border-color: var(--ambre); }
.bandeau.rouge { background: var(--rouge-doux); border-color: var(--rouge); }
.bandeau.bleu { background: var(--bleu-doux); border-color: var(--bleu); }

/* Tableaux */
.tableau-defilant { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-size: 13px; color: var(--doux); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Formulaires */
label { display: block; font-weight: 600; margin: 10px 0 4px; }
.aide { font-weight: 400; color: var(--doux); font-size: 13px; margin: 2px 0 0; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=time], select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--trait-fort); border-radius: 8px; background: #fff; color: var(--encre); width: 100%; max-width: 420px;
}
textarea { min-height: 90px; max-width: 560px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--bleu-doux); outline-offset: 1px; border-color: var(--bleu); }
.case { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.case input { width: auto; }

button, .bouton {
  font: inherit; font-weight: 600; display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--trait-fort);
  background: var(--carte); color: var(--encre); cursor: pointer; text-decoration: none; line-height: 1.3;
}
button:hover, .bouton:hover { background: var(--gris-doux); }
button.principal, .bouton.principal { background: var(--vert); border-color: var(--vert); color: #fff; }
button.principal:hover { background: #185845; }
button.danger { color: var(--rouge); border-color: var(--rouge); }
button.danger:hover { background: var(--rouge-doux); }
button.petit, .bouton.petit { padding: 4px 10px; font-size: 13px; }
form.en-ligne { display: inline; }

.erreurs { background: var(--rouge-doux); border: 1px solid var(--rouge); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.erreurs ul { margin: 0; padding-left: 18px; }
