/* Interface pensée pour des utilisateurs peu à l'aise avec l'informatique :
   gros caractères, contrastes forts, peu de choix par écran, boutons larges. */
:root {
  --bleu: #1d3f8f;
  --bleu-clair: #2aa7df;
  --fond: #f3f6fb;
  --texte: #13234d;
  --gris: #5b6478;
  --rouge: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.5 system-ui, "Segoe UI", Arial, sans-serif; color: var(--texte); background: var(--fond); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--bleu); color: #fff; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand small { font-weight: 400; opacity: .8; }
.badge { background: #fff; color: var(--bleu); padding: 2px 8px; border-radius: 4px; font-weight: 800; }
.logout { color: #fff; }
main { max-width: 920px; margin: 0 auto; padding: 24px 16px 60px; }
h1 { font-size: 30px; margin: 8px 0 16px; }
.lead { color: var(--gris); margin-top: -6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid #dbe3f0; border-radius: 10px;
        padding: 20px; text-decoration: none; color: inherit; min-height: 150px; }
.tile:hover, .tile:focus { border-color: var(--bleu-clair); outline: none; }
.tile strong { font-size: 22px; color: var(--bleu); }
.tile span:last-child { color: var(--gris); }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--bleu-clair); color: #fff; font-weight: 700;
       display: flex; align-items: center; justify-content: center; }
.card { background: #fff; border-radius: 10px; padding: 24px; border: 1px solid #dbe3f0; }
.narrow { max-width: 420px; margin: 40px auto; }
label { display: block; font-weight: 600; margin-bottom: 18px; }
input[type=text], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400;
  border: 2px solid #c5d0e3; border-radius: 8px; background: #fff; color: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--bleu-clair); outline: none; }
.req { color: var(--rouge); }
.btn { display: inline-block; background: var(--bleu); color: #fff; border: 2px solid var(--bleu); border-radius: 8px;
       padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--bleu); }
.btn.big { width: 100%; padding: 16px; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.back { color: var(--bleu); text-decoration: none; }
.error { background: #fdecea; color: var(--rouge); padding: 10px 14px; border-radius: 8px; }
.demo { background: #fff6d6; border: 1px solid #f0d77a; padding: 10px 14px; border-radius: 8px; font-size: 16px; }
.note { background: #eaf4fb; padding: 10px 14px; border-radius: 8px; font-size: 16px; }
.dictate { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-weight: 400; }
.dictate .listening { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.loading { text-align: center; color: var(--gris); }
.doc h2, .doc h3 { color: var(--bleu); margin-top: 1.2em; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.doc th, .doc td { border: 1px solid #c5d0e3; padding: 6px 10px; text-align: left; }
.doc th { background: #eaf0fa; }
.doc mark { background: #fff1a8; }
.preview { width: 100%; height: 900px; border: 1px solid #dbe3f0; border-radius: 10px; background: #e9edf5; }
.meta { color: var(--gris); font-size: 15px; }
@media print {
  .top, .actions, .back, .meta, .demo { display: none; }
  body { background: #fff; }
  .card { border: none; padding: 0; }
}
