/* Console : papier clair, encre, un trait fin. Thème clair forcé (demande d'Alex). */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --papier: #f6f4ee; --blanc: #fffdf8; --encre: #1c1a16; --encre-2: #575248; --encre-3: #6b665b; --trait: #dcd8cc;
  --vert: #1a6447; --vert-fond: #e1efe7; --ambre: #7d4a00; --ambre-fond: #f6e9cf; --rouge: #9c261f; --rouge-fond: #f8e1dd; --gris-fond: #e9e5db;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--trait) var(--papier); }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1rem/1.5 "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; caret-color: var(--encre); }
::selection { background: var(--encre); color: var(--papier); }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
h1:focus { outline: none; }
a { color: inherit; }
.flou { color: var(--encre-3); }
.evite { position: absolute; left: -999px; top: 8px; background: var(--encre); color: var(--papier); padding: 10px 14px; border-radius: 6px; z-index: 3; }
.evite:focus { left: 8px; }

#app { max-width: 41rem; margin: 0 auto; padding: 28px 20px calc(96px + env(safe-area-inset-bottom)); }
main { animation: entree .18s cubic-bezier(.16, 1, .3, 1); }
@keyframes entree { from { opacity: .4; transform: translateY(4px); } }

.tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.marque, .fiche h1 { margin: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.releve { margin: 0; font-size: .875rem; color: var(--encre-2); white-space: nowrap; }
.chapo { margin: 6px 0 0; color: var(--encre-2); max-width: 34rem; }
.resume { margin: 18px 0 0; font-size: 1.0625rem; }
.resume strong { font-weight: 650; }

.alerte { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--ambre); background: var(--ambre-fond); color: var(--ambre); border-radius: 8px; font-size: .9375rem; }

section { margin-top: 30px; }
h2 { margin: 0 0 4px; font-size: .875rem; font-weight: 650; color: var(--encre-2); letter-spacing: .005em; }
.alarme h2 { color: var(--rouge); }
ul { list-style: none; margin: 0; padding: 0; }
.lignes { border-top: 1px solid var(--trait); }
.lignes li { border-bottom: 1px solid var(--trait); }
.ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; min-height: 64px; padding: 12px 22px 12px 6px; margin: 0 -6px; border-radius: 8px; text-decoration: none; position: relative; transition: background-color .12s; }
.ligne::after { content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid var(--encre-3); border-top: 1.5px solid var(--encre-3); transform: rotate(45deg); transition: transform .12s; }
.ligne:hover { background: var(--blanc); }
.ligne:hover::after { transform: translateX(2px) rotate(45deg); }
.ligne:active { background: var(--gris-fond); }
.qui, .cote { display: flex; flex-direction: column; min-width: 0; }
.nom { font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em; }
.role { color: var(--encre-2); font-size: .9375rem; line-height: 1.35; }
.cote { align-items: flex-end; text-align: right; gap: 2px; font-size: .875rem; color: var(--encre-2); }

.etat { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 600; white-space: nowrap; padding: 3px 10px 3px 9px; border-radius: 999px; }
.pt { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.etat-marche { color: var(--vert); background: var(--vert-fond); }
.etat-retard { color: var(--ambre); background: var(--ambre-fond); }
.etat-panne { color: var(--rouge); background: var(--rouge-fond); }
.etat-pause, .etat-inconnu { color: var(--encre-2); background: var(--gris-fond); }

.fiche .tete { align-items: center; justify-content: flex-start; margin-top: 14px; }
.retour { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9375rem; color: var(--encre-2); text-decoration: none; }
.retour::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.retour:hover { color: var(--encre); }
.faits { margin: 22px 0 0; display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); border-top: 1px solid var(--trait); }
.faits dt, .faits dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.faits dt { color: var(--encre-2); font-size: .9375rem; padding-right: 16px; }
.puces li { position: relative; padding: 5px 0 5px 16px; }
.puces li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 5px; height: 1.5px; background: var(--encre-3); }
.journal { border-top: 1px solid var(--trait); }
.journal li { display: flex; flex-direction: column; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--trait); overflow-wrap: anywhere; }
.journal .nb { font-size: .875rem; }

.pied { margin: 34px 0 0; font-size: .875rem; color: var(--encre-3); overflow-wrap: anywhere; }
.lien { font: inherit; color: var(--encre-2); background: none; border: 0; padding: 12px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien:hover { color: var(--encre); }

.porte { padding-top: 14vh; }
.bouton { display: inline-flex; align-items: center; min-height: 48px; margin-top: 26px; padding: 0 22px; background: var(--encre); color: var(--papier); border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform .1s, background-color .12s; }
.bouton:hover { background: #33302a; }
.bouton:active { transform: scale(.98); }
.seul { padding: 40px 0; color: var(--encre-2); }

.barre { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--papier); border-top: 1px solid var(--trait); }
.barre > * { flex: 0 1 9.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px; border-radius: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--encre-3); }
.barre a[aria-current] { color: var(--encre); background: var(--gris-fond); }
.barre small { font-size: .6875rem; font-weight: 500; }

@media (max-width: 30rem) {
  #app { padding-left: 16px; padding-right: 16px; }
  .ligne { grid-template-columns: minmax(0, 1fr); }
  .cote { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 4px 10px; }
  .faits { grid-template-columns: minmax(0, 1fr); }
  .faits dt { border-bottom: 0; padding-bottom: 0; }
  .faits dd { padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
