/* Layout: mobile-first funnel — one question per screen, progress on top, Retour / Continuer pinned to the thumb zone; a "Suivi" tab holds the shared follow-up list. */
:root {
  --bg: #ffffff;
  --sand: #f7f3f1;
  --card: #ffffff;
  --ink: #00155e;
  --muted: #474554;
  --line: #e6e0dc;
  --lilac: #deabff;
  --lilac-ink: #00155e;
  --focus: #7c27b2;
  --android: #2f9e5b;
  --danger: #c4161c;
  --danger-bg: #fdeceb;
  --warn: #9a4b00;
  --warn-bg: #fff1e3;
  --ok: #11702c;
  --ok-bg: #e7f6ea;
  --info: #0b5cad;
  --info-bg: #e7f1fc;
  --display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1030; --sand: #141a42; --card: #111739; --ink: #eef0fb; --muted: #b9bbd3;
    --line: #2a3163; --lilac: #deabff; --lilac-ink: #00155e; --focus: #deabff; --android: #5fd98f;
    --danger: #ff8a85; --danger-bg: #3a1620; --warn: #ffb870; --warn-bg: #36240f;
    --ok: #7fdc95; --ok-bg: #12301d; --info: #8cc3ff; --info-bg: #13284a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1030; --sand: #141a42; --card: #111739; --ink: #eef0fb; --muted: #b9bbd3;
  --line: #2a3163; --lilac: #deabff; --lilac-ink: #00155e; --focus: #deabff; --android: #5fd98f;
  --danger: #ff8a85; --danger-bg: #3a1620; --warn: #ffb870; --warn-bg: #36240f;
  --ok: #7fdc95; --ok-bg: #12301d; --info: #8cc3ff; --info-bg: #13284a;
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
img { max-width: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 0;
}
.app { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 12px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.logo { color: var(--ink); line-height: 0; }
.logo-svg { height: 22px; width: auto; display: block; }
.tabs { display: flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 2px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 21, 94, 0.12); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Funnel */
.panel-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }
#bug-form { display: flex; flex-direction: column; flex: 1; }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; width: 0; transition: width .25s ease; }
.step { display: flex; flex-direction: column; gap: 18px; flex: 1; padding-block: 8px 24px; }
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 8vw, 40px); }
h2 { font-size: clamp(26px, 7vw, 32px); }
.lede { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-weight: 600; font-size: 15px; }
.label.spaced { margin-top: 6px; }
.label.more { margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 14px; margin: -2px 0 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="url"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 52px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 132px; resize: vertical; }
textarea.short { min-height: 88px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }

