
:root { --attention: #f0b45a; --bordure: #343944; --danger: #ec8b7f; --fond: #15171c; --lien: #9bbcff; --surface: #1e2128; --surface-haute: #272b33; --texte: #e8e6e1; --texte-doux: #a9adb6; --validation: #5cc98a; color-scheme: dark; }
@media (prefers-color-scheme: light) { :root { --attention: #8a5a00; --bordure: #d9d6cf; --danger: #b23a2e; --fond: #f6f5f2; --lien: #2f5bd3; --surface: #ffffff; --surface-haute: #eeece7; --texte: #1d1f24; --texte-doux: #5b606b; --validation: #1f7a4a; color-scheme: light; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 17px;
  line-height: 1.45; }
main { max-width: 560px; margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); }
a { color: var(--lien); }
h1 { font-size: 1.35rem; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .6; }
.entete { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; gap: 12px; }
.lien-repas { background: var(--surface-haute); border: 1px solid var(--bordure); border-radius: 12px;
  padding: 8px 14px; text-decoration: none; color: var(--texte); }
.bandeau { background: var(--surface-haute); border-left: 4px solid var(--attention); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 14px; }
.rien { color: var(--texte-doux); padding: 18px 2px; }

.prise { position: relative; background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px;
  padding: 16px; margin: 0 0 14px; }
.prise .quand { margin: 0; color: var(--texte-doux); font-size: .95rem; }
.prise .quoi { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 2px;
  font-size: 1.3rem; overflow-wrap: anywhere; }
.prise .dose { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prise .ou { margin: 0 0 6px; }
.prise .modifiee { margin: 6px 0; color: var(--attention); font-weight: 600; }
.prise .etat { margin: 6px 0; color: var(--texte-doux); }
.section ~ .prise { padding: 12px 16px; }
.section ~ .prise .quoi { font-size: 1.1rem; }
.prise.statut-en_retard { border-color: var(--attention); }
.prise.statut-faite, .prise.statut-faite_par_cyril, .prise.statut-non_prise { opacity: .78; }
.faire { display: block; width: 100%; margin-top: 12px; padding: 15px; border: 0; border-radius: 12px;
  background: var(--validation); color: var(--fond); font-weight: 700; font-size: 1.1rem; }
.faire.petit { width: auto; margin: 0; padding: 8px 16px; font-size: 1rem; }
.discret { background: none; border: 0; padding: 10px 2px; color: var(--lien); text-decoration: underline; }
.fait { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--validation); font-weight: 600; }
.coche { width: 18px; height: 10px; border: solid var(--validation); border-width: 0 0 3px 3px; transform: rotate(-45deg);
  margin-top: -4px; }
.autres { margin-top: 10px; }
.autres summary { color: var(--texte-doux); padding: 6px 0; }
.autres form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 8px 0; }
.autres label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; color: var(--texte-doux); }
input { font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 9px 10px; }
.autres form button, .choix button, .bouton-secondaire { background: var(--surface-haute); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 9px 14px; }
.en-attente::after { content: "En attente du réseau"; display: block; margin-top: 8px; color: var(--attention); }
.coche-grande { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; }
.coche-grande circle { fill: var(--surface); stroke: var(--validation); stroke-width: 3; stroke-dasharray: 151;
  stroke-dashoffset: 151; animation: trait .45s ease-out forwards; }
.coche-grande path { fill: none; stroke: var(--validation); stroke-width: 4; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: trait .3s .4s ease-out forwards; }
@keyframes trait { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .coche-grande circle, .coche-grande path { animation: none;
  stroke-dashoffset: 0; } }

.section, .taches h2 { font-size: 1.05rem; color: var(--texte-doux); margin: 22px 0 8px; }
.taches ul { list-style: none; margin: 0; padding: 0; }
.tache { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px; }
.tache p { margin: 0; overflow-wrap: anywhere; }
.tache .echeance { color: var(--attention); font-size: .95rem; }
.tache.faite { opacity: .7; }
.tache .fait { flex: none; margin: 0; white-space: nowrap; }
.tache .coche-grande { width: 48px; height: 48px; inset: 0 12px 0 auto; }
.regles { margin: 26px 0 8px; }
.regles .attente { color: var(--attention); }
.regles summary { display: inline-block; list-style: none; }
.regles summary::-webkit-details-marker { display: none; }
.choix { display: flex; gap: 10px; }
.choix button { flex: 1; padding: 13px; }
.pied { margin-top: 30px; text-align: center; }
.connexion form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.connexion label { display: flex; flex-direction: column; gap: 6px; }
.connexion .message { color: var(--danger); }
.connexion .aide { color: var(--texte-doux); }
