/* ===== style.css — apparence commune aux trois pages de WordTimeCoder =====
   Ecrit une fois pour les trois pages. Contraste eleve, corps de texte grand,
   contour de focus tres visible : l'outil sert aussi a un relecteur voyant.
   Aucune information n'est portee par la seule couleur (loi de la skill). */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px; line-height: 1.6;
  padding: 20px; max-width: 1100px; margin: 0 auto;
  background: #f4f6f8; color: #1c2733;
}

h1 { font-size: 30px; margin-bottom: 8px; color: #10202e; border-bottom: 3px solid #0b5ed7; padding-bottom: 8px; }
h2 { font-size: 24px; margin-bottom: 14px; color: #16324a; }
h3 { font-size: 20px; margin-bottom: 10px; color: #16324a; }
p  { margin-bottom: 12px; }

.section { background: #fff; padding: 20px; margin-bottom: 22px; border-radius: 8px; border: 1px solid #d5dde5; }

label { display: block; margin-bottom: 6px; font-weight: bold; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; padding: 10px; font-size: 17px;
  border: 2px solid #b9c4cf; border-radius: 4px; margin-bottom: 12px; background: #fff; color: #1c2733;
}
input[type="range"] { width: 100%; height: 34px; accent-color: #0b5ed7; }
input[type="file"] { font-size: 17px; padding: 8px 0; margin-bottom: 8px; }

:focus { outline: 4px solid #ff8c00; outline-offset: 2px; }

button {
  padding: 11px 20px; font-size: 17px; font-weight: bold;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  margin-right: 8px; margin-bottom: 8px; background: #0b5ed7; color: #fff;
}
button:hover { background: #0a4fb4; }
button.danger  { background: #b02a37; } button.danger:hover  { background: #8f222d; }
button.succes  { background: #1a7f37; } button.succes:hover  { background: #14682c; }
button.douce   { background: #48586a; } button.douce:hover   { background: #384553; }

.statut { padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; font-weight: bold; border: 2px solid; }
.statut.info   { background: #e7f1ff; color: #0a3d78; border-color: #a9c8f0; }
.statut.succes { background: #e6f4ea; color: #10521f; border-color: #a6d8b5; }
.statut.erreur { background: #fdeaec; color: #7a1520; border-color: #f0b3ba; }
.cache { display: none; }

.aide { background: #fff8e1; padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; border: 2px solid #e0a800; }
.aide ul { list-style: none; padding-left: 0; }
.aide li { margin-bottom: 5px; }
.aide summary { cursor: pointer; font-weight: bold; font-size: 19px; padding: 4px 0; }

.dialogue { display: none; background: #fff3cd; border: 3px solid #a67c00; border-radius: 6px; padding: 16px 18px; margin: 14px 0; }
.dialogue.visible { display: block; }
.dialogue p { font-weight: bold; margin-bottom: 12px; }

.liste { list-style: none; margin-top: 14px; }
.article { background: #f7f9fb; padding: 14px; margin-bottom: 10px; border-left: 6px solid #0b5ed7; border-radius: 4px; }
.article:focus-within { background: #e7f1ff; border-left-color: #ff8c00; }
.article .entete { font-size: 18px; margin-bottom: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.boite-lecteur { background: #eef3f8; border-radius: 6px; padding: 14px; margin-bottom: 14px; border: 1px solid #cbd8e4; }
.etat-lecture { font-weight: bold; font-size: 21px; margin-bottom: 6px; color: #10521f; }
.affichage-temps { font-size: 18px; font-weight: bold; color: #16324a; margin: 6px 0; font-variant-numeric: tabular-nums; }

.panneau-manette { background: #10202e; color: #dce6f0; padding: 18px; border-radius: 8px; margin-bottom: 20px; border: 2px solid #3b82f6; }
.panneau-manette h2 { color: #9ec5ff; font-size: 20px; }
.panneau-manette summary { color: #9ec5ff; cursor: pointer; }
.manette-ok  { color: #7ee2a0; font-weight: bold; }
.manette-non { color: #ffa7a7; font-weight: bold; }
.marqueurs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.marqueur { padding: 6px 14px; border-radius: 20px; font-weight: bold; font-variant-numeric: tabular-nums; border: 2px solid; }
.marqueur.pose { border-color: #7ee2a0; color: #7ee2a0; background: #05291a; }
.marqueur.vide { border-color: #55677a; color: #b7c4d2; background: #1b2937; }
.table-manette { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-top: 12px; font-size: 16px; }
.table-manette .touche { color: #9ec5ff; font-weight: bold; white-space: nowrap; }
.table-manette .titre-groupe { grid-column: 1 / -1; color: #8ea3b8; text-transform: uppercase; font-size: 14px;
  letter-spacing: .05em; margin-top: 10px; border-top: 1px solid #24455f; padding-top: 6px; }

.menu-modes { list-style: none; }
.menu-modes li { margin-bottom: 18px; }
.mode-lien {
  display: block; width: 100%; text-align: left; text-decoration: none;
  background: #fff; border: 3px solid #0b5ed7; border-radius: 8px;
  padding: 20px 22px; color: #10202e; font-size: 22px; font-weight: bold; cursor: pointer;
}
.mode-lien:hover { background: #e7f1ff; }
/* La description n'est plus DANS le lien (elle gonflait son nom au lecteur
   d'ecran) : elle est le paragraphe qui le suit. Meme allure qu'avant. */
.menu-modes .detail { display: block; font-size: 17px; font-weight: normal;
  margin: 8px 0 0 22px; color: #33475c; max-width: 60em; }

.pied { font-size: 16px; color: #45596d; margin-top: 26px; border-top: 1px solid #ccd6e0; padding-top: 12px; }

.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rangee > * { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
th, td { border: 1px solid #c3cedb; padding: 8px 10px; text-align: left; }
th { background: #e7eef5; }
