/* ==========================================================================
   Planning d'animations : feuille de style commune (accueil, événement, back office)
   La couleur de marque (--accent…) vient de /brand.css, réglée dans le back office.
   ========================================================================== */
:root {
  /* repli si /brand.css ne charge pas */
  --accent: #0b5fff; --accent-hover: #0952db; --accent-text: #0b5fff;
  --accent-soft: #e7efff; --accent-softer: #f3f7ff; --accent-line: #a2c2ff; --on-accent: #fff;

  --page: #f4f6f9;
  --surface: #ffffff;
  --sunken: #eef1f5;
  --ink: #0f1b2d;
  --ink-2: #3a495c;
  --muted: #5b6b80;
  --line: #dfe5ec;
  --line-strong: #c3cedb;
  --ok: #0a7d4d; --ok-bg: #e4f6ec; --ok-line: #9ad9b8; --ok-solid: #0f8a55;
  --warn: #9a5200; --warn-bg: #fff3df; --warn-line: #f2cf96;
  --danger: #c02626; --danger-bg: #fdecec; --danger-line: #f1b5b5;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 1px rgba(15, 27, 45, .04);
  --shadow-2: 0 2px 4px rgba(15, 27, 45, .05), 0 12px 28px -14px rgba(15, 27, 45, .22);
  --shadow-3: 0 24px 60px -20px rgba(15, 27, 45, .4), 0 8px 20px -10px rgba(15, 27, 45, .2);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 750; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .6em; }
