:root { color-scheme: light dark; --fond: #f3f5f9; --carte: #fff; --texte: #1b2130; --doux: #5a6376; --trait: #d5dae4; --accent: #1f5fbf; --sur: #fff; --ko: #b3261e; --ok: #1b7a43; --note: #fff1cf; --attention: #8a5a00; }
@media (prefers-color-scheme: dark) {
	:root { --fond: #12151b; --carte: #1c212a; --texte: #e9ecf2; --doux: #a4adbd; --trait: #363e4c; --accent: #7aa9f5; --sur: #0f1319; --ko: #ff9a91; --ok: #7fd6a2; --note: #3b3214; --attention: #f2c063; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.45 system-ui, sans-serif; overflow-wrap: anywhere; }
header, main { max-width: 620px; margin: 0 auto; }
header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; min-height: 56px; padding: env(safe-area-inset-top) 16px 0; background: var(--fond); }
h1 { flex: 1; margin: 0; font-size: 1.3rem; }
.icone { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px; border: 0; background: none; color: var(--texte); font-size: 1.6rem; line-height: 1; text-decoration: none; cursor: pointer; }
main { padding: 8px 16px calc(96px + env(safe-area-inset-bottom)); }
nav { position: fixed; inset: auto 0 0; z-index: 2; display: flex; justify-content: center; background: var(--carte); border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom); }
nav a { flex: 1; max-width: 207px; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--doux); font-weight: 600; font-size: .95rem; text-decoration: none; border-top: 3px solid transparent; }
nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.compte { min-width: 22px; padding: 1px 6px; border-radius: 11px; background: var(--ko); color: var(--carte); font-size: .8rem; text-align: center; }
.carte { display: block; width: 100%; margin: 0 0 12px; padding: 15px 16px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); color: inherit; font: inherit; text-align: left; text-decoration: none; }
.carte h2 { margin: 0 0 2px; font-size: 1.08rem; line-height: 1.3; }
p { margin: 0 0 10px; }
.carte > :last-child { margin-bottom: 0; }
.doux { color: var(--doux); font-size: .88rem; }
.ko { color: var(--ko); }
.ok { color: var(--ok); }
.attention { color: var(--attention); }
.etat { font-weight: 600; font-size: .92rem; }
.pastille { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--note); font-size: .82rem; font-weight: 600; }
.note { padding: 11px 13px; border-radius: 10px; background: var(--note); }
.vide { padding: 22vh 12px 0; color: var(--doux); text-align: center; }
h3 { margin: 20px 0 6px; font-size: .95rem; }
.texte { white-space: pre-line; }
.neuve { border-left: 4px solid var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }
.controles li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--trait); }
.controles li::before { position: absolute; left: 3px; font-weight: 700; }
.controles .oui::before { content: "✓"; color: var(--ok); }
.controles .non::before { content: "✗"; color: var(--ko); }
.controles span { display: block; }
.boutons { display: flex; gap: 12px; margin: 20px 0 12px; }
.bouton { flex: 1; min-height: 52px; padding: 13px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--sur); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.second { background: transparent; color: var(--accent); }
.bouton:disabled { opacity: .5; cursor: default; }
label { display: block; margin: 0 0 4px; font-weight: 600; }
input { width: 100%; padding: 12px; border: 1px solid var(--trait); border-radius: 8px; background: var(--carte); color: var(--texte); font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
