@import url("./design-tokens.css");

/* We Go Club — CRM We Go Travel. Feuille de style unique. */
:root {
  --bg: var(--color-background); --surface: var(--color-surface); --surface-2: var(--color-surface-secondary);
  --ink: var(--color-text); --muted: var(--color-text-secondary); --faint: var(--color-text-muted);
  --line: var(--color-border); --line-strong: var(--color-border-strong);
  --brand: var(--color-primary); --brand-2: var(--color-primary-hover); --brand-soft: var(--color-primary-soft);
  --brand-ink: var(--color-primary-contrast);
  --accent: var(--status-warning); --accent-soft: var(--status-warning-soft);
  --green: var(--status-success); --green-soft: var(--status-success-soft);
  --orange: var(--status-warning); --orange-soft: var(--status-warning-soft);
  --red: var(--status-danger); --red-soft: var(--status-danger-soft);
  --blue: var(--color-primary); --blue-soft: var(--color-primary-soft);
  --neutral-soft: var(--status-neutral-soft);
  --radius: 10px; --radius-sm: 7px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side: 236px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151b; --surface: #171f27; --surface-2: #1c252e; --ink: #e6ebf0; --muted: #a3afbb; --faint: #7d8995;
    --line: #26313c; --line-strong: #34414d; --brand: #3a8fb5; --brand-2: #0b2d3d; --brand-soft: #16303c; --brand-ink: #ffffff;
    --status-warning-contrast: #2b1a02; --accent: #f0a050; --accent-soft: #3a2a17; --green: #4cc27f; --green-soft: #15301f; --orange: #f0a050; --orange-soft: #33261a;
    --red: #f07a70; --red-soft: #3a1c1a; --blue: #7fb2ef; --blue-soft: #18283b; --neutral-soft: #222c36;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15.5px; } h4 { font-size: 14px; }
p { margin: 0; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: .92em; }
td .mono, td.mono, a.mono { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Mise en page ── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--brand-2); color: #dbe7ee; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; }
.brand img { max-height: 36px; max-width: 150px; display: block; }
.brand-name { font-weight: 750; font-size: 17px; letter-spacing: .01em; }
.brand-sub { font-size: 12px; color: #9fbccb; }
.nav { display: flex; flex-direction: column; padding: 6px 10px 18px; gap: 2px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #86a6b6; padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #dbe7ee; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.nav .count { background: var(--accent); color: var(--status-warning-contrast); border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 0 7px; line-height: 19px; }
.side-foot { margin-top: auto; padding: 14px 18px; font-size: 12px; color: #86a6b6; border-top: 1px solid rgba(255,255,255,.08); }
.env-badge { display: inline-block; background: var(--accent); color: var(--status-warning-contrast); font-weight: 700; border-radius: 6px; padding: 1px 7px; font-size: 11px; margin-bottom: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .search { flex: 1; max-width: 520px; position: relative; }
.top .search input { width: 100%; padding-left: 34px; }
.top .search::before { content: "⌕"; position: absolute; left: 11px; top: 50%; transform: translateY(-52%); color: var(--faint); font-size: 18px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.content { padding: 22px 24px 60px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* ── Composants ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { border-top: 1px solid var(--line); margin: 14px 0; }

.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12.5px; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -.02em; }
.kpi .hint { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
a.kpi { display: block; color: inherit; }
a.kpi:hover { text-decoration: none; border-color: var(--brand); }
.kpi-warn .value { color: var(--orange); }

.btn { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 14px; font: inherit; font-weight: 550; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.3; }
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--status-warning-contrast); border-color: var(--accent); }
.btn-danger { color: var(--red); border-color: var(--red-soft); background: var(--red-soft); }
.btn-danger:hover { border-color: var(--red); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 8px; width: 36px; height: 36px; display: inline-grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--neutral-soft); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 3px; right: 1px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 99px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; }

input, select, textarea { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field > span .req { color: var(--red); }
.field small { color: var(--faint); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.inline-input { padding: 4px 7px; font-size: 13.5px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters .field { min-width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg a, .seg button { padding: 7px 12px; font-size: 13.5px; color: var(--muted); background: var(--surface); border: 0; border-right: 1px solid var(--line); cursor: pointer; font: inherit; }
.seg a:last-child, .seg button:last-child { border-right: 0; }
.seg .on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.seg a:hover { text-decoration: none; color: var(--ink); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 550; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: var(--surface-2); }
tr.is-cancelled td { color: var(--faint); text-decoration: line-through; }
tr.is-cancelled td .chip, tr.is-cancelled td .btn { text-decoration: none; }
/* Qui voyage ensemble : groupes numérotés (G1, G2…), deux couleurs en alternance */
tr.grp-a td { background: var(--group-a-surface); }
tr.grp-b td { background: var(--group-b-surface); }
tr.grp-a td:first-child { box-shadow: inset 4px 0 0 var(--group-a-marker); }
tr.grp-b td:first-child { box-shadow: inset 4px 0 0 var(--group-b-marker); }
tr.grp-a .grp-name { color: var(--group-label-ink); }
tr.grp-b .grp-name { color: var(--group-label-ink); }
tr.grp-head td, tr.grp-start td { border-top: 2px solid var(--line-strong); }
tr.grp-head td { padding-top: 10px; padding-bottom: 10px; }
tr.grp-head + tr.grp-start td { border-top: 0; }
.notice.mx { margin: 12px 18px 0; }
.pay-cell { white-space: nowrap; font-size: 13.5px; line-height: 1.45; }
.cell-main .grp-line { align-items: flex-start; }
.cell-main .grp-badge { margin-top: 2px; }
tr.grp-head.grp-a td { background: var(--group-a-surface); }
tr.grp-head.grp-b td { background: var(--group-b-surface); }
.grp-line { display: flex; align-items: center; gap: 12px; }
.grp-info { flex: 1; min-width: 0; }
.grp-money { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.grp-badge { flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: 8px; font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--color-white); background: var(--group-b-marker); }
.grp-b .grp-badge, .grp-badge.grp-b { background: var(--group-label-ink); }
.grp-badge.grp-a { background: var(--group-b-marker); }
.grp-badge-sm { min-width: 30px; height: 22px; font-size: 11.5px; border-radius: 6px; vertical-align: 1px; }
.grp-badge-sm:not(.grp-a):not(.grp-b) { background: var(--faint); }
.grp-mini { display: none; font-size: 11px; font-weight: 800; padding: 1px 5px; border-radius: 5px; color: var(--color-white); background: var(--group-b-marker); vertical-align: 1px; }
.grp-b .grp-mini { background: var(--group-label-ink); }
.seg-sm a { padding: 4px 10px; font-size: 13px; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-strong { font-weight: 600; }
.t-sub { font-size: 12.5px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; white-space: nowrap; line-height: 1.6; }
.chip-neutral { background: var(--neutral-soft); color: var(--muted); }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-orange { background: var(--orange-soft); color: var(--orange); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }

.fill { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.fill-track { flex: 1; height: 7px; background: var(--neutral-soft); border-radius: 99px; overflow: hidden; }
.fill-bar { height: 100%; border-radius: 99px; background: var(--green); width: 0; }
.fill-high { background: var(--capacity-low); } .fill-full { background: var(--capacity-full); }
.fill-label { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.notice { border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; background: var(--blue-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.notice-warn { background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 30%, transparent); }
.notice-danger { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.notice-ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.alert-item:hover { text-decoration: none; border-color: var(--brand); }
.alert-item .lvl { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--blue); }
.alert-high .lvl { background: var(--red); } .alert-medium .lvl { background: var(--accent); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; min-width: 0; }
.money-box { display: grid; gap: 6px; font-size: 14px; }
.money-box .line { display: flex; justify-content: space-between; gap: 10px; }
.money-box .total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.balance-due { color: var(--balance-due); } .balance-ok { color: var(--balance-paid); } .balance-neg { color: var(--balance-overpaid); }

.dep-card { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); color: inherit; }
.dep-card:last-child { border-bottom: 0; }
.dep-card:hover { background: var(--surface-2); text-decoration: none; }
.date-tile { background: var(--brand-soft); color: var(--brand); border-radius: 9px; text-align: center; padding: 6px 4px; line-height: 1.15; }
.date-tile .d { font-size: 21px; font-weight: 750; }
.date-tile .m { font-size: 12px; text-transform: uppercase; font-weight: 650; letter-spacing: .04em; }
.dep-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 3px; }

.traveler-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); }
.traveler-row + .traveler-row { margin-top: 10px; }
.traveler-row .row-between h4 { font-size: 14px; }
details.more summary { cursor: pointer; color: var(--brand); font-size: 13.5px; font-weight: 600; margin-top: 8px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "＋ "; }
details.more[open] summary::before { content: "－ "; }
.sticky-total { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; border-radius: 0 0 var(--radius) var(--radius); }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.timeline li:last-child { border-bottom: 0; }
.comment { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; }
.comment .who { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty p { margin-bottom: 10px; }
.poster { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); background: var(--neutral-soft); display: block; }
.prog-card { display: flex; flex-direction: column; overflow: hidden; }
.prog-card .poster { border-radius: 0; aspect-ratio: 16/9; }
.prog-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.poster-ph { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); color: var(--brand); font-weight: 700; font-size: 18px; text-align: center; padding: 10px; }
/* Programmes : navigation destinations → dates (carte, panneau des dates). */
.prog-card.is-selected { outline: 2px solid var(--brand); outline-offset: -2px; }
.prog-card .poster-link { position: relative; display: block; }
.prog-card h3 a { color: inherit; text-decoration: none; }
.prog-card h3 a:hover { color: var(--brand); }
.poster-badge { position: absolute; left: 10px; bottom: 10px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.15)); }
.poster-badge.soon { background: var(--brand); color: #fff; }
.prog-next { font-size: 14px; }
.prog-seasons { display: flex; flex-wrap: wrap; gap: 4px; }
.prog-actions { flex-wrap: wrap; align-items: center; }
.prog-more { position: relative; }
.prog-more summary { list-style: none; }
.prog-more summary::-webkit-details-marker { display: none; }
.prog-menu { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 20; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.prog-menu .btn { justify-content: flex-start; }
.prog-filters input[type=search] { min-width: 220px; }
.dp-panel { padding: 0; overflow: hidden; scroll-margin-top: 70px; }
.dp-head { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; padding: 16px; border-bottom: 1px solid var(--line); }
.dp-poster { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/9; }
.dp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-poster.poster-ph { display: grid; }
.prog-filters select, .date-repeat select { width: auto; }
.prog-filters { flex-wrap: nowrap; }
.date-tools { align-items: center; }
.dp-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dp-info h2 { margin: 0; }
.dp-list { display: flex; flex-direction: column; }
.dp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dp-row:last-child { border-bottom: 0; }
.dp-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; background: var(--brand-soft); color: var(--brand); border-radius: var(--radius-sm); padding: 6px 4px; text-transform: capitalize; font-size: 12px; }
.dp-date b { font-size: 20px; }
.dp-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.dp-seats { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.dp-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.date-row { position: relative; padding-right: 34px; }
.date-row-del { position: absolute; right: 0; top: 22px; }
.date-repeat { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date-repeat input { width: 70px; min-width: 0; }
@media (max-width: 760px) {
  .dp-head { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .dp-poster { max-height: 200px; }
  .dp-head .poster-ph { display: none; }
  .prog-card .poster, .prog-card .poster-ph { aspect-ratio: 21/9; }
  .prog-filters select { flex: 0 0 auto; max-width: 46%; }
  .dp-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .dp-seats, .dp-act { grid-column: 2; }
  .dp-act { justify-content: flex-start; }
  .prog-filters { width: 100%; }
  .prog-filters input[type=search] { min-width: 0; flex: 1; }
  .prog-menu { right: auto; left: 0; }
}

/* ── Connexion ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--brand-2), var(--brand) 60%, #1b6b8c); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 28px; }
.login-card .brand-name { color: var(--brand); font-size: 22px; }
.login-card img { max-height: 52px; max-width: 220px; margin-bottom: 8px; }

/* ── Modale & notifications ── */
#modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,20,30,.45); }
.modal { position: relative; margin: 6vh auto; width: min(560px, calc(100% - 24px)); max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal-wide { width: min(880px, calc(100% - 24px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 16px 18px 18px; overflow-y: auto; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 14px; transition: opacity .3s, transform .3s; }
.toast-error { background: var(--red); color: #fff; }
.toast-ok { background: #183b2a; color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
.notif-panel { position: absolute; right: 18px; top: 58px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; }
.notif { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); color: inherit; font-size: 14px; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: var(--brand-soft); }
.notif .when { font-size: 12px; color: var(--faint); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; z-index: 60; }
.search-results a { display: block; padding: 9px 12px; color: inherit; border-bottom: 1px solid var(--line); font-size: 14px; }
.search-results a:hover, .search-results a.hl { background: var(--surface-2); text-decoration: none; }
.search-results .grp { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 12px 4px; }

/* ── Impression (feuilles de départ, caisse, rooming) ── */
#print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  @page paysage { size: A4 landscape; margin: 10mm; }
  body.print-landscape #print { page: paysage; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; color: #000; font: 11pt/1.35 Arial, sans-serif; }
  #print h1 { font-size: 16pt; margin-bottom: 2mm; }
  #print h2 { font-size: 12.5pt; margin: 5mm 0 2mm; }
  #print .ph { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 3mm; margin-bottom: 4mm; }
  #print table { font-size: 9.5pt; border: 1px solid #555; }
  #print th { background: #e8e8e8 !important; color: #000; font-size: 8.5pt; padding: 4px 5px; border: 1px solid #555; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print td { padding: 4px 5px; border: 1px solid #999; }
  #print tr.grp-a td { background: #eef3fb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print tr.grp-b td { background: #fdf3e6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print tr.grp-a td:first-child, #print tr.grp-b td:first-child { box-shadow: none; }
  #print tr.grp-head td { background: #e2e2e2 !important; border-top: 2.5px solid #000; font-size: 9.5pt; padding: 5px 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print tr.grp-head.grp-a td { background: #d6e3f7 !important; }
  #print tr.grp-head.grp-b td { background: #fbdfba !important; }
  #print tr.grp-start td { border-top: 2px solid #000; }
  #print tr.grp-head + tr.grp-start td { border-top: 1px solid #999; }
  #print td .sub { font-size: 8pt; }
  #print .grp-tag { display: inline-block; border: 1.5px solid #000; border-radius: 3px; padding: 0 4px; margin-right: 4px; background: #fff; }
  #print tr.city-head td { background: #000 !important; color: #fff; font-weight: bold; font-size: 10pt; padding: 5px 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print tr.party-row td { border: 2px solid #000 !important; border-bottom-width: 1px !important; background: #eee !important; font-weight: bold; font-size: 9pt; padding: 4px 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print table.grouped tr { break-inside: avoid; }
  #print table.grouped { font-size: 8.8pt; width: 100%; }
  #print table.grouped td:nth-child(2) { min-width: 46mm; }
  #print table.grouped td.num { white-space: nowrap; text-align: right; }
  #print table.grouped td.center { text-align: center; }
  #print table.grouped td:nth-child(5) { white-space: nowrap; }
  #print table.grouped td:nth-child(4) { white-space: nowrap; }
  #print .legend { font-size: 8.5pt; margin: 0 0 2mm; }
  /* Feuille de départ (modèle de l'agence) */
  body.print-landscape #print .print-logo { height: 13mm; }
  #print .sheet-title { background: #1f5fa8 !important; color: #fff; text-align: center; font-weight: bold; font-size: 12pt; padding: 2mm; margin-right: 22mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print .sheet-sub { font-size: 8pt; margin: 1.5mm 22mm 2mm 0; }
  #print table.manifest { width: 100%; font-size: 8.3pt; border-collapse: collapse; }
  #print table.manifest th { background: #cfe0f5 !important; font-style: italic; font-size: 8pt; padding: 3px 4px; }
  #print table.manifest td { padding: 1px 4px; border: 1px solid #9aa5b1; height: 5.6mm; }
  #print table.manifest td.rmk { min-width: 48mm; font-size: 7.6pt; }
  #print table.manifest tr { break-inside: avoid; }
  #print table.manifest tr.grp-start td { border-top: 1.6px solid #000; }
  #print table.manifest td.nm { font-weight: bold; text-align: center; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print table.manifest td.nm.grp-a { background: #fff36b !important; }
  #print table.manifest td.nm.grp-b { background: #7fe3f2 !important; }
  #print table.manifest td.num { text-align: right; white-space: nowrap; }
  #print table.manifest td.center { text-align: center; }
  #print table.manifest td.nowrap { white-space: nowrap; }
  #print table.manifest td.paid-full { background: #d9ead3 !important; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print table.manifest td.paid-part { background: #fce5cd !important; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print table.manifest td.seat-cell { width: 11mm; }
  #print table.manifest td.present-cell { width: 12mm; }
  #print .city { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 7.8pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print .city.c0 { background: #eee !important; } #print .city.c1 { background: #d9d2f0 !important; } #print .city.c2 { background: #cfe8f7 !important; }
  #print .city.c3 { background: #f6cfcf !important; } #print .city.c4 { background: #d6efd6 !important; } #print .city.c5 { background: #fde6c4 !important; } #print .city.c6 { background: #e5e5e5 !important; }
  #print tr.staff td { background: #f4cccc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print tr.staff td.nm { background: #e06666 !important; color: #fff; }
  #print tr.total td { background: #d9d9d9 !important; font-weight: bold; font-size: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print table.manifest td .sub { font-size: 7pt; font-weight: normal; }
  #print .sign { display: flex; gap: 20mm; margin-top: 12mm; } #print .sign div { flex: 1; border-top: 1px solid #000; padding-top: 2mm; }
}

/* ── Écrans étroits (téléphone des responsables de voyage) ── */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-side { grid-template-columns: minmax(0, 1fr); }
  .grid-side > * { min-width: 0; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 90; height: 100vh; }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-grid; }
  .top { padding: 10px 12px; gap: 8px; }
  .top .btn-label { display: none; }
  .content { padding: 16px 14px 60px; }
  .grid-2, .grid-3, .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dep-card { grid-template-columns: 60px 1fr; }
  .dep-card > :last-child { grid-column: 1 / -1; }
  .modal { margin: 0; width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .hide-sm { display: none; }
}
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; }
.kpi .value-sm { font-size: 16px; font-weight: 650; margin-top: 4px; }
.kpi .fill { margin-top: 8px; }
input.saved { border-color: var(--green); }
.price-line { font-size: 12.5px; color: var(--muted); }
/* Remise accordée : toujours nommée et distinguée du tarif (fiche, vue d'ensemble). */
.price-discount { color: var(--balance-paid); font-weight: 600; margin-top: 2px; }
.price-discount .t-sub { font-weight: 400; }
.bk-overview-travelers span.bk-overview-discount { color: var(--balance-paid); font-weight: 600; }
.seg-input { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg-input label { border: 1px solid var(--line-strong); border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 13.5px; background: var(--surface); }
.seg-input input { display: none; }
.seg-input label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.dep-pick { display: grid; gap: 4px; }
.picker-results { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); max-height: 220px; overflow-y: auto; margin-top: 4px; }
.picker-results button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 7px 10px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.picker-results button:hover { background: var(--surface-2); }
.linked { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.filters .grow { flex: 1; min-width: 220px; }
.narrow { max-width: 520px; }

@media (max-width: 760px) {
  table.ops thead { display: none; }
  table.ops, table.ops tbody, table.ops tr, table.ops td { display: block; width: 100%; }
  table.ops tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.ops tr.grp-a { background: color-mix(in srgb, var(--blue-soft) 55%, transparent); box-shadow: inset 5px 0 0 var(--blue); }
  table.ops tr.grp-b { background: color-mix(in srgb, var(--orange-soft) 65%, transparent); box-shadow: inset 5px 0 0 var(--orange); }
  table.ops tr.grp-a td, table.ops tr.grp-b td { background: transparent; box-shadow: none; }
  table.ops tr.grp-head { display: block; margin-top: 10px; border-top: 2px solid var(--line-strong); }
  table.ops tr.grp-head.grp-a { background: var(--blue-soft); }
  table.ops tr.grp-head.grp-b { background: var(--orange-soft); }
  table.ops tr.grp-head td { border-top: 0; padding: 0; }
  .grp-line { flex-wrap: wrap; row-gap: 6px; }
  .grp-info { flex: 1 1 calc(100% - 60px); }
  .grp-money { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; justify-content: flex-start; padding-left: 52px; text-align: left; }
  .grp-mini { display: inline-block; }
  table.ops td { border: 0; padding: 0; }
  table.ops td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
  table.ops td.cell-main, table.ops td.cell-wide { grid-column: 1 / -1; }
  table.ops td.cell-num { display: none; }
}

/* Logo officiel We Go Travel (fond blanc d'origine conservé) */
.brand { flex-direction: column; align-items: flex-start; }
.brand .logo-side { background: #fff; border-radius: 12px; padding: 6px; width: 92px; height: 92px; max-height: none; max-width: none; object-fit: contain; }
.login-brand { text-align: center; }
.login-card .logo-login { width: 150px; height: 150px; max-height: none; max-width: none; object-fit: contain; display: block; margin: 0 auto 6px; }
#print .print-logo { height: 22mm; width: auto; float: right; margin: 0 0 3mm 6mm; }

/* ── Nouvelle réservation : billet récapitulatif à gauche, voyage et voyageurs au centre ── */
.booking-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.booking-recap { position: sticky; top: 76px; display: grid; gap: 12px; }
.booking-main { min-width: 0; }
.btn-block { width: 100%; justify-content: center; padding: 12px 14px; font-size: 15px; }
.dest-picker { position: relative; }
.dest-trigger, .dest-option { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.dest-trigger { min-height: 68px; }
.dest-trigger b { font-family: var(--display); font-size: 18px; letter-spacing: .01em; }
.dest-trigger:hover, .dest-trigger[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dest-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.poster-ini { display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-family: var(--display); font-size: 15px; }
.dest-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dest-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-caret { color: var(--muted); font-size: 18px; }
.dest-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; max-height: 440px; overflow-y: auto; }
.dest-menu input { margin-bottom: 6px; }
.dest-option { border-color: transparent; margin-bottom: 2px; }
.dest-option b { font-weight: 650; }
.dest-option:hover, .dest-option.on { background: var(--brand-soft); }
.dest-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; }
.date-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.date-options:empty { display: none; }
.date-option { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "day chip" "time price"; gap: 2px 8px; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.date-option .do-day { grid-area: day; font-weight: 650; }
.date-option .do-time { grid-area: time; font-size: 12.5px; color: var(--muted); }
.date-option .chip { grid-area: chip; justify-self: end; }
.date-option .do-price { grid-area: price; justify-self: end; font-size: 12.5px; font-weight: 600; }
.date-option:hover:not(:disabled) { border-color: var(--brand); }
.date-option.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.date-option:disabled { opacity: .5; cursor: not-allowed; }

/* Le billet : seul élément « signature » de l'écran */
.ticket { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.ticket-top { background: var(--brand); color: #fff; padding: 18px 18px 16px; }
.ticket-dest { font-family: var(--display); font-size: 24px; line-height: 1.1; letter-spacing: .01em; }
.ticket-meta { font-size: 13px; opacity: .85; margin-top: 4px; }
.ticket-top p { font-size: 14px; opacity: .9; margin-top: 8px; }
.ticket-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ticket-dates > div { display: flex; flex-direction: column; }
.ticket-dates span { font-size: 12px; opacity: .8; }
.ticket-dates b { font-size: 14.5px; }
.ticket-dates em { font-style: normal; font-size: 12.5px; opacity: .85; }
.ticket-cut { position: relative; height: 18px; background: var(--surface); }
.ticket-cut::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed var(--line-strong); }
.ticket-cut::after { content: ""; position: absolute; inset: 0 -10px; background: radial-gradient(circle at 0 50%, var(--bg) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--bg) 9px, transparent 10px); }
.ticket-body { padding: 4px 18px 18px; display: grid; gap: 8px; }
.ticket-travelers { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.tt-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tt-line > div { min-width: 0; }
.tt-line > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; }
.ticket-total b { font-family: var(--display); font-size: 26px; }
.ticket-empty .ticket-top { background: var(--surface-2); color: var(--ink); }
.recap-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.recap-line > span:first-child { color: var(--muted); }
.recap-line > span:last-child, .recap-line > b { text-align: right; }

/* Fiche voyageur */
.traveler-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; background: var(--surface); display: grid; gap: 10px; }
.traveler-card + .traveler-card { margin-top: 12px; }
.tc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.tc-title { font-weight: 650; font-size: 15px; }
.tc-total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 12px; }
.tc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.child-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); border-radius: 10px; padding: 8px 12px; }
.child-box .check { font-weight: 650; }
.child-pct, .supp-amount { display: inline-flex; align-items: center; gap: 6px; }
.child-pct input { width: 76px; }
.supp-box { display: grid; gap: 8px; }
.supp-box h4 { font-size: 14px; }
.supp-box [data-supps] { display: grid; gap: 6px; }
.supp-box [data-supps]:empty { display: none; }
.supp-row { display: grid; grid-template-columns: 130px minmax(140px, 1fr) 150px auto; gap: 8px; align-items: center; background: var(--accent-soft); border-radius: 10px; padding: 6px 8px; }
.supp-amount input { width: 100%; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: var(--neutral-soft); color: var(--ink); }
.stay-row { display: grid; grid-template-columns: 1.2fr 1.4fr 70px 110px 110px 1.4fr; gap: 8px; align-items: end; }
.stay-row + .stay-row { margin-top: 8px; }
.ac-host { position: relative; }
.ac-list { position: absolute; left: 0; top: 64px; z-index: 45; min-width: 300px; width: max-content; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; }
.ac-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.ac-item:hover, .ac-item.on { background: var(--brand-soft); }
.ac-item:disabled { opacity: .5; cursor: default; }
.ac-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; text-transform: uppercase; }
.ac-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ac-meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ac-empty { padding: 10px; color: var(--muted); font-size: 13.5px; }
.mobile-bar { display: none; }
@media (max-width: 1180px) {
  .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-recap { position: static; order: 2; }
  .mobile-bar { display: flex; position: sticky; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px; margin: 0 -14px; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 -4px 12px rgba(0,0,0,.06); order: 3; }
  .ac-list { min-width: 0; width: 100%; max-width: none; }
  .stay-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .tc-grid, .tc-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .supp-row { grid-template-columns: 1fr 1fr; }
  .supp-row .supp-amount { grid-column: 1; }
}

.recap-actions { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: grid; gap: 10px; }
.recap-block:first-child { border-top: 0; }
.conf-text { font-size: 14.5px; line-height: 1.55; background: var(--surface-2); }

/* Confirmation client : PDF joint au message */
.conf-pdf { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.conf-pdf .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pdf-badge { flex: none; display: inline-grid; place-items: center; width: 38px; height: 46px; border-radius: 6px; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 12px; letter-spacing: .04em; }
@media (max-width: 560px) { .conf-pdf { flex-wrap: wrap; } }

/* ══════════════════════════════════════════════════════════════════════
   Thème We Go Club (v2)
   Couleurs tirées du logo We Go Travel : bleu Atlas et encre marine ; safran pour ce qui demande une action.
   Titres en TeX Gyre Adventor (géométrique, esprit affiche de voyage), texte courant en Inter.
   Barre latérale blanche : le logo officiel reste sur fond blanc.
   ══════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Inter WG"; src: url("/fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter WG"; src: url("/fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter WG"; src: url("/fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter WG"; src: url("/fonts/inter-Bold.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Adventor WG"; src: url("/fonts/adventor-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f1f4f8; --surface: #ffffff; --surface-2: #f6f8fb; --ink: #102a43; --muted: #52667d; --faint: #8796a8;
  --line: #e0e6ee; --line-strong: #c8d2de;
  --atlas: #0093dd;
  --brand: var(--color-primary); --brand-2: var(--color-primary-hover); --brand-soft: #e3f0fb; --brand-ink: #ffffff;
  --accent: var(--status-warning); --accent-soft: #fdf3e1;
  --green: var(--status-success); --green-soft: #e1f3ea; --orange: var(--status-warning); --orange-soft: #fdf0dc;
  --red: var(--status-danger); --red-soft: #fbe7e4; --blue: var(--color-primary); --blue-soft: #e3f0fb; --neutral-soft: #edf1f5;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,42,67,.05), 0 2px 8px rgba(16,42,67,.04);
  --shadow-lg: 0 18px 40px rgba(16,42,67,.18);
  --font: "Inter WG", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Adventor WG", "Century Gothic", "Avant Garde", var(--font);
  --side: 248px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1722; --surface: #142130; --surface-2: #192839; --ink: #e8eef5; --muted: #a2b2c4; --faint: #7a8a9c;
    --line: #22344a; --line-strong: #2f455e; --brand: #4aa8ec; --brand-2: #2b8bd3; --brand-soft: #16304a; --brand-ink: #06121e;
    --status-warning-contrast: #2b1a02; --accent: #f0b35a; --accent-soft: #3a2c16; --green: #4cc58a; --green-soft: #12301f; --orange: #f0b35a; --orange-soft: #33281a;
    --red: #f2877a; --red-soft: #3a1d1a; --blue: #6fb6f0; --blue-soft: #16304a; --neutral-soft: #1f2e40;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 18px 40px rgba(0,0,0,.5);
  }
}
body { font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; }
h1 { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: .005em; line-height: 1.15; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15.5px; font-weight: 650; }
.num, td.num, .kpi .value, .money-box, .fill-label { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--atlas); outline-offset: 2px; }

/* Barre latérale claire : le logo sur fond blanc */
.side { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); }
.brand { padding: 22px 16px 14px; color: var(--ink); gap: 6px; align-items: center; text-align: center; margin: 0 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
.brand > div { display: flex; flex-direction: column; align-items: center; }
.brand:hover .brand-name { color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand .logo-side { width: 104px; height: auto; padding: 0; border-radius: 0; background: transparent; }
.brand-name { font-family: var(--display); font-size: 17px; color: var(--ink); letter-spacing: .01em; }
.brand-sub { color: var(--faint); font-size: 12px; }
.nav { padding: 4px 12px 18px; gap: 1px; }
.nav-group { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--faint); padding: 16px 10px 4px; }
.nav a { color: var(--muted); font-weight: 500; padding: 8px 10px 8px 12px; border-radius: 10px; position: relative; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--atlas); }
.nav .count { background: var(--accent); color: var(--status-warning-contrast); }
.side-foot { color: var(--muted); border-top: 1px solid var(--line); }
.env-badge { background: var(--accent-soft); color: var(--orange); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }

/* Barre du haut */
.top { padding: 12px 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); }
.top .search input { border-radius: 99px; background: var(--surface-2); border-color: var(--line); padding-left: 38px; }
.top .search input:focus { background: var(--surface); }
.content { padding: 26px 28px 64px; }
.page-head { margin-bottom: 20px; }
.page-head .sub { font-size: 14.5px; max-width: 72ch; }
.crumb a { color: var(--muted); }

/* Cartes, tableaux, indicateurs */
.card { border-color: var(--line); }
.card-head { padding: 15px 18px; }
.card-head h3 { font-size: 16px; }
.kpi { padding: 16px 18px; }
.kpi .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi .value { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: .005em; margin-top: 4px; }
.kpi .value-sm { font-family: var(--font); font-size: 16px; }
.kpi-warn .value { color: var(--orange); }
th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
td { border-bottom-color: var(--line); }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: var(--brand-soft); }
.date-tile { background: var(--brand-soft); color: var(--brand); border-radius: 12px; }
.date-tile .d { font-family: var(--display); font-weight: 700; font-size: 23px; }
.date-tile .m { text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* Boutons et champs */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 8px 15px; min-height: 38px; }
.btn-sm { min-height: 30px; padding: 4px 10px; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-green { background: var(--green); border-color: var(--green); }
input, select, textarea { border-radius: var(--radius-sm); border-color: var(--line-strong); padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); opacity: .78; }
.chip { font-weight: 600; }
.seg a.on, .seg button.on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.tabs a.on { color: var(--brand); }
.notice { border-radius: 10px; }
.modal { border-radius: 18px; }
.modal-head h2 { font-family: var(--display); font-size: 20px; }

/* Connexion : logo sur blanc, fond aux couleurs du logo */
.login { background: radial-gradient(1200px 600px at 10% -10%, #d6ecfa 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fdeccc 0%, transparent 55%), var(--bg); }
.login-card { border: 1px solid var(--line); border-radius: 20px; }
.login-card .brand-name { font-size: 24px; }

/* Récapitulatif de réservation */
.booking-recap .recap-actions { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .top { padding: 10px 12px; }
  .content { padding: 18px 14px 64px; }
  h1 { font-size: 23px; }
  .nav a.active::before { left: -12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Statistiques ── */
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mini-kpis .kpi { padding: 12px 14px; }
.mini-kpis .kpi .value { font-size: 21px; }
.mini-kpis .kpi .label { font-size: 12.5px; }
.mb-sm { margin-bottom: 8px; }
.delta { font-size: 12.5px; color: var(--muted); }
.delta-up { color: var(--green); } .delta-down { color: var(--red); } .delta-new { color: var(--brand); }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.hbar-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 12px; background: var(--neutral-soft); border-radius: 0 4px 4px 0; display: flex; gap: 2px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--chart-1); border-radius: 0 4px 4px 0; width: 0; }
.hbar-stack .hbar-fill { border-radius: 0; }
.hbar-stack .hbar-fill:last-child { border-radius: 0 4px 4px 0; }
.hbar-fill.s1 { background: var(--chart-1); } .hbar-fill.s2 { background: var(--chart-2); } .hbar-fill.s0 { background: var(--line-strong); }
.hbar-value { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; min-width: 48px; text-align: right; }
.hbar-top .hbar-label { font-weight: 650; }
.rank-cell { display: grid; grid-template-columns: minmax(90px, 1fr) 34px; align-items: center; gap: 8px; min-width: 140px; }
.rank-cell b { text-align: right; font-variant-numeric: tabular-nums; }
table.rank td.who { min-width: 170px; }
table.rank td.who .t-strong { white-space: nowrap; }
.rank-n { font-family: var(--display); font-size: 18px; color: var(--faint); width: 34px; }
tr.rank-top .rank-n { color: var(--brand); }
tr.rank-top td { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.legend-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lg-1 { background: var(--chart-1); } .lg-2 { background: var(--chart-2); } .lg-0 { background: var(--line-strong); }
.colchart { width: 100%; height: auto; display: block; }
.colchart .grid { stroke: var(--line); stroke-width: 1; }
.colchart .base { stroke: var(--line-strong); stroke-width: 1; }
.colchart .axis { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.colchart .val { fill: var(--ink); font-size: 11.5px; font-weight: 600; font-family: var(--font); }
.colchart .bar { fill: var(--chart-1); }
.colchart .hit { fill: transparent; }
.colchart .col:hover .bar { opacity: .82; }
.colchart .col:hover .hit { fill: var(--brand-soft); fill-opacity: .5; }
details.more-card summary { cursor: pointer; list-style: none; }
details.more-card summary::-webkit-details-marker { display: none; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 4px; }
:root { --chart-1: var(--color-primary); --chart-2: #c47410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-1: #3b8fd0; --chart-2: #b8802c; } }
@media (max-width: 1180px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hbar { grid-template-columns: minmax(90px, 40%) 1fr auto; } }

/* ── Collègues connectés ── */
.presence { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 3px 10px 3px 4px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); min-height: 34px; }
.presence:hover { border-color: var(--brand); color: var(--ink); }
.presence-avatars { display: inline-flex; }
.presence-avatars:empty { display: none; }
.pv { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid var(--surface); }
.presence-avatars .pv + .pv { margin-left: -8px; }
.pv::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }
.pv-lg { width: 34px; height: 34px; font-size: 12.5px; flex: none; }
.presence-row { display: flex; align-items: center; gap: 10px; }
.presence-panel { right: 120px; }
@media (max-width: 760px) { .presence-count { display: none; } .presence { padding: 3px; } .presence-panel { right: 8px; } }
.seg a { white-space: nowrap; }
@media (max-width: 760px) { #period .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } #period .seg a { flex: none; } }

/* ── Chacun paie sa part ── */
.split-list { display: grid; gap: 10px; }
.split-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 10px; align-items: end; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.split-who { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.split-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-row input[type=file] { font-size: 12.5px; max-width: 100%; }
.split-row .field[hidden] { display: none !important; }
.proof-links { display: flex; flex-wrap: wrap; gap: 4px 10px; }
@media (max-width: 560px) { .split-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Présence v2 : en ligne / inactif / déconnecté ── */
.pv::after { background: var(--green); }
.pv-idle::after { background: var(--orange); }
.pv-offline { background: var(--neutral-soft); color: var(--muted); }
.pv-offline::after { background: var(--line-strong); }
.presence-wide { width: min(520px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; }
.presence-row .pr-main { min-width: 0; }
.presence-online .pr-state { color: var(--green); font-weight: 600; }
.presence-idle .pr-state { color: var(--orange); }
.presence-offline b { color: var(--muted); }
.presence-group { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 10px 14px 4px; }
.presence-foot { font-size: 12.5px; color: var(--faint); padding: 10px 14px; border-top: 1px solid var(--line); }
.presence-sum { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ps { font-size: 12.5px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.ps-online { background: var(--green-soft); color: var(--green); }
.ps-idle { background: var(--orange-soft); color: var(--orange); }
.ps-offline { background: var(--neutral-soft); color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: 6px; }
.team-grid .presence-group { grid-column: 1 / -1; }
.team-card .presence-row { border-bottom: 0; }

/* ── Portails de la Direction ── */
.portal-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; }
.portal-btn:hover { border-color: var(--brand); color: var(--brand); }
.portal-btn.on { background: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.portal-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 8px 20px; background: var(--orange-soft); color: var(--ink); border-bottom: 1px solid var(--orange); font-size: 14px; }
.portal-list { display: grid; gap: 8px; }
.portal-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.portal-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.portal-opt.on { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 760px) { .portal-btn .btn-label { display: none; } .portal-banner { padding: 8px 12px; font-size: 13px; } }

/* ── Accueil de l'agent ── */
.desk-tiles .kpi { padding: 14px 16px; }
.desk-tiles .kpi .value { font-size: 26px; }
.follow { display: flex; flex-direction: column; }
.follow-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.follow-item:first-child { border-top: 0; }
.follow-item:hover { background: var(--surface-2); }
.follow-item > div:first-child { min-width: 0; }
.follow-side { flex: none; text-align: right; }
.card-pad-sm { padding: 10px 16px 14px; }
.only-narrow { display: none; }
@media (max-width: 760px) { .only-wide { display: none; } .only-narrow { display: block; } }
.mt-xs { margin-top: 4px; }

/* ── Messagerie ── */
.msg-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; height: calc(100vh - 200px); min-height: 520px; }
.conv-list { display: flex; flex-direction: column; overflow: hidden; }
.conv-tools { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.conv-tools input { width: 100%; }
.conv-tools .seg { align-self: stretch; display: flex; }
.conv-tools .seg a { flex: 1; text-align: center; }
.conv-items { overflow-y: auto; flex: 1; }
.conv-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .12s; }
.conv-item:first-child { border-top: 0; }
.conv-item:hover { background: var(--surface-2); }
.conv-item.on { background: var(--brand-soft); }
.conv-item.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.conv-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: .02em; background: var(--brand-soft); color: var(--brand); }
.conv-avatar.big { width: 46px; height: 46px; font-size: 15px; }
.conv-avatar.svc { background: var(--accent-soft); font-size: 19px; }
.t0 { --tone: var(--color-primary); --tone-soft: #e3f0fb; } .t1 { --tone: var(--status-success); --tone-soft: #e1f3ea; } .t2 { --tone: var(--status-warning); --tone-soft: #fdf0dc; }
.t3 { --tone: #7b3fb0; --tone-soft: #f1e8fa; } .t4 { --tone: var(--status-danger); --tone-soft: #fbe7e4; } .t5 { --tone: #0e7c86; --tone-soft: #e0f3f4; }
.conv-avatar[class*=" t"] { background: var(--tone-soft); color: var(--tone); }
.conv-main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv-name { font-size: 15px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 12px; color: var(--faint); flex: none; }
.conv-item.unread .conv-time { color: var(--brand); font-weight: 650; }
.conv-role { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.conv-tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--neutral-soft); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-tag.file { background: var(--brand-soft); color: var(--brand); }
.conv-bottom { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.conv-preview { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item.unread .conv-preview { color: var(--ink); font-weight: 600; }
.conv-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.thread { display: flex; flex-direction: column; overflow: hidden; }
.thread-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.thread-title { flex: 1; min-width: 0; }
.thread-title h2 { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-sub { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.thread-empty { flex: 1; display: grid; place-content: center; text-align: center; padding: 30px; color: var(--muted); }
.empty-illus { font-size: 40px; }
.day-sep { display: flex; justify-content: center; margin: 14px 0 8px; }
.day-sep span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; }
.day-sep span::first-letter { text-transform: uppercase; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(72%, 560px); margin-top: 8px; }
.msg.grouped { margin-top: 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-author { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; margin: 0 0 4px 4px; color: var(--ink); }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--brand)); }
.msg-bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; padding: 9px 13px 7px; box-shadow: 0 1px 1px rgba(16,42,67,.04); font-size: 14.5px; }
.msg.grouped .msg-bubble { border-radius: 16px; }
.msg.mine .msg-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 16px 16px 5px 16px; }
.msg.mine.grouped .msg-bubble { border-radius: 16px; }
.msg.mine .msg-bubble .t-sub { color: rgba(255,255,255,.8); }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; display: inline; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg-files:first-child { margin-top: 0; }
.msg-img img { display: block; max-width: 240px; max-height: 200px; border-radius: 10px; object-fit: cover; }
.msg-time { float: right; font-size: 11px; color: var(--faint); margin: 6px 0 0 12px; line-height: 1; }
.msg.mine .msg-time { color: rgba(255,255,255,.75); }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: 13px; text-decoration: none; max-width: 100%; }
.file-chip:hover { border-color: var(--brand); }
.msg.mine .file-chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chips:empty { display: none; }
.linked-chip { background: var(--brand-soft); border-color: transparent; }
.link-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; padding: 0 2px; }
.composer { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.composer-row { display: flex; align-items: flex-end; gap: 10px; }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 11px 16px; background: var(--surface-2); font-size: 14.5px; }
.composer textarea:focus { background: var(--surface); }
.composer .btn-primary { border-radius: 22px; min-height: 44px; padding: 0 20px; }
.attach { cursor: pointer; font-size: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); }
.attach:hover { background: var(--surface-2); }
.ac { position: relative; }
.ac .ac-list { top: 46px; }
.ac-item.ac-block { display: block; }
.only-narrow-inline { display: none; }
@media (max-width: 760px) {
  .msg-layout { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .msg-layout.has-thread .conv-list { display: none; }
  .msg-layout:not(.has-thread) .thread { display: none; }
  .msg-layout.has-thread .thread { height: calc(100vh - 120px); }
  .only-narrow-inline { display: inline-flex; }
  .thread-head { padding: 10px 12px; gap: 10px; }
  .thread-body { padding: 12px; }
  .msg { max-width: 86%; }
}
.conv-item, .conv-item:hover, .conv-item * { text-decoration: none; }

/* ── Confirmation d'émission et vérification des modifications ── */
.emit-recap .recap-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.emit-recap .recap-row span { color: var(--muted); flex: none; }
.emit-recap .recap-row b { text-align: right; }
.emit-recap .recap-total b { font-size: 20px; font-family: var(--display); }
.review-table td { vertical-align: top; }
.review-table .r-before { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.review-table .r-after { font-weight: 650; }
.review-table tr.is-fin td:first-child::after { content: " · montant"; color: var(--orange); font-size: 12px; font-weight: 600; }
.impact { border: 1px solid var(--orange); background: var(--orange-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.impact h4 { margin: 0 0 8px; }
.impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-bottom: 6px; }
.impact-grid div { display: flex; flex-direction: column; }
.impact-grid span { font-size: 12.5px; color: var(--muted); }
.impact-grid em { font-style: normal; font-size: 12.5px; }
.success-banner { font-size: 15px; }
.fin-timeline .fin-line { display: block; margin-top: 2px; }
@media (max-width: 560px) { .impact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Fiche client : historique des voyages et journal ── */
.trip-timeline, .event-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.trip-timeline li, .event-timeline li { position: relative; display: flex; flex-direction: column; gap: 3px; }
.trip-timeline li::before, .event-timeline li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.event-timeline li::before { width: 10px; height: 10px; left: -29px; background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.trip-timeline .tt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trip-timeline .tt-head a { color: var(--ink); }
.trip-timeline li.is-cancelled .tt-head b { text-decoration: line-through; color: var(--muted); }
.event-timeline .ev-detail { font-size: 14px; }
.adv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pre-wrap { white-space: pre-wrap; }

/* Téléphone : les tableaux deviennent des fiches empilées (titre de colonne à gauche, valeur à droite). */
@media (max-width: 640px) {
  .table-wrap > table.rt { font-size: 14px; }
  .table-wrap > table.rt thead { display: none; }
  .table-wrap > table.rt, .table-wrap > table.rt tbody, .table-wrap > table.rt tr, .table-wrap > table.rt td { display: block; width: 100%; }
  .table-wrap > table.rt tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .table-wrap > table.rt td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; border: 0; text-align: right; min-height: 0; }
  .table-wrap > table.rt td::before { content: attr(data-label); flex: 0 0 auto; max-width: 42%; text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; }
  .table-wrap > table.rt td:not([data-label])::before { content: none; }
  .table-wrap > table.rt td.rt-act, .table-wrap > table.rt td.rt-full { justify-content: flex-end; text-align: left; }
  .table-wrap > table.rt td.rt-full { justify-content: center; }
  .table-wrap > table.rt td:first-child { font-weight: 650; }
  .table-wrap > table.rt td:empty { display: none; }
  .table-wrap > table.rt td > * { min-width: 0; }
}

/* Nouvelle version du CRM disponible */
.update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; max-width: min(720px, calc(100vw - 32px));
  padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; }
@media (max-width: 640px) { .update-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* Alertes de messages (sur le côté, comme Teams) */
.msg-alerts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.msg-alert { pointer-events: auto; display: flex; gap: 12px; padding: 14px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px;
  box-shadow: var(--shadow-lg); cursor: pointer; animation: alert-in .24s ease-out; }
.msg-alert.out { opacity: 0; transform: translateX(24px); transition: opacity .2s, transform .2s; }
@keyframes alert-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
.msg-alert-main { flex: 1; min-width: 0; }
.msg-alert-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; }
.msg-alert-close { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 6px; }
.msg-alert-close:hover { background: var(--surface-2); color: var(--ink); }
.msg-alert-sub { font-size: 12.5px; color: var(--muted); }
.msg-alert-body { margin-top: 6px; font-size: 14px; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.msg-alert-actions { margin-top: 10px; }
@media (max-width: 640px) { .msg-alerts { right: 16px; left: 16px; width: auto; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .msg-alert { animation: none; } }

/* Accusés de lecture */
.tick { letter-spacing: -3px; margin-left: 2px; font-size: 11px; }
.msg.mine .tick.read { color: #9fe0ff; font-weight: 700; }
.msg-status { font-size: 12px; color: var(--faint); margin: 4px 6px 0; }
.msg-status.read { color: var(--brand); font-weight: 600; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Préférences de messagerie */
.pref-group { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pref-group:last-of-type { border-bottom: 0; }
.pref-group h4 { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.pref-row { align-items: flex-start; }
.pref-row input { margin-top: 3px; }
.pref-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
body[data-bubble="vert"] .msg.mine .msg-bubble { background: var(--status-success); border-color: var(--status-success); }
body[data-bubble="violet"] .msg.mine .msg-bubble { background: #6d3aa8; border-color: #6d3aa8; }
body[data-bubble="ardoise"] .msg.mine .msg-bubble { background: #34495e; border-color: #34495e; }
body[data-msg-size="grand"] .msg-bubble { font-size: 16.5px; }
body[data-msg-size="grand"] .conv-name { font-size: 16.5px; }
body[data-msg-size="grand"] .conv-preview, body[data-msg-size="grand"] .msg-alert-body { font-size: 15.5px; }
body[data-msg-size="grand"] .composer textarea { font-size: 16.5px; }

/* ══════════════════════════════════════════════════════════════════════
   Repères visuels : icônes, menu, barre du haut, tuiles, barre d'onglets
   Une icône par écran, la même dans le menu, le titre de page et la barre
   d'onglets du téléphone ; les tuiles qui demandent une action ressortent.
   ══════════════════════════════════════════════════════════════════════ */
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ic-inline { width: 1.1em; height: 1.1em; vertical-align: -.18em; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn .ic-inline { vertical-align: 0; }

/* Menu latéral */
.nav { gap: 2px; }
.nav a { justify-content: flex-start; gap: 12px; padding: 9px 12px; min-height: 42px; font-size: 14.5px; }
.nav a .nav-ic { width: 21px; height: 21px; color: var(--faint); transition: color .12s; }
.nav a .nav-label { flex: 1; min-width: 0; }
.nav a:hover .nav-ic { color: var(--ink); }
.nav a.active .nav-ic { color: var(--brand); }
.nav .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }

/* Barre du haut */
.top .search::before { content: none; }
.top .search .search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.top .search input { padding-left: 40px; min-height: 40px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; }
.icon-btn .ic { width: 22px; height: 22px; }
.portal-btn .ic { width: 17px; height: 17px; }
.user-chip { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 3px 12px 3px 3px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; }
.user-chip:hover { border-color: var(--line-strong); background: var(--surface-2); }
.user-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* Titre de page : l'icône de l'écran */
.page-head h1 { display: flex; align-items: center; gap: 12px; }
.title-ic { width: 30px; height: 30px; color: var(--brand); stroke-width: 1.7; }

/* Tuiles de l'accueil */
.kpi { display: flex; flex-direction: column; gap: 2px; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
.kpi-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.kpi-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi-ic .ic { width: 20px; height: 20px; }
.kpi .label { line-height: 1.3; color: var(--ink); opacity: .82; }
.kpi .value { margin-top: 8px; }
.kpi-warn { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.kpi-warn .kpi-ic { background: var(--accent); color: var(--status-warning-contrast); }
.kpi-warn .value { color: var(--orange); }
.kpi-zero .value { color: var(--faint); }
.kpi-zero .kpi-ic { background: var(--neutral-soft); color: var(--faint); }

/* États vides */
.empty .empty-ic { width: 34px; height: 34px; color: var(--faint); margin-bottom: 6px; }

/* Barre d'onglets du téléphone */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { appearance: none; border: 0; background: none; font: inherit; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 2px; font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 52px; justify-content: center; }
  .tabbar .tab-ic { position: relative; width: 48px; height: 30px; border-radius: 99px; display: grid; place-items: center; }
  .tabbar .tab-ic .ic { width: 23px; height: 23px; }
  .tabbar .on { color: var(--brand); }
  .tabbar .on .tab-ic { background: var(--brand-soft); }
  .tabbar .tab-count { position: absolute; top: -3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--status-warning-contrast); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
  .shell .menu-btn { display: none; }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .msg-alerts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .update-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .msg-layout.has-thread .thread { height: calc(100vh - 190px); }
  .user-chip { padding: 3px; }
  .title-ic { width: 26px; height: 26px; }
  .kpi-ic { width: 32px; height: 32px; }
}
@media print { .tabbar { display: none; } }
.shell .top .menu-btn { display: none; }
.tiles-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 760px) { .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .inv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Menu latéral compact : tout le menu tient à l'écran, Messages compris */
@media (min-width: 761px) {
  .brand { padding: 16px 12px 12px; }
  .brand .logo-side { width: 84px; }
  .nav a { min-height: 38px; padding: 7px 12px; }
  .nav-group { padding: 12px 10px 3px; }
}

/* Choix de fichiers : bouton en français + nom du fichier */
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }


.file-pick .btn:hover { border-color: var(--brand); color: var(--brand); }
.file-pick-name { font-size: 13px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.file-pick.has-file .file-pick-name { color: var(--ink); font-weight: 600; }

/* Couleur des aplats (boutons, bulles, pastilles) : texte blanc lisible, en clair comme en sombre */
:root { --brand-fill: var(--color-primary); --green-fill: var(--status-success); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-fill: #1f6fc0; --green-fill: #1f7a4f; } }
.btn-primary { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand-fill) 82%, #000); border-color: color-mix(in srgb, var(--brand-fill) 82%, #000); }
.btn-green { background: var(--green-fill); border-color: var(--green-fill); color: #fff; }
.btn-green:hover { background: color-mix(in srgb, var(--green-fill) 82%, #000); }
.seg-input label:has(input:checked) { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
.ticket-top, .tc-num, .ac-avatar, .conv-badge, .user-av { background: var(--brand-fill); color: #fff; }
.msg.mine .msg-bubble { background: var(--brand-fill); border-color: var(--brand-fill); }

/* Petits ajustements */
.presence-group { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.search-results .grp { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 650; }
select.inline-input[data-field="attendance"] { min-width: 112px; }
.launch-checks td:first-child { width: 1%; white-space: nowrap; }

/* Lisibilité : les textes secondaires restent lisibles (contraste ≥ 4,5:1) */
:root { --faint: #5d6d80; --green: #17704a; --orange: #985004; }
.kpi-warn .hint { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --faint: #93a3b6; --green: #4cc58a; } }
.icon-btn .dot { background: #c0392b; color: #fff; }

/* Titre de page : l'icône se place devant le texte, sans changer la façon dont le titre passe à la ligne */
.page-head h1 { display: block; }
.title-ic { vertical-align: -5px; margin-right: 10px; }
@media (max-width: 760px) { .title-ic { vertical-align: -4px; margin-right: 8px; } }

/* Fiches du téléphone : intitulé à gauche, contenu (même sur plusieurs lignes) à droite */
@media (max-width: 640px) {
  .table-wrap > table.rt td { display: block; text-align: right; overflow: hidden; }
  .table-wrap > table.rt td::before { float: left; margin-right: 14px; padding-top: 1px; }
  .table-wrap > table.rt td.rt-act, .table-wrap > table.rt td.rt-full { text-align: right; }
  .table-wrap > table.rt td.rt-full { text-align: center; }
  .table-wrap > table.rt td .t-sub { overflow-wrap: anywhere; }
}

/* Barre du haut : logo pour les rôles sans recherche ; sur tablette, bouton « + » sans texte */
.top-logo { display: none; }
@media (max-width: 760px) { .top-logo { display: inline-flex; } .top-logo .logo { height: 34px; width: auto; display: block; } }
@media (max-width: 1180px) { .top-new .btn-label, .presence-avatars:not(:empty) + .presence-count { display: none; } .top-new { padding: 8px 11px; } }
.split-row { align-items: start; }
.split-row .file-pick .btn, .field .file-pick .btn { min-height: 40px; }
small[data-files]:empty { display: none; }
.table-wrap > table.rt td:first-child .t-sub { font-weight: 400; }

/* Nouvelle réservation : contact déduit, groupe à plusieurs, avance à part */
.dossier-box { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.contact-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink); }
.contact-summary .ic-inline { color: var(--brand); }
.group-fields { display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: 12px 18px; align-items: end; }
@media (max-width: 760px) { .group-fields { grid-template-columns: minmax(0, 1fr); } }
.link-btn { color: var(--brand); font-weight: 600; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; }
details.pay-step > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.pay-step > summary::-webkit-details-marker { display: none; }
.pay-step-title { font-size: 15.5px; font-weight: 650; color: var(--brand); }
details.pay-step[open] .pay-step-title { color: var(--ink); }
@media (max-width: 760px) { .mobile-bar { bottom: calc(65px + env(safe-area-inset-bottom)); } }

/* ── Carte voyageur (nouvelle réservation, ajout de voyageurs) ──
   En-tête vivant : pastille aux initiales, nom, âge, client connu, prix ; contact principal à cocher. */
.pax { position: relative; padding: 0; gap: 0; overflow: visible; border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.pax .tc-head { padding: 12px 14px 12px 12px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: nowrap; background: var(--surface-2); border-radius: 16px 16px 0 0; }
.pax .tc-grid { padding: 14px 16px 4px; }
.pax .pax-trip, .pax .child-box, .pax details.more { margin-left: 16px; margin-right: 16px; }
.pax details.more { margin-bottom: 14px; }
.pax-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-soft); color: var(--muted); font-weight: 700; font-size: 14.5px; letter-spacing: .02em; transition: background .2s, color .2s; }
.pax-av .tc-num { background: none !important; color: inherit !important; width: auto; height: auto; font-size: inherit; }
.pax-av.filled { background: var(--tone-soft); color: var(--tone); }
.pax-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pax-id .tc-title { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pax-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pax-tags .linked { font-size: 12px; padding: 1px 4px 1px 9px; }
.pax .tc-total { font-size: 16px; white-space: nowrap; }
.pax-remove { width: 32px; height: 32px; font-size: 14px; color: var(--faint); }
.pax-remove:hover { color: var(--red); background: var(--red-soft); }
/* Contact principal : une pastille à cocher, la carte choisie est soulignée */
.lead-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; background: var(--surface); }
.lead-pick input { position: absolute; opacity: 0; pointer-events: none; }
.lead-pick:hover { border-color: var(--brand); color: var(--brand); }
.lead-pick:has(input:checked) { border-style: solid; border-color: var(--brand-fill); background: var(--brand-fill); color: #fff; }
.lead-pick:has(input:focus-visible) { outline: 2px solid var(--atlas); outline-offset: 2px; }
.pax.is-lead { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft); }
/* Voyage : sexe en pastilles, départ et chambre en ligne */
.pax-trip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 0 4px; border-top: 1px dashed var(--line); margin-top: 6px; }
.pax-gender { display: inline-flex; gap: 6px; }
.pill { appearance: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 34px; }
.pill:hover { border-color: var(--brand); }
.pill.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.pill:disabled { opacity: .6; cursor: default; }
.pax-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pax-inline select { width: auto; min-width: 150px; max-width: 100%; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.pax .child-box { margin-top: 8px; }
/* Ajouter un voyageur : une place libre à remplir */
.pax-add { appearance: none; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: 16px; background: transparent; color: var(--brand); font: inherit; cursor: pointer; text-align: left; }
.pax-add span { display: flex; flex-direction: column; }
.pax-add b { font-size: 15px; }
.pax-add:hover { border-color: var(--brand); background: var(--brand-soft); }
/* Dernière place : bouton conservé dans la mise en page, mais visuellement
   neutralisé et impossible à activer (souris, tactile ou clavier). */
.pax-add:disabled,
.pax-add.is-capacity-full {
  color: var(--faint);
  background: var(--surface-2);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: .8;
  box-shadow: none;
}
.pax-add:disabled:hover,
.pax-add.is-capacity-full:hover {
  color: var(--faint);
  background: var(--surface-2);
  border-color: var(--line);
}
.bk-seat-limit { margin-top: 8px; }
#more.is-capacity-full { cursor: not-allowed; opacity: .55; }
.pax-add .ic { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .pax .tc-head { flex-wrap: wrap; }
  .pax .tc-total { margin-left: auto; }
  .lead-pick { order: 5; }
  .pax-trip { gap: 10px 14px; }
  .pax-inline { flex: 1 1 140px; }
  .pax-inline select { flex: 1; min-width: 0; }
}

/* Champs avec icône (carte voyageur) */
.inp { position: relative; display: block; }
.inp > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; transition: color .12s; }
.inp > input { padding-left: 38px; min-height: 42px; }
.inp:focus-within > .ic { color: var(--brand); }
.inp:has(input:disabled) > .ic { color: var(--green); }
.pax .tc-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pax-inline > .ic { width: 18px; height: 18px; color: var(--faint); }
.pax .field > span:first-child { font-size: 12.5px; }
.pax .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.pax-gender { display: flex; gap: 6px; }
.pax-gender .pill { flex: 1; min-height: 42px; }
@media (max-width: 640px) { .pax .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pax .linked { white-space: nowrap; }
@media (max-width: 640px) {
  .pax .ac-host .ac-list { width: calc(100vw - 72px); min-width: 0; max-width: 420px; }
  .pax .tc-grid > .ac-host:nth-child(even) .ac-list { left: auto; right: 0; }
  .inp > .ic { left: 10px; width: 17px; height: 17px; }
  .inp > input { padding-left: 33px; padding-right: 8px; }
  .pax-gender .pill { padding: 6px 6px; font-size: 13px; min-width: 0; }
  .pax .tc-grid { gap: 10px; }
}
@media (max-width: 640px) {
  .pax .tc-grid > .field:nth-child(3), .pax .tc-grid > .field:nth-child(6) { grid-column: 1 / -1; }
}
/* iPhone : pas de zoom automatique quand on touche un champ (texte à 16 px minimum) */
@media (max-width: 760px) { input, select, textarea { font-size: 16px; } }
@media (max-width: 640px) {
  .pax .tc-grid > .ac-host:nth-child(even) .ac-list { left: 0; right: auto; }
  .pax .tc-grid > .ac-host:nth-child(2) .ac-list, .pax .tc-grid > .ac-host:nth-child(5) .ac-list { left: auto; right: 0; }
}

/* ── Vérification d'un paiement : le justificatif à gauche, les contrôles à droite ── */
.modal-wide:has(.verify-layout) { width: min(1180px, calc(100% - 24px)); }
.verify-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.verify-side { position: sticky; top: 0; }
.verify-amount { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); }
.verify-amount > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.verify-amount b { font-family: var(--display); font-size: 28px; color: var(--ink); }
.verify-names { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.verify-names h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.verify-names ul, .verify-shared ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.verify-names li b { font-size: 15.5px; letter-spacing: .01em; }
.verify-shared ul { margin: 6px 0; padding-left: 4px; }
.verify-shared li::before { content: "• "; color: var(--orange); }
.dl-compact { font-size: 13.5px; }
.dl-compact dt { color: var(--muted); }
.proof-viewer { display: flex; flex-direction: column; gap: 10px; }
.pv-stage { height: min(66vh, 720px); border-radius: 12px; background: #2b3440; display: grid; place-items: center; overflow: hidden; position: relative; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s; }
.pv-stage.zoom { overflow: auto; place-items: start; }
.pv-stage.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.pv-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pv-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-thumb { position: relative; appearance: none; width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface-2); padding: 0; overflow: hidden; cursor: pointer; display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pv-thumb .ic { width: 22px; height: 22px; }
.pv-dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.pv-tools { display: flex; gap: 6px; }
.pv-empty { height: 240px; display: grid; place-content: center; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: 12px; }
.pv-empty .ic { width: 34px; height: 34px; margin: 0 auto 6px; }
@media (max-width: 900px) {
  .verify-layout { grid-template-columns: minmax(0, 1fr); }
  .verify-side { position: static; }
  .pv-stage { height: 52vh; }
}
.pv-stage iframe { position: relative; z-index: 1; background: transparent; }
.pv-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #d6dde6; gap: 4px; }
.pv-fallback .ic { width: 34px; height: 34px; margin: 0 auto; }
.pv-fallback a { color: #9fd3ff; }
.pv-fallback .t-sub { color: #aab6c3; }

/* ── Factures ── */
.period-bar { display: flex; align-items: flex-end; gap: 14px 22px; flex-wrap: wrap; }
.period-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.period-form .field { min-width: 150px; }
.period-exports { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.inv-mini { display: grid; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.inv-row:first-child { border-top: 0; }
.inv-row .right { text-align: right; }
.inv-row.is-cancelled b { text-decoration: line-through; color: var(--muted); }
tr.is-cancelled td b { text-decoration: line-through; color: var(--muted); }
.sup-out { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 650; }
.sup-form .seg-input { flex-wrap: wrap; }
@media (max-width: 760px) { .period-exports { margin-left: 0; } .inv-row { grid-template-columns: minmax(0, 1fr) auto; } }
/* Factures : « À faire », outils des registres, à facturer, clôture mensuelle */
.todo-strip { padding: 12px 14px; }
.todo-head { font-weight: 700; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.todo-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.todo-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.todo-item:hover { text-decoration: none; border-color: var(--line-strong); }
.todo-item b { display: block; font-size: 14px; }
.todo-item .t-sub { display: block; }
.todo-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.todo-warn .todo-ic { background: var(--orange-soft); color: var(--orange); }
.todo-danger .todo-ic { background: var(--red-soft); color: var(--red); }
.todo-info .todo-ic { background: var(--brand-soft); color: var(--brand); }
.todo-none { color: var(--green); font-weight: 600; font-size: 14px; }
.reg-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reg-search { flex: 1; min-width: 200px; max-width: 360px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.reg-tools .btn:last-child { margin-left: auto; }
.reg-total { font-size: 13.5px; color: var(--muted); margin: 0 2px 8px; }
.reg-total b { color: var(--ink); }
.due-soon { color: var(--orange); font-weight: 600; }
.lock-note { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); padding: 0 6px; }
.lock-mini { color: var(--muted); }
.link-btn.missing-proof { color: var(--orange); }
.bulk-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.bulk-bar .btn { margin-left: auto; }
th.col-check, td.col-check { width: 34px; }
.col-check input { width: 17px; height: 17px; }
.batch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.batch-list li { display: flex; gap: 8px; align-items: baseline; }
.batch-list li b { margin-left: auto; }
.notice.grow { flex: 1; min-width: 260px; }
.grid-side-left { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.month-list { display: grid; }
.month-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.month-item > span:first-child { display: grid; }
.close-actions .btn { white-space: normal; text-align: left; }
.month-item:hover { text-decoration: none; background: var(--surface-2); }
.month-item.on { background: var(--brand-soft); font-weight: 650; }
.h-month { font-size: 22px; margin: 0; }
.chk-list { list-style: none; margin: 0; padding: 0; }
.chk { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.chk:first-child { border-top: 0; }
.chk-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.chk-ok .chk-ic { background: var(--green-soft); color: var(--green); }
.chk-warn .chk-ic { background: var(--orange-soft); color: var(--orange); }
.close-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
@media (max-width: 760px) {
  .grid-side-left { grid-template-columns: minmax(0, 1fr); }
  .month-items { display: flex; overflow-x: auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
  .month-items .month-item { flex: none; border: 1px solid var(--line); border-radius: 10px; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 12px; }
  .month-list > .t-sub { display: none; }
  .reg-search { max-width: none; order: 3; flex-basis: 100%; }
  .reg-tools .btn:last-child { margin-left: 0; }
  .chk { grid-template-columns: 32px minmax(0, 1fr); }
  .chk > .btn { grid-column: 2; justify-self: start; }
}
/* Points de départ officiels (Paramètres) et villes habituelles d'un programme */
.stack-sm { display: grid; gap: 6px; }
.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline input { flex: 1; min-width: 0; }
.catalog-row { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.7fr); }
.catalog-row .span-2 { grid-column: auto; }
.route-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.route-pick button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.route-pick button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.route-pick .n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.map-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
@media (max-width: 760px) { .catalog-row { grid-template-columns: minmax(0, 1fr); } }
.pickup.form-grid-4 { grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1.3fr) minmax(0, 1.7fr); }
@media (max-width: 760px) { .pickup.form-grid-4 { grid-template-columns: minmax(0, 1fr) 120px; } }
.recap-pickups { display: grid; gap: 2px; text-align: right; }
/* Demandes à la Direction : formulaire guidé */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.rq-group { display: grid; gap: 4px; padding: 6px 0; border-top: 1px solid var(--line); }
.rq-group:first-child { border-top: 0; }
.rq-ref { font-size: 12.5px; color: var(--muted); }
.req-form .reg-search { max-width: none; margin-bottom: 6px; height: 40px; min-height: 40px; padding: 0 12px; flex: none; }
.rq-files { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
tr.row-focus td { background: var(--brand-soft); } tr.row-focus td:first-child { box-shadow: inset 4px 0 0 var(--brand); }

/* Suivi d'une demande : envoi → examen → décision → exécution */
.rq-track-cell { min-width: 240px; }
.rq-track { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 6px; font-size: 13px; }
.rq-track li { position: relative; }
.rq-track li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.rq-track li.done::before { background: var(--green); border-color: var(--green); }
.rq-track li.todo::before { background: var(--orange-soft); border-color: var(--orange); }
.rq-track li.fail::before { background: var(--red); border-color: var(--red); }
.rq-track li.fail b { color: var(--red); } .rq-track li.todo b { color: var(--orange); }

/* ── Contrôle de cohérence dossier ↔ factures ── */
.policy-list, .treat-list { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.treat-list legend { font-weight: 600; margin-bottom: 6px; }
.policy-opt, .treat { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.policy-opt input, .treat input { margin-top: 3px; accent-color: var(--brand); }
.policy-opt > span, .treat > span { display: grid; gap: 2px; }
.policy-opt:has(input:checked), .treat:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.treat.is-rec { background: color-mix(in srgb, var(--green-soft, #e7f6ec) 55%, var(--surface)); }
.diff-table td, .diff-table th { padding: 8px 10px; }
.inv-check { margin: 0 14px 10px; }
.inv-ok { color: var(--green, #1c7c45); }
.doc-purpose { font-weight: 600; color: var(--brand); }
.inv-impact { margin-top: 8px; }
.check-form .mini-kpis .kpi { padding: 10px 12px; }
.more-card > summary { cursor: pointer; list-style: none; }
.treat-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Remboursement par virement : RIB du client et capture ── */
.payee-box { margin-top: 4px; font-size: 13px; }
.payee-card { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface); }
.payee-card h4 { margin: 0 0 2px; }
.payee-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payee-line > span { color: var(--muted); min-width: 70px; font-size: 13px; }
.payee-line .mono { letter-spacing: .03em; }
.rib-details { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px 12px; }
.rib-details > summary { cursor: pointer; font-weight: 600; }

/* ── Fil de l'équipe : nouvelle réservation ── */
.book-alert { border-left-color: var(--green); }
.book-alert-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 18px; }
.team-feed .feed-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.team-feed .feed-item:first-child { border-top: 0; }
.team-feed .feed-item:hover { background: var(--surface-2, var(--brand-soft)); }
.team-feed .feed-item.is-new { animation: feedNew 2.4s ease-out; }
@keyframes feedNew { from { background: var(--green-soft); } to { background: transparent; } }
.team-feed .live { color: var(--green); font-weight: 600; }
.team-feed .feed-main { min-width: 0; }
.team-feed .feed-side { text-align: right; white-space: nowrap; }
.team-feed .feed-by { color: var(--muted); }
.team-feed .card-head { flex-wrap: wrap; }
.row-expired td { background: color-mix(in srgb, var(--red-soft, #fde8e6) 45%, transparent); }
.option-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Villes de départ à renseigner */
.pk-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pk-form select, .pk-form input[name=other] { min-width: 170px; max-width: 260px; flex: 0 1 auto; height: 34px; min-height: 34px; padding: 0 8px; }
.pk-form .check { white-space: nowrap; }

/* Saison de chaque date dans la programmation des départs */
.season-hint { margin: -4px 0 10px; }
.season-hint .notice { padding: 8px 12px; }
.season-pick select { margin-left: 6px; max-width: 360px; height: 34px; min-height: 34px; }

.danger-text { color: var(--red); }

/* ── Répartition des chambres ── */
.rm-head h3 { margin: 0; }
.rm-inv { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.rm-inv-item { font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rm-inv-item.is-full { background: var(--orange-soft); }
.rm-kpi { display: flex; gap: 14px; }
.rm-kpi > div { display: grid; text-align: center; min-width: 64px; }
.rm-kpi b { font-size: 20px; } .rm-kpi span { font-size: 12px; color: var(--muted); }
.rm-kpi .bad b { color: var(--red); } .rm-kpi .warn b { color: var(--orange); }
.rm-toolbar { flex-wrap: wrap; gap: 8px; }
.rm-filters { flex-wrap: wrap; gap: 8px; }
.rm-filters select { max-width: 280px; }
.rm-board { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 16px; align-items: start; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.rm-room { padding: 12px; display: grid; gap: 8px; border-left: 4px solid var(--line); align-content: start; }
.rm-room.is-ok { border-left-color: var(--green); } .rm-room.is-warn { border-left-color: var(--orange); } .rm-room.is-bad { border-left-color: var(--red); }
.rm-room-head { display: flex; justify-content: space-between; gap: 8px; }
.rm-room-st { text-align: right; }
.rm-occ { display: grid; gap: 6px; }
.rm-pax { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.rm-pax[draggable="true"] { cursor: grab; }
.rm-pax.dragging { opacity: .45; }
.rm-pax.is-focus { box-shadow: inset 3px 0 0 var(--brand); }
.rm-pax-main { flex: 1 1 100%; min-width: 0; }
.rm-move { height: 28px; min-height: 28px; padding: 0 6px; font-size: 12.5px; flex: 1 1 auto; max-width: 70%; width: auto; }
.rm-actions .btn { align-self: start; }
.rm-note { font-style: italic; }
.rm-issue { font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.rm-issue.bad { background: var(--red-soft); color: var(--red); }
.rm-issue.warn { background: var(--orange-soft); color: var(--orange); }
.rm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-unassigned { padding-bottom: 10px; }
.rm-unassigned .rm-occ { padding: 0 12px; }
.rm-newzones { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 4px; }
.rm-newzone { border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--muted); }
[data-drop].drop-on { outline: 2px dashed var(--brand); outline-offset: 2px; }
.rm-req { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.rm-prop { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.rm-prop.old { background: var(--surface-2); text-decoration: none; }
.rm-stays { flex-wrap: wrap; }
@media (max-width: 900px) { .rm-board { grid-template-columns: 1fr; } .rm-kpi { flex-wrap: wrap; } }

/* À compléter avant les départs */
.mc-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: inherit; }
.mc-pill.on { border-color: var(--brand); }
.mc-alerted { color: var(--blue); }
tr.mc-other td { opacity: .85; }
.wrap-gap { flex-wrap: wrap; gap: 8px; }
.mc-filters { flex-wrap: wrap; gap: 8px; }
.mc-filters select { width: auto; min-width: 170px; max-width: 320px; }

/* ── Checklist de préparation d'un départ ── */
.ready-banner { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 16px; align-items: center; padding: 12px 16px; text-decoration: none; color: inherit; border-left: 4px solid var(--blue); }
.ready-banner .ready-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ready-ready { border-left-color: var(--green); }
.ready-late { border-left-color: var(--red); }
.ready-start { border-left-color: var(--orange); }
.ready-bar { display: flex; align-items: center; gap: 10px; }
.ready-bar .fill-track { flex: 1; height: 8px; }
.ready-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: center; padding: 16px; border-left: 4px solid var(--blue); }
.ready-title { font-size: 19px; font-weight: 700; }
.ready-head.ready-ready .ready-title { color: var(--green); }
.ready-head.ready-late .ready-title { color: var(--red); }
.checklist { padding: 0; }
.ck-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ck-row:last-child { border-bottom: 0; }
.ck-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--neutral-soft); color: var(--muted); }
.ck-done .ck-num { background: var(--green-soft); color: var(--green); }
.ck-in_progress .ck-num { background: var(--blue-soft); color: var(--blue); }
.ck-todo .ck-num { background: var(--orange-soft); color: var(--orange); }
.ck-na { opacity: .75; }
.ck-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ck-detail { font-size: 14px; margin: 2px 0; }
.ck-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .ready-banner, .ready-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ck-row { grid-template-columns: 26px minmax(0, 1fr); padding: 12px; }
  .ck-act { grid-column: 2; justify-content: flex-start; }
}

/* ── Regroupements ── */
tr.party-head td { background: var(--surface-2); border-top: 3px solid var(--brand); font-weight: 600; font-size: 13.5px; padding: 8px 12px; }
tr.party-head a { color: var(--brand); text-decoration: none; }
tr.party-head + tr.grp-head td, tr.party-head + tr.grp-start td { border-top: 0; }
tr.in-party td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.party-card .card-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.party-card.is-focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.party-table tr.party-total td { background: var(--surface-2); }
.party-picks { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.party-pick { align-items: flex-start; }
.party-notice .row { flex-wrap: wrap; }

/* ── Pointage à l'embarquement (téléphone d'abord) ── */
.bd { max-width: 760px; margin: 0 auto; }
.bd-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.bd-head { padding: 6px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.bd-sticky { position: sticky; top: 0; z-index: 30; background: var(--bg); padding: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.bd-mini { align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bd-mini b { color: var(--green); font-size: 15px; }
.bd-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.bd-big { font-size: 34px; font-weight: 800; line-height: 1; color: var(--green); }
.bd-of { font-size: 16px; font-weight: 600; }
.bd-sum-c { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-c { font-size: 12.5px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--neutral-soft); color: var(--muted); }
.bd-c-present { background: var(--green-soft); color: var(--green); }
.bd-c-absent { background: var(--red-soft); color: var(--red); }
.bd-c-check { background: var(--orange-soft); color: var(--orange); }
.bd-bar { height: 8px; }
.bd-tabs { display: flex; }
.bd-tabs button { flex: 1; }
.bd-stops { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.bd-stop { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; min-width: 92px; }
.bd-stop span { font-size: 12px; color: var(--muted); }
.bd-stop.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.bd-stop.warn:not(.on) { border-style: dashed; }
.bd-tools { display: flex; gap: 8px; }
.bd-tools input { flex: 1; min-width: 0; }
.bd-tools select { width: auto; flex: none; }
.bd-stopinfo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.bd-list { display: flex; flex-direction: column; gap: 10px; }
.bd-grp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.bd-grp-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bd-grp-info { flex: 1; min-width: 0; }
.bd-tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
.bd-tr:last-child { border-bottom: 0; }
.bd-present { border-left-color: var(--green); background: color-mix(in srgb, var(--green-soft) 45%, transparent); }
.bd-absent { border-left-color: var(--red); }
.bd-check { border-left-color: var(--orange); }
.bd-name { font-size: 16px; font-weight: 700; }
.bd-rmk { color: var(--orange); }
.bd-stamp { margin-top: 4px; }
.bd-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.bd-go { background: var(--green-fill); color: #fff; border-color: var(--green-fill); font-weight: 700; min-height: 44px; padding: 0 16px; }
.bd-call { min-width: 40px; justify-content: center; }
.bd-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .bd-sticky { margin: 0 -14px; padding: 8px 14px; box-shadow: 0 6px 8px -8px rgba(0,0,0,.25); }
  .bd-big { font-size: 28px; }
  .bd-act { max-width: none; }
}
.bd-recap:first-child { border-top: 0; }
.bd-recap-total { background: var(--surface-2); }
/* Pointage — recherche, appels, sections par arrêt */
.bd-search { position: relative; }
.bd-search input { width: 100%; font-size: 16px; padding: 11px 40px 11px 12px; border-radius: 10px; }
.bd-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--neutral-soft); color: var(--muted); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.bd-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bd-chip { flex: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.bd-chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.is-muted { opacity: .45; }
.bd-stop { min-width: 0; }
.bd-sec { margin-bottom: 16px; }
.bd-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 2px 8px; position: sticky; }
.bd-sec-side { display: flex; align-items: center; gap: 6px; }
.bd-found { margin: 4px 2px 10px; }
.bd-empty { padding: 4px 2px 8px; }
.bd-g { display: inline-block; font-size: 12px; font-weight: 750; padding: 1px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); vertical-align: 2px; }
.bd-tel { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.bd-tel:active { filter: brightness(.92); }
.bd-more { min-height: 44px; min-width: 44px; justify-content: center; font-size: 18px; }
.bd-choice { display: flex; gap: 8px; }
.bd-opt { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 650; cursor: pointer; }
.bd-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.bd-inc { color: var(--red); border-color: var(--red-soft); }
.bd-grp-head { flex-wrap: wrap; }
.bd-grp-info { flex: 1 1 200px; }
@media (max-width: 760px) {
  .bd-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .bd-act { flex-wrap: nowrap; }
  .bd-go { flex: none; }
}

/* ── Pilotage commercial ── */
.pl-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.pl-reset { align-self: end; }
.pl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pl-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.pl-tile.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pl-tile.warn .pl-n { color: var(--orange); }
.pl-n { font-size: 24px; font-weight: 800; line-height: 1.1; }
.pl-l { font-size: 13px; font-weight: 600; }
.pl-u { font-size: 12px; color: var(--red); font-weight: 650; }
.pl-list { display: flex; flex-direction: column; gap: 10px; }
.pl-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pl-item.is-handled { opacity: .7; }
.pl-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-ref { color: inherit; text-decoration: none; }
.pl-ref:hover b { color: var(--brand); }
.pl-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.pl-fact { font-size: 14px; }
.pl-fill { max-width: 260px; margin-top: 6px; }
.pl-decl { font-size: 13.5px; border-left: 3px solid var(--blue-soft); padding-left: 10px; }
.pl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 13.5px; cursor: pointer; }
.pl-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
@media (max-width: 980px) { .pl-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pl-body { grid-template-columns: minmax(0, 1fr); } .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dev-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
/* ── Double vérification ── */
.tf-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tf-qr { display: flex; justify-content: center; }
.tf-qr svg { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tf-key { font-size: 15px; letter-spacing: .5px; word-break: break-all; }
.tf-code { font-size: 22px; letter-spacing: 4px; text-align: center; font-family: var(--mono, monospace); }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 16px; background: var(--surface-2); }
.tf-card { max-width: 460px; }
.tf-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.tf-trust { align-items: flex-start; }
.tf-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--orange); }
.tf-banner.is-on { border-left-color: var(--green); }

/* Départ annulé — clients à traiter */
.cc-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cc-dep { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.cc-dep.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.cc-dep-n { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0; font-size: 13px; }
.cc-dep .chip { align-self: flex-start; }
.cc-note { max-width: 280px; }
.hist { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }


/* ══════════════════════════════════════════════════════════════════════
   UX / Connexion — espace de travail We Go Club
   Styles volontairement limités à .auth-shell : aucun impact sur les
   portails, les impressions ou les formulaires métier existants.
   ══════════════════════════════════════════════════════════════════════ */
.auth-shell {
  --surface: #fff; --surface-2: #f6f8fc; --ink: #142b43;
  --muted: #52657a; --faint: #73859a; --line: #dfe6ef;
  --line-strong: #c5d1df; --brand: var(--color-primary); --brand-2: var(--color-primary-hover);
  --brand-soft: #e5f1fc; --brand-ink: #fff; --red: #a62525;
  --red-soft: #fff0ee;
  display: grid;
  place-items: stretch;
  grid-template-columns: minmax(330px, 42%) minmax(0, 58%);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: #f3f6fa;
  color: var(--ink);
}
.auth-story {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  min-width: 0;
  padding: clamp(28px, 4.8vw, 74px);
  color: #fff;
  background: linear-gradient(156deg, #082c4c 2%, #0a4e80 58%, #087aaf 100%);
}
.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(82vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  right: -44%;
  bottom: -38%;
  box-shadow: 0 0 0 64px rgba(255,255,255,.035), 0 0 0 136px rgba(255,255,255,.022);
  pointer-events: none;
}
.auth-story-brand { display: flex; align-items: center; gap: 17px; }
.auth-logo-panel { flex: none; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 17px; padding: 8px; background: #fff; box-shadow: 0 12px 24px rgba(0,24,50,.14); }
.auth-logo-panel img.logo-login { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: contain; margin: 0; }
.auth-story-identity { display: grid; gap: 3px; }
.auth-story-identity b { color: #fff; font-size: 16px; font-weight: 750; letter-spacing: .11em; }
.auth-story-identity span { color: #d0e9fa; font-size: 13px; }
.auth-story-content { max-width: 490px; }
.auth-eyebrow { display: inline-block; color: #b7e7fc; font-size: 12px; font-weight: 800; letter-spacing: .17em; margin-bottom: 20px; }
.auth-story-content h2 { color: #fff; font-family: var(--display); font-size: clamp(34px, 3.8vw, 58px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.auth-story-content h2 span { display: block; color: #a7e2ff; }
.auth-story-content p { margin-top: 24px; max-width: 37ch; font-size: 16px; line-height: 1.8; color: #d5e8f6; }
.auth-story-foot { color: #d9ebf8; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.auth-main { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px clamp(22px, 5vw, 80px); }
.auth-card { width: min(100%, 470px); padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line); background: var(--surface); border-radius: 24px; box-shadow: 0 22px 66px rgba(20,53,84,.075); }
.auth-heading { margin-bottom: 30px; }
.auth-step { display: block; margin-bottom: 11px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.auth-heading h1 { font-family: var(--display); font-size: clamp(27px, 2.6vw, 36px); color: var(--ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.17; }
.auth-heading p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 10px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field > span { font-size: 13.5px; font-weight: 650; color: var(--ink); opacity: 1; }
.auth-form .field + .auth-password-field { margin-top: -8px; }
.auth-form input:not([type=checkbox]) { min-height: 47px; border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; padding: 11px 13px; color: var(--ink); font-size: 15px; }
.auth-form input::placeholder { color: #8b9aab; }
.auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-password-field { position: relative; }
.auth-password-field input { width: 100%; padding-right: 96px !important; }
.auth-password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 80px; min-height: 35px; border: 0; border-radius: 7px; background: transparent; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-password-toggle:hover { background: var(--brand-soft); }
.auth-password-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.auth-caps { margin-top: -9px; font-size: 12px; color: #9d5609; }
.auth-error { margin: 0; padding: 11px 13px; border-radius: 9px; border: 1px solid #f1b4ad; background: #fff0ee; color: #92251e; font-size: 13.5px; line-height: 1.5; }
.auth-submit { justify-content: center; width: 100%; min-height: 48px; margin-top: 6px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.auth-submit:disabled { opacity: .75; }
.auth-help, .auth-field-hint { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.auth-help { text-align: center; margin-top: 3px; }
.auth-field-hint { margin-top: -8px; }
.auth-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--brand); font-size: 13.5px; font-weight: 650; padding: 8px; border-radius: 8px; }
.auth-back:hover { background: var(--brand-soft); text-decoration: none; }
.auth-code { text-align: center; letter-spacing: .1em; font-size: 19px !important; font-variant-numeric: tabular-nums; }
.auth-trust { align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.auth-trust input { margin-top: 4px; }
.auth-trust small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.auth-footnote { color: #75879a; font-size: 12px; text-align: center; }
.auth-form .notice-warn { font-size: 13px; }
.auth-form #tf-setup { min-width: 0; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-story { flex-direction: row; align-items: center; gap: 16px; padding: 18px 26px; min-height: 110px; }
  .auth-story::after, .auth-story-content { display: none; }
  .auth-story-foot { max-width: 160px; font-size: 11px; }
  .auth-logo-panel { width: 62px; height: 62px; border-radius: 13px; }
  .auth-main { padding: 34px 22px 54px; justify-content: flex-start; }
  .auth-card { width: min(100%, 490px); }
}
@media (max-width: 560px) {
  .auth-story { padding: 16px 18px; min-height: 90px; }
  .auth-story-brand { gap: 10px; }
  .auth-logo-panel { width: 54px; height: 54px; border-radius: 11px; }
  .auth-story-identity b { font-size: 13px; letter-spacing: .07em; }
  .auth-story-identity span { font-size: 11px; }
  .auth-story-foot { display: none; }
  .auth-main { gap: 20px; padding: 22px 14px 35px; }
  .auth-card { padding: 26px 21px; border-radius: 16px; }
  .auth-heading { margin-bottom: 25px; }
  .auth-form input:not([type=checkbox]) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-shell *, .auth-shell *::before, .auth-shell *::after { animation: none !important; transition: none !important; }
}


/* ══════════════════════════════════════════════════════════════════════
   UX / Portail Direction : les priorités avant les indicateurs de suivi.
   Styles limités aux composants .direction-* pour éviter les régressions.
   ══════════════════════════════════════════════════════════════════════ */
.direction-header { align-items: center; margin-bottom: 25px; }
.direction-eyebrow { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; }
.direction-top-actions { justify-content: flex-end; }
.direction-home { display: grid; gap: 28px; }
.direction-section { min-width: 0; }
.direction-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.direction-section-heading h2 { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.direction-section-heading p { margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.direction-section-kicker { display: block; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 4px; }
.direction-section-heading > .chip { margin-bottom: 2px; }
.direction-priority-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 13px; }
.direction-overview-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 13px; }
.direction-priority-grid .kpi, .direction-overview-grid .kpi { min-width: 0; padding: 17px 18px; border-radius: 13px; }
.direction-priority-grid .kpi { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface)); }
.direction-priority-grid .kpi:hover { border-color: var(--accent); box-shadow: 0 4px 15px rgba(30,52,73,.09); }
.direction-priority-grid .kpi .label, .direction-overview-grid .kpi .label { line-height: 1.36; font-size: 13px; }
.direction-priority-grid .kpi .value { font-size: 30px; color: var(--ink); line-height: 1.25; font-variant-numeric: tabular-nums; }
.direction-priority-grid .kpi .hint, .direction-overview-grid .kpi .hint { font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.direction-overview-grid .kpi { box-shadow: none; }
.direction-all-clear { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: var(--surface); }
.direction-clear-icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; flex: none; background: var(--green-soft); color: var(--green); }
.direction-all-clear b { color: var(--ink); font-size: 14px; }
.direction-all-clear p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.direction-operations { margin-top: 26px; }
.direction-operations .dep-card { grid-template-columns: 70px minmax(0, 1fr) minmax(105px, 135px); }
.direction-operations .dep-card > div:nth-child(2) { min-width: 0; }
.direction-operations .dep-card .t-strong { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.direction-operations .dep-meta { gap: 4px 10px; }
@media (max-width: 1040px) {
  .direction-top-actions { justify-content: flex-start; }
  .direction-operations .dep-card { grid-template-columns: 70px minmax(0, 1fr) minmax(100px, 130px); }
}
@media (max-width: 760px) {
  .direction-header { align-items: stretch; gap: 13px; margin-bottom: 20px; }
  .direction-top-actions { width: 100%; }
  .direction-top-actions .btn { justify-content: center; }
  .direction-home { gap: 24px; }
  .direction-section-heading { align-items: flex-start; gap: 10px; }
  .direction-section-heading h2 { font-size: 20px; }
  .direction-section-heading > .chip { margin-left: 0; }
  .direction-priority-grid, .direction-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .direction-priority-grid .kpi, .direction-overview-grid .kpi { padding: 13px 12px; }
  .direction-priority-grid .kpi .value { font-size: 25px; }
  .direction-priority-grid .kpi .hint, .direction-overview-grid .kpi .hint { font-size: 12px; }
  .direction-operations .dep-card { grid-template-columns: 52px minmax(0, 1fr); gap: 8px 11px; padding: 12px; }
  .direction-operations .dep-card > div:last-child { grid-column: 2; width: min(200px, 100%); }
  .direction-operations .dep-card .fill { min-width: 0; }
}
@media (max-width: 360px) {
  .direction-priority-grid, .direction-overview-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ═══ UX 2026 / Réservations : lecture rapide des dossiers et actions ═══ */
.booking-ux-filters {
  padding: 15px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: end;
}
.booking-ux-filters .field.grow { flex: 2 1 280px; }
.booking-ux-filters .field { flex: 0 1 180px; }
.booking-ux-filters .check { min-height: 40px; }
.booking-list-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: 15px 19px; margin-bottom: 15px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
}
.booking-list-summary > div { display: flex; align-items: baseline; gap: 8px; }
.booking-list-summary strong { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.booking-list-summary span { font-size: 12.5px; color: var(--muted); }
.booking-list-summary p { flex: 1 1 100%; font-size: 11px; color: var(--faint); }
.booking-list-card .table-wrap { border-radius: 12px; }
.booking-list-wide td { padding-top: 13px; padding-bottom: 13px; }
.booking-list-wide .booking-ref-link { text-decoration: none; font-weight: 750; color: var(--brand); }
.booking-list-wide .booking-ref-link:hover { text-decoration: underline; }
.booking-list-wide td .chip { white-space: normal; line-height: 1.3; }
.booking-list-narrow { display: none; }
.booking-mobile-card { display: grid; gap: 6px; padding: 16px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.booking-mobile-card:last-child { border-bottom: 0; }
.booking-mobile-card:hover { text-decoration: none; background: var(--surface-2); }
.booking-mobile-top, .booking-mobile-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.booking-mobile-top .mono { font-weight: 800; color: var(--brand); font-size: 12.5px; }
.booking-mobile-card > strong { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.booking-mobile-trip { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.booking-mobile-bottom { margin-top: 7px; }
.booking-mobile-amount { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.booking-mobile-card .chip { white-space: normal; }

.booking-brief {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.booking-brief-item {
  display: grid; align-content: start; gap: 6px;
  min-width: 0; min-height: 116px;
  padding: 17px 18px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface);
}
.booking-brief-item > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.booking-brief-item strong { color: var(--ink); font-size: clamp(19px, 2vw, 27px); line-height: 1.22; overflow-wrap: anywhere; font-weight: 800; font-variant-numeric: tabular-nums; }
.booking-brief-item small { color: var(--faint); font-size: 11.5px; line-height: 1.4; }
.booking-brief-item.is-due { background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.booking-brief-item.is-overpaid { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.booking-brief-item.is-balanced { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.booking-next-panel { margin-bottom: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.booking-next-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.booking-next-eyebrow { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); font-weight: 800; margin-bottom: 4px; }
.booking-next-heading h2 { color: var(--ink); font-size: 21px; font-weight: 750; }
.booking-next-heading p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.booking-tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.booking-task { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.booking-task-urgent { border-left: 4px solid var(--red); }
.booking-task-attention { border-left: 4px solid var(--orange); }
.booking-task-normal { border-left: 4px solid var(--brand); }
.booking-task-content { min-width: 0; }
.booking-task-content strong { color: var(--ink); font-size: 13.5px; }
.booking-task-content p { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 3px; overflow-wrap: anywhere; }
.booking-task .btn { flex: none; white-space: normal; text-align: center; justify-content: center; max-width: 155px; font-size: 12px; }
.booking-task-clear { color: var(--muted); background: var(--green-soft); padding: 15px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
#booking-travelers, #booking-payments, #booking-finances, #booking-cancellations { scroll-margin-top: 94px; }
.booking-financial-card .money-box .total { padding-top: 13px; font-size: 17px; }
@media (max-width: 1150px) {
  .booking-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-tasks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .booking-ux-filters { gap: 12px; padding: 12px; }
  .booking-ux-filters .field, .booking-ux-filters .field.grow { flex: 1 1 100%; min-width: 0; }
  .booking-list-summary { gap: 6px 15px; padding: 13px; }
  .booking-list-summary > div { flex: 1 1 45%; display: grid; gap: 0; }
  .booking-list-summary strong { font-size: 21px; }
  .booking-list-wide { display: none; }
  .booking-list-narrow { display: block; }
  .booking-brief { gap: 8px; margin-bottom: 12px; }
  .booking-brief-item { padding: 13px; min-height: 96px; }
  .booking-brief-item strong { font-size: clamp(17px, 5vw, 23px); }
  .booking-next-panel { padding: 13px; }
  .booking-next-heading h2 { font-size: 19px; }
  .booking-task { align-items: flex-start; flex-wrap: wrap; }
  .booking-task .btn { max-width: none; }
}
@media (max-width: 350px) {
  .booking-brief { grid-template-columns: minmax(0, 1fr); }
}


/* ── Fiche réservation V2 : lecture en quelques secondes, sans masquer les données ── */
.bk-overview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 5px 24px rgba(14,42,66,.045);
  position: relative;
}
.bk-overview-top {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(240px,1fr);
  gap: 24px;
  padding: 22px 26px 18px;
}
.bk-overview-identity { min-width: 0; }
.bk-reference, .bk-caption {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.bk-reference .mono { color: var(--brand); letter-spacing: 0; font-weight: 800; font-size: 12px; }
.bk-overview h1 {
  font-size: clamp(22px, 2.5vw, 33px);
  font-family: var(--display);
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.16;
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}
.bk-status-line { display:flex; flex-wrap: wrap; gap: 6px; }
.bk-overview-trip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-width: 0; padding-left: 22px;
  border-left: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.bk-overview-trip strong { font-size: 16px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.bk-overview-trip .chip { margin-top: 4px; }
.bk-overview-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, var(--surface));
  border-radius: 0 0 16px 16px;
}
.bk-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; font-size: 12.5px; }
.bk-contact > span:first-child { color: var(--muted); }
.bk-contact strong { color: var(--ink); font-size: 13px; }
.bk-contact a { font-weight: 700; color: var(--brand); white-space: nowrap; }
.bk-file-origin { color: var(--faint); font-size: 11.5px; flex: 1 1 170px; }
.bk-actions-bar { display: flex; gap: 7px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-left: auto; }
.bk-operations { position: relative; }
.bk-operations > summary { list-style: none; }
.bk-operations > summary::-webkit-details-marker { display: none; }
.bk-operations > summary::after { content: '⌄'; font-size: 16px; margin-left: 3px; }
.bk-operations[open] > summary::after { content: '⌃'; }
.bk-operations-menu {
  position: absolute; z-index: 32; right: 0; top: calc(100% + 7px);
  width: min(320px, 80vw);
  padding: 10px; display: grid; gap: 6px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(9,32,54,.19);
}
.bk-operations-menu .btn { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; }

.bk-first-action {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  padding: 20px 24px; margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-left: 5px solid var(--brand);
  border-radius: 13px; background: var(--surface);
}
.bk-first-action-urgent { border-left-color: var(--red); }
.bk-first-action-attention { border-left-color: var(--orange); }
.bk-first-action-normal { border-left-color: var(--brand); }
.bk-first-action-neutral { border-left-color: var(--faint); }
.bk-first-body { min-width: 0; flex: 1 1 310px; }
.bk-first-body .bk-caption { color: var(--muted); }
.bk-first-action h2 {
  font-family: var(--display); font-size: clamp(19px, 2.2vw, 25px);
  margin: 6px 0; color: var(--ink); line-height: 1.25;
}
.bk-first-body p { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 75ch; }
.bk-first-cta { flex: none; justify-content: center; min-height: 42px; padding: 10px 17px; font-size: 13px; }
.bk-first-clear { color: var(--muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }

.bk-financial-glance {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 12px;
}
.bk-glance {
  display: flex; flex-direction: column; min-width: 0; gap: 4px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.bk-glance:last-child { border-right: 0; }
.bk-glance span { color: var(--muted); font-size: 12px; font-weight: 650; }
.bk-glance strong {
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2;
  font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums;
}
.bk-glance small { color: var(--faint); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.bk-glance-due { background: color-mix(in srgb, var(--accent-soft) 30%, var(--surface)); }
.bk-glance-due strong { color: var(--ink); }

.bk-jump-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 9px 0 13px;
}
.bk-jump-links > span { color: var(--muted); font-size: 12px; }
.bk-jump-links button {
  appearance: none; border: 0; background: transparent; padding: 7px 9px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--brand);
  border-radius: 7px; cursor: pointer;
}
.bk-jump-links button:hover { background: var(--brand-soft); }
.bk-jump-links button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.bk-more-followups {
  margin-bottom: 20px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); overflow: hidden;
}
.bk-more-followups > summary {
  cursor: pointer; padding: 12px 17px; color: var(--ink);
  font-weight: 700; font-size: 13px; list-style: none;
}
.bk-more-followups > summary::-webkit-details-marker { display: none; }
.bk-more-followups > summary span { float: right; color: var(--brand); font-weight: 650; }
.bk-more-followups[open] > summary { border-bottom: 1px solid var(--line); }
.bk-more-list { padding: 8px 14px; }
.bk-more-task {
  padding: 12px 2px; display: flex; gap: 14px; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
}
.bk-more-task:last-child { border-bottom: none; }
.bk-more-task > div { min-width: 0; }
.bk-more-task strong { font-size: 13px; color: var(--ink); }
.bk-more-task p { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bk-more-task .btn { font-size: 12px; flex: none; white-space: normal; }
#booking-travelers, #booking-payments, #booking-finances, #booking-cancellations, #booking-timeline { scroll-margin-top: 92px; }

@media (max-width: 900px) {
  .bk-overview-top { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .bk-overview-trip { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .bk-overview { border-radius: 13px; }
  .bk-overview-top { padding: 18px 16px; }
  .bk-overview-bottom { padding: 12px 16px; align-items: stretch; }
  .bk-contact { flex-basis: 100%; }
  .bk-file-origin { flex-basis: 100%; }
  .bk-actions-bar { width: 100%; margin: 0; justify-content: flex-start; }
  .bk-operations-menu { left: auto; right: 0; width: min(320px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
  .bk-first-action { padding: 15px 16px; gap: 11px; }
  .bk-first-cta { width: 100%; }
  .bk-financial-glance { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bk-glance { padding: 13px 12px; }
  .bk-glance:nth-child(2) { border-right: 0; }
  .bk-glance-due { grid-column: 1/-1; border-right: 0; border-top: 1px solid var(--line); }
  .bk-glance strong { font-size: 22px; }
  .bk-jump-links { gap: 3px 5px; }
  .bk-more-task { flex-wrap: wrap; }
}


/* ══ Organisation de la fiche : navigation claire, aucun tableau inutile à l'ouverture ══ */
.bk-dossier-workspace { margin-top: 10px; min-width: 0; }
.bk-dossier-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 7px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 17px;
  box-shadow: 0 3px 14px rgba(10,43,70,.035);
}
.bk-dossier-tab {
  appearance: none; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--muted); padding: 12px 10px;
  text-align: left; font: inherit; cursor: pointer; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  transition: background .15s, border-color .15s, color .15s;
}
.bk-dossier-tab strong { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: inherit; overflow-wrap: anywhere; }
.bk-dossier-tab small { font-size: 11px; color: var(--faint); line-height: 1.3; }
.bk-dossier-tab:hover { background: var(--surface-2); }
.bk-dossier-tab[aria-selected="true"] {
  background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 20%, var(--line));
  color: var(--brand);
}
.bk-dossier-tab[aria-selected="true"] small { color: var(--brand); opacity: .75; }
.bk-dossier-panel { min-width: 0; }
.bk-pane-intro { margin: 4px 0 15px; }
.bk-pane-intro h2 { font: 700 19px/1.35 var(--display); color: var(--ink); }
.bk-pane-intro p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.bk-overview-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: start; }
.bk-overview-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 18px; min-width: 0; }
.bk-overview-card h3 { font-size: 15px; font-weight: 750; color: var(--ink); margin-bottom: 12px; }
.bk-overview-travelers { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.bk-overview-travelers li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bk-overview-travelers li:last-child { border-bottom: none; padding-bottom: 0; }
.bk-overview-travelers strong { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.bk-overview-travelers span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.bk-overview-extra, .bk-overview-empty { color: var(--muted); font-size: 12.5px; }
.bk-overview-facts { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 9px 15px; margin: 0; }
.bk-overview-facts dt { color: var(--muted); font-size: 12.5px; }
.bk-overview-facts dd { margin: 0; font-size: 12.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.bk-overview-note { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 10px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.bk-overview-link {
  appearance: none; border: 0; background: transparent; color: var(--brand);
  font: inherit; font-size: 12.5px; font-weight: 750;
  padding: 9px 0 0; margin-top: 10px; cursor: pointer; text-align: left;
}
.bk-overview-link::after { content: " ›"; font-weight: 800; }
.bk-overview-link:hover { text-decoration: underline; }
.bk-dossier-group { min-width: 0; margin-bottom: 20px; }
.bk-dossier-group-title { font: 750 16px/1.3 var(--display); color: var(--ink); margin: 0 0 10px; }
.bk-dossier-group-cards { display: grid; gap: 13px; min-width: 0; }
.bk-dossier-panel .bk-dossier-group-cards > .card,
.bk-dossier-panel .bk-dossier-group-cards > .mt { margin-top: 0; }
.bk-dossier-panel .bk-dossier-group-cards .card { min-width: 0; }
.bk-dossier-panel .bk-dossier-group-cards .table-wrap { max-width: 100%; overflow-x: auto; }
.bk-dossier-panel #bk-rooms { min-width: 0; }
.bk-dossier-panel #booking-finances { width: 100%; }
@media (max-width: 900px) {
  .bk-dossier-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bk-overview-cards { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .bk-dossier-tabs { padding: 5px; gap: 4px; border-radius: 11px; margin-bottom: 15px; }
  .bk-dossier-tab { padding: 11px 8px; }
  .bk-dossier-tab strong { font-size: 12.5px; }
  .bk-dossier-tab small { font-size: 10.5px; }
  .bk-overview-card { padding: 14px; }
  .bk-overview-facts { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .bk-overview-facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-dossier-tab { transition: none; }
}


/* Clients à suivre : listes noires et avances conservées, lisibles sans ouvrir une fiche. */
.ca-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 0 15px; }
.ca-overview > div { border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:13px 16px;display:grid;gap:4px; }
.ca-overview strong { font-size:25px;color:var(--ink);font-variant-numeric:tabular-nums; }
.ca-overview span { font-size:12px;color:var(--muted); }
.ca-filters { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px; }
.ca-filters a { border:1px solid var(--line);border-radius:9px;padding:9px 12px;color:var(--muted);font-size:13px;font-weight:700;background:var(--surface);text-decoration:none; }
.ca-filters a.on { border-color:var(--brand);background:var(--brand-soft);color:var(--brand); }
.ca-search { margin-bottom:14px; }
.ca-list { display:grid; }
.ca-client { display:grid;grid-template-columns:minmax(160px,1fr) minmax(250px,1.55fr) auto;gap:14px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line); }
.ca-client:last-child { border-bottom:0; }
.ca-client-name { display:grid;gap:4px;min-width:0; }
.ca-client-name strong { font-size:14px;color:var(--ink);overflow-wrap:anywhere; }
.ca-client-name > span { color:var(--muted);font-size:12px; }
.ca-client-status { display:flex;flex-wrap:wrap;gap:10px; }
.ca-flag { display:grid;gap:5px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;min-width:0; }
.ca-flag b { font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink); }
.ca-flag small { font-size:11.5px;color:var(--muted);overflow-wrap:anywhere; }
.ca-blacklist { border-color:#e8b8b2;background:var(--red-soft); }
.ca-credit { border-color:color-mix(in srgb,var(--green) 25%,var(--line));background:var(--green-soft); }
.ca-pagination { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:15px 0;font-size:12px;color:var(--muted); }
.ca-footnote { margin-top:12px;line-height:1.5; }

.bk-retained-advance,.client-held-credit {
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;
 border-radius:12px;border:1px solid color-mix(in srgb,var(--brand) 28%,var(--line));background:var(--brand-soft);
 padding:16px 18px;margin-bottom:15px;
}
.bk-retained-advance > div,.client-held-credit > div { min-width:0;flex:1 1 280px;display:grid;gap:5px; }
.bk-retained-label,.client-held-credit > div > span { font-size:10.5px;font-weight:800;letter-spacing:.09em;color:var(--brand); }
.bk-retained-advance strong,.client-held-credit strong { font-size:23px;font-variant-numeric:tabular-nums;color:var(--ink); }
.bk-retained-advance p,.client-held-credit p { font-size:12.5px;color:var(--muted);line-height:1.5; }
.bk-retained-lines { display:flex;gap:5px 12px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:4px; }
.client-held-credit small {font-size:11.5px;color:var(--muted);}

.booking-credit-offer { padding:0 16px 12px; }
.booking-credit-offer[hidden] { display:none; }
.booking-credit-info { display:grid;gap:11px;padding:13px 16px;border-radius:10px;border:1px solid color-mix(in srgb,var(--green) 30%,var(--line));background:var(--green-soft); }
.booking-credit-info > div:first-child { display:grid;gap:5px; }
.booking-credit-info strong { font-size:14px;color:var(--ink);font-variant-numeric:tabular-nums; }
.booking-credit-info p,.booking-credit-info small { font-size:12px;color:var(--muted);line-height:1.45; }
.booking-credit-check { font-weight:650;color:var(--ink);font-size:13px; }
.booking-credit-choice { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.booking-credit-choice[hidden] { display:none; }
.bk-recap-credit { background:var(--green-soft);border-radius:6px;padding:8px;margin:4px -8px; }
@media (max-width:850px) {
  .ca-client { grid-template-columns:minmax(0,1fr);gap:9px; }
  .ca-client > a { width:max-content; }
}
@media (max-width:580px) {
  .ca-overview { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }
  .ca-overview > div { padding:10px; }
  .ca-overview strong { font-size:20px; }
  .ca-client { padding:13px; }
  .booking-credit-choice { grid-template-columns:minmax(0,1fr); }
  .bk-retained-advance strong,.client-held-credit strong { font-size:21px; }
}

/* Répertoire clients : une seule entrée latérale, deux espaces internes. */
.clients-main-tabs { margin: 1px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.clients-main-tabs a { min-width: 134px; text-align: center; }
.clients-subhead { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 12px; }
@media (max-width: 560px) {
  .clients-main-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .clients-main-tabs a { min-width: 0; text-align: center; }
  .clients-subhead { font-size: 16px; }
}


/* Réservation : correction de sélection d'un client existant.
   Bouton visible pour le premier voyageur comme pour les suivants. */
.pax .pax-clear-linked {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--brand);
  background: var(--surface);
  min-height: 34px;
  padding: 6px 11px;
  white-space: normal;
  text-align: center;
}
.pax .pax-clear-linked:hover { border-color: var(--brand); background: var(--brand-soft); }
.pax .pax-clear-linked[hidden] { display: none !important; }
@media (max-width: 760px) {
  .pax .tc-head { flex-wrap: wrap; }
  .pax .pax-clear-linked { order: 4; width: 100%; min-height: 40px; }
}

/* Sélection d'un voyageur : homonymes distincts, indices d'identité lisibles. */
.pax .ac-list { max-height: min(62vh, 480px); overflow-y: auto; overscroll-behavior: contain; }
.ac-homonym-warning { padding: 11px 12px; margin: 3px 3px 6px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 9px; font-size: 12px; line-height: 1.45; color: var(--ink); font-weight: 650; }
.ac-identity-option { align-items: flex-start; border-bottom: 1px solid var(--line); gap: 8px; min-height: 58px; }
.ac-identity-option:last-of-type { border-bottom: none; }
.ac-identity-option .ac-main { gap: 4px; }
.ac-identity-option .ac-main b { font-size: 13.5px; }
.ac-identity-details { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.ac-identity-details > span { overflow-wrap: anywhere; }
.ac-identity-option .ac-meta { display: grid; gap: 4px; justify-items: end; text-align: right; white-space: normal; }
.ac-homonym-more { padding: 10px 12px; font-size: 12px; line-height: 1.4; color: var(--muted); background: var(--surface-2); }
@media (max-width: 760px) {
  .pax .ac-list { max-height: min(55vh, 440px); }
  .ac-identity-option { flex-wrap: wrap; }
  .ac-identity-option .ac-main { flex: 1 1 calc(100% - 50px); }
  .ac-identity-option .ac-meta { margin-left: 34px; display: flex; flex-wrap: wrap; text-align: left; }
}


/* ═══ Nouvelle réservation · parcours guidé ═══ */
.bk-form-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 7px; margin-bottom: 12px; border: 1px solid var(--line);
  border-radius: 15px; background: var(--surface); box-shadow: 0 3px 14px rgba(15,44,72,.045);
}
.bk-form-step {
  appearance: none; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px; display: flex; align-items: center; gap: 11px;
  font: inherit; color: var(--ink); background: var(--surface-2); cursor: pointer;
  text-align: left; min-width: 0; transition: border-color .16s, background .16s;
}
.bk-form-step:hover, .bk-form-step:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.bk-form-step-num {
  display: grid; place-items: center; width: 32px; height: 32px;
  flex: 0 0 32px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 800;
}
.bk-form-step.is-complete .bk-form-step-num { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.bk-form-step-text { display: grid; gap: 3px; min-width: 0; }
.bk-form-step-text strong { font-size: 13.5px; font-weight: 750; line-height: 1.2; }
.bk-form-step-text small { font-size: 11.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.bk-form-readiness {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  margin: 0 0 16px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.bk-form-readiness .bk-readiness-icon {
  display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px;
  border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800;
}
.bk-form-readiness.is-ready { color: var(--green); border-color: color-mix(in srgb, var(--green) 20%, var(--line)); }
.bk-form-readiness.is-ready .bk-readiness-icon { color: var(--green); background: var(--green-soft); }
.bk-form-section { scroll-margin-top: 84px; }
.bk-form-section-head { display: grid; gap: 5px; margin-bottom: 4px; }
.bk-form-section-index { font-size: 10px; font-weight: 850; letter-spacing: .12em; color: var(--brand); }
.bk-form-section-head h2 { color: var(--ink); font-size: 20px; font-weight: 750; line-height: 1.3; margin: 0; }
.bk-form-section-head p { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0; }
.bk-traveler-list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 2px;
}
#bk-traveler-count { font-size: 13px; font-weight: 750; color: var(--ink); }
#newbk-paiement .pay-step { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; }
#newbk-paiement .pay-step > summary { align-items: center; }
#newbk-paiement .pay-step-title { color: var(--ink); }
#newbk-paiement .pay-step[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
#newbk-paiement .pay-step[open] > summary { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pax .pax-compact-toggle {
  appearance: none; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 8px; color: var(--brand);
  padding: 6px 10px; font-size: 12px; font-weight: 750; min-height: 33px; white-space: nowrap;
}
.pax .pax-compact-toggle:hover { background: var(--brand-soft); border-color: var(--brand); }
.pax .pax-compact-toggle[hidden] { display: none !important; }
.pax-compact-summary { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.pax.is-compact { border-color: var(--line-strong); }
.pax.is-compact .tc-head { background: var(--surface); border-bottom: 0; border-radius: 16px; }
.pax.is-compact > .tc-grid,
.pax.is-compact > .pax-trip,
.pax.is-compact > .booking-credit-offer,
.pax.is-compact > .child-box,
.pax.is-compact > details.more { display: none !important; }
.bk-recap-contact {
  display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2);
}
.bk-recap-contact > span { font-size: 10px; letter-spacing: .085em; font-weight: 800; color: var(--muted); }
.bk-recap-contact strong { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.bk-recap-contact small { font-size: 12px; color: var(--muted); }
.bk-recap-balance { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 800; }
.bk-recap-balance b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--ink); }
.bk-recap-explain { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 0; }
@media (max-width: 1024px) {
  .bk-form-steps { gap: 6px; }
  .bk-form-step { gap: 8px; padding: 10px 8px; }
  .bk-form-step-num { width: 28px; height: 28px; flex-basis: 28px; }
}
@media (max-width: 640px) {
  .bk-form-steps { gap: 4px; padding: 5px; }
  .bk-form-step { flex-direction: column; align-items: flex-start; gap: 5px; padding: 9px 7px; }
  .bk-form-step-text strong { font-size: 12px; }
  .bk-form-step-text small { font-size: 10.5px; }
  .bk-form-section-head h2 { font-size: 18px; }
  .bk-form-section-head p { font-size: 12px; }
  .bk-form-readiness { font-size: 12px; }
  .pax .pax-compact-toggle { order: 4; min-height: 38px; }
  .pax.is-compact .tc-head { padding: 12px; }
  .pax.is-compact .pax-id { flex-basis: 58%; }
  .pax.is-compact .pax-clear-linked { order: 6; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-form-step { transition: none; }
}


/* Ordre de travail : formulaire prioritaire à gauche, contrôle financier à droite.
   Les enfants restent dans le même DOM : aucun changement des identifiants/événements. */
@media (min-width: 981px) {
  #booking-form.booking-layout { grid-template-columns: minmax(0,1fr) 314px; }
  #booking-form > .booking-main { grid-column: 1; grid-row: 1; }
  #booking-form > .booking-recap { grid-column: 2; grid-row: 1; }
  #booking-form .booking-recap { top: 76px; }
}
@media (max-width: 980px) {
  #booking-form.booking-layout { grid-template-columns: minmax(0,1fr); }
  #booking-form > .booking-main, #booking-form > .booking-recap, #booking-form > .mobile-bar {
    grid-column: 1; grid-row: auto;
  }
  #booking-form > .booking-main { order: 1; }
  #booking-form > .booking-recap { order: 2; }
  #booking-form > .mobile-bar { order: 3; }
}

/* Portails · espace de travail ciblé par métier. La première action mène au dossier utile. */
.portal-workspace {
  margin: 0 0 19px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); overflow: hidden;
  box-shadow: 0 3px 14px rgba(15,44,72,.045);
}
.portal-workspace-heading {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; flex-wrap: wrap; padding: 16px 19px 13px;
  border-bottom: 1px solid var(--line);
}
.portal-workspace-role {
  display: inline-block; margin-bottom: 4px; font-size: 10.5px;
  letter-spacing: .095em; font-weight: 800; color: var(--brand);
}
.portal-workspace-heading h2 { font-size: 19px; line-height: 1.2; margin: 0 0 4px; color: var(--ink); }
.portal-workspace-heading p, .portal-workspace-helper { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.portal-workspace-helper { text-align: right; }
.portal-workspace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.portal-workspace-action {
  min-width: 0; display: grid; grid-template-columns: 29px minmax(0,1fr);
  grid-template-rows: 1fr auto; column-gap: 9px; row-gap: 11px;
  padding: 16px 18px; color: var(--ink); text-decoration: none;
  border-right: 1px solid var(--line); transition: background .15s;
}
.portal-workspace-action:last-child { border-right: 0; }
.portal-workspace-action:hover, .portal-workspace-action:focus-visible { background: var(--brand-soft); text-decoration: none; }
.portal-workspace-action:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.portal-workspace-action.is-pending { background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface)); }
.portal-workspace-action.is-pending:hover { background: var(--accent-soft); }
.portal-workspace-number {
  display: grid; place-items: center; width: 29px; height: 29px;
  border-radius: 9px; border: 1px solid var(--line-strong);
  font-size: 11.5px; font-weight: 800; color: var(--muted);
}
.portal-workspace-action.is-pending .portal-workspace-number { border-color: var(--accent); color: var(--orange); }
.portal-workspace-action-text { display: grid; gap: 5px; align-content: start; }
.portal-workspace-action-text strong { font-size: 14px; font-weight: 760; line-height: 1.3; overflow-wrap: anywhere; }
.portal-workspace-action-text small { font-size: 12px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.portal-workspace-next {
  grid-column: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand);
}
.portal-workspace-next b { font-weight: 750; color: var(--orange); font-variant-numeric: tabular-nums; }
.portal-workspace-next > span { font-size: 20px; font-weight: 400; }
@media (max-width: 1060px) {
  .portal-workspace-action { padding: 13px 11px; }
  .portal-workspace-grid { gap: 0; }
}
@media (max-width: 750px) {
  .portal-workspace-heading { padding: 14px; }
  .portal-workspace-heading h2 { font-size: 18px; }
  .portal-workspace-helper { display: none; }
  .portal-workspace-grid { grid-template-columns: 1fr; }
  .portal-workspace-action {
    grid-template-columns: 27px minmax(0,1fr) auto;
    grid-template-rows: auto; align-items: center;
    border-right: 0; border-bottom: 1px solid var(--line);
    gap: 10px; padding: 12px 14px;
  }
  .portal-workspace-action:last-child { border-bottom: 0; }
  .portal-workspace-number { width: 27px; height: 27px; }
  .portal-workspace-next { grid-column: 3; align-self: center; gap: 4px; font-size: 11px; white-space: nowrap; }
  .portal-workspace-action-text strong { font-size: 13px; }
  .portal-workspace-action-text small { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .portal-workspace-action { transition: none; } }

/* ======================================================================
   Réservation mobile — correctif dédié au formulaire, 2026-11-04.
   Aucun changement d'identifiant, de données ou de logique de réservation.
   Les champs restent accessibles; seule leur mise en page change.
   ====================================================================== */
@media (max-width: 760px) {
  #booking-form,
  #booking-form .booking-main,
  #booking-form .booking-recap,
  #booking-form .bk-form-section,
  #booking-form .traveler-card,
  #booking-form .pax,
  #booking-form .tc-grid,
  #booking-form .tc-grid > *,
  #booking-form .field,
  #booking-form .ac-host {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #booking-form .booking-main,
  #booking-form .bk-form-section,
  #booking-form .pax,
  #booking-form .traveler-card { width: 100%; }

  #booking-form .pax .tc-head {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px;
  }
  #booking-form .pax .pax-id { flex: 1 1 110px; min-width: 0; }
  #booking-form .pax .tc-total {
    flex: 0 0 auto;
    margin-left: auto;
    max-width: 100%;
    font-size: 15px;
  }
  #booking-form .pax .tc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
    gap: 11px;
    width: 100%;
  }
  #booking-form .pax .tc-grid > * {
    grid-column: 1 / -1;
    width: 100%;
  }
  #booking-form .pax .tc-grid input,
  #booking-form .pax .tc-grid select,
  #booking-form .pax .tc-grid textarea,
  #booking-form .pax .inp,
  #booking-form .pax .inp input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #booking-form .pax .ac-list,
  #booking-form .pax .tc-grid > .ac-host:nth-child(even) .ac-list,
  #booking-form .pax .tc-grid > .ac-host:nth-child(2) .ac-list,
  #booking-form .pax .tc-grid > .ac-host:nth-child(5) .ac-list {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #booking-form .pax .pax-trip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 10px 12px 4px;
    gap: 10px;
    min-width: 0;
  }
  #booking-form .pax .pax-inline,
  #booking-form .pax .pax-inline select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #booking-form .pax .pax-inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  #booking-form .pax .pax-gender { display: flex; width: 100%; min-width: 0; }
  #booking-form .pax .pax-gender > * { min-width: 0; flex: 1 1 0; }
  #booking-form .pax .child-box,
  #booking-form .pax details.more { margin-left: 12px; margin-right: 12px; }
  #booking-form .pax details.more,
  #booking-form .pax details.more * { max-width: 100%; box-sizing: border-box; }
  #booking-form .pax .supp-row { grid-template-columns: minmax(0, 1fr); }
  #booking-form .pax .supp-row > * { min-width: 0; max-width: 100%; }
  #booking-form .mobile-bar { min-width: 0; max-width: 100%; }
  #booking-form .mobile-bar > * { min-width: 0; }
  #booking-form .mobile-bar .btn { flex: 0 0 auto; }
}
@media (max-width: 380px) {
  #booking-form .pax .tc-head { padding: 10px; }
  #booking-form .pax .tc-total { font-size: 14px; }
  #booking-form .mobile-bar { gap: 6px; padding-left: 10px; padding-right: 10px; }
}

/* Réservations : filtres de dates d'émission et pages au-delà de 200 dossiers. */
.booking-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 10px 8px; }
.booking-pagination span { color: var(--muted); font-size: 12px; font-weight: 650; }
.booking-ux-filters [name="created_from"], .booking-ux-filters [name="created_to"] { min-width: 0; width: 100%; }
@media (max-width: 760px) { .booking-pagination { gap: 7px; } .booking-pagination .btn { font-size: 12px; } }


/* Plan physique de l'autocar : lecture rapide, accès tactile et adaptation mobile. */
.bus-panel,.mission-sheet { display:grid; gap:14px; min-width:0; }
.bus-summary,.bus-legend { color:var(--muted,#67788b);font-size:12px; }
.bus-summary span { padding:5px 9px;background:#f2f7fc;border-radius:8px; }
.bus-assignment { display:grid;gap:7px;padding:12px 14px;border:1px solid #d9e6f4;border-radius:12px;background:#f8fbff; }
.bus-assignment .field { max-width:520px; }
.bus-cabin-wrap { overflow-x:auto;overscroll-behavior-inline:contain;padding:5px 3px 10px; }
.bus-cabin { width:max-content;min-width:min(100%,500px);max-width:100%;border:2px solid #d1dfed;border-radius:30px 30px 16px 16px;padding:14px 10px 18px;display:grid;gap:7px;margin:0 auto;background:linear-gradient(180deg,#f6faff,#fff); }
.bus-front { background:#e8f2ff;color:#1b578f;text-align:center;border-radius:16px;padding:10px;font-size:11px;font-weight:750; }
.bus-row {display:grid;grid-template-columns:22px minmax(80px,1fr) 25px minmax(80px,1fr) 42px;align-items:center;gap:6px; }
.bus-row-label,.bus-zone {font-size:10px;color:#8194a9; }
.bus-zone {text-align:right; }
.bus-side { display:flex;justify-content:center;gap:5px; }
.bus-aisle {height:100%;border-inline:1px dashed #d0dae7; }
.bus-seat {width:68px;min-height:54px;padding:5px 3px;border:1px solid #b3d6d1;border-radius:10px 10px 6px 6px;background:#e8f9f4;color:#155e4c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer; }
.bus-seat strong {font-size:14px;line-height:1.1;}
.bus-seat span {font-size:9px;overflow-wrap:anywhere;line-height:1.2;text-align:center;max-height:32px;overflow:hidden;}
.bus-seat.occupied {background:#e7f0fd;border-color:#89b8ea;color:#185a9b;}
.bus-seat.staff {background:#f5ecdd;border-color:#d6b984;color:#795a25;}
.bus-seat:disabled {cursor:default;opacity:1;}
.bus-seat:not(:disabled):hover,.bus-seat:not(:disabled):focus-visible {outline:2px solid #116bb9;outline-offset:2px;}
.bus-legend {display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;}
.bus-layout-editor {border-top:1px solid #e6edf5;padding-top:15px;display:grid;gap:12px;}
.bus-layout-line {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:end;}
.bus-layout-line label {font-size:11px;display:grid;gap:4px;color:#62778e;}
.bus-layout-line input {min-width:0;padding:9px;border-radius:7px;border:1px solid #bdcddb;max-width:100%;}
.bus-layout-editor #bus-layout-rows {display:grid;gap:8px;max-width:800px;}
.mission-stamp {display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px 12px;border-radius:9px;background:#fff3e5;color:#8b5714;font-weight:700;font-size:12px;}
.mission-stamp.delivered {background:#e7f6ee;color:#176749;}
.mission-stamp.outdated {background:#ffe5e5;color:#a42f26;}
.mission-overview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.mission-overview>div {display:grid;gap:5px;align-content:start;padding:13px;border:1px solid #e3edf6;border-radius:12px;background:#f7fafd;min-width:0;}
.mission-overview small {font-size:11px;color:#637990;}
.mission-overview strong {font-size:13px;color:#193a59;overflow-wrap:anywhere;}
.mission-overview span {font-size:11px;color:#627994;}
.mission-section {padding-top:13px;border-top:1px solid #e7eff6;display:grid;gap:8px;}
.mission-section h3 {font-size:15px;margin-bottom:2px;color:#1e496f;}
.mission-section p {white-space:pre-wrap;font-size:12px;line-height:1.6;margin:0;}
.mission-point {display:grid;gap:4px;border-left:3px solid #78b4e6;padding:9px 12px;background:#f5f9fd;border-radius:5px;}
.mission-point b {font-size:12px;}
.mission-point small,.mission-point span,.mission-point a,.mission-point div {font-size:11px;}
.mission-travelers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.mission-traveler {padding:10px 12px;background:#fafcff;border:1px solid #e3edf5;border-radius:9px;display:grid;gap:4px;min-width:0;}
.mission-traveler b {font-size:12px;overflow-wrap:anywhere;}
.mission-traveler span,.mission-traveler small {font-size:11px;color:#65798e;}
.mission-amount {font-size:24px;font-weight:800;color:#155b95;}
.mission-amount small {display:block;color:#6a7b8f;font-size:11px;font-weight:400;}
.mission-foot {font-size:11px;color:#667e93;line-height:1.5;}
@media(max-width:950px){.mission-overview {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){
  .bus-panel,.mission-sheet{gap:12px;}
  .bus-cabin{padding:10px 6px;}
  .bus-row{grid-template-columns:17px minmax(78px,1fr) 15px minmax(78px,1fr) 31px;gap:3px;}
  .bus-seat{width:53px;min-height:54px;padding:4px 2px;}
  .bus-seat span{font-size:8px;}
  .bus-zone,.bus-row-label{font-size:9px;}
  .bus-layout-line{grid-template-columns:1fr 1fr;}
  .bus-layout-line .btn{grid-column:span 2;justify-self:start;}
  .mission-travelers {grid-template-columns:1fr;}
  .mission-overview {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  .mission-overview>div {padding:10px;}
}
@media print {
  .bus-print-table{border-collapse:collapse;width:100%;margin:12px auto;}
  .bus-print-table td,.bus-print-table th {border:1px solid #b8c5d2;text-align:center;padding:5px;font-size:10px;}
  .bus-print-table td small{display:block;line-height:1.3;font-size:8px;}
  .bus-print-table .staff-seat {background:#f3e7cb;}
  .bus-print-table .seat-occupied {background:#daeaf7;}
  .bus-print-table .seat-free {background:#e5f5ec;}
  .bus-print-table .aisle{background:#fff;border:none;color:#c8cdd3;}
}

/* ── Informations de départ : villes, horaires définitifs, contrôles et message aux voyageurs ── */
.di { display: flex; flex-direction: column; gap: 14px; }
.di-card h3 { margin: 0 0 10px; }
.di-card .row-between h3 { margin: 0; }
.di-card > .row-between { margin-bottom: 10px; }
.di-head h2 { margin: 0 0 2px; }
.di-steps { list-style: none; display: flex; gap: 6px; margin: 12px 0 10px; padding: 0; counter-reset: di; }
.di-steps li { flex: 1; counter-increment: di; font-size: 12.5px; font-weight: 600; color: var(--faint); border-top: 3px solid var(--line); padding-top: 6px; min-width: 0; }
.di-steps li::before { content: counter(di) ". "; }
.di-steps li.done { color: var(--muted); border-top-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.di-steps li.on { color: var(--brand); border-top-color: var(--brand); }
.di-ok { color: var(--green); font-weight: 600; margin: 0; }
.di-point { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.di-point.is-closed { background: var(--surface-2); }
.di-point-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.di-order { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; flex: none; }
.di-city { font-size: 15.5px; }
.di-city-input { width: auto; flex: 1 1 160px; max-width: 260px; }
.di-point-tools { margin-left: auto; display: inline-flex; gap: 2px; }
.di-point-tools .icon-btn:disabled { opacity: .3; cursor: default; }
.di-point-grid { display: grid; grid-template-columns: 130px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.di-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.di-open input { width: auto; }
.di-add { display: flex; flex-wrap: wrap; gap: 6px; }
.di-static { min-height: 38px; display: flex; align-items: center; font-weight: 600; }
.di .form-grid .full { grid-column: 1 / -1; }
.di-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.di-save { justify-content: flex-end; }
.di-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.di-checks .block { color: var(--red); font-weight: 600; }
.di-checks .warn { color: var(--muted); padding-left: 1.5em; }
.di-request { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.di-requests { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); }
.di-text { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.di-text[readonly] { background: var(--surface-2); }
.di-changes { margin: 6px 0; padding-left: 18px; }
.di-why { color: var(--red); }
.di-history summary { cursor: pointer; font-weight: 650; }
.di-history ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.clip-helper { position: fixed; top: 0; left: -9999px; opacity: 0; }
/* Réservation : « Autre ville (à préciser) » */
.pax-city { flex-wrap: wrap; }
.other-city { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.other-city[hidden] { display: none; }
.other-city input { width: auto; flex: 1 1 170px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-weight: 400; }
.other-city small { flex-basis: 100%; color: var(--orange); font-weight: 500; }
.edit-city .other-city { margin-top: 6px; }
/* Accueil : « Départs à préparer » (discret : une ligne, dépliable) */
.dtp-slot:empty { display: none; }
.dtp { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 14px; }
.dtp summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; cursor: pointer; list-style: none; font-size: 14px; }
.dtp summary::-webkit-details-marker { display: none; }
.dtp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.dtp-dot.urgent { background: var(--orange); }
.dtp-count { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12.5px; border-radius: 99px; padding: 1px 9px; }
.dtp ul { list-style: none; margin: 0; padding: 0 14px 8px; }
.dtp li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.dtp-missing { flex-basis: 100%; }
@media (max-width: 760px) {
  .di-point-grid { grid-template-columns: 1fr 1fr; }
  .di-point-grid .field:nth-child(n+2) { grid-column: 1 / -1; }
  .di-point-grid .field:first-child { grid-column: 1 / -1; max-width: 160px; }
  .di-steps li { font-size: 11.5px; }
  .di-actions .btn { flex: 1 1 46%; }
  .di .form-grid { grid-template-columns: 1fr; }
}