.choices { display: grid; gap: 12px; }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); cursor: pointer; min-height: 64px; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice b { font-size: 16px; font-weight: 600; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choices.three .choice { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; }
.choices.three .choice b { font-size: 15px; }
.choices.three .choice small { font-size: 12px; line-height: 1.35; hyphens: auto; overflow-wrap: anywhere; }
.choice.os { flex-direction: column; justify-content: center; text-align: center; padding: 22px 12px; gap: 10px; }
.choice.os svg { width: 44px; height: 44px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.bloquant { background: var(--danger); }
.dot.genant { background: var(--warn); }
.dot.detail { background: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-size: 15px; }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.urgent { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; align-self: flex-start; min-height: 32px; }

.recap { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.recap li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.recap li:first-child { border-top: 0; }
.recap .k { color: var(--muted); }
.recap .v { overflow-wrap: anywhere; white-space: pre-line; }
.recap button { background: none; border: 0; color: var(--ink); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 0; }

.nav { position: sticky; bottom: 0; background: var(--bg); display: flex; gap: 10px; padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.btn { flex: 1; font: inherit; font-weight: 600; font-size: 16px; border-radius: 12px; min-height: 54px; padding: 12px 18px; cursor: pointer; border: 0; background: var(--ink); color: var(--bg); }
.btn.ghost { flex: 0 0 auto; background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.msg { font-size: 14px; color: var(--danger); margin: 0; min-height: 1em; }
.msg.neutral { color: inherit; }

.done { display: flex; flex-direction: column; gap: 14px; padding-block: 24px; }
.badge-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.ref-big { font-family: var(--display); font-weight: 700; font-size: 34px; font-variant-numeric: tabular-nums; margin: 0; }
.fallback { background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 14px 16px; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.fallback textarea { font-size: 13px; min-height: 180px; color: var(--ink); }

/* Code d'accès */
.gate { display: flex; flex-direction: column; gap: 18px; padding-block: 24px; }
.gate form { display: flex; flex-direction: column; gap: 14px; }

.empty { background: var(--sand); border-radius: 14px; padding: 18px; color: var(--muted); font-size: 14px; margin: 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
@media (min-width: 640px) { body { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

/* Suivi : tableau Kanban sur grand écran, sections empilées sur téléphone, filtres en menus déroulants, panneau de détail. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app.wide { max-width: 1360px; }
.follow { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; min-width: 0; }

.follow-head { display: flex; flex-direction: column; gap: 14px; }
.follow-title { display: flex; flex-direction: column; gap: 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.kpi { background: var(--sand); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.kpi dt { font-size: 12px; color: var(--muted); line-height: 1.3; }
.kpi dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-ok dd { color: var(--ok); }

/* Barre de filtres */
.toolbar { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; }
.tb-row { display: flex; gap: 8px; align-items: center; }
.tb-search { position: relative; flex: 1; min-width: 0; }
.tb-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.tb-search input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 38px; min-height: 44px; }
.tb-search input:focus { border-color: var(--ink); }
.tb-toggle { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.tb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tb-selects { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toolbar.open .tb-selects { display: grid; }
.tb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tb-field select { min-height: 42px; padding: 8px 34px 8px 10px; font-size: 14px; border-radius: 10px; background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px; }
.tb-field select.on { border-color: var(--ink); background-color: var(--sand); }
.tb-end { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tb-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 40px; }
.tb-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.result-count { margin: 0; font-size: 13px; color: var(--muted); }

/* Tableau */
.board { display: flex; flex-direction: column; gap: 12px; }
.col { background: var(--sand); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-radius: 16px; }
.col-head .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.col-head .name { font-weight: 600; font-size: 14px; }
.col-head .count { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--card); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.col-head .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.col.collapsed .col-head .chev { transform: rotate(-90deg); }
.col-attente .col-head .dot { color: var(--muted); }
.col-encours .col-head .dot { color: var(--warn); }
.col-test .col-head .dot { color: var(--info); }
.col-corrige .col-head .dot { color: var(--ok); }
.col-clos .col-head .dot { color: var(--line); }
.col-list { list-style: none; margin: 0; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.col.collapsed .col-list { display: none; }
.col-empty { font-size: 13px; color: var(--muted); padding: 4px 6px 8px; }

/* Cartes */
.card { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 21, 94, .05); transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: 0 4px 14px rgba(0, 21, 94, .10); transform: translateY(-1px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card .ref { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-title { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: var(--sand); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill svg { width: 12px; height: 12px; flex: none; }
.pill.jira { background: var(--info-bg); color: var(--info); font-weight: 600; }
.pill.version { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); color: var(--lilac-ink); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.card-foot .when { margin-left: auto; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.s-bloquant { background: var(--danger-bg); color: var(--danger); }
.s-genant { background: var(--warn-bg); color: var(--warn); }
.s-detail { background: var(--sand); color: var(--muted); }

/* Statuts */
.statut { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-attente { background: var(--sand); color: var(--muted); }
.st-encours { background: var(--warn-bg); color: var(--warn); }
.st-test { background: var(--info-bg); color: var(--info); }
.st-corrige { background: var(--ok-bg); color: var(--ok); }
.st-version { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.st-nonrepro, .st-doublon, .st-normal, .st-abandon { background: var(--sand); color: var(--muted); }
.st-infos { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
.card-meta .statut { font-size: 12px; padding: 2px 8px; }
.conclusion { display: flex; flex-direction: column; gap: 6px; background: var(--sand); border-radius: 12px; padding: 12px 14px; }
.conclusion h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.conclusion p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.statut-hint { font-size: 13px; color: var(--muted); margin: 0; }

/* Panneau de détail */
.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(520px, 100%); max-width: 100%; border: 0; padding: 0; background: var(--bg); color: var(--ink); box-shadow: -12px 0 40px rgba(0, 21, 94, .18); }
.drawer::backdrop { background: rgba(0, 21, 94, .32); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.drawer-ref { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.drawer-close svg { width: 18px; height: 18px; }
.drawer-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.drawer-body h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.dr-block { display: flex; flex-direction: column; gap: 6px; }
.dr-block h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dr-block p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.dr-facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14px; }
.dr-facts dt { color: var(--muted); }
.dr-facts dd { margin: 0; overflow-wrap: anywhere; }
.dr-facts a { color: var(--ink); }
.admin { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.admin select, .admin input { width: auto; min-height: 40px; padding: 6px 10px; font-size: 14px; border-radius: 8px; }
.admin select { padding-right: 34px; background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px; }
.admin input { width: 110px; }
.admin .version-input { width: 90px; }
.admin .conclusion-input { flex: 1 1 100%; min-height: 60px; padding: 8px 10px; font-size: 14px; border-radius: 8px; }
.admin button { min-height: 40px; padding: 6px 14px; font: inherit; font-size: 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.admin .msg { color: var(--muted); }

.legend { border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.legend summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; }
.legend ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* Grand écran : vrai tableau Kanban, filtres toujours visibles */
@media (min-width: 900px) {
  .follow-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .kpis { grid-template-columns: repeat(4, minmax(120px, 1fr)); flex: none; }
  .toolbar { position: sticky; top: 0; z-index: 2; box-shadow: 0 6px 18px rgba(0, 21, 94, .06); }
  .tb-toggle { display: none; }
  .tb-selects, .toolbar.open .tb-selects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .board { flex-direction: row; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
  .col { flex: 1 1 0; min-width: 250px; max-height: calc(100vh - 140px); }
  .col-list { overflow-y: auto; }
  .col-clos.collapsed { flex: 0 0 52px; min-width: 52px; }
  .col-clos.collapsed .col-head { flex-direction: column; gap: 10px; padding: 14px 0; }
  .col-clos.collapsed .col-head .name { writing-mode: vertical-rl; transform: rotate(180deg); }
  .col-clos.collapsed .col-head .count { margin-left: 0; }
  .legend ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .legend ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 899px) { .drawer { width: 100%; } .dr-facts { grid-template-columns: 1fr; gap: 2px; } .dr-facts dd { margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .card, .col-head .chev { transition: none; } .card:hover { transform: none; } }
.admin .danger-link { margin-left: auto; border: 0; background: none; color: var(--danger); text-decoration: underline; padding: 6px 0; }

/* Captures et vidéos jointes */
.dropzone { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 16px; background: var(--card); cursor: pointer; min-height: 72px; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--focus, var(--ink)); outline-offset: 2px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone b { display: block; font-size: 15px; }
.dropzone small { display: block; font-size: 13px; color: var(--muted); }
.dz-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.dz-ic svg { width: 22px; height: 22px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files:empty { display: none; }
.file { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card); }
.file .thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--sand); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--muted); overflow: hidden; }
.file .thumb img, .file .thumb video { width: 100%; height: 100%; object-fit: cover; }
.file .fname { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .fstate { font-size: 12px; color: var(--muted); }
.file .fstate.err { color: var(--danger); }
.file .fbar { height: 4px; border-radius: 999px; background: var(--sand); overflow: hidden; margin-top: 4px; }
.file .fbar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.file button { min-height: 36px; padding: 4px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.link-alt summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.link-alt input { margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery a, .gallery video { display: block; border-radius: 10px; overflow: hidden; background: var(--sand); }
.gallery img, .gallery video { width: 100%; height: 140px; object-fit: cover; display: block; }
.gallery .other { height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 12px; color: var(--ink); text-decoration: underline; }
.pill.files-pill { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .file .fbar i { transition: none; } }

/* Page de confidentialité (demandée par Google pour la connexion) */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 56px; display: flex; flex-direction: column; gap: 14px; line-height: 1.6; }
.legal h1, .legal h2 { margin: 8px 0 0; }
.legal ul { margin: 0; padding-left: 20px; }
.legal p { margin: 0; }
.legal-date { color: #55536a; font-size: 13px; }
