/* ==========================================================================
   Destilog — logiciel de gestion des agences de voyage
   Charte « Nuit d'escale » : bleu nuit, ambre, azur ; Sora + IBM Plex Sans + IBM Plex Mono.
   L'agence reste à l'honneur (son logo, son nom) ; Destilog signe discrètement.
   ========================================================================== */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #16213e;
  --ink-2: #22305a;
  --text: #141b2d;
  --muted: #5a6278;
  --line: #e1e5ef;
  --line-strong: #cbd2e1;
  --accent: #f2a541;        /* ambre Destilog */
  --accent-strong: #e08f1f;
  --accent-ink: #9a5800;    /* ambre foncé, lisible sur fond clair */
  --accent-soft: #fdf0db;
  --teal: #3553e0;          /* azur Destilog, assombri pour le texte */
  --teal-bright: #4a6cf7;
  --teal-soft: #e6ebfe;
  --ok: #2f6b45;
  --ok-soft: #dcecdf;
  --warn: #9a6a12;
  --warn-soft: #f5e8c8;
  --danger: #b3261e;
  --danger-soft: #f7dcd9;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 33, 62, .06), 0 8px 24px -12px rgba(22, 33, 62, .2);
  --shadow-lg: 0 24px 60px -20px rgba(22, 33, 62, .45);

  --font-title: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem;
  --fs-xs: .75rem; --fs-sm: .85rem; --fs-base: .95rem; --fs-lg: 1.1rem;
  --fs-h3: 1.2rem; --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2rem); --fs-h1: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar: 272px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.right { text-align: right; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #e6eaf5; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: var(--space-3) var(--space-2); gap: var(--space-2); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .75rem; padding: 0 .5rem var(--space-2); border-bottom: 1px dashed rgba(255,255,255,.14); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark svg { width: 22px; height: 22px; stroke: #fff; }
.brand-name { font-family: var(--font-title); font-size: 1.08rem; line-height: 1.15; color: #fff; }
.brand-sub { font-size: var(--fs-xs); color: rgba(230, 234, 245, .62); letter-spacing: .06em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: #8892ad; padding: var(--space-2) .75rem .35rem; }
.nav a {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--radius-sm);
  color: #cfd6e8; text-decoration: none; font-weight: 500; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav a.active { background: rgba(242, 165, 65, .16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-foot { margin-top: auto; padding: var(--space-2) .5rem 0; border-top: 1px dashed rgba(255,255,255,.14); font-size: var(--fs-sm); }
.user-chip { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-2);
  padding: .8rem var(--space-4); background: rgba(250, 248, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar .crumb { font-size: var(--fs-sm); color: var(--muted); }
.topbar .spacer { flex: 1; }
.topbar .menu-toggle { display: none; }
.content:focus { outline: none; }
.content { padding: var(--space-4); width: 100%; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; gap: var(--space-2); justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-3); }
.page-head p { color: var(--muted); margin-top: .35rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: 0 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #e7b9b4; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { min-height: 32px; padding: 0 .65rem; font-size: var(--fs-xs); }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }
.sidebar .btn-ghost { color: #cfd6e8; }
.sidebar .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------------------------------------------------------------- cartes & KPI */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: var(--space-3); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 1.05rem; }
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-dash { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); margin-bottom: var(--space-3); }
.kpi { padding: var(--space-2) var(--space-3); position: relative; overflow: hidden; }
.kpi .eyebrow { display: flex; align-items: center; gap: .4rem; }
.kpi .val { font-family: var(--font-title); font-size: clamp(1.1rem, .55rem + 1.05vw, 1.7rem); overflow: hidden; text-overflow: ellipsis; margin-top: .35rem; letter-spacing: -.02em; }
.kpi .sub { font-size: var(--fs-xs); color: var(--muted); margin-top: .15rem; }
.kpi.hero { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.hero .eyebrow, .kpi.hero .sub { color: #b9b3a6; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* signature : bord perforé façon billet */
.ticket { position: relative; }
.ticket::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 92px; width: 0; border-left: 2px dashed var(--line-strong);
}
.ticket-no {
  font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: .08em; padding: .2rem .55rem; border-radius: 6px;
  background: var(--surface-2); color: var(--ink); white-space: nowrap; border: 1px dashed var(--line-strong);
}

/* ---------------------------------------------------------------- tableaux */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600;
  padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; white-space: nowrap;
}
.table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .15s var(--ease); }
.table tbody tr.click { cursor: pointer; }
.table tbody tr:hover { background: #faf6ef; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); border-bottom: 0; background: var(--surface-2); }
.table .cell-main { font-weight: 600; }
.table .cell-sub { font-size: var(--fs-xs); color: var(--muted); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table th.right, .table td.right { text-align: right; }
.empty { padding: var(--space-5) var(--space-3); text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; stroke: var(--line-strong); margin-bottom: .5rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-teal { background: var(--teal-soft); color: var(--teal); }
.b-muted { background: var(--surface-2); color: var(--muted); }

/* ---------------------------------------------------------------- filtres / formulaires */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 2.4rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 40px; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea.input { min-height: 80px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 168, 158, .2); }
.input[readonly] { background: var(--surface-2); }
.input.money { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar .input, .toolbar select { width: auto; min-width: 140px; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field > span { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field > span .req { color: var(--accent-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-9 { grid-column: span 9; } .c-12 { grid-column: span 12; }
fieldset.section { border: 0; padding: 0; margin: 0 0 var(--space-3); }
fieldset.section > legend {
  font-family: var(--font-title); font-size: 1.05rem; font-weight: 650; padding: 0; margin-bottom: var(--space-2);
  display: flex; align-items: center; gap: .6rem; width: 100%;
}
fieldset.section > legend::after { content: ""; flex: 1; border-top: 1px dashed var(--line-strong); }
fieldset.section > legend .step { font-family: var(--font-mono); font-size: .75rem; color: var(--accent-ink); }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; font-size: var(--fs-sm); background: #fff; user-select: none; transition: all .15s var(--ease);
}
.check input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.check:focus-within { outline: 2px solid var(--teal); outline-offset: 1px; }
.lettres { font-style: italic; font-size: var(--fs-sm); color: var(--teal); min-height: 1.2em; }

.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.totals > div { padding: .8rem 1rem; background: var(--surface-2); }
.totals > div + div { border-left: 1px dashed var(--line-strong); }
.totals .v { font-family: var(--font-title); font-size: 1.3rem; margin-top: .15rem; }
.totals .reste { background: var(--accent-soft); }
.totals .reste .v { color: var(--accent-ink); }
.totals .regle { background: var(--ok-soft); }
.totals .regle .v { color: var(--ok); }

.vers-table td { padding: .4rem .4rem; }
.vers-table .input { min-height: 36px; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button {
  border: 0; background: none; padding: .7rem 1rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------------------------------------------------------------- dialogues */
dialog.modal {
  border: 0; padding: 0; border-radius: 16px; width: min(960px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.modal.sm { width: min(480px, calc(100vw - 2rem)); }
dialog.modal.lg { width: min(1180px, calc(100vw - 2rem)); }
dialog.modal::backdrop { background: rgba(20, 24, 34, .55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .25s var(--ease); display: flex; flex-direction: column; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.35rem; flex: 1; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.modal-body { padding: var(--space-3); overflow-y: auto; }
.modal-foot { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; }
.modal-foot .left { margin-right: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

#toasts, .dlg-toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1000; }
.toast {
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: var(--fs-sm);
  display: flex; align-items: center; gap: .6rem; max-width: 380px; animation: pop .25s var(--ease);
}
.toast.err { background: var(--danger); }
.toast.info { background: var(--ink, #16213e); max-width: 460px; }
.toast.info svg { color: var(--accent, #f2a541); }
.toast.ok svg { color: #8fd0a3; }

/* ---------------------------------------------------------------- graphiques */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 500 11px var(--font-body); fill: var(--muted); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.legend { display: flex; gap: var(--space-2); font-size: var(--fs-xs); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-list { display: flex; flex-direction: column; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; font-size: var(--fs-sm); }
.bar-row .track { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--teal-bright); border-radius: 99px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; align-items: center; gap: .75rem; padding: .7rem var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .grow { flex: 1; min-width: 0; }
.list-plain .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- connexion */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
}
.login-art {
  background: var(--ink); color: #f7f4ee; padding: var(--space-5); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.login-art h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); max-width: 12ch; }
.login-art h1 em { color: var(--accent); font-style: normal; }
.login-art .route { position: absolute; inset: auto -40px 60px auto; width: 70%; opacity: .5; }
.boarding {
  border: 1px dashed rgba(255,255,255,.3); border-radius: 14px; padding: var(--space-2) var(--space-3); display: flex; gap: var(--space-3);
  max-width: 460px; font-family: var(--font-mono); font-size: var(--fs-sm); position: relative; z-index: 1;
}
.boarding div span { display: block; font-size: .65rem; letter-spacing: .14em; color: rgba(230, 234, 245, .6); }
.login-form { display: grid; place-items: center; padding: var(--space-4); }
.login-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: var(--space-2); }
.login-form .err { color: var(--danger); font-size: var(--fs-sm); min-height: 1.2em; }

/* ---------------------------------------------------------------- divers */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); display: flex; gap: .6rem; align-items: flex-start; }
.alert-warn { background: var(--warn-soft); color: #6c4a0c; }
.alert-info { background: var(--teal-soft); color: var(--teal); }
.logo-prev { width: 96px; height: 96px; border-radius: 12px; border: 1px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; background: #fff; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .3rem .3rem .7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); }
.chip button { border: 0; background: none; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.chip button:hover { background: var(--danger-soft); color: var(--danger); }
.chip button svg { width: 14px; height: 14px; }
.autocomplete { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); z-index: 30; max-height: 260px; overflow-y: auto; list-style: none; margin: 0; padding: .25rem;
}
.ac-list li { padding: .5rem .65rem; border-radius: 6px; cursor: pointer; font-size: var(--fs-sm); }
.ac-list li small { color: var(--muted); display: block; }
.ac-list li.on, .ac-list li:hover { background: var(--teal-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi.hero { grid-column: span 2; }
}
@media (max-width: 1080px) {
  .grid-dash, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .c-2, .c-3 { grid-column: span 6; }
  .c-4, .c-5 { grid-column: span 6; }
  .c-7, .c-8, .c-9 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; width: min(280px, 85vw); transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar .menu-toggle { display: inline-flex; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi.hero { grid-column: span 2; }
  .content { padding: var(--space-2); }
  .topbar { padding: .6rem var(--space-2); }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: var(--space-3); min-height: 280px; }
}
@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpis .kpi.hero { grid-column: span 2; }
  /* Téléphone : les gros montants doivent tenir en entier dans la carte */
  .kpi { padding: .75rem .8rem; }
  .kpi .val { font-size: 1.02rem; letter-spacing: -.03em; }
  .kpi.hero .val { font-size: 1.5rem; }
  .c-2, .c-3, .c-4, .c-5, .c-6 { grid-column: span 12; }
  .totals { grid-template-columns: 1fr; }
  .totals > div + div { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .modal-body, .card-pad { padding: var(--space-2); }
}

/* variantes de rangées d'indicateurs */
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.kpis-4 .kpi.hero, .kpis.kpis-2 .kpi.hero { grid-column: auto; }
@media (max-width: 1280px) { .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis.kpis-4, .kpis.kpis-2 { grid-template-columns: 1fr; } }
.type-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: .75rem; align-items: center; }
.type-row .check { justify-content: flex-start; }
@media (max-width: 600px) { .type-row { grid-template-columns: 1fr; } }

/* Recherche globale (barre du haut) */
.gsearch { position: relative; flex: 0 1 420px; min-width: 0; margin-left: var(--space-2); }
.gsearch .search { max-width: none; }
.gsearch .input { min-height: 36px; }
.gs-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); z-index: 40; max-height: min(70vh, 520px); overflow-y: auto; padding: .35rem; min-width: 300px;
}
.gs-group { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .55rem .6rem .25rem; }
.gs-item { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; border: 0; background: none; padding: .45rem .6rem; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.gs-item .grow { min-width: 0; flex: 1; }
.gs-item b { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item.on, .gs-item:hover { background: var(--teal-soft); }
.gs-empty { padding: .8rem; color: var(--muted); font-size: var(--fs-sm); }
.login.login-single { grid-template-columns: 1fr; }
.vers-table tr.locked .input { background: var(--paper, #f6f3ee); color: var(--muted); }
@media (max-width: 860px) { .topbar .crumb { display: none; } .gsearch { flex: 1 1 auto; margin-left: 0; } }

/* Logo de l'agence : affiché tel quel, sans fond */
.brand-mark:has(img) { background: transparent; border-radius: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.login-art .brand-mark { width: 72px; height: 72px; }
.login-art .brand-name { font-size: 1.45rem; }
.sidebar .brand-mark { width: 46px; height: 46px; }

/* ---------- Écran d'ouverture animé Destilog ---------- */
.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #22305a 0%, #16213e 55%, #0b1226 100%);
  color: #fff; cursor: pointer; transition: opacity .6s ease, transform .7s cubic-bezier(.4, 0, .2, 1);
}
.intro.intro-out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-glow {
  position: absolute; width: 520px; height: 520px; max-width: 140vw; border-radius: 50%; top: 50%; left: 50%;
  translate: -50% -66%; background: radial-gradient(circle, rgba(242, 165, 65, .2), transparent 65%);
  opacity: 0; animation: intro-fade 1s ease .9s forwards, intro-pulse 3.2s ease-in-out 1.9s infinite;
}
.intro-stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.intro-sym { width: 132px; height: 132px; overflow: visible; margin-bottom: 1.4rem; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .35)); }
/* 1. Le D se trace puis se remplit */
.i-d { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: intro-draw .9s cubic-bezier(.65, 0, .35, 1) .15s forwards, intro-fill .45s ease .85s forwards; }
/* 2. La coche valide */
.i-check { fill: none; stroke: #16213e; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: intro-draw .45s cubic-bezier(.5, 0, .2, 1) 1.15s forwards; }
/* 3. L'avion décolle depuis la fin de la coche, en laissant une traînée */
.i-trail { fill: none; stroke: #f2a541; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .9;
  animation: intro-draw .35s ease-out 1.5s forwards, intro-trail .6s ease 1.95s forwards; }
.i-plane { fill: #f2a541; opacity: 0; translate: -7px 7px; scale: .4; transform-origin: 42.5px 23.5px;
  animation: intro-takeoff .75s cubic-bezier(.2, .9, .25, 1.35) 1.45s forwards; }
/* 4. Le nom : « Desti » glisse, « log » s'écrit */
.intro-word { font-family: var(--font-title, 'Sora', sans-serif); font-weight: 700; font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.2rem); letter-spacing: -.035em; line-height: 1; display: flex; align-items: baseline; }
.w-desti { opacity: 0; translate: 0 14px; animation: intro-up .7s cubic-bezier(.2, .8, .2, 1) 1.9s forwards; }
.w-log { font-family: var(--font-mono, 'IBM Plex Mono', monospace); font-weight: 500; color: #f2a541; letter-spacing: 0;
  display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 3px solid #f2a541; padding-right: 2px;
  animation: intro-type .5s steps(3, end) 2.35s forwards, intro-caret .8s step-end 2.35s 2, intro-caret-off .1s linear 3.95s forwards; }
.intro-tag { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: 1rem;
  opacity: 0; translate: 0 8px; animation: intro-up .6s ease 2.6s forwards; }
.intro-agence { font-size: 1rem; color: #fff; margin-top: .55rem; min-height: 1.3em; font-weight: 500;
  opacity: 0; translate: 0 8px; animation: intro-up .6s ease 2.8s forwards; }
.intro-bar { width: 200px; max-width: 64vw; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 1.8rem; overflow: hidden;
  opacity: 0; animation: intro-fade .4s ease .3s forwards; }
.intro-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4a6cf7, #f2a541);
  animation: intro-load 3.6s cubic-bezier(.45, 0, .2, 1) .3s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill-opacity: 1; } }
@keyframes intro-trail { to { opacity: 0; } }
@keyframes intro-takeoff { 0% { opacity: 0; translate: -7px 7px; scale: .4; } 35% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes intro-type { to { width: calc(3ch + 6px); } }
@keyframes intro-caret { 50% { border-color: transparent; } }
@keyframes intro-caret-off { to { border-color: transparent; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-up { to { opacity: 1; translate: 0 0; } }
@keyframes intro-load { to { width: 100%; } }
@keyframes intro-pulse { 50% { opacity: .55; scale: 1.08; } }
@media (prefers-reduced-motion: reduce) {
  .intro *, .intro *::before { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* Bulletin : versements du client */
.resa-vers { margin-top: var(--space-2, .75rem); padding-top: var(--space-2, .75rem); border-top: 1px dashed var(--line); }
.resa-vers-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: .4rem; }
.resa-vers-head .hint { font-size: .82rem; color: var(--muted); }

/* Paramètres : en-tête & pied de page */
.entete-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-3, 1.25rem); align-items: start; }
.entete-preview { position: sticky; top: 1rem; }
.apercu-wrap { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; overflow: hidden; }
.apercu-wrap .doc { zoom: .82; background: #fff; }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.mode-card { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.mode-card:hover { border-color: var(--line-strong); }
.mode-card.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.mode-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.img-drop { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.img-prev { flex: 1 1 260px; min-height: 64px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fff; display: grid; place-items: center; padding: .4rem; }
.img-prev img { max-width: 100%; max-height: 110px; object-fit: contain; }
@media (max-width: 1080px) {
  .entete-layout { grid-template-columns: 1fr; }
  .entete-preview { position: static; }
}
@media (max-width: 600px) { .mode-cards { grid-template-columns: 1fr; } }

/* WhatsApp */
.btn-wa { color: #128c4a; border-color: color-mix(in srgb, #25d366 45%, var(--line)); }
.btn-wa:hover { background: color-mix(in srgb, #25d366 12%, transparent); }
.btn-wa[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* Pastille de compteur dans le menu */
.nav a .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger, #c62828); color: #fff; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
/* Indicateurs de synthèse (groupes, fournisseurs) */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-bottom: var(--space-3, 1rem); }
.kpi-row > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; background: var(--surface-2); }
.kpi-row .v { font-family: var(--font-title); font-size: 1.15rem; margin-top: .1rem; }
.kpi-row .neg .v { color: var(--danger); }
.kpi-row .pos .v { color: var(--ok); }
/* Lignes de devis / facture */
.lignes-table td { padding: .35rem .35rem; vertical-align: top; }
.lignes-table .input { min-height: 36px; }
/* Alertes */
.alert-sec { margin-bottom: var(--space-3, 1rem); }
.alert-sec .card-head h3 { display: flex; align-items: center; gap: .5rem; }
.alert-sec .count { font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.row-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }

/* pièces jointes */
.pieces { margin-top: var(--space-3, 1rem); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; background: var(--surface-2); }
.pieces-title { font-size: .95rem; display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.pieces ul { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .25rem; }
.pieces li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pieces li .link { margin-right: auto; }
.pieces-add { cursor: pointer; margin-right: .5rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; text-align: left; }
.link:hover { text-decoration: underline; }

/* caisses & fidélité */
.check-list { display: grid; gap: .2rem; margin-top: .3rem; }
.fidelite { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: var(--space-2); background: var(--accent-soft); }
.fid-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fid-pts { font-family: var(--font-title); font-size: 1.5rem; color: var(--accent-ink); }
.fid-mvts { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .2rem; font-size: .88rem; }

/* ---------------------------------------------------------------- employés & accès */
.postes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.poste-opt { display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.poste-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.poste-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.poste-opt input { margin-top: .2rem; accent-color: var(--teal); }
.poste-opt small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: .1rem; line-height: 1.35; }
.perm-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: var(--fs-xs); color: var(--muted); margin-bottom: .6rem; }
.perm-legend b { color: var(--ink); }
.perm-list { display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .7rem; flex-wrap: wrap; }
.perm-row + .perm-row { border-top: 1px solid var(--line); }
.perm-mod { font-size: var(--fs-sm); font-weight: 600; flex: 1 1 200px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: block; padding: .32rem .7rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg-opt + .seg-opt span { border-left: 1px solid var(--line); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: -2px; }
.seg-opt.lv0 input:checked + span { background: #e7e3dc; color: var(--ink); }
.seg-opt.lv1 input:checked + span { background: var(--teal-soft); color: var(--teal); }
.seg-opt.lv2 input:checked + span { background: var(--accent-soft); color: var(--accent-ink); }
.seg-opt.lv3 input:checked + span { background: var(--teal); color: #fff; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 50vh; overflow-y: auto; }
.activity li { display: grid; grid-template-columns: 115px minmax(0, 170px) 1fr; gap: .6rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.ro-note { margin: 0 0 var(--space-2); }
/* consultation seule : pas de bouton de création ni d'enregistrement (le serveur refuse de toute façon) */
body.ro .page-head .actions [id^="new"], body.ro #vir,
body.ro dialog [data-act="save"], body.ro dialog [data-act="save-print"], body.ro dialog [data-act="delete"], body.ro dialog [data-act="annuler"],
body.ro dialog [data-act^="add"], body.ro dialog [data-act="payer"], body.ro dialog [data-act="dup"],
body.ro dialog [data-act="recu"], body.ro dialog [data-act="resa"], body.ro dialog [data-act="billet"], body.ro dialog [data-act="visa"], body.ro dialog [data-act="facture"],
body.ro dialog #add-vers, body.ro dialog #solder, body.ro dialog [data-encaisser], body.ro dialog [data-act="facturer"], body.ro dialog [data-act="devis"], body.ro dialog [data-act="dech"], body.ro dialog [data-act="achat"], body.ro dialog [data-act="attente"] { display: none !important; }

/* ---------------------------------------------------------------- téléphone */
.nav-overlay { display: none; }
@media (max-width: 860px) {
  .nav-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(20, 24, 34, .45); }
  .sidebar.open ~ .nav-overlay { display: block; }
  .sidebar { height: 100dvh; overflow-y: auto; }
}
@media (max-width: 600px) {
  .input, select.input, textarea.input { font-size: 16px; } /* évite le zoom automatique sur iPhone */
  .topbar { gap: .5rem; }
  .topbar label[for="exercice-select"] { display: none; }
  #exercice-select { min-width: 0; padding-inline: .4rem; }
  .page-head { align-items: stretch; }
  .page-head h1 { font-size: 1.55rem; }
  .page-head > div:first-child p:not(.eyebrow) { font-size: var(--fs-sm); }
  .page-head .actions { width: 100%; display: flex; flex-wrap: wrap; gap: .5rem; }
  .page-head .actions .btn { flex: 1 1 auto; justify-content: center; }
  .toolbar { padding: var(--space-2); }
  .toolbar .input, .toolbar select, .toolbar .search { flex: 1 1 140px; min-width: 0; max-width: none; width: 100%; }
  .table th, .table td { padding: .55rem .6rem; }
  .table .cell-sub { max-width: 220px; }
  dialog.modal, dialog.modal.sm, dialog.modal.lg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .modal-head { padding: .7rem var(--space-2); }
  .modal-head h2 { font-size: 1.1rem; }
  .modal-foot { border-radius: 0; padding: .6rem var(--space-2) calc(.6rem + env(safe-area-inset-bottom)); }
  .modal-foot .left { width: 100%; margin: 0 0 .25rem; }
  .modal-foot > .btn, .modal-foot > a.btn { flex: 1 1 auto; justify-content: center; }
  .btn-icon { width: 40px; min-height: 40px; }
  .perm-row { padding: .55rem .6rem; }
  .seg { width: 100%; }
  .seg-opt { flex: 1; text-align: center; }
  .seg-opt span { padding: .45rem .2rem; }
  .activity li { grid-template-columns: 1fr; gap: .1rem; }
}
/* une carte dans une grille ne doit jamais élargir la page : son tableau défile à l'intérieur */
.grid > *, .kpis > *, .form-grid > * { min-width: 0; }

/* ---------------------------------------------------------------- signature Destilog (discrète : l'agence reste à l'honneur) */
.dl-sign { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.dl-sign svg { width: 16px; height: 16px; flex: none; }
.dl-word { font: 700 .82rem/1 var(--font-title); letter-spacing: -.02em; color: var(--ink); }
.dl-word span { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); }
.sidebar .dl-sign { color: #8892ad; margin-top: .7rem; }
.sidebar .dl-word, .login-art .dl-word { color: #fff; }
.sidebar .dl-word span, .login-art .dl-word span { color: var(--accent); }
.login-art .dl-sign { color: rgba(230, 234, 245, .7); position: relative; }
.login-form .dl-sign { justify-content: center; margin-top: .5rem; }
h1, h2 { letter-spacing: -.025em; }

/* Cartes de caisses : autant de colonnes que la largeur permet, sans carte qui force 2 colonnes */
.kpis.kpis-auto { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.kpis.kpis-auto .kpi.hero { grid-column: auto; }
@media (max-width: 600px) {
  .kpis.kpis-auto { grid-template-columns: 1fr; }
  /* Rangées de montants (rentabilité) : le montant passe à la ligne plutôt que d'être coupé */
  .kpi-row .v { font-size: .9rem; white-space: normal; overflow: visible; text-overflow: clip; }
}

/* Barres de défilement masquées partout (le défilement reste possible à la molette, au doigt et au clavier) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Connexion rapide par profil (site de test en mode démo) */
.demo-login { border-top: 1px solid var(--line, #e7e1d6); padding-top: .9rem; }
.demo-login-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.demo-login-btns .btn { flex: 1 1 140px; justify-content: center; }

/* Onglets de rubrique (menu simplifié) */
.subnav { display: flex; gap: .25rem; padding: .5rem var(--space-4) 0; border-bottom: 1px solid var(--line); background: var(--surface, #fff); overflow-x: auto; scrollbar-width: none; }
.subnav[hidden] { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.subnav a svg { width: 16px; height: 16px; }
.subnav a:hover { color: var(--ink); }
.subnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.subnav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Volet « Plus de détails » des formulaires */
details.more { margin-top: var(--space-2); border-top: 1px dashed var(--line); padding-top: .6rem; }
details.more > summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; line-height: 1; }
details.more[open] > summary::before { content: '–'; }
details.more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
details.more > .form-grid { margin-top: .6rem; }


/* Bourse aux billets : barre de recherche */
.bourse-search { display: flex; gap: .5rem; flex-wrap: wrap; align-items: stretch; }
.bourse-search .search .input { min-height: 46px; font-size: 1rem; }


/* ================================================================ Menu de gauche complet */
.sidebar { --sb-line: rgba(255,255,255,.09); --sb-text: #c3cbe0; --sb-mute: #7f89a6; padding: var(--space-3) .75rem var(--space-2); gap: .9rem;
  background: var(--ink); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sidebar .brand { padding: 0 .4rem .9rem; border-bottom: 1px solid var(--sb-line); }
.nav-cta { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease); }
.nav-cta:hover { background: #f5b55c; transform: translateY(-1px); }
.nav-cta:active { transform: none; }
.nav-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-cta .i { width: 18px; height: 18px; }
.nav-cta kbd { margin-left: auto; font: 600 .7rem var(--font-mono); padding: .1rem .4rem; border-radius: 5px; background: rgba(22,33,62,.14); }
.nav { gap: .15rem; }
.nav-group { display: flex; flex-direction: column; gap: 1px; padding: .15rem 0 .35rem; }
.nav-group + .nav-group { border-top: 1px solid var(--sb-line); padding-top: .45rem; }
.sidebar .nav-label { padding: .35rem .7rem .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; color: var(--sb-mute); transition: color .2s var(--ease); }
.nav-group.active .nav-label { color: var(--accent); }
.nav a { position: relative; gap: .7rem; padding: .48rem .7rem; font-size: .89rem; color: var(--sb-text); border-radius: 8px; }
.nav a .i { width: 17px; height: 17px; flex: none; opacity: .75; transition: opacity .2s var(--ease); }
.nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a:hover .i, .nav a.active .i { opacity: 1; }
.nav a.active { background: rgba(255,255,255,.07); color: #fff; font-weight: 600; box-shadow: none; }
.nav a.active::before { content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a.active .i { color: var(--accent); }
.nav-tag { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: .12rem .4rem; border-radius: 4px; background: rgba(74,108,247,.25); color: #b9c6ff; }
.nav-tag-ia { background: var(--accent); color: var(--ink); }
.nav-ia .i { color: var(--accent); opacity: 1; }
.sidebar-foot { border-top: 1px solid var(--sb-line); padding: .8rem .3rem 0; }
.sidebar .user-chip { padding: .5rem; border-radius: 10px; background: rgba(255,255,255,.05); }
@media (min-width: 1101px) { .subnav { display: none; } }

/* ================================================================ Tableau de bord */
.dash-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.dash-hello h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.03em; margin-top: .2rem; }
.dash-hello .eyebrow::first-letter { text-transform: uppercase; }
.dash-hello p:last-child { color: var(--muted); margin-top: .3rem; }
.dash-hello p b { color: var(--text); }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: .6rem; }
.qa { display: flex; align-items: center; gap: .65rem; padding: .6rem .9rem .6rem .6rem; min-height: 52px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s var(--ease); }
.qa:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.qa:active { transform: none; }
.qa:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa b { display: block; font-size: .88rem; line-height: 1.2; white-space: nowrap; }
.qa small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.qa-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); flex: none; }
.qa-ic .i { width: 18px; height: 18px; }
.qa-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.qa-main small { color: #aab3c9; }
.qa-main .qa-ic { background: var(--accent); color: var(--ink); }

.kpi { min-height: 128px; display: flex; flex-direction: column; }
.kpi .val { font-size: clamp(1.25rem, .8rem + .9vw, 1.75rem); white-space: nowrap; }
.kpi:has(.spark) { padding-bottom: 2.6rem; }
.kpi .eyebrow { letter-spacing: .08em; }
.kpi .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38px; pointer-events: none; }
.kpi.hero { background: var(--ink); }
.kpi-ring .ring-wrap { position: absolute; right: var(--space-3); bottom: var(--space-2); width: 46px; height: 46px; display: grid; place-items: center; }
.kpi-ring .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.kpi-ring .ring-wrap b { font-size: .7rem; color: var(--teal); }
.chart text.cur { fill: var(--text); font-weight: 700; }
.card-head h3 .count { margin-left: .35rem; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); vertical-align: middle; }

.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: var(--space-3); align-items: start; }
.dash-layout:has(> .dash-side:empty), .dash-layout:has(> .dash-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
.dash-main { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.dash-main > .grid { gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.dash-side { position: sticky; top: var(--space-3); min-width: 0; }
.dash-side:empty, .dash-side[hidden] { display: none; }
@media (max-width: 1240px) { .dash-layout { grid-template-columns: minmax(0, 1fr); } .dash-side { position: static; order: -1; } .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quick-actions { grid-template-columns: 1fr 1fr; width: 100%; } .qa small { display: none; } }

/* ================================================================ Assistant IA (copilote) */
.ia-card { --ia-bg: #111a33; --ia-line: rgba(255,255,255,.1); position: relative; display: flex; flex-direction: column; color: #e8ecf7; border-radius: 14px; isolation: isolate;
  background: var(--ia-bg);
  box-shadow: 0 30px 60px -30px rgba(17,26,51,.7); height: min(720px, calc(100vh - 2 * var(--space-3))); min-height: 520px; overflow: hidden; }
.ia-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: rgba(255,255,255,.12);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ia-off { height: auto; min-height: 0; padding-bottom: var(--space-3); }
.ia-off .btn { margin: 0 var(--space-3); align-self: flex-start; }
.ia-head { display: flex; align-items: center; gap: .8rem; padding: var(--space-3) var(--space-3) var(--space-2); border-bottom: 1px solid var(--ia-line); }
.ia-head > div { flex: 1; min-width: 0; }
.ia-head h3 { margin: 0; color: #fff; font-size: 1.08rem; display: flex; align-items: center; gap: .55rem; }
.ia-head p { margin: .15rem 0 0; font-size: .8rem; color: #9aa5c3; }
.ia-logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink);
  background: var(--accent); }
.ia-logo .i { width: 22px; height: 22px; }
.ia-live { display: inline-flex; align-items: center; gap: .35rem; font: 600 .66rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #8fe0ad; }
.ia-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); animation: ia-live 2s infinite; }
@keyframes ia-live { 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }
.ia-new { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ia-line); background: rgba(255,255,255,.04); color: #cfd6e8; cursor: pointer; }
.ia-new:hover { background: rgba(255,255,255,.1); color: #fff; }
.ia-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ia-new[hidden] { display: none; }
.ia-new .i { width: 17px; height: 17px; }
.ia-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-3); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.ia-welcome[hidden] { display: none; }
.ia-hello { font-family: var(--font-title); font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; color: #fff; margin: 0 0 var(--space-2); }
.ia-hello span { color: #9aa5c3; }
.ia-chips { display: flex; flex-direction: column; gap: .45rem; }
.ia-chip { display: flex; align-items: center; gap: .7rem; width: 100%; font: inherit; font-size: .86rem; line-height: 1.3; padding: .65rem .8rem; border-radius: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--ia-line); background: rgba(255,255,255,.04); color: #dfe5f3; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.ia-chip:hover { background: rgba(255,255,255,.08); border-color: rgba(242,165,65,.55); transform: translateX(2px); }
.ia-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ia-chip .i { width: 16px; height: 16px; flex: none; color: var(--accent); }
.ia-log { display: flex; flex-direction: column; gap: .9rem; }
.ia-log:empty { display: none; }
.ia-msg { line-height: 1.55; font-size: .9rem; overflow-wrap: anywhere; animation: ia-in .3s var(--ease); }
@keyframes ia-in { from { opacity: 0; transform: translateY(6px); } }
.ia-moi { align-self: flex-end; max-width: 85%; padding: .6rem .9rem; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.ia-bot { display: flex; gap: .6rem; align-items: flex-start; }
.ia-av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(242,165,65,.16); color: var(--accent); margin-top: .1rem; }
.ia-av .i { width: 15px; height: 15px; }
.ia-txt { flex: 1; min-width: 0; color: #dfe5f3; }
.ia-txt p { margin: 0 0 .5rem; }
.ia-txt b { color: #fff; }
.ia-txt ul, .ia-txt ol { margin: 0 0 .6rem; padding-left: 1.15rem; }
.ia-txt li { margin: .2rem 0; }
.ia-txt li::marker { color: var(--accent); }
.ia-txt .ia-titre { font-weight: 700; color: #fff; margin-top: .4rem; }
.ia-txt code { font-family: var(--font-mono); font-size: .85em; }
.ia-txt blockquote { margin: .2rem 0 .7rem; padding: .7rem .9rem; border-left: 3px solid #25d366; border-radius: 4px 10px 10px 4px; background: rgba(37,211,102,.08); }
.ia-txt blockquote p { margin: 0 0 .25rem; }
.ia-actions { display: flex; }
.ia-actions button { font: 600 .75rem var(--font-body); color: #9aa5c3; background: none; border: 1px solid var(--ia-line); border-radius: 7px; padding: .25rem .6rem; cursor: pointer; }
.ia-actions button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.ia-attente { display: flex; align-items: center; gap: .3rem; color: #9aa5c3; padding-top: .3rem; }
.ia-attente span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ia-pulse 1s infinite ease-in-out; }
.ia-attente span:nth-child(2) { animation-delay: .15s; } .ia-attente span:nth-child(3) { animation-delay: .3s; margin-right: .35rem; }
@keyframes ia-pulse { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ia-form { display: flex; gap: .5rem; align-items: flex-end; margin: 0 var(--space-3); padding: .4rem .4rem .4rem .9rem; border-radius: 14px; border: 1px solid var(--ia-line); background: rgba(255,255,255,.06); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.ia-form:focus-within { border-color: rgba(242,165,65,.7); box-shadow: 0 0 0 4px rgba(242,165,65,.12); }
.ia-form textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: .92rem; line-height: 1.4; min-height: 40px; max-height: 140px; padding: .55rem 0; }
.ia-form textarea::placeholder { color: #7f89a6; }
.ia-send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 11px; background: var(--accent); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.ia-send:hover { background: #f5b55c; transform: translateY(-1px); }
.ia-send:active { transform: none; }
.ia-send:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ia-send:disabled { opacity: .5; cursor: wait; }
.ia-send .i { width: 18px; height: 18px; }
.ia-foot { margin: .6rem var(--space-3) var(--space-2); font-size: .7rem; color: #7f89a6; text-align: center; }
@media (max-width: 1240px) { .ia-card { height: 560px; } }
@media (prefers-reduced-motion: reduce) { .ia-attente span, .ia-live i, .ia-msg { animation: none; } .ia-chip:hover, .qa:hover, .nav-cta:hover { transform: none; } }

/* ================================================================ Espace billetterie */
.b-info { background: var(--teal-soft); color: var(--teal); }
.eb-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-4); align-items: end; padding: var(--space-4); border-radius: 20px; color: #e8ecf7; margin-bottom: var(--space-3);
  background: var(--ink); }
.eb-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); pointer-events: none; }
.eb-hero .eyebrow { color: #aab3c9; display: flex; align-items: center; gap: .45rem; }
.eb-hero .eyebrow .i { width: 15px; height: 15px; color: var(--accent); }
.eb-pill { font-size: .62rem; letter-spacing: .08em; padding: .12rem .5rem; border-radius: 4px; background: rgba(242,165,65,.2); color: var(--accent); }
.eb-hero h1 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); letter-spacing: -.035em; line-height: 1.08; margin: .5rem 0 .7rem; }
.eb-hero h1 span { color: #9aa5c2; }
.eb-hero-txt p:last-of-type { color: #b9c2d8; max-width: 56ch; }
.eb-hero-txt b { color: #fff; }
.eb-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: relative; z-index: 1; }
.eb-hero-stats div { padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.eb-hero-stats b { display: block; font-family: var(--font-title); font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.eb-hero-stats span { font-size: .75rem; color: #aab3c9; }

.eb-tabs { display: flex; gap: .35rem; padding: .35rem; margin-bottom: var(--space-3); border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; position: sticky; top: 76px; z-index: 5; }
.eb-tabs button { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .6rem .85rem; border: 0; border-radius: 10px; background: none; font: 600 .86rem var(--font-body); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.eb-tabs button .i { width: 16px; height: 16px; }
.eb-tabs button:hover { color: var(--text); background: var(--bg); }
.eb-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.eb-tabs button.active { background: var(--ink); color: #fff; }
.eb-tabs button.active .i { color: var(--accent); }
.eb-panel { display: flex; flex-direction: column; gap: var(--space-3); }
.eb-in { animation: eb-in .35s var(--ease); }
@keyframes eb-in { from { opacity: 0; transform: translateY(8px); } }
.eb-intro h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.eb-intro p { color: var(--muted); max-width: 75ch; margin-top: .3rem; }
.eb-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--space-3); }
.eb-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.card-head .count { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.eb-logo { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; font: 700 .72rem var(--font-title); color: #fff; background: #5a6278; }
.c-TK { background: #c8102e; } .c-AH { background: #d1262f; } .c-SV { background: #006c35; } .c-EK { background: #b8862b; } .c-MS { background: #0b3d91; } .c-TU { background: #e30613; } .c-QR { background: #5c0632; } .c-AF { background: #002157; }
.eb-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.eb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-bright), var(--accent)); transition: width .5s var(--ease); }

/* vue d'ensemble */
.eb-todo, .eb-vols { list-style: none; margin: 0; padding: 0; }
.eb-todo li, .eb-vols li { display: flex; align-items: center; gap: .8rem; padding: .8rem var(--space-3); border-bottom: 1px solid var(--line); }
.eb-todo li:last-child, .eb-vols li:last-child { border-bottom: 0; }
.eb-todo li > div, .eb-vols .grow { flex: 1; min-width: 0; }
.eb-todo b, .eb-vols b { display: block; font-size: .92rem; }
.eb-todo small, .eb-vols small { color: var(--muted); font-size: .8rem; }
.eb-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px var(--bg); }
.eb-dot.danger { background: var(--danger); } .eb-dot.warn { background: var(--accent); } .eb-dot.info { background: var(--teal-bright); } .eb-dot.ok { background: var(--ok); }
.eb-when { width: 58px; flex: none; text-align: center; }
.eb-when b { font-size: .8rem; } .eb-when span { font: 600 .95rem var(--font-mono); }
.eb-iata { padding: var(--space-3); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); }
.eb-iata .eyebrow { display: flex; align-items: center; gap: .4rem; color: var(--accent-ink); }
.eb-iata .eyebrow .i { width: 15px; height: 15px; }
.eb-iata h3 { font-size: 1.25rem; margin: .4rem 0 1rem; letter-spacing: -.02em; }
.eb-3 { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .8rem; }
.eb-3 li { display: grid; grid-template-columns: 34px 1fr; column-gap: .8rem; }
.eb-3 span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); font: 700 .9rem var(--font-title); }
.eb-3 small { color: var(--muted); }
.eb-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; }
.eb-stack i { display: block; height: 100%; }
.eb-legend { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.eb-legend li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; }
.eb-legend i { width: 10px; height: 10px; border-radius: 3px; }
.eb-legend b { margin-left: auto; }
.eb-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.eb-mini b { display: block; font-family: var(--font-title); font-size: 1.3rem; }
.eb-mini span { font-size: .74rem; color: var(--muted); }

/* scan */
.eb-drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: var(--space-4) var(--space-3); border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--surface); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.eb-drop:hover, .eb-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.eb-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.eb-drop-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--accent); margin-bottom: .3rem; }
.eb-drop-ic .i { width: 30px; height: 30px; }
.eb-drop b { font-size: 1.05rem; } .eb-drop small { color: var(--muted); }
.eb-or { text-align: center; color: var(--muted); margin: .8rem 0 0; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.eb-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-top: var(--space-3); }
.eb-feats div { display: grid; grid-template-columns: 22px 1fr; column-gap: .6rem; padding: 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.eb-feats .i { grid-row: span 2; width: 20px; height: 20px; color: var(--accent-ink); }
.eb-feats span { font-size: .8rem; color: var(--muted); }
.eb-scan-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-3); align-items: start; }
.eb-doc { position: relative; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.eb-doc.img img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: var(--bg); }
.eb-laser { position: absolute; left: 0; right: 0; height: 70px; top: -70px; background: linear-gradient(180deg, transparent, rgba(242,165,65,.35)); border-bottom: 2px solid var(--accent); box-shadow: 0 6px 18px rgba(242,165,65,.6); animation: eb-laser 1.3s linear infinite; }
@keyframes eb-laser { to { top: 100%; } }
.eb-eticket { padding: 1.4rem; font-size: .85rem; color: #1d2433; }
.eb-et-head { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding-bottom: 1rem; margin-bottom: .8rem; border-bottom: 2px solid #c8102e; }
.eb-et-head .eb-logo { grid-row: span 2; }
.eb-et-head small { color: #6b7280; }
.eb-et-row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dotted #d6dae3; }
.eb-et-row span { color: #6b7280; }
.eb-et-fl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; margin-top: .9rem; padding: .8rem; border-radius: 10px; background: #f5f6f9; }
.eb-et-fl b { font: 700 1.3rem var(--font-title); }
.eb-et-fl i { height: 2px; background: repeating-linear-gradient(90deg, #9aa1b2 0 6px, transparent 6px 10px); }
.eb-et-fl small { grid-column: 1 / -1; color: #6b7280; }
.eb-et-bar { display: flex; gap: 2px; height: 46px; margin-top: 1.2rem; }
.eb-et-bar i { background: #1d2433; }
.eb-steps { padding: var(--space-3); }
.eb-steps ol { list-style: none; padding: 0; margin: .8rem 0 1rem; display: grid; gap: .5rem; }
.eb-steps li { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; }
.eb-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.eb-steps li.run { color: var(--text); font-weight: 600; }
.eb-steps li.run::before { border-color: var(--accent); border-top-color: transparent; animation: eb-spin .7s linear infinite; }
.eb-steps li.done { color: var(--text); }
.eb-steps li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
@keyframes eb-spin { to { transform: rotate(360deg); } }
.eb-result { margin-top: 1.2rem; animation: eb-in .4s var(--ease); }
.eb-result-head { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.eb-result-head .i { width: 22px; height: 22px; flex: none; }
.eb-result-head b { display: block; color: var(--text); } .eb-result-head span { font-size: .82rem; }
.eb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; margin: 1rem 0; }
.eb-fields div { min-width: 0; }
.eb-fields dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .2rem; }
.eb-fields dd { margin: 0; position: relative; }
.eb-fields .input { padding-right: 3.4rem; font-size: .86rem; }
.eb-conf { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font: 700 .66rem var(--font-mono); padding: .1rem .35rem; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.eb-conf.mid { background: var(--warn-soft); color: var(--warn); }
.eb-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* recherche */
.eb-search { display: grid; grid-template-columns: 1.2fr auto 1.2fr 1fr 1fr 1fr auto; gap: .6rem; align-items: end; padding: var(--space-2) var(--space-3); }
.eb-search label span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .25rem; }
.eb-swap { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--teal); cursor: pointer; display: grid; place-items: center; }
.eb-swap .i { width: 16px; height: 16px; }
.eb-go { min-height: 44px; }
.eb-hint { display: flex; align-items: center; gap: .7rem; padding: 1.2rem; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--muted); }
.eb-hint .i { width: 22px; height: 22px; color: var(--teal); flex: none; }
.eb-loading { display: flex; align-items: center; gap: 1rem; padding: var(--space-3); }
.eb-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--teal-soft); border-top-color: var(--teal-bright); animation: eb-spin .8s linear infinite; flex: none; }
.eb-src-live { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .4rem; }
.eb-src-live span { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--ok); opacity: 0; animation: eb-show .3s var(--ease) forwards; }
.eb-src-live .i { width: 14px; height: 14px; }
@keyframes eb-show { to { opacity: 1; } }
.eb-res-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; color: var(--muted); font-size: .9rem; }
.eb-res-head > b { color: var(--text); }
.eb-sort, .eb-filters { display: flex; gap: .3rem; flex-wrap: wrap; margin-left: auto; }
.eb-filters { margin-left: 0; }
.eb-sort button, .eb-filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem .85rem; font: 600 .82rem var(--font-body); color: var(--muted); cursor: pointer; }
.eb-sort button.active, .eb-filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.eb-offres { display: grid; gap: .7rem; }
.eb-offre { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px 190px; gap: var(--space-3); align-items: center; padding: 1rem var(--space-3); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.eb-offre:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.eb-cie { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.eb-cie b { display: block; font-size: .9rem; } .eb-cie span { font-size: .78rem; color: var(--muted); }
.eb-horaire { display: flex; align-items: center; gap: .8rem; }
.eb-horaire > b { font: 600 1.2rem var(--font-mono); }
.eb-ligne { flex: 1; position: relative; text-align: center; }
.eb-ligne i { display: block; height: 2px; background: var(--line-strong); border-radius: 2px; position: relative; }
.eb-ligne i::after { content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); }
.eb-ligne small { display: block; margin-top: .35rem; font-size: .74rem; color: var(--muted); }
.eb-meta { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.eb-meta small { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.eb-meta .i { width: 13px; height: 13px; }
.eb-src { font: 700 .66rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; background: var(--teal-soft); color: var(--teal); }
.eb-src.s-Bourse { background: var(--accent-soft); color: var(--accent-ink); }
.eb-src.s-Compagnie { background: #e7e9f0; color: var(--ink); }
.eb-src.s-Lowcost { background: var(--ok-soft); color: var(--ok); }
.eb-prix { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.eb-prix b { font: 700 1.3rem var(--font-title); letter-spacing: -.02em; }
.eb-prix small { font-size: .74rem; color: var(--muted); }
.eb-prix .eb-gain { color: var(--ok); font-weight: 600; }
.eb-prix .btn { margin-top: .35rem; }
.eb-ribbon { position: absolute; top: -9px; left: var(--space-3); font: 700 .66rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--accent); color: var(--ink); }

/* demandes */
.eb-kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.eb-col { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.eb-col-head { display: flex; align-items: center; gap: .45rem; padding: .2rem .2rem .4rem; font-size: .88rem; }
.eb-col-head .i { width: 16px; height: 16px; color: var(--teal); }
.eb-col-head span { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 0 .45rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.eb-kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: .7rem .75rem; display: flex; flex-direction: column; gap: .1rem; box-shadow: 0 1px 2px rgba(22,33,62,.05); }
.eb-kcard > span { font-size: .84rem; } .eb-kcard small { font-size: .75rem; color: var(--muted); }
.eb-kcard div { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; margin-top: .45rem; padding-top: .45rem; border-top: 1px dashed var(--line); }
.eb-kcard div b { font-size: .84rem; } .eb-kcard em { font-style: normal; font-size: .72rem; color: var(--muted); text-align: right; }
.eb-kcard.urgent { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.eb-kcard.urgent em { color: var(--danger); font-weight: 600; }
.eb-flow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: 14px; background: var(--teal-soft); color: var(--ink); font-size: .9rem; }
.eb-flow > .i { width: 22px; height: 22px; color: var(--teal); flex: none; }
.eb-flow span { flex: 1; min-width: 220px; }

/* marketplace */
.eb-market { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-2); }
.eb-lot { padding: var(--space-3) var(--space-3) var(--space-2); display: flex; flex-direction: column; gap: .6rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.eb-lot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.eb-lot-top { display: flex; justify-content: space-between; align-items: center; }
.eb-tag { font: 700 .68rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.eb-lot h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.eb-places small { display: block; margin-top: .35rem; font-size: .76rem; color: var(--muted); }
.eb-places small b { color: var(--text); }
.eb-lot-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: .6rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.eb-lot-foot small { display: block; font-size: .72rem; color: var(--muted); }
.eb-lot-foot b { display: block; font: 700 1.25rem var(--font-title); letter-spacing: -.02em; }

/* après-vente */
.eb-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.eb-quick button { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; font: 600 .9rem var(--font-body); color: var(--text); cursor: pointer; text-align: left; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.eb-quick button:hover { border-color: var(--accent); transform: translateY(-2px); }
.eb-quick .i { width: 22px; height: 22px; color: var(--accent-ink); }

/* alertes */
.eb-feed { list-style: none; margin: 0; padding: .4rem 0; }
.eb-feed li { display: flex; gap: .9rem; padding: .9rem var(--space-3); border-bottom: 1px solid var(--line); }
.eb-feed li:last-child { border-bottom: 0; }
.eb-feed-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--teal-soft); color: var(--teal); }
.eb-feed .warn .eb-feed-ic { background: var(--warn-soft); color: var(--warn); }
.eb-feed .danger .eb-feed-ic { background: var(--danger-soft); color: var(--danger); }
.eb-feed .ok .eb-feed-ic { background: var(--ok-soft); color: var(--ok); }
.eb-feed-ic .i { width: 18px; height: 18px; }
.eb-feed p { margin: .15rem 0; font-size: .86rem; color: var(--muted); }
.eb-feed small { font-size: .74rem; color: var(--muted); }
.eb-switch { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; cursor: pointer; font-size: .9rem; }
.eb-switch input { position: absolute; opacity: 0; }
.eb-switch i { width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; flex: none; transition: background .2s var(--ease); }
.eb-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.eb-switch input:checked + i { background: var(--ok); }
.eb-switch input:checked + i::after { transform: translateX(16px); }
.eb-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* comptes */
.eb-comptes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); }
.eb-compte { padding: var(--space-3); display: flex; flex-direction: column; gap: .6rem; }
.eb-compte > div:first-child b { display: block; } .eb-compte > div:first-child small { font-size: .76rem; color: var(--muted); }
.eb-solde small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eb-solde b { font: 700 1.45rem var(--font-title); letter-spacing: -.02em; }
.eb-solde.bas b { color: var(--danger); }
.eb-compte > small { font-size: .76rem; }
.eb-compte-foot { display: flex; align-items: center; gap: .8rem; font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.eb-compte-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.eb-compte-foot .i { width: 13px; height: 13px; }
.eb-compte-foot .btn { margin-left: auto; }

/* outils */
.card-head h3 .i { width: 17px; height: 17px; vertical-align: -3px; margin-right: .3rem; color: var(--accent-ink); }
.eb-pnr { font-size: .78rem; line-height: 1.5; margin-top: .6rem; background: #0f1629; color: #9fe3b4; border-color: #0f1629; }
.eb-pnr-ok { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--ok-soft); animation: eb-in .35s var(--ease); }
.eb-pnr-ok ul { margin: .5rem 0 .8rem; padding-left: 1.1rem; font-size: .88rem; display: grid; gap: .25rem; }
.eb-pnr-ok .warn { color: var(--danger); list-style: none; margin-left: -1.1rem; display: flex; gap: .4rem; align-items: center; }
.eb-pnr-ok .warn .i { width: 15px; height: 15px; }
.eb-calc { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.eb-calc label span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }
.eb-calc-out { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
.eb-calc-out div { padding: .8rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.eb-calc-out span { display: block; font-size: .74rem; color: var(--muted); }
.eb-calc-out b { font: 700 1.2rem var(--font-title); }
.eb-calc-out b.ok { color: var(--ok); }
.eb-itin-doc { max-width: 620px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.eb-itin-head { padding: 1rem 1.2rem; background: var(--ink); color: #fff; }
.eb-itin-head b { display: block; font-family: var(--font-title); font-size: 1.1rem; color: var(--accent); }
.eb-itin-head span { font-size: .84rem; color: #cfd6e8; }
.eb-itin-fl { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); }
.eb-itin-fl b { display: block; font-size: .9rem; } .eb-itin-fl span { font-size: .82rem; color: var(--muted); }
.eb-itin-doc > p { padding: .8rem 1.2rem; margin: 0; }

@media (max-width: 1200px) {
  .eb-offre { grid-template-columns: 1fr 1fr; }
  .eb-search { grid-template-columns: 1fr auto 1fr; }
  .eb-search .eb-go { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .eb-hero, .eb-scan-grid, .eb-wide { grid-template-columns: 1fr; }
  .eb-hero { padding: var(--space-3); }
  .eb-kanban { grid-template-columns: repeat(5, 230px); }
}
@media (max-width: 640px) {
  .eb-offre { grid-template-columns: 1fr; gap: .8rem; }
  .eb-prix { align-items: flex-start; text-align: left; }
  .eb-search { grid-template-columns: 1fr; } .eb-swap { display: none; }
  .eb-fields, .eb-calc, .eb-calc-out { grid-template-columns: 1fr; }
  .eb-mini { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .eb-laser, .eb-spin, .eb-steps li.run::before { animation-duration: 3s; } .eb-in, .eb-result, .eb-src-live span { animation: none; opacity: 1; } .eb-lot:hover, .eb-offre:hover, .eb-quick button:hover { transform: none; } }

.eb-hero.compact { display: none; }
.eb-panel > .page-head:first-child { margin-top: 0; }

/* ================================================================ Bourse aux billets */
.eb-panel > .page-head h1 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.8rem); letter-spacing: -.02em; }
.bx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.bx-head h2 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.8rem); letter-spacing: -.02em; }
.bx-head p { color: var(--muted); margin-top: .25rem; max-width: 70ch; }
.bx-head-r { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.bx-me { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); padding: .45rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.bx-me i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.bx-me b { color: var(--text); }
.bx-tabs { display: flex; width: fit-content; gap: .25rem; padding: .3rem; margin-bottom: var(--space-3); border-radius: 12px; background: var(--bg); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bx-tabs button { display: inline-flex; align-items: center; gap: .4rem; flex: none; padding: .5rem .9rem; border: 0; border-radius: 9px; background: none; font: 600 .86rem var(--font-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.bx-tabs button .i { width: 15px; height: 15px; }
.bx-tabs button:hover { color: var(--text); }
.bx-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bx-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(22,33,62,.12); }
.bx-tabs button.active .i { color: var(--accent-ink); }

.bx-search { padding: var(--space-3); margin-bottom: var(--space-3); }
.bx-bar { display: flex; gap: .6rem; }
.bx-q { flex: 1; display: flex; align-items: center; gap: .7rem; padding: 0 1rem; min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.bx-q:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242,165,65,.15); }
.bx-q .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.bx-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--text); }
.bx-go { min-height: 54px; padding: 0 1.4rem; border-radius: 14px; }
.bx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .9rem; }
.bx-chip, .bx-adv-btn, .bx-sort button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .42rem .85rem; font: 600 .82rem var(--font-body); color: var(--muted); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.bx-chip:hover, .bx-adv-btn:hover, .bx-sort button:hover { border-color: var(--line-strong); color: var(--text); }
.bx-chip:focus-visible, .bx-adv-btn:focus-visible, .bx-sort button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bx-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.bx-sort button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-adv-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; }
.bx-adv-btn .i { width: 15px; height: 15px; }
.bx-adv-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-adv { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.bx-adv[hidden] { display: none; }

.bx-res-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; font-size: .9rem; }
.bx-res-head > b { font-size: 1rem; }
.bx-sort { display: flex; gap: .3rem; flex-wrap: wrap; margin-left: auto; }
.bx-list { display: grid; gap: .7rem; }
.bx-offre { position: relative; display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(220px, 1.5fr) minmax(170px, 1.1fr) 70px 170px; gap: var(--space-3); align-items: center; padding: 1.1rem var(--space-3); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.bx-offre:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.bx-cie, .bx-ag { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.bx-cie b, .bx-ag b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-cie small, .bx-ag small { display: block; font-size: .76rem; color: var(--muted); }
.bx-cie > div, .bx-ag > div { min-width: 0; }
.bx-route { display: flex; align-items: center; gap: .8rem; }
.bx-route > div { text-align: center; }
.bx-route > div b { display: block; font: 700 1.25rem var(--font-title); letter-spacing: .02em; }
.bx-route > div small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.bx-line { flex: 1; text-align: center; min-width: 50px; }
.bx-line i { display: block; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }
.bx-line i::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); }
.bx-line small { display: block; margin-top: .35rem; font-size: .72rem; color: var(--muted); }
.bx-av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font: 700 .74rem var(--font-title); }
.bx-pl { text-align: center; }
.bx-pl b { display: block; font: 700 1.15rem var(--font-title); }
.bx-pl small { font-size: .72rem; color: var(--muted); }
.bx-px { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; text-align: right; }
.bx-px b { font: 700 1.3rem var(--font-title); letter-spacing: -.02em; white-space: nowrap; }
.bx-px small { font-size: .72rem; color: var(--muted); }
.bx-px .btn { margin-top: .45rem; }
.bx-note { grid-column: 1 / -1; margin: -.3rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.bx-ribbon { position: absolute; top: -9px; left: var(--space-3); font: 700 .66rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--ok); color: #fff; }
#b-zone > .card > .table-wrap, #b-zone > .card > .empty { border-radius: inherit; }

@media (max-width: 1150px) {
  .bx-offre { grid-template-columns: 1fr 1fr; }
  .bx-route { grid-column: 1 / -1; order: -1; }
  .bx-pl { text-align: left; }
}
@media (max-width: 640px) {
  .bx-bar { flex-direction: column; }
  .bx-adv-btn { margin-left: 0; }
  .bx-offre { grid-template-columns: 1fr auto; gap: .8rem; }
  .bx-ag, .bx-cie { grid-column: 1 / -1; }
  .bx-px { align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .bx-offre:hover { transform: none; } }

/* ================================================================ Remplir avec l'IA (formulaires de billets) */
.iar { position: relative; margin-bottom: 1.1rem; padding: .9rem 1rem; border-radius: 14px; color: #e8ecf7; overflow: hidden;
  background: var(--ink);
  transition: box-shadow .2s var(--ease); }
.iar.over { box-shadow: 0 0 0 3px var(--accent); }
.iar-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.iar-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; color: var(--ink); background: var(--accent); }
.iar-ic .i { width: 21px; height: 21px; }
.iar-txt { flex: 1; min-width: 220px; }
.iar-txt b { display: flex; align-items: center; gap: .45rem; color: #fff; font-size: .95rem; }
.iar-txt em { font-style: normal; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 4px; background: rgba(242,165,65,.22); color: var(--accent); }
.iar-txt small { display: block; margin-top: .15rem; font-size: .8rem; color: #aab3c9; line-height: 1.4; }
.iar-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.iar-btns .btn:not(.btn-primary) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #e8ecf7; }
.iar-btns .btn:not(.btn-primary):hover { background: rgba(255,255,255,.14); }
.iar-file { cursor: pointer; }
.iar-file:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.iar-coller { display: flex; gap: .5rem; align-items: flex-end; margin-top: .8rem; }
.iar-coller[hidden], .iar-etat[hidden] { display: none; }
.iar-coller textarea { flex: 1; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; resize: vertical; }
.iar-coller textarea::placeholder { color: #8f99b5; }
.iar-etat { margin-top: .8rem; }
.iar-prog { height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.iar-prog i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-bright), var(--accent)); transition: width .4s var(--ease); }
.iar-step { margin: .45rem 0 0; font-size: .82rem; color: #cfd6e8; }
.iar-fin { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .75rem; border-radius: 10px; background: rgba(74,222,128,.12); color: #c9f5d8; font-size: .85rem; animation: eb-in .3s var(--ease); }
.iar-fin .i { width: 18px; height: 18px; color: #4ade80; flex: none; }
.iar-fin b { color: #fff; }
.iar-fin .link-btn { margin-left: auto; color: #ffd59a; }
.iar.busy .iar-btns { opacity: .5; pointer-events: none; }
.iar-ok { animation: iar-ok 1.6s var(--ease); }
@keyframes iar-ok { 0% { box-shadow: 0 0 0 0 rgba(242,165,65,0); border-color: var(--accent); background-color: var(--accent-soft); } 25% { box-shadow: 0 0 0 4px rgba(242,165,65,.3); border-color: var(--accent); background-color: var(--accent-soft); } 100% { box-shadow: 0 0 0 0 rgba(242,165,65,0); } }
@media (prefers-reduced-motion: reduce) { .iar-ok, .iar-fin { animation: none; } }
@media (max-width: 640px) { .iar-btns { width: 100%; } .iar-btns .btn { flex: 1; } }

/* ================================================================ Guide « Comment ça marche ? » */
.eb-help { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: 600 .86rem var(--font-body); cursor: pointer; transition: background .2s var(--ease); margin-top: 1rem; }
.eb-help:hover { background: rgba(255,255,255,.16); }
.eb-help:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eb-help .i { width: 17px; height: 17px; color: var(--accent); }
.eb-tabs .eb-tab-help { margin-left: auto; color: var(--accent-ink); }
.eb-tabs .eb-tab-help:hover { background: var(--accent-soft); color: var(--accent-ink); }

dialog.gd { padding: 0; border: 0; border-radius: 16px; width: min(920px, 94vw); max-height: 92vh; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -30px rgba(10,16,35,.6); overflow: hidden; }
dialog.gd::backdrop { background: rgba(14,20,40,.55); backdrop-filter: blur(4px); }
.gd-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 480px; }
.gd-visuel { position: relative; display: grid; place-items: center; padding: 2rem; overflow: hidden; color: #fff;
  background: var(--ink); }
.gd-scene { width: 100%; display: grid; place-items: center; animation: gd-in .5s var(--ease); }
.gd-contenu { position: relative; display: flex; flex-direction: column; padding: 2.2rem 2.2rem 1.6rem; overflow-y: auto; }
.gd-anim > :not(.gd-bas):not(.gd-x) { animation: gd-in .45s var(--ease) both; }
.gd-anim > h2 { animation-delay: .05s !important; } .gd-anim > .gd-texte { animation-delay: .1s !important; } .gd-anim > .gd-points { animation-delay: .15s !important; }
@keyframes gd-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gd-x { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.gd-x:hover { color: var(--text); background: var(--bg); }
.gd-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd-x .i { width: 16px; height: 16px; }
.gd-tag { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.gd-contenu h2 { margin: .5rem 2.5rem .8rem 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.025em; line-height: 1.15; }
.gd-texte { margin: 0; color: var(--muted); line-height: 1.6; font-size: .98rem; }
.gd-points { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .5rem; }
.gd-points li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 500; }
.gd-points .i { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.gd-bas { margin-top: auto; padding-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gd-dots { display: flex; gap: .35rem; }
.gd-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: width .3s var(--ease), background .3s var(--ease); }
.gd-dots button.vu { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.gd-dots button.on { width: 26px; background: var(--accent); }
.gd-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd-nav { display: flex; gap: .5rem; }
.gd-nav .btn { min-height: 44px; padding: 0 1.1rem; }
.gd-nav .btn:disabled { opacity: .4; cursor: default; }

/* --- scènes animées (délai par élément via --d) */
.gd-scene [style*="--d"] { animation-delay: var(--d) !important; }
.gd-hub { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.gd-core { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: .2rem; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 10px rgba(242,165,65,.15), 0 20px 40px -10px rgba(242,165,65,.6); animation: gd-pulse 2.4s ease-in-out infinite; }
.gd-core .i { width: 34px; height: 34px; } .gd-core b { font-size: .78rem; }
@keyframes gd-pulse { 50% { transform: scale(1.04); } }
.gd-orbit { position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; animation: gd-spin 18s linear infinite; }
.gd-orbit span { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  transform: rotate(calc(var(--i) * 60deg)) translateY(-130px) rotate(calc(var(--i) * -60deg)); }
.gd-orbit span .i { width: 20px; height: 20px; animation: gd-spin 18s linear infinite reverse; }
@keyframes gd-spin { to { transform: rotate(360deg); } }

.gd-ticket { width: 270px; border-radius: 16px; background: #fff; color: var(--text); padding: 1.1rem 1.2rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: gd-slide .6s var(--ease) both; }
@keyframes gd-slide { from { opacity: 0; transform: translateX(-40px) rotate(-4deg); } }
.gd-t-head { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 2px dashed var(--line); }
.gd-t-head .i { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); }
.gd-t-head b { font: 700 1.15rem var(--font-title); } .gd-t-head small { color: var(--muted); }
.gd-t-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; opacity: 0; animation: gd-in .45s var(--ease) forwards; }
.gd-t-row span { color: var(--muted); }
.gd-t-marge { margin-top: .3rem; padding: .6rem .7rem; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.gd-t-marge span { color: var(--ok); } .gd-t-marge b { font-size: 1.05rem; }

.gd-scan { display: flex; align-items: center; gap: 1rem; }
.gd-doc { position: relative; width: 110px; height: 150px; border-radius: 10px; background: #fff; padding: 14px 12px; display: grid; align-content: start; gap: 9px; overflow: hidden; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5); }
.gd-doc i { height: 7px; border-radius: 4px; background: #d6dae3; } .gd-doc i:nth-child(1) { width: 60%; background: #c8102e; } .gd-doc i:nth-child(3) { width: 80%; } .gd-doc i:nth-child(5) { width: 50%; }
.gd-laser { position: absolute; left: 0; right: 0; height: 36px; top: -36px; background: linear-gradient(180deg, transparent, rgba(242,165,65,.45)); border-bottom: 2px solid var(--accent); animation: gd-laser 1.4s linear infinite; }
@keyframes gd-laser { to { top: 100%; } }
.gd-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); animation: gd-pulse 1.6s infinite; }
.gd-arrow .i { width: 20px; height: 20px; }
.gd-form { width: 150px; display: grid; gap: .5rem; }
.gd-form div { display: grid; gap: .2rem; opacity: 0; animation: gd-in .35s var(--ease) forwards; }
.gd-form span { font-size: .68rem; color: #aab3c9; text-transform: uppercase; letter-spacing: .08em; }
.gd-form div i { height: 26px; border-radius: 7px; background: rgba(255,255,255,.1); border: 1px solid var(--accent); }
.gd-form em, .gd-bars em { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-size: .78rem; font-weight: 600; color: #8fe0ad; opacity: 0; animation: gd-in .4s var(--ease) 2.8s forwards; }
.gd-form em .i, .gd-bars em .i { width: 15px; height: 15px; }

.gd-flow { display: flex; align-items: center; justify-content: center; width: 100%; }
.gd-node { display: grid; justify-items: center; gap: .4rem; width: 70px; text-align: center; opacity: .25; animation: gd-on .4s var(--ease) forwards; }
.gd-node .i { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.gd-node small { font-size: .7rem; color: #cfd6e8; line-height: 1.2; }
.gd-node:last-child .i { background: var(--accent); color: var(--ink); border-color: var(--accent); }
@keyframes gd-on { to { opacity: 1; } }
.gd-link { flex: 1; min-width: 14px; height: 2px; margin-bottom: 1.6rem; position: relative; background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 5px, transparent 5px 9px); }
.gd-link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: gd-move 1.4s linear infinite; }
@keyframes gd-move { to { left: calc(100% - 8px); } }
.gd-steps-mini { display: flex; justify-content: center; gap: .4rem; margin-top: 1.6rem; flex-wrap: wrap; }
.gd-steps-mini span { font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; background: rgba(255,255,255,.08); color: #8f99b5; animation: gd-lit .4s var(--ease) forwards; }
@keyframes gd-lit { to { background: rgba(74,222,128,.18); color: #b6f2cb; } }
.gd-visuel .gd-scene:has(.gd-flow) { display: block; }

.gd-bourse { display: flex; align-items: center; gap: .6rem; width: 100%; }
.gd-ag { width: 100px; display: grid; justify-items: center; gap: .25rem; padding: 1rem .5rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); text-align: center; }
.gd-ag .i { width: 30px; height: 30px; color: var(--accent); } .gd-ag b { font-size: .78rem; } .gd-ag small { font-size: .7rem; color: #aab3c9; }
.gd-lane { position: relative; flex: 1; height: 90px; }
.gd-fly { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.gd-fly .i { width: 20px; height: 20px; }
.gd-fly-t { top: 8px; right: 0; background: var(--accent); color: var(--ink); animation: gd-gauche 2.2s var(--ease) infinite; }
.gd-fly-m { bottom: 8px; left: 0; background: #22c55e; color: #fff; animation: gd-droite 2.2s var(--ease) infinite 1.1s; }
@keyframes gd-gauche { 0% { right: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { right: calc(100% - 38px); opacity: 0; } }
@keyframes gd-droite { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 38px); opacity: 0; } }

.gd-bars { display: grid; grid-template-columns: repeat(4, 56px); gap: .8rem; align-items: end; height: 220px; position: relative; padding-bottom: 1.6rem; }
.gd-bars div { display: grid; grid-template-rows: auto 1fr; height: 100%; text-align: center; position: relative; }
.gd-bars div b { font-size: .7rem; color: #cfd6e8; align-self: end; margin-bottom: .3rem; opacity: 0; animation: gd-in .3s var(--ease) forwards; animation-delay: calc(var(--d) + .6s) !important; }
.gd-bars div i { align-self: end; height: 0; border-radius: 8px 8px 3px 3px; background: rgba(255,255,255,.2); animation: gd-grow .7s var(--ease) forwards; }
.gd-bars div.best i { background: linear-gradient(180deg, var(--accent), #e08f1f); }
.gd-bars div.best b { color: var(--accent); font-size: .8rem; }
@keyframes gd-grow { to { height: var(--h); } }
.gd-bars small { position: absolute; bottom: -1.4rem; left: 50%; transform: translateX(-50%); font-size: .66rem; color: #aab3c9; white-space: nowrap; }
.gd-bars em { position: absolute; top: -.5rem; left: 50%; transform: translateX(-50%); animation-delay: 1.6s; color: var(--accent); }

.gd-phone { width: 230px; border-radius: 26px; padding: .9rem .8rem 1.2rem; background: #0b141a; border: 6px solid #1f2937; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); display: grid; gap: .55rem; }
.gd-ph-top { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: #fff; padding: 0 .2rem .5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.gd-ph-top .i { width: 16px; height: 16px; color: #25d366; }
.gd-phone p { margin: 0; max-width: 88%; padding: .5rem .65rem; border-radius: 10px 10px 10px 3px; background: #202c33; color: #e9edef; font-size: .76rem; line-height: 1.4; opacity: 0; transform: scale(.9); transform-origin: left bottom; animation: gd-pop .35s var(--ease) forwards; }
.gd-phone p.me { justify-self: end; border-radius: 10px 10px 3px 10px; background: #005c4b; transform-origin: right bottom; }
@keyframes gd-pop { to { opacity: 1; transform: none; } }

.gd-money { display: flex; align-items: center; gap: 1.4rem; }
.gd-gauge { position: relative; width: 120px; height: 120px; display: grid; place-items: center; align-content: center; }
.gd-gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gd-gauge circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 10; }
.gd-gauge circle.v { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: gd-gauge 1.4s var(--ease) .2s forwards; }
@keyframes gd-gauge { to { stroke-dashoffset: 78; } }
.gd-gauge b { font: 700 1.5rem var(--font-title); } .gd-gauge small { font-size: .7rem; color: #aab3c9; }
.gd-money ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.gd-money li { display: flex; align-items: center; gap: .45rem; font-size: .78rem; padding: .45rem .6rem; border-radius: 9px; background: rgba(255,255,255,.07); opacity: 0; animation: gd-in .35s var(--ease) forwards; }
.gd-money li .i { width: 15px; height: 15px; color: #4ade80; }
.gd-money li.warn .i { color: var(--accent); }

.gd-recap { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; width: 100%; max-width: 300px; }
.gd-recap li { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 11px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .86rem; opacity: 0; animation: gd-in .35s var(--ease) forwards; }
.gd-recap .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #22c55e; color: #fff; flex: none; }

@media (max-width: 760px) {
  .gd-box { grid-template-columns: 1fr; min-height: 0; }
  .gd-visuel { padding: 1.4rem; min-height: 230px; }
  .gd-hub { transform: scale(.75); height: 200px; }
  .gd-node { width: 56px; } .gd-node .i { width: 40px; height: 40px; padding: 10px; } .gd-node small { font-size: .62rem; }
  .gd-link { min-width: 8px; } .gd-steps-mini { gap: .3rem; } .gd-steps-mini span { font-size: .66rem; padding: .2rem .45rem; }
  .gd-scan { transform: scale(.85); } .gd-bars { grid-template-columns: repeat(4, 48px); height: 190px; }
  .gd-contenu { padding: 1.4rem; }
  .gd-nav { width: 100%; } .gd-nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.gd *, dialog.gd *::before { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

/* ================================================================ Assistant IA : panneau latéral */
dialog.ia-tiroir { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(440px, 100vw); height: 100dvh; max-height: none; background: #111a33; overflow: hidden; box-shadow: -24px 0 60px -30px rgba(10,16,35,.6); }
dialog.ia-tiroir[open] { animation: ia-tiroir .28s var(--ease); }
@keyframes ia-tiroir { from { transform: translateX(40px); opacity: 0; } }
dialog.ia-tiroir::backdrop { background: rgba(14,20,40,.4); }
.ia-tiroir-slot { height: 100%; }
.ia-tiroir .ia-card { height: 100%; min-height: 0; border-radius: 0; box-shadow: none; }
.ia-tiroir .ia-card::before { display: none; }
.ia-tiroir .ia-head { padding-right: 3.2rem; }
.ia-tiroir-x { position: absolute; top: 36px; right: .9rem; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #e8ecf7; cursor: pointer; }
.ia-tiroir-x:hover { background: rgba(255,255,255,.12); }
.ia-tiroir-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ia-tiroir-x .i { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { dialog.ia-tiroir[open] { animation: none; } }
.ia-flash { animation: ia-flash 1.2s var(--ease); }
@keyframes ia-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--accent); } }
@media (prefers-reduced-motion: reduce) { .ia-flash { animation: none; } }
