@font-face {
  font-family: "Source Sans 3";
  font-weight: 400;
  font-display: swap;
  src: url("/polices/400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 500;
  font-display: swap;
  src: url("/polices/500.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 600;
  font-display: swap;
  src: url("/polices/600.woff2") format("woff2");
}
:root {
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #f9fafa;
  --inset: #eef0f2;
  --ink: #111518;
  --ink-2: #3c4449;
  --ink-3: #5b646a;
  --ink-4: #8a9399;
  --on-ink: #ffffff;
  --line: #e3e6e8;
  --line-strong: #cdd2d6;
  --accent: #0f625c;
  --accent-strong: #0a4743;
  --accent-soft: #e3f1ef;
  --accent-line: #b5d8d3;
  --on-accent: #ffffff;
  --ocre: #a15c00;
  --warn-soft: #fdf0d9;
  --warn-ink: #7a4600;
  --warn-line: #f0d29b;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-ink: #8a1c12;
  --danger-line: #f5c2bc;
  --ok: #1f7a4a;
  --ok-ink: #165c37;
  --barre: #173f42;
  --barre-ink: #f2efdc;
  --barre-filet: rgba(242, 239, 220, 0.12);
  --verre: rgba(249, 250, 250, 0.98);
  --voile: rgba(15, 18, 20, 0.28);
  --verre-filet: rgba(17, 21, 24, 0.08);
  --ombre: 0 1px 2px rgba(17, 21, 24, 0.08), 0 3px 2px -1px rgba(17, 21, 24, 0.1);
  --sans: "Source Sans 3", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1214;
    --surface: #171b1e;
    --surface-2: #1c2125;
    --inset: #12161a;
    --ink: #eceff1;
    --ink-2: #b4bcc2;
    --ink-3: #8c959c;
    --ink-4: #5d666d;
    --on-ink: #0f1214;
    --line: #262c31;
    --line-strong: #343b41;
    --accent: #3fa89b;
    --accent-strong: #7cc8bd;
    --accent-soft: #12302c;
    --accent-line: #1e4a44;
    --on-accent: #0f1214;
    --ocre: #e0a83a;
    --warn-soft: #2d2310;
    --warn-ink: #ebc678;
    --warn-line: #4a3a17;
    --danger: #e5735f;
    --danger-soft: #301713;
    --danger-ink: #f2a699;
    --danger-line: #52261e;
    --ok: #4db27a;
    --ok-ink: #8fd3ab;
    --barre: #0b1111;
    --verre: rgba(23, 27, 30, 0.98);
    --voile: rgba(0, 0, 0, 0.5);
    --verre-filet: rgba(255, 255, 255, 0.08);
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 3px 2px -1px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/20px var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.trunc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.app {
  position: relative;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.barre {
  flex: none;
  background: var(--barre);
  color: var(--barre-ink);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  height: 56px;
}
.tel .barre {
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.marque svg {
  height: 18px;
  width: auto;
  color: #e0a83a;
}
.barre .esp {
  flex: 1;
}
.barre .session {
  font-size: 13px;
  color: rgba(242, 239, 220, 0.72);
}
.barre button {
  border: 1px solid var(--barre-filet);
  background: none;
  color: var(--barre-ink);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
}
.barre button:hover {
  background: rgba(242, 239, 220, 0.07);
}

.corps {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
}
.tel .corps {
  grid-template-columns: minmax(0, 1fr);
}
.liste {
  overflow-y: auto;
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tel .liste {
  padding: 20px 16px calc(32px + env(safe-area-inset-bottom));
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tel h1 {
  font-size: 26px;
  line-height: 32px;
}
.sous {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 22px;
  max-width: 62ch;
}
.sans-marge {
  margin: 0;
}

.bandeau {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 14px 16px;
}
.bandeau .ico {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.bandeau b {
  display: block;
  font-weight: 600;
}
.bandeau p {
  margin: 2px 0 0;
  color: var(--ink-2);
}
.bandeau.warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}
.bandeau.warn p {
  color: var(--warn-ink);
}
.bandeau.danger {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger-ink);
}
.bandeau.danger p {
  color: var(--danger-ink);
}
.bandeau.ok {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.bandeau.ok .ico {
  color: var(--ok);
}
.bandeau a,
.fin a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nom,
.nw {
  white-space: nowrap;
}

.resume {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--ink-2);
}
.resume span {
  display: block;
}
.resume b {
  font-weight: 600;
  color: var(--ink);
}
.tel .resume {
  flex-direction: column;
}

.tete-liste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tete-liste h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}
.filtre {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  background: var(--surface);
}
.filtre button {
  border: 0;
  background: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 500;
  color: var(--ink-2);
  min-height: 32px;
}
.filtre button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.jour {
  display: flex;
  flex-direction: column;
}
.jour h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.lignes {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ligne {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 12px 16px;
  min-height: 56px;
  transition: background-color 0.12s;
}
.ligne:first-child {
  border-top: 0;
}
.ligne:hover {
  background: var(--inset);
}
.ligne[aria-pressed="true"] {
  background: var(--accent-soft);
}
.ligne .h {
  font-weight: 600;
  font-size: 15px;
}
.ligne .m {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ligne .m i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.ligne .m i.mo {
  background: var(--ocre);
}
.ligne .m span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ligne .m b {
  font-weight: 600;
}
.ligne .m small {
  color: var(--ink-3);
  font-size: 13px;
}
.ligne .t {
  color: var(--ink-3);
  font-size: 13px;
}
.ligne .chev {
  width: 16px;
  height: 16px;
  color: var(--ink-4);
}
.tel .ligne {
  grid-template-columns: 52px minmax(0, 1fr) 16px;
  padding: 12px 14px;
  min-height: 60px;
}
.tel .ligne .t {
  display: none;
}
.plus {
  align-self: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  min-height: 40px;
}
.aucun {
  color: var(--ink-3);
  margin: 0;
}

.secours {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.secours h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.secours p {
  margin: 0;
  color: var(--ink-2);
  max-width: 62ch;
}
.fichiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fichier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 500;
  min-height: 40px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.fichier svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.tel .fichier,
.tel .plus,
.tel .filtre button,
.tel .barre button {
  min-height: 44px;
}
.fichier small {
  color: var(--ink-3);
  font-weight: 400;
}

.panneau {
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.panneau .vide {
  margin: auto;
  padding: 32px;
  text-align: center;
  color: var(--ink-3);
  max-width: 280px;
}
.panneau .vide b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}
.det {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.det .eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.det h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.det dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.det dt {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}
.det dd {
  margin: 0;
  min-width: 0;
}
.det dd small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}
.haut2 {
  margin-top: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  min-height: 44px;
  transition: background-color 0.12s;
}
.btn:hover {
  background: var(--inset);
}
.btn.prim {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn.prim:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.btn[disabled],
.btn.prim[disabled] {
  background: var(--inset);
  border-color: var(--line);
  color: var(--ink-3);
  cursor: not-allowed;
}
.btn.large {
  width: 100%;
}
.btn svg {
  width: 18px;
  height: 18px;
}

.voile {
  position: absolute;
  inset: 0;
  background: var(--voile);
  display: flex;
  align-items: flex-end;
}
.feuille {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  background: var(--verre);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--verre-filet);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--ombre);
}
.voile.arrive {
  animation: ap 0.18s ease-out;
}
.voile.arrive .feuille {
  animation: monte 0.22s ease-out;
}
.feuille .det {
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
}
.pied {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feuille .pied {
  position: sticky;
  bottom: 0;
  margin: 0 -16px calc(-20px - env(safe-area-inset-bottom));
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--verre);
  border-top: 1px solid var(--verre-filet);
}

.etapes {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.etapes span {
  flex: 1;
  border-top: 3px solid var(--line);
  padding-top: 6px;
}
.etapes span.fait {
  border-color: var(--accent);
  color: var(--ink-2);
}
.etapes span.ici {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--accent);
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.champ label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.champ textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 68px;
  resize: none;
  font-size: 16px;
  line-height: 24px;
}
.champ textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.champ textarea.faux,
.champ textarea.faux:focus {
  border-color: var(--danger);
  outline-color: var(--danger);
}
.champ .aide {
  font-size: 13px;
  color: var(--ink-3);
}
.champ .err {
  font-size: 13px;
  color: var(--danger-ink);
}
.bandeau p,
.champ .err,
.champ .aide,
.alerte span,
.fin p,
.note {
  text-wrap-style: pretty;
}
.alerte {
  display: flex;
  gap: 10px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 18px;
}
.alerte svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.choix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}
.choix legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
  padding: 0;
}
.option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
  cursor: pointer;
}
.option input {
  margin: 2px 0 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
@media (prefers-color-scheme: dark) {
  .option input:not(:checked) {
    appearance: none;
    border: 1.5px solid var(--ink-3);
    border-radius: 50%;
    background: transparent;
  }
}
.option b {
  display: block;
  font-weight: 600;
}
.option small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.option .num {
  color: var(--ink-2);
  font-weight: 600;
}
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.fin {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ok-ink);
}
.fin svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ok);
}
.fin p {
  margin: 4px 0 0;
}
.fin .note {
  margin-top: 4px;
}

.connexion {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
}
.carte {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.carte .mono {
  color: var(--barre);
  height: 26px;
  width: auto;
  align-self: flex-start;
}
@media (prefers-color-scheme: dark) {
  .carte .mono {
    color: var(--ink);
  }
}
.carte h1 {
  font-size: 26px;
  line-height: 32px;
}
.carte p {
  margin: 0;
  color: var(--ink-2);
}
.carte .intro {
  margin-top: 6px;
}
.carte .petit {
  font-size: 13px;
  color: var(--ink-3);
}

@keyframes ap {
  from {
    opacity: 0;
  }
}
@keyframes monte {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
