:root { --fond: #f4f7f6; --carte: #fff; --texte: #0f1f1c; --doux: #5b6b67; --accent: #0f766e; --accent-fonce: #0b5a54; --danger: #b91c1c; --bord: #dbe5e2; --ombre: 0 1px 3px rgba(15, 31, 28, .08); --r: 14px; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --fond: #0d1514; --carte: #16221f; --texte: #e8f1ef; --doux: #9fb2ae; --accent: #2dd4bf; --accent-fonce: #5eead4; --danger: #f87171; --bord: #26352f; --ombre: none; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fond); color: var(--texte); font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
#app { height: 100%; display: flex; flex-direction: column; }
.contenu { flex: 1; overflow-y: auto; padding: calc(14px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 24px max(14px, env(safe-area-inset-left, 0px)); max-width: 680px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; align-content: start; }
.contenu > * { flex-shrink: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; } h1 { font-size: 1.9rem; } h2 { font-size: 1.15rem; margin-top: 8px; } h3 { font-size: 1rem; }
p { margin: 0; } small, .petit { font-size: .82rem; color: var(--doux); } .sous { color: var(--doux); font-size: .92rem; }
.erreur { color: var(--danger); font-size: .92rem; } .erreur:empty { display: none; }
.vide { color: var(--doux); text-align: center; padding: 18px 8px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--doux); font-weight: 600; }
input, select { font: inherit; color: var(--texte); background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn { font: inherit; font-weight: 600; border: 1px solid var(--bord); background: var(--carte); color: var(--texte); border-radius: 12px; padding: 11px 16px; min-height: 46px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; } @media (prefers-color-scheme: dark) { .btn.pri { color: #04201c; } }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } @media (prefers-color-scheme: dark) { .btn.danger { color: #200404; } }
.btn.lien { background: none; border: 0; color: var(--accent-fonce); min-height: 40px; } .btn.large { width: 100%; } .btn.geant { width: 100%; min-height: 64px; font-size: 1.2rem; }
.btn.petit { min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 14px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 10px; }
.centre { min-height: 100%; display: grid; place-items: center; padding: 18px; } .auth { width: min(420px, 100%); } .centre-texte { text-align: center; align-items: stretch; }
.rangee { display: flex; gap: 8px; align-items: center; } .rangee.entete { justify-content: space-between; } .rangee.fin { justify-content: flex-end; } .rangee.enroule { flex-wrap: wrap; } .rangee.petite { justify-content: flex-end; }
.pile { display: flex; flex-direction: column; gap: 10px; } .grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .grille2 { grid-template-columns: 1fr; } }
.gros { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; } .moyen { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--doux); }
.actif { border-color: var(--accent); } .pastille { color: var(--accent-fonce); font-weight: 700; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } } @media (prefers-reduced-motion: reduce) { .pastille { animation: none; } }
.ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin-bottom: 8px; min-height: 56px; }
.ligne > span:first-child { display: flex; flex-direction: column; min-width: 0; } .ligne small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ligne.archive { opacity: .6; }
.droite { text-align: right; font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.total .gros { font-size: 2.2rem; } .barres { display: flex; flex-direction: column; gap: 6px; } .barre { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.piste { background: var(--bord); border-radius: 6px; height: 10px; overflow: hidden; } .rempli { background: var(--accent); height: 100%; border-radius: 6px; }
.station { display: flex; gap: 10px; align-items: center; background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; } .station .info { flex: 1; min-width: 0; display: flex; flex-direction: column; } .station small { overflow: hidden; text-overflow: ellipsis; }
.num { background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; }
.radar { width: min(260px, 70vw); align-self: center; } .r-fond { fill: var(--carte); stroke: var(--bord); } .r-anneau { fill: none; stroke: var(--bord); } .r-n, .r-num { fill: var(--texte); font: 700 11px system-ui; } .r-st { fill: var(--accent); } .r-num { fill: #fff; } .r-moi { fill: #2563eb; stroke: #fff; stroke-width: 2; }
.svgtrace { width: 100%; background: var(--fond); border-radius: 10px; } .svgtrace text { fill: var(--doux); }
.onglets { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--carte); border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom, 0px); }
.onglets button { font: inherit; font-size: .78rem; font-weight: 600; color: var(--doux); background: none; border: 0; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-height: 58px; } .onglets .ic { font-size: 1.35rem; line-height: 1; }
.onglets button[aria-current='page'] { color: var(--accent-fonce); box-shadow: inset 0 3px 0 var(--accent); }
.carte.abo.expire { border-color: var(--danger); } .carte.abo.essai, .carte.abo.actif { border-color: var(--accent); }
dialog { border: 0; border-radius: 16px; padding: 16px; width: min(480px, 94vw); max-height: 90vh; background: var(--carte); color: var(--texte); } dialog::backdrop { background: rgba(0, 0, 0, .5); } dialog form, dialog > div { display: flex; flex-direction: column; gap: 10px; } dialog .rangee.entete { flex-direction: row; }
#avis { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 92vw; z-index: 99; } #avis.visible { opacity: 1; transform: translate(-50%, 0); } #avis.erreur { background: var(--danger); color: #fff; }
.sortie { white-space: pre-wrap; word-break: break-word; font-size: .8rem; margin: 0; } .sortie:empty { display: none; }
