/* liveTracker : feuille commune (application mobile + espace web). Identité 2026 : marine, bleu ciel, fond gris-bleu. */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --c-navy: #1F2868; --c-navy-2: #2B3580; --c-cyan: #25A9E1; --c-cyan-soft: #E8F6FD; --c-cyan-line: #CFEBF8;
  --c-bg: #F3F5FB; --c-surface: #FFFFFF; --c-surface-2: #F8FAFE; --c-field: #F2F4FA; --c-line: #E8ECF5; --c-line-2: #D9DEEC;
  --c-text: #1F2868; --c-muted: #7B83A6; --c-on-navy: #FFFFFF;
  --c-ok: #10A56F; --c-ok-soft: #E5F5EF; --c-wait: #C47A06; --c-wait-dot: #F2A93B; --c-wait-soft: #FAF2E4;
  --c-fix: #E03A52; --c-fix-soft: #FCE9EC; --c-off-soft: #EEF0F6;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.15rem; --fs-xl: 1.5rem; --fs-2xl: clamp(1.75rem, 5vw, 2.4rem);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px; --sp-9: 64px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px; --tap: 48px;
  --shadow: 0 10px 30px rgba(31, 40, 104, .06); --shadow-btn: 0 10px 20px rgba(31, 40, 104, .22); --shadow-key: 0 2px 0 #CDD2E4;
  --dur-fast: 150ms; --dur-base: 220ms; --ease-out: cubic-bezier(.22, .61, .36, 1);
  --pattern: repeating-radial-gradient(circle at 100% 110%, transparent 0 26px, rgba(255, 255, 255, .055) 26px 27px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-surface); color: var(--c-text); font: 400 var(--fs-md)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; font-weight: 600; color: var(--c-navy); }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); }
p { margin: 0; } a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--c-muted); } .small { font-size: var(--fs-sm); } .xs { font-size: var(--fs-xs); }
.eyebrow { font-size: var(--fs-md); font-weight: 600; color: var(--c-navy); margin: var(--sp-6) 0 var(--sp-3); }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-navy); color: #fff; padding: var(--sp-2) var(--sp-4); z-index: 50; }
.skip:focus { left: var(--sp-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { height: var(--sp-5); } .grow { flex: 1; } .block { display: block; } .center { text-align: center; }
.stack > * + * { margin-top: var(--sp-4); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-5); border-radius: var(--r-md); border: 1.5px solid var(--c-navy); background: var(--c-navy); color: #fff; font-weight: 600; font-size: var(--fs-md); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-btn); transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 56px; width: 100%; font-size: var(--fs-lg); }
.btn-ghost { background: var(--c-surface); color: var(--c-navy); border-color: var(--c-line-2); box-shadow: none; }
.btn-danger { background: var(--c-surface); color: var(--c-fix); border-color: var(--c-fix); box-shadow: none; }
.btn-soft { background: var(--c-cyan-soft); color: var(--c-navy); border-color: transparent; box-shadow: none; }
.btn-accent { background: var(--c-cyan); border-color: var(--c-cyan); box-shadow: 0 10px 24px rgba(37, 169, 225, .35); }
.btn-sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--c-surface); color: var(--c-muted); border-color: var(--c-line-2); box-shadow: none; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: var(--sp-2) 0; min-height: 44px; font-weight: 600; color: var(--c-cyan); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (hover: hover) { .btn:not(:disabled):hover { background: var(--c-navy-2); } .btn-ghost:not(:disabled):hover, .btn-danger:not(:disabled):hover { background: var(--c-field); } .btn-soft:not(:disabled):hover { background: var(--c-cyan-line); } .btn-accent:not(:disabled):hover { background: #1E98CC; } .row-link:hover { color: var(--c-navy-2); } }

/* Formulaires */
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field > label, .label { font-weight: 600; font-size: var(--fs-sm); color: var(--c-navy); }
.input { width: 100%; min-height: 56px; padding: var(--sp-3) var(--sp-4); background: var(--c-field); border: 1.5px solid transparent; border-radius: var(--r-md); font-size: var(--fs-md); color: var(--c-navy); }
.input::placeholder { color: #9AA1BF; }
.input:focus { border-color: var(--c-cyan); outline: none; background: var(--c-surface); box-shadow: 0 0 0 4px var(--c-cyan-soft); }
.input[aria-invalid="true"] { border-color: var(--c-fix); }
textarea.input { min-height: 112px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-navy) 50%), linear-gradient(-45deg, transparent 50%, var(--c-navy) 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--sp-8); }
.hint { font-size: var(--fs-sm); color: var(--c-muted); } .err { font-size: var(--fs-sm); color: var(--c-fix); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip { min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 0; background: var(--c-field); color: var(--c-navy); font-size: var(--fs-md); cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--c-navy); color: #fff; font-weight: 600; box-shadow: var(--shadow-btn); }
.note { background: var(--c-cyan-soft); color: var(--c-navy); border-radius: var(--r-md); padding: var(--sp-4); font-size: var(--fs-sm); line-height: 1.55; }
.note-ok { background: var(--c-ok-soft); color: #0B7A52; } .note-wait { background: #FFF4DE; color: #8A5800; }
.note-fix { display: block; margin-top: var(--sp-4); background: var(--c-fix-soft); color: var(--c-fix); text-decoration: none; font-weight: 500; }

/* Surfaces, listes, chiffres */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow); }
.card + .card { margin-top: var(--sp-4); }
.list { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 0 var(--sp-5); margin: 0; list-style: none; box-shadow: var(--shadow); }
.list > li { padding: var(--sp-4) 0; display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between; }
.list > li + li { border-top: 1px solid var(--c-line); } .list > li > .row-link { flex: 1; }
.row-link { display: flex; width: 100%; gap: var(--sp-4); align-items: center; justify-content: space-between; text-align: left; background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; min-height: 44px; }
.row-main { min-width: 0; } .row-title { font-weight: 600; color: var(--c-navy); } .row-sub { color: var(--c-muted); font-size: var(--fs-sm); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); } .kv dt { color: var(--c-muted); } .kv dd { margin: 0; text-align: right; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); } .stats.two { grid-template-columns: 1fr 1fr; }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--sp-4); text-decoration: none; display: block; box-shadow: var(--shadow); }
.stat b { display: block; font-size: var(--fs-xl); font-weight: 600; line-height: 1.1; } .stat span { color: var(--c-muted); font-size: var(--fs-sm); display: block; }
.tone-fix { color: var(--c-fix); } .tone-ok { color: var(--c-ok); } .tone-wait { color: var(--c-wait); }