a { color: var(--accent-text); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.pre { white-space: pre-line; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }

/* ---------- en-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; min-height: 60px;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap;
}
.topbar .actions { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-logo { display: block; height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-sub { color: var(--muted); font-size: .875rem; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.topbar .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 72px; }

/* ---------- boutons ---------- */
button, .btn {
  font: inherit; font-weight: 600; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 16px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s var(--ease);
}
button:hover:not(:disabled), .btn:hover { border-color: var(--ink-2); background: #fbfcfd; }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--danger); }
button.danger:hover:not(:disabled) { border-color: var(--danger); background: var(--danger-bg); }
button.small, .btn.small { min-height: 34px; padding: 5px 11px; font-size: .875rem; border-radius: 8px; }
button.link { min-height: 0; padding: 4px 2px; border: 0; background: none; color: var(--accent-text); text-decoration: underline; }
button.link:hover:not(:disabled) { background: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btns.end { justify-content: flex-end; }

/* ---------- champs ---------- */
label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
input, textarea, select {
  font: inherit; width: 100%; min-height: 44px; padding: 10px 12px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .16s, box-shadow .16s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, textarea:hover, select:hover { border-color: var(--ink-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }
input[type=color] { padding: 4px; width: 64px; }
input[type=file] { padding: 8px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); margin: 12px 0; cursor: pointer; }
label.check input { margin-top: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }

/* ---------- messages ---------- */
.msg { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius-sm); padding: 11px 14px; margin: 12px 0 0;
  font-size: .94rem; border: 1px solid transparent; }
.msg .icon { margin-top: .15em; }
.msg.err { background: var(--danger-bg); color: #8f1d1d; border-color: var(--danger-line); }
.msg.ok { background: var(--ok-bg); color: #075c38; border-color: var(--ok-line); }
.msg.warn { background: var(--warn-bg); color: #7a3f00; border-color: var(--warn-line); }
/* information neutre : jamais teintée par la couleur de marque (une marque rouge ne doit pas ressembler à une erreur) */
.msg.info { background: var(--sunken); color: var(--ink-2); border-color: var(--line); }
.tag, .badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 650; line-height: 1;
  border-radius: 99px; padding: 5px 10px; white-space: nowrap; }
.tag-ok, .badge.open { background: var(--ok-bg); color: #075c38; }
.tag-hold, .badge.closed { background: var(--warn-bg); color: #7a3f00; }
.badge.neutral { background: var(--sunken); color: var(--ink-2); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  max-width: min(560px, calc(100vw - 32px));
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-3);
  font-size: .94rem; animation: toast-in .32s var(--ease);
}
.toast.err { background: #8f1d1d; }
.toast.above { bottom: 112px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- cartes et sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 22px; margin-bottom: 20px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; stroke-width: 1.5; display: block; margin: 0 auto 10px; color: var(--line-strong); }
.section-title { margin: 26px 0 14px; }
.lead { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; }

/* squelettes de chargement (aucun saut de mise en page à l'arrivée des données) */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, #e9edf2 25%, #f4f6f9 50%, #e9edf2 75%); background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite; }
.skeleton.line { height: 14px; margin: 10px 0; }
.skeleton.block { height: 64px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- accueil : liste des événements ---------- */
.home-head { padding: 12px 0 8px; }
.home-head h1 { margin-bottom: 8px; }
.event-list { display: grid; gap: 14px; margin-top: 22px; }
.event-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  color: inherit; text-decoration: none; box-shadow: var(--shadow-1);
  transition: border-color .18s, box-shadow .18s, transform .22s var(--ease);
}
.event-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.event-row h2 { margin-bottom: 4px; }
.event-row .cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent-text); white-space: nowrap; }
.event-row .cta .icon { transition: transform .22s var(--ease); }
.event-row:hover .cta .icon { transform: translateX(4px); }
.logo-tile { width: 64px; height: 64px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; color: var(--muted); flex: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.logo-tile.lg { width: 84px; height: 84px; border-radius: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .92rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- page d'un événement ---------- */
.event-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.event-info { position: sticky; top: 84px; display: grid; gap: 16px; }
.event-info .card { margin: 0; }
.event-id { display: grid; gap: 14px; }
.event-id h1 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); }
.event-id .meta { flex-direction: column; gap: 8px; }
.event-id .desc { color: var(--ink-2); font-size: .95rem; margin: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.live.on { color: #075c38; }
.live.on .dot { background: var(--ok-solid); box-shadow: 0 0 0 0 rgba(15, 138, 85, .5); animation: live-pulse 2s ease-out infinite; }
.live.off { color: var(--warn); }
.live.off .dot { background: #d98a1f; }
@keyframes live-pulse { to { box-shadow: 0 0 0 9px rgba(15, 138, 85, 0); } }

.mine-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.mine-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.mine-list li:first-child { border-top: 0; padding-top: 0; }
.mine-list .when { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; }

.gate { max-width: 560px; }
.gate h2 { font-size: 1.4rem; margin-bottom: 6px; }
.gate-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

.anim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 22px; margin-bottom: 18px; }
.anim-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.anim-head .meta { margin-top: 6px; }
.anim > .msg { margin: 14px 0 0; }
.day { margin: 20px 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }

/* un créneau = un bouton ; son état se lit à sa couleur ET à son texte */
.slot {
  display: grid; gap: 2px; justify-items: start; text-align: left; white-space: normal;
  min-height: 62px; padding: 10px 12px;
  background: var(--surface); color: var(--accent-text);
  border: 1.5px solid var(--accent-line); border-radius: var(--radius-sm);
}
.slot .time { font-size: 1.02rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.slot .state { font-size: .8rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.slot:hover:not(:disabled) { background: var(--accent-softer); border-color: var(--accent); box-shadow: var(--shadow-2); }
.slot.low .state { color: var(--warn); }
.slot.hold { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: hold-in .5s var(--ease); }
.slot.hold .state { color: inherit; opacity: .92; }
.slot.hold:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.slot.mine { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.slot.mine .state { color: inherit; }
.slot.mine:hover:not(:disabled) { background: #0c774a; border-color: #0c774a; }
.slot:disabled { opacity: 1; cursor: not-allowed; background: var(--sunken); border-color: var(--line); color: var(--muted); }
.slot.mine:disabled { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; cursor: default; }
@keyframes hold-in { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 100% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); } }
body.busy .slot { cursor: progress; }

/* barre de validation, fixée en bas */
.bar-validate {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -16px rgba(15, 27, 45, .3);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden;
  transition: transform .42s var(--ease), visibility 0s .42s;
}
.bar-validate.show { transform: none; visibility: visible; transition: transform .42s var(--ease); }
.bar-inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bar-inner button { min-height: 48px; padding: 12px 24px; font-size: 1.02rem; }
.bar-count { font-weight: 700; }
body.has-bar main.wrap { padding-bottom: 150px; }

/* ---------- dialogues ---------- */
dialog {
  border: 0; border-radius: 18px; padding: 0;
  width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  color: var(--ink); background: var(--surface); box-shadow: var(--shadow-3);
}
dialog[open] { animation: dialog-in .28s var(--ease); }
dialog::backdrop { background: rgba(15, 27, 45, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.wide { width: min(760px, calc(100vw - 24px)); }
dialog.no-dialog { position: fixed; inset: 12px; margin: auto; z-index: 100; display: block; overflow: auto; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-head { padding: 24px 24px 4px; }
.dlg-head p { margin: 6px 0 0; }
.dlg-body { padding: 10px 24px 4px; overflow: auto; }
.dlg-foot { padding: 18px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.recap { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 10px; }
.recap-line { margin-top: 6px; }

/* ---------- back office ---------- */
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.event-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.event-card { transition: border-color .18s, box-shadow .18s; }
.event-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.event-card h2 { font-size: 1.3rem; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--accent-text); }
.stats { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 16px 0 6px; font-size: .94rem; color: var(--ink-2); }
.linkrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.linkrow code { background: var(--sunken); border-radius: 8px; padding: 6px 10px; font-size: .85rem; word-break: break-all; }
.crumbs { margin: 0 0 16px; }
.event-title-row { display: flex; gap: 16px; align-items: center; }
.planning { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 20px; }
.planning + .anim, .card .anim { box-shadow: none; }
.card > .anim { margin: 18px 0 0; }
.anim-admin-meta { margin-top: 4px; font-size: .9rem; color: var(--ink-2); }
.login { max-width: 400px; margin: 10vh auto 0; }

.table-wrap { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
.cap-first::first-letter { text-transform: uppercase; }
.full-tag { color: var(--warn); font-weight: 650; }

/* grille des créneaux d'une animation (back office) */
.chipdays { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.chip button { min-height: 36px; border: 0; border-radius: 0; padding: 6px 10px; font-size: .86rem; font-variant-numeric: tabular-nums; background: transparent; }
.chip button:hover:not(:disabled) { background: var(--accent-softer); }
.chip-count { border-left: 1px solid var(--line) !important; color: var(--muted); font-weight: 600; background: var(--page) !important; }
.chip.full .chip-count { color: var(--warn); }
.chip.manual { border-style: dashed; border-color: var(--ink-2); }
.chip.off { border-style: dashed; background: var(--sunken); }
.chip.off .chip-main { text-decoration: line-through; color: var(--muted); }
.legend { margin: 12px 0 0; }

.pick-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center;
  padding: 12px 6px; border-bottom: 1px solid var(--line); margin: 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.pick-row:hover:not(.off) { background: var(--accent-softer); }
.pick-row.off { opacity: .6; cursor: default; }
.pick-cap { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pick-cap input { width: 74px; min-height: 38px; padding: 6px 8px; }
.pause-anims { display: grid; gap: 0; max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 12px; }
code.pw { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.05rem; font-weight: 700;
  background: #fff; border: 1px dashed var(--ok-line); border-radius: 8px; padding: 3px 10px; user-select: all; }
.logo-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-strong); vertical-align: -3px; }

/* ---------- petits écrans ---------- */
@media (max-width: 900px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-info { position: static; }
}
@media (max-width: 620px) {
  .topbar-inner { padding: 8px 14px; min-height: 54px; }
  .wrap { padding: 0 14px; }
  main.wrap { padding-top: 18px; }
  .card, .anim { padding: 16px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .event-row { grid-template-columns: auto 1fr; }
  .event-row .cta { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .brand-sub { display: none; }
  .bar-inner button { flex: 1 1 100%; }
  .dlg-head { padding: 20px 18px 4px; } .dlg-body { padding: 8px 18px 4px; } .dlg-foot { padding: 16px 18px 18px; }
  .dlg-foot button { flex: 1 1 auto; }
  th, td { padding: 8px 6px; }
  .pick-row { grid-template-columns: auto 1fr; }
  .pick-cap { grid-column: 2; }
}

/* ---------- respect du réglage « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- compléments ---------- */
.event-main { min-width: 0; }
body.has-bar .toast { bottom: 112px; }
#regs-list, #parts-list, #cat-list, .planning { overflow-x: auto; }
.slot .state .icon { width: 1em; height: 1em; }
.login h1 { font-size: 1.6rem; margin-bottom: 6px; }
.event-title-row .logo-tile + .btns { justify-content: center; }
.anim h3 { font-size: 1.12rem; }
.card > .anim, .card > .planning { box-shadow: none; }
.card > .anim { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; margin: 20px 0 0; }
@media (max-width: 620px) {
  .event-title-row { flex-direction: column; align-items: flex-start; }
  .tools button, .tools .btn { flex: 1 1 auto; }
}
@media (max-width: 620px) {
  /* en-tête sur une seule ligne : la marque à gauche, les deux actions du compte à droite */
  .topbar-inner { flex-wrap: nowrap; }
  .topbar .actions { flex-wrap: nowrap; }
  .topbar .who { display: none; }
  .brand-logo { height: 30px; max-width: 120px; }
}

/* ---- RGPD : texte de confidentialité et case de consentement ---- */
.privacy-text { max-height: 38vh; overflow: auto; margin: 12px 0; padding: 12px 14px; font-size: .92rem; color: var(--ink-2);
  background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.consent { margin-top: 6px; }
.consent button.link { margin-left: 28px; }
