:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --line: #e7e9ee;
  --text: #1c2230;
  --muted: #6b7280;
  --accent: #1f6f5c;
  --accent-soft: #e8f3f0;
  --danger: #b4412f;
  --warn: #b7791f;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
small, .muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* layout */
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; background: var(--bg); }
.brand { font-weight: 700; font-size: 16px; padding: 0 10px 18px; }
.brand small { display: block; font-weight: 400; font-size: 12px; }
.nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; margin-bottom: 1px; }
.nav a:hover { background: var(--soft); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
main { padding: 26px 34px 60px; min-width: 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: sticky; height: auto; z-index: 5; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 4px 8px; }
  .brand small { display: none; }
  .nav { display: flex; gap: 4px; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .nav .sep { display: none; }
  main { padding: 18px 14px 50px; }
}

/* elements */
.btn, button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  padding: 7px 13px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover, button:hover { background: var(--soft); }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, button.primary:hover { filter: brightness(1.08); }
.btn.ghost, button.ghost { border-color: transparent; }
.btn.danger, button.danger { color: var(--danger); }
.btn.sm, button.sm { padding: 4px 9px; font-size: 13px; }
input, select, textarea { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; margin: 0; cursor: pointer; }
.field { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat .v { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: 13px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.tag.n { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.click:hover td { background: var(--soft); cursor: pointer; }
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input { max-width: 280px; }
.filters select { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 12px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--text); color: #fff; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.alert { padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; font-size: 14px; }
.alert.warn { background: #fdf5e6; color: var(--warn); }
.alert.err, .err { background: #fbecea; color: var(--danger); padding: 8px 12px; border-radius: 8px; }
.err:empty { display: none; }

/* arrivées */
.arr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.arr-row .who { min-width: 0; }
.arr-row .who b { font-weight: 500; }
.arr-btn { min-width: 112px; justify-content: center; }
.arr-btn.done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* chambres */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.room { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; }
.room .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.room .top b { font-weight: 600; font-size: 14px; }
.room.full .cap { color: var(--accent); }
.room.over { border-color: var(--danger); }
.room.over .cap { color: var(--danger); }
.drop { min-height: 36px; display: flex; flex-direction: column; gap: 4px; }
.pers { font-size: 13px; padding: 5px 8px; border-radius: 6px; background: var(--soft); cursor: grab; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pers .sec { color: var(--muted); font-size: 12px; }
.pers .kid { font-size: 11px; color: var(--muted); display: block; }
.pers .lock { border: 0; background: none; padding: 0 2px; cursor: pointer; opacity: 0; font-size: 12px; }
.pers:hover .lock { opacity: .4; }
.pers .lock.on { opacity: 1; }
.pers.dup { box-shadow: inset 3px 0 0 var(--warn); }
.pool { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.pool .drop { flex-direction: row; flex-wrap: wrap; }
.sortable-ghost { opacity: .4; }
details.info { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
details.info summary { list-style: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted);
  color: var(--muted); font: italic 600 11px/15px Georgia, serif; text-align: center; }
details.info summary::-webkit-details-marker { display: none; }
details.info[open] summary { background: var(--text); border-color: var(--text); color: #fff; }
.info-pop { position: absolute; z-index: 20; top: 24px; left: -8px; min-width: 210px; max-width: 280px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(16,24,40,.12); font-size: 13px; font-weight: 400; line-height: 1.5; white-space: normal; }
.info-pop .muted { display: inline-block; min-width: 64px; }

/* planning */
.cal { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal-head { display: contents; }
.cal-head > div { padding: 9px 8px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; text-align: center; }
.cal-hours { position: relative; border-right: 1px solid var(--line); }
.cal-hours span { position: absolute; right: 6px; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.cal-col { position: relative; border-right: 1px solid var(--line); cursor: copy; }
.cal-col:last-child { border-right: 0; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid #f0f1f4; pointer-events: none; }
.ev { position: absolute; border-radius: 6px; padding: 3px 6px; font-size: 12px; overflow: hidden; cursor: pointer; line-height: 1.25;
  border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, white); color: var(--text); }
.ev:hover { background: color-mix(in srgb, var(--c) 22%, white); z-index: 3; }
.ev b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .t { color: var(--muted); font-size: 11px; }
.ev .ic { font-size: 10px; margin-left: 3px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* dialog */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(620px, 94vw); box-shadow: 0 20px 60px rgba(16,24,40,.18); }
dialog::backdrop { background: rgba(20, 24, 33, .35); }
.dlg { padding: 22px; max-height: 88vh; overflow: auto; }
.dlg .foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips label { margin: 0; }
.chips input { display: none; }
.chips span { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chips input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.multi { max-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.multi .check { display: flex; padding: 3px 0; }

/* présence */
.pres-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.pres-row .box { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--line); display: grid; place-items: center; color: #fff; }
.pres-row.on .box { background: var(--accent); border-color: var(--accent); }

/* impression */
.print-only { display: none; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .side, .no-print, .head .actions, .filters { display: none !important; }
  .shell { display: block; }
  main { padding: 0; }
  .print-only { display: block; }
  .cal { border-radius: 0; }
  .cal-head > div { position: static; }
  .ev { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { page-break-after: always; }
  .page:last-child { page-break-after: auto; }
  .tag, .dot, .room { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* comptes */
.side { display: flex; flex-direction: column; }
.side .nav { flex: 1; overflow-y: auto; }
.me { border-top: 1px solid var(--line); padding: 12px 10px 0; font-size: 13px; color: var(--muted); }
.me-nom { color: var(--text); font-weight: 600; margin-bottom: 2px; }
.me a:hover { color: var(--text); text-decoration: underline; }
body.simple { background: var(--soft); display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.simple-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; width: min(420px, 100%); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
@media (max-width: 860px) { .side { display: block; } .me { display: flex; gap: 10px; align-items: center; padding: 8px 4px 0; } .me-nom { margin: 0; } }
@media print { .me { display: none; } }
@media (max-width: 760px) { .cards[style*="repeat(3"] { grid-template-columns: 1fr 1fr !important; } }
.statut-sel { width: auto; font-size: 13px; padding: 4px 8px; border-width: 1.5px; font-weight: 500; background: #fff; }
a.card.stat:hover { border-color: var(--accent); }
@media print { .statut-sel { display: none; } }
.besoin-titre { font-size: 15.5px; font-weight: 600; color: var(--text); }

/* menus */
table.menus { table-layout: fixed; min-width: 900px; }
table.menus th, table.menus td { border: 1px solid var(--line); vertical-align: top; }
table.menus thead th { text-align: center; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13px; background: var(--soft); }
table.menus th.repas { width: 120px; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13px; background: var(--soft); vertical-align: middle; }
table.menus tr.eff td { font-size: 13px; background: #fcfcfd; }
table.menus td.case { cursor: pointer; font-size: 13px; height: 86px; }
table.menus td.case:hover { background: var(--soft); }
table.menus .plat { font-weight: 600; }
table.menus .meta { color: var(--muted); font-size: 11px; margin-top: 6px; }
table.menus .vide { color: var(--line); font-size: 22px; display: block; text-align: center; margin-top: 18px; }

/* ================================================================
   Thème « coloré et convivial »
   ================================================================ */
@font-face { font-family: "Fredoka"; src: url("/static/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/static/fonts/nunito-sans.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #fff9f2;
  --card-bg: #ffffff;
  --soft: #f7f1ea;
  --line: #efe6dc;
  --text: #1b1b2f;
  --muted: #5e5e73;
  --accent: #a63d22;
  --accent-soft: #f6e3dc;
  --brun: #7a2a17;
  --peach: #ffb27a;
  --danger: #b4412f;
  --warn: #b45309;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(122, 42, 23, .07);
  --head: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body { background: var(--bg); }
h1 { font-family: var(--head); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-family: var(--head); font-size: 17px; font-weight: 600; }
h3 { font-weight: 700; }
.stat .v { font-family: var(--head); font-weight: 600; font-size: 32px; }

/* menu latéral */
.shell { grid-template-columns: 236px 1fr; }
.side { background: #fff; border-right: 0; box-shadow: 1px 0 0 var(--line); padding: 22px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; font-family: var(--head); font-weight: 600; font-size: 17px; }
.brand .logo { width: 38px; height: 38px; border-radius: 50%; background: var(--peach); color: var(--text); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.brand small { font-family: "Nunito Sans", sans-serif; font-weight: 400; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a svg { flex: none; opacity: .85; }
.nav a:hover { background: var(--soft); color: var(--text); }
.nav a.on { background: var(--accent); color: #fff; }
.nav a.on svg { opacity: 1; }
.nav .sep { background: transparent; margin: 6px; }
main { padding: 30px 38px 60px; }

/* éléments */
.btn, button { border-radius: 999px; padding: 8px 16px; font-weight: 600; background: #fff; border-color: var(--line); }
.btn.sm, button.sm { padding: 5px 12px; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); }
input, select, textarea { border-radius: 12px; padding: 9px 12px; border-color: #e6ddd2; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); }
.card, .room, .cal, .simple-box { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card-bg); }
.card { padding: 22px; }
.cards { gap: 16px; }
.cols { gap: 20px; }
.tag { padding: 2px 10px; font-weight: 700; }
.bar { height: 8px; background: var(--soft); }
.seg { border: 0; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); gap: 2px; }
.seg a { border: 0; border-radius: 999px; font-weight: 600; }
.seg a.on { background: var(--accent); }
.alert { border-radius: 14px; }
.empty { border-radius: var(--radius); border-color: #e6ddd2; background: #fffdfa; }
.pool { border-radius: var(--radius); border-color: #e6ddd2; }
.pers { border-radius: 10px; background: var(--soft); }
.chips span { font-weight: 600; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); }
dialog { border-radius: 22px; }
.ev { border-radius: 8px; }
table.menus th, table.menus td { border-color: var(--line); }
table.menus tr.eff td { background: #fffdfa; }
th { font-weight: 700; }

/* bandeau « En ce moment » du tableau de bord */
.hero { background: var(--brun); color: #fff; border-radius: 24px; padding: 24px 28px; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.hero .k { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.hero .t { margin: 6px 0 0; font-family: var(--head); font-size: 25px; font-weight: 600; line-height: 1.2; }
.hero .s { margin: 6px 0 0; font-size: 14px; opacity: .88; }
.hero .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .pills span { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #1b1b2f; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.dash-head p { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.stat .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; float: right; }

@media (max-width: 860px) {
  .side { box-shadow: 0 1px 0 var(--line); }
  .brand .logo { width: 30px; height: 30px; font-size: 14px; }
  .nav a { padding: 7px 12px; }
  main { padding: 18px 14px 50px; }
}
@media print {
  body { background: #fff; }
  .card, .room, .cal { box-shadow: none; border: 1px solid var(--line); }
}

/* QR agrandi */
.qr-zoom { position: relative; display: block; margin: 4px auto 10px; padding: 6px; border: 0; background: #fff; border-radius: 12px; cursor: zoom-in; }
.qr-zoom:hover { background: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
.qr-zoom-ic { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.qr-show { position: fixed; inset: 0; z-index: 1000; background: #fff; display: flex; flex-direction: column; color: #111; }
.qr-show[hidden] { display: none; }
.qr-show-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.qr-show-bar button { font-size: 15px; }
.qr-close { width: 46px; height: 46px; justify-content: center; font-size: 20px !important; }
.qr-show-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px 20px; }
.qr-show figure { margin: 0; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.qr-show figure img { width: min(100%, calc(100vh - 230px)); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-show figcaption { text-align: center; display: flex; flex-direction: column; gap: 6px; max-width: 90vw; }
.qr-show figcaption b { font-family: var(--head); font-size: clamp(22px, 4vw, 40px); font-weight: 600; line-height: 1.15; }
.qr-show-url { font-size: clamp(14px, 2vw, 20px); color: #444; word-break: break-all; }
.qr-nav { width: 56px; height: 56px; flex: none; justify-content: center; font-size: 34px !important; line-height: 1; padding: 0 !important; }
.qr-nav[hidden] { visibility: hidden; display: inline-flex; }
body.qr-ouvert { overflow: hidden; }
@media (max-width: 700px) {
  .qr-show-main { position: relative; padding-bottom: 84px; }
  .qr-nav { position: absolute; bottom: 18px; width: 52px; height: 52px; }
  .qr-prev { left: 18px; } .qr-next { right: 18px; }
  .qr-show figure img { width: min(100%, calc(100vh - 300px)); }
}
@media print { .qr-show { display: none !important; } }

/* logo de l'organisation */
.brand { flex-direction: column; text-align: center; gap: 8px; padding: 4px 8px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.brand img { width: 92px; height: auto; display: block; }
.brand small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero .emb { width: 92px; height: 92px; border-radius: 50%; background: #fff9f2; display: grid; place-items: center; flex: none; }
.hero .emb img { width: 76px; height: auto; }
.hero .droite { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.login-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 18px; }
.login-head img { width: 120px; height: auto; margin-bottom: 6px; }
.login-head h1 { margin: 0; font-size: 26px; }
.login-head p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .brand { flex-direction: row; text-align: left; border-bottom: 0; margin-bottom: 0; padding: 0 4px 8px; }
  .brand img { width: 40px; }
  .hero .emb { display: none; }
}

/* transports */
.trajet { margin-bottom: 14px; transition: box-shadow .4s; }
.trajet.vu { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.trajet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.trajet-titre { font-family: var(--head); font-size: 17px; font-weight: 600; }
.places { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; white-space: nowrap; }
.places.plein { background: #fde8e4; color: var(--danger); }
.pax-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.pax { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--soft); font-size: 13.5px; }
.pax > span small { color: var(--muted); margin-left: 6px; }
.pax.cond { background: #fdf1dc; }
.pax .tagc { font-size: 11px; color: var(--warn); font-weight: 700; }
.pax form { display: inline; margin: 0; }
.pax button { border: 0; padding: 2px 8px; font-size: 11.5px; min-height: 0; border-radius: 999px; }
.pax button.fin.oui { background: #e2f3ec; color: #0f5c46; }
.pax button.fin.non { background: #fdf1dc; color: var(--warn); }
.pax button.x { background: transparent; color: var(--muted); font-size: 13px; }
.pax button.x:hover { color: var(--danger); }
.trajet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.liste-simple { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; font-size: 13.5px; }
.liste-simple li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.moyen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.moyen .lien { border: 0; background: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.moyen .lien:hover b { color: var(--accent); }
.moyen small { flex: 1 1 160px; }
.pick { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.pick label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 400; margin: 0; }
.pick label:hover { background: var(--soft); }

.pick label small { color: var(--muted); margin-left: auto; text-align: right; }
@media (max-width: 860px) { .cards[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; } }

/* un élément masqué (attribut hidden) l'est vraiment, même s'il a un display défini ailleurs
   (sauf les flèches du QR agrandi, qui gardent leur place) */
[hidden]:not(.qr-nav) { display: none !important; }

/* compte à rebours avant le départ (tableau de bord) */
.compte { background: var(--brun); color: #fff; border-radius: 26px; padding: 26px 32px; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.compte-titre { display: flex; align-items: center; gap: 20px; }
.compte .emb { width: 92px; height: 92px; border-radius: 50%; background: #fff9f2; display: grid; place-items: center; flex: none; }
.compte .emb img { width: 76px; height: auto; }
.compte .k { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.compte .t { margin: 6px 0 0; font-family: var(--head); font-size: 30px; font-weight: 600; line-height: 1.1; }
.compte .s { margin: 6px 0 0; font-size: 14px; opacity: .85; }
.tuiles { display: flex; gap: 10px; }
.tuiles > div { width: 100px; padding: 14px 0 10px; border-radius: 18px; background: rgba(255, 255, 255, .12); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tuiles span { font-family: var(--head); font-size: 44px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.tuiles small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: .85; }
@media (max-width: 860px) {
  .compte { padding: 20px; }
  .compte .emb { display: none; }
  .compte .t { font-size: 24px; }
  .tuiles { width: 100%; }
  .tuiles > div { flex: 1; width: auto; }
  .tuiles span { font-size: 32px; }
}