/* Pastilles de statut : fond pâle, point et libellé (jamais la couleur seule) */
.badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 4px var(--sp-3); border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; line-height: 1.4; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge-run { background: var(--c-cyan-soft); color: var(--c-navy); } .badge-run::before { background: var(--c-cyan); }
.badge-ok { background: var(--c-ok-soft); color: var(--c-ok); } .badge-wait { background: var(--c-wait-soft); color: var(--c-wait); } .badge-wait::before { background: var(--c-wait-dot); }
.badge-fix { background: var(--c-fix-soft); color: var(--c-fix); } .badge-off { background: var(--c-off-soft); color: var(--c-muted); }

/* Frise de huit segments ; le segment courant porte le point bleu ciel (rouge si à corriger) */
.frise { display: flex; align-items: center; gap: 6px; margin-top: var(--sp-4); }
.frise i { flex: 1; height: 6px; border-radius: 3px; background: var(--c-line); }
.frise i.done { background: var(--c-navy); }
.frise i.now { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 5px var(--c-cyan-soft); }
.frise i.now.fix { background: var(--c-fix); box-shadow: 0 0 0 5px var(--c-fix-soft); }
.frise.lost i.done { background: var(--c-muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.steps li { display: flex; align-items: center; gap: var(--sp-4); color: var(--c-muted); min-height: 36px; }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c-line); flex: none; margin: 0 4px; }
.steps li.done { color: var(--c-navy); } .steps li.done::before { background: var(--c-navy); }
.steps li.now { color: var(--c-navy); font-weight: 600; } .steps li.now::before { background: var(--c-cyan); box-shadow: 0 0 0 5px var(--c-cyan-soft); }
.steps li.now.fix::before { background: var(--c-fix); box-shadow: 0 0 0 5px var(--c-fix-soft); }
.steps li > span:first-of-type { flex: 1; } .steps time { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 400; }
.bar { height: 10px; border-radius: 5px; background: var(--c-line); overflow: hidden; flex: 1; } .bar > i { display: block; height: 100%; background: var(--c-navy); border-radius: 5px; }
.bar > i.w0 { width: 0; } .bar > i.w10 { width: 10%; } .bar > i.w20 { width: 20%; } .bar > i.w30 { width: 30%; } .bar > i.w40 { width: 40%; } .bar > i.w50 { width: 50%; }
.bar > i.w60 { width: 60%; } .bar > i.w70 { width: 70%; } .bar > i.w80 { width: 80%; } .bar > i.w90 { width: 90%; } .bar > i.w100 { width: 100%; }
.meter-h { height: 8px; border-radius: 4px; background: var(--c-line); overflow: hidden; } .meter-h > i { display: block; height: 100%; background: var(--c-cyan); border-radius: 4px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; background: var(--c-cyan-soft); color: var(--c-navy); }
.avatar.fix { background: var(--c-fix-soft); color: var(--c-fix); } .avatar.lg { width: 64px; height: 64px; font-size: var(--fs-lg); }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: var(--c-navy); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); max-width: calc(100% - 32px); z-index: 40; box-shadow: var(--shadow-btn); animation: rise var(--dur-base) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.photo { aspect-ratio: 4 / 3; border: 1.5px dashed var(--c-cyan-line); border-radius: var(--r-lg); background: var(--c-cyan-soft); display: grid; place-items: center; overflow: hidden; color: var(--c-navy); font-size: var(--fs-sm); text-align: center; white-space: pre-line; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
