/* OS perso — design system Encre (tailles réduites, 01/12/2026). */
:root {
  --bg: #ffffff; --ink: #0a0a0a; --muted: #5c5c63; --soft: #f0f0f2; --line: #e4e4e7;
  --accent: #2b2bff; --accent-text: #2b2bff; --on-accent: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505; --ink: #f4f4f5; --muted: #a1a1aa; --soft: #1c1c1f; --line: #2a2a2e;
    --accent: #7b7bff; --accent-text: #8f8fff; --on-accent: #050505;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
p, h1, h2 { margin: 0; font-size: inherit; font-weight: inherit; }
button {
  font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ecran {
  max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: 16px 24px 32px; display: flex; flex-direction: column;
}
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }

.entete { height: 44px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.retour {
  height: 44px; margin-left: -6px; padding: 0 12px 0 0; border: 0; background: none;
  display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500;
}
.date { font-size: 13px; line-height: 18px; color: var(--muted); }

.titre { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.chiffre-xl { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.chiffre-l { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.section { font-size: 14px; line-height: 20px; font-weight: 600; }
.texte { font-size: 14px; line-height: 20px; }
.note { font-size: 13px; line-height: 18px; }
.ligne { font-size: 15px; line-height: 20px; font-weight: 500; }

.saisie { display: flex; gap: 8px; }
.btn {
  height: 52px; border: 0; border-radius: 26px; font-size: 17px; line-height: 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: transform 150ms ease, opacity 150ms ease;
}
.btn:active { transform: scale(0.96); }
.rond { width: 52px; flex: none; background: var(--soft); color: var(--ink); }
.principal { flex: 1; background: var(--accent); color: var(--on-accent); }

.tete { display: flex; justify-content: space-between; align-items: baseline; }
.tete-lien {
  height: 44px; width: 100%; padding: 0; border: 0; background: none;
  display: flex; justify-content: space-between; align-items: center; text-align: left;
}
.barre { height: 4px; border-radius: 2px; overflow: hidden; background: var(--line); }
.barre > span { display: block; height: 4px; border-radius: 2px; background: var(--accent); }

.liste { border-top: 1px solid var(--line); }
.row {
  min-height: 56px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
}
.row-texte { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.valeur { font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.aller { display: flex; align-items: center; gap: 4px; }
.coche {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: none;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.coche > span {
  width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms ease, border-color 150ms ease;
}
.coche[aria-pressed="true"] > span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.coche[aria-pressed="false"] svg { display: none; }
.statut { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--accent-text); }

.mois { height: 44px; display: flex; align-items: center; }
.fleche {
  width: 44px; height: 44px; border: 0; background: none; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.mois .fleche:first-child { margin-left: -14px; }
.mois .fleche:last-child { margin-left: auto; margin-right: -14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal > * { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.cal .sem { height: 24px; font-size: 12px; line-height: 16px; color: var(--muted); }
.cal .jour { font-size: 13px; line-height: 18px; color: var(--muted); }
.cal .nb { font-size: 11px; line-height: 14px; font-weight: 600; min-height: 14px; }
.cal .fait .jour { color: var(--ink); }
.cal .auj .jour { color: var(--accent-text); font-weight: 600; }

.alerte { min-height: 18px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* Connexion */
.champ {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 26px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
.champ:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .btn, .coche > span { transition: none; }
  .btn:active { transform: none; }
}
