/* Galleris v2 — planche contact (sélection), puis tirages (livraison). */

:root {
  --paper:      #E4E5E3;  /* gris planche, neutre pour juger les photos */
  --paper-line: #CFD0CD;
  --paper-deep: #D6D7D4;
  --graphite:   #232323;
  --graphite-2: #5E5F5C;
  --marker:     #C42A1F;  /* rouge marqueur gras */
  --marker-ink: #A82318;  /* rouge pour texte et fonds de bouton */
  --print:      #FFFFFF;
  --print-line: #E6E6E4;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  /* échelle 1.25 */
  --t-xs: 0.8125rem;  /* 13 */
  --t-s:  0.875rem;   /* 14 */
  --t-m:  1rem;       /* 16 */
  --t-l:  1.25rem;    /* 20 */
  --t-xl: 1.75rem;    /* 28 */
  --t-2xl: clamp(2rem, 5vw, 3.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-m);
  line-height: 1.5;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; }

.wide   { font-stretch: 125%; }
.narrow { font-stretch: 75%; }
.num    { font-variant-numeric: tabular-nums; font-stretch: 75%; }
.muted  { color: var(--graphite-2); }

/* ── Logo Galleris ─────────────────────────────────────────────────────── */
.galleris {
  display: inline-flex; align-items: center; gap: .45em;
  font-stretch: 125%; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; font-size: var(--t-l); line-height: 1;
}
.galleris svg { width: 1.05em; height: 1.05em; flex: none; }
.galleris--small { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.15em;
  border: 1.5px solid var(--graphite); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: var(--t-s); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn--solid  { background: var(--graphite); color: #fff; }
.btn--solid:hover { background: #000; }
.btn--marker { background: var(--marker-ink); border-color: var(--marker-ink); color: #fff; }
.btn--marker:hover { background: #8f1d14; border-color: #8f1d14; }
.btn--ghost  { border-color: transparent; }
.btn--ghost:hover { background: rgba(0,0,0,.06); }
.btn--sm { min-height: 36px; padding: 0 .9em; font-size: var(--t-xs); }
.btn svg { width: 18px; height: 18px; }

/* ── En-tête client (marque photographe) ───────────────────────────────── */
.client-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
}
.client-top .cf { height: 40px; width: auto; }
.client-top__who { font-size: var(--t-s); text-align: right; }

.powered {
  padding: 40px var(--gutter) 120px; text-align: center;
  font-size: var(--t-xs); color: var(--graphite-2);
}
.powered .galleris { vertical-align: -2px; }

/* ════════════════════════════════════════════════════════════════════════
   1. PLANCHE CONTACT — sélection client
   ════════════════════════════════════════════════════════════════════════ */
.sheet-intro {
  padding: 24px var(--gutter) 8px;
  display: grid; gap: 12px 40px;
  grid-template-columns: minmax(0, 1fr) auto; align-items: end;
}
.sheet-intro h1 {
  margin: 0; font-size: var(--t-2xl); font-stretch: 125%; font-weight: 600;
  line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 14px;
}
.sheet-intro p { margin: 0; max-width: 56ch; color: var(--graphite-2); }
.deadline { text-align: right; font-size: var(--t-s); }
.deadline strong { display: block; font-size: var(--t-l); font-stretch: 75%; font-weight: 600; }

.sheet-tools {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.seg { display: inline-flex; padding: 3px; background: var(--paper-deep); border-radius: 999px; }
.seg button {
  border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  padding: 7px 14px; font-size: var(--t-xs); font-weight: 600; color: var(--graphite-2);
}
.seg button[aria-pressed="true"] { background: var(--print); color: var(--graphite); }
.seg .num { margin-left: .35em; font-weight: 500; }
.sheet-tools__hint { font-size: var(--t-xs); color: var(--graphite-2); }

.contact {
  list-style: none; margin: 0;
  padding: 20px var(--gutter) 24px;
  display: grid; gap: 28px 18px; align-items: end;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.frame { position: relative; }
.frame[hidden] { display: none; }
.frame__pic {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--paper-deep); cursor: zoom-in; aspect-ratio: 2 / 3; overflow: hidden;
}
.frame__pic img { width: 100%; height: 100%; object-fit: cover; }
.frame--land .frame__pic { aspect-ratio: 3 / 2; }

.frame__edge {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; min-height: 36px;
}
.frame__no { font-stretch: 75%; font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--paper-line); background: transparent;
  font-size: var(--t-xs); font-weight: 600;
}
.pick:hover { border-color: var(--graphite); }
.pick svg { width: 16px; height: 16px; }
.pick[aria-pressed="true"] { background: var(--marker-ink); border-color: var(--marker-ink); color: #fff; }

/* le cercle au marqueur */
.ring {
  position: absolute; left: -10px; right: -10px; top: -10px; bottom: 34px;
  width: calc(100% + 20px); height: calc(100% - 24px);
  overflow: visible; pointer-events: none;
}
.ring path {
  fill: none; stroke: var(--marker); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset .38s var(--ease-out), opacity 0s .38s;
}
.frame.is-picked .ring path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .38s var(--ease-out), opacity 0s; }

/* barre de décompte */
.tally {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--graphite); color: #fff;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 24px;
}
.tally__count { font-stretch: 75%; line-height: 1; white-space: nowrap; }
.tally__count b { font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tally__count span { font-size: var(--t-m); opacity: .75; margin-left: .25em; }
.tally__marks { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.tick { width: 4px; height: 22px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background-color .2s; }
.tick.on { background: #fff; }
.tick.extra { background: var(--marker); }
.tally__note { font-size: var(--t-xs); opacity: .85; flex-basis: 100%; margin-top: 4px; }
.tally__note b { color: #fff; }
.tally .btn--marker { min-width: 190px; }

/* visionneuse */
.loupe {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: #1b1b1b; color: #fff;
}
.loupe::backdrop { background: #1b1b1b; }
.loupe[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.loupe__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.loupe__bar .num { font-size: var(--t-l); font-weight: 600; }
.loupe__stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; touch-action: pan-y; }
.loupe__stage .wm { display: block; max-width: 100%; }
.loupe__stage img { max-height: calc(100dvh - 150px); max-width: 100%; width: auto; height: auto; }
.loupe__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center;
}
.loupe__nav:hover { background: rgba(255,255,255,.2); }
.loupe__nav--prev { left: 8px; } .loupe__nav--next { right: 8px; }
.loupe__foot { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.loupe .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.loupe .btn--marker { border-color: var(--marker-ink); }
.loupe .icon-btn { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.loupe .icon-btn:hover { background: rgba(255,255,255,.1); }

/* feuille de confirmation */
.confirm { border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); color: var(--graphite); }
.confirm::backdrop { background: rgba(20,20,20,.55); }
.confirm__body { padding: 28px; }
.confirm h2 { margin: 0 0 12px; font-size: var(--t-xl); font-stretch: 125%; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.confirm dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--print-line); }
.confirm dt { color: var(--graphite-2); }
.confirm dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.confirm dd.total { color: var(--marker-ink); }
.confirm__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.done {
  min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 12px;
  padding: 40px var(--gutter);
}
.done h1 { margin: 0; font-size: var(--t-2xl); font-stretch: 125%; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.done p { margin: 0 auto; max-width: 44ch; color: var(--graphite-2); }

/* ════════════════════════════════════════════════════════════════════════
   2. TIRAGES — galerie finale
   ════════════════════════════════════════════════════════════════════════ */
body.prints { background: var(--print); }
.prints .client-top { border-bottom: 1px solid var(--print-line); }
.prints-head {
  padding: clamp(32px, 7vw, 88px) var(--gutter) 32px;
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
}
.prints-head h1 {
  margin: 0; font-size: clamp(2.5rem, 7vw, 4.75rem); font-stretch: 125%; font-weight: 600;
  line-height: .95; letter-spacing: -0.035em;
}
.prints-head p { margin: 16px 0 0; color: var(--graphite-2); max-width: 52ch; }
.dl-box { display: grid; gap: 10px; justify-items: end; }
.dl-box .seg { background: #F0F0EE; }
.dl-box small { color: var(--graphite-2); font-size: var(--t-xs); }

.wall {
  padding: 8px var(--gutter) 40px;
  columns: 3 300px; column-gap: clamp(16px, 3vw, 40px);
}
.print {
  break-inside: avoid; margin: 0 0 clamp(16px, 3vw, 40px);
  position: relative; background: var(--print);
}
.print button.print__open { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.print img { width: 100%; height: auto; }
.print figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding-top: 8px; font-size: var(--t-xs); color: var(--graphite-2);
}
.print figcaption .num { font-size: var(--t-s); color: var(--graphite); font-weight: 600; }
.dl-one {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 36px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: var(--t-xs); font-weight: 600; color: var(--graphite);
}
.dl-one:hover { background: #F0F0EE; }
.dl-one svg { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 16px; opacity: 0;
  background: var(--graphite); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: var(--t-s); transition: opacity .2s, translate .25s var(--ease-out); pointer-events: none; z-index: 30;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ════════════════════════════════════════════════════════════════════════
   3. ATELIER — tableau de bord photographe
   ════════════════════════════════════════════════════════════════════════ */
body.desk { background: var(--paper); }
.desk-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.side {
  background: var(--graphite); color: #fff; padding: 22px 14px;
  display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh;
}
.side .galleris { padding: 0 10px; }
.side nav { display: grid; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px;
  text-decoration: none; font-size: var(--t-s); color: rgba(255,255,255,.72);
}
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.side nav svg { width: 18px; height: 18px; opacity: .8; }
.side__me { margin-top: auto; padding: 10px; font-size: var(--t-xs); color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 10px; }
.side__me img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; }

.desk-main { padding: 28px var(--gutter) 64px; max-width: 1180px; }
.desk-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.desk-head h1 { margin: 0; font-size: var(--t-2xl); font-stretch: 125%; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.desk-head p { margin: 8px 0 0; color: var(--graphite-2); }

/* bande de statuts : le pipeline en 4 étapes, réellement séquentiel */
.pipeline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--graphite); margin-bottom: 40px;
}
.pipeline a {
  display: grid; gap: 2px; padding: 14px 16px 14px 0; text-decoration: none;
  border-right: 1px solid var(--paper-line); margin-right: 16px;
}
.pipeline a:last-child { border-right: 0; }
.pipeline b { font-size: 2.5rem; font-stretch: 75%; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pipeline span { font-size: var(--t-s); color: var(--graphite-2); }
.pipeline a.hot b { color: var(--marker-ink); }

.group { margin-bottom: 40px; }
.group h2 {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px;
  font-size: var(--t-l); font-weight: 600; letter-spacing: -0.01em;
}
.group h2 .num { color: var(--graphite-2); font-weight: 500; }
.group > p { margin: 0 0 12px; font-size: var(--t-s); color: var(--graphite-2); max-width: 70ch; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.row {
  display: grid; align-items: center; gap: 8px 20px;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
  padding: 12px 0; border-bottom: 1px solid var(--paper-line);
}
.row__thumb { width: 56px; height: 56px; object-fit: cover; background: var(--paper-deep); }
.row__who b { display: block; font-weight: 600; }
.row__who span, .row__meta { font-size: var(--t-s); color: var(--graphite-2); }
.row__meta b { color: var(--graphite); font-weight: 600; }
.row__meta .late { color: var(--marker-ink); font-weight: 600; }
.bar { height: 4px; background: var(--paper-line); border-radius: 2px; margin-top: 6px; overflow: hidden; max-width: 180px; }
.bar i { display: block; height: 100%; background: var(--graphite); }
.row__act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row__act .btn--ghost { color: var(--graphite); }
.chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600;
  background: var(--paper-deep); color: var(--graphite); white-space: nowrap;
}
.chip--marker { background: var(--marker-ink); color: #fff; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .row { grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .row__act { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .desk-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; gap: 12px; overflow-x: auto; }
  .side nav { display: flex; gap: 2px; }
  .side nav a span { display: none; }
  .side__me { display: none; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline a:nth-child(2) { border-right: 0; }
  .row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .row__thumb { width: 48px; height: 48px; }
  .row__meta { grid-column: 2 / -1; }
  .row__act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .sheet-intro, .prints-head { grid-template-columns: 1fr; }
  .deadline { text-align: left; }
  .dl-box { justify-items: start; }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .sheet-tools__hint { display: none; }
  .tally { grid-template-columns: auto minmax(0, 1fr); }
  .tally .btn--marker { grid-column: 1 / -1; width: 100%; }
  .loupe__stage { padding: 0 8px; }
  .loupe__nav { display: none; }
  .client-top__who span { display: none; }
}

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

/* ════════════════════════════════════════════════════════════════════════
   Composants applicatifs (formulaires, messages, upload)
   ════════════════════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.flash {
  display: flex; gap: 10px; align-items: baseline;
  margin: 0 0 24px; padding: 12px 16px; border-radius: 10px;
  background: var(--graphite); color: #fff; font-size: var(--t-s);
}
.flash--error { background: var(--marker-ink); }

.panel { background: var(--print); border-radius: 14px; padding: clamp(18px, 3vw, 28px); margin-bottom: 24px; }
.panel h2 { margin: 0 0 4px; font-size: var(--t-l); font-weight: 600; letter-spacing: -0.01em; }
.panel > p:first-of-type { margin-top: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel__head p { margin: 0; color: var(--graphite-2); font-size: var(--t-s); }

.form { display: grid; gap: 18px; max-width: 720px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--t-s); font-weight: 600; }
.field small { color: var(--graphite-2); font-size: var(--t-xs); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: var(--t-m); color: var(--graphite);
  background: var(--print); border: 1.5px solid var(--paper-line); border-radius: 10px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--graphite); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--marker-ink); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-error { color: var(--marker-ink); font-weight: 600; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: var(--t-s); margin-bottom: 8px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 14px; border: 1.5px solid var(--paper-line); border-radius: 10px; background: var(--print); font-size: var(--t-s);
}
.choice input { accent-color: var(--marker-ink); }
.choice label:has(input:checked) { border-color: var(--graphite); }

/* tableau simple */
.table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.table th { text-align: left; font-weight: 600; color: var(--graphite-2); padding: 8px 10px 8px 0; border-bottom: 2px solid var(--graphite); white-space: nowrap; }
.table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.table a { text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }
.table input:not([type=checkbox]), .table select { min-height: 38px; padding: 6px 8px; font: inherit; border: 1.5px solid var(--paper-line); border-radius: 8px; background: var(--print); width: 100%; }
.table-wrap { overflow-x: auto; }

.empty { padding: 32px 0; color: var(--graphite-2); }
.empty strong { display: block; color: var(--graphite); font-size: var(--t-l); margin-bottom: 4px; }

/* étapes d'un shooting : vraie séquence, d'où la numérotation */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--paper-line); }
.steps li { padding: 10px 12px 0 0; font-size: var(--t-s); color: var(--graphite-2); position: relative; }
.steps li::before { content: ''; position: absolute; top: -2px; left: 0; right: 12px; height: 2px; background: transparent; }
.steps li b { display: block; font-stretch: 75%; font-size: var(--t-l); font-weight: 700; color: inherit; }
.steps li.is-done { color: var(--graphite); }
.steps li.is-done::before { background: var(--graphite); }
.steps li.is-now { color: var(--marker-ink); }
.steps li.is-now::before { background: var(--marker-ink); }
.steps li.is-skip { opacity: .45; text-decoration: line-through; }

/* zone de dépôt et file d'envoi */
.drop {
  display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 32px 16px; border: 2px dashed var(--paper-line); border-radius: 14px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.is-over { border-color: var(--graphite); background: #F6F6F4; }
.drop strong { font-size: var(--t-l); font-weight: 600; }
.drop span { color: var(--graphite-2); font-size: var(--t-s); }
.drop input { display: none; }
.queue { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.queue:empty { display: none; }
.queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; font-size: var(--t-xs); }
.queue li .bar { grid-column: 1 / -1; max-width: none; margin: 0; }
.queue li.is-error { color: var(--marker-ink); }
.queue li.is-error .bar i { background: var(--marker-ink); }
.queue li.is-done .bar i { background: var(--graphite-2); }
.queue-sum { margin: 12px 0 0; font-size: var(--t-s); font-weight: 600; }

.thumbs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.thumbs li { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-deep); }
.thumbs .cap { display: flex; justify-content: space-between; gap: 4px; font-size: 11px; color: var(--graphite-2); margin-top: 4px; }
.thumbs .cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumbs li.is-picked img { outline: 3px solid var(--marker); outline-offset: -3px; }
.thumbs .del {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.thumbs li:hover .del, .thumbs .del:focus-visible { opacity: 1; }
@media (hover: none) { .thumbs .del { opacity: 1; } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: var(--t-s); }
.kv dt { color: var(--graphite-2); }
.kv dd { margin: 0; font-weight: 600; }
.log { list-style: none; padding: 0; margin: 0; font-size: var(--t-xs); color: var(--graphite-2); display: grid; gap: 6px; }
.log b { color: var(--graphite); font-weight: 600; }
.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox textarea { flex: 1; min-height: 64px; font: inherit; font-size: var(--t-xs); padding: 8px; border: 1.5px solid var(--paper-line); border-radius: 8px; resize: vertical; }

.shoot-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1000px) { .shoot-grid { grid-template-columns: 1fr; } }

.danger-zone summary { cursor: pointer; color: var(--marker-ink); font-size: var(--t-s); font-weight: 600; }
.danger-zone form { margin-top: 12px; }

/* pages simples (connexion, accès client, erreurs) */
body.plain { display: grid; min-height: 100dvh; place-items: center; padding: 24px 16px; }
.auth { width: min(400px, 100%); display: grid; gap: 20px; }
.auth .galleris { font-size: 1.75rem; }
.auth .cf { height: 56px; width: auto; }
.auth h1 { margin: 0; font-size: var(--t-xl); font-stretch: 125%; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.auth p { margin: 0; color: var(--graphite-2); }
.auth hr { border: 0; border-top: 1px solid var(--paper-line); margin: 4px 0; width: 100%; }
.auth .btn { width: 100%; }
.code-input { text-transform: uppercase; letter-spacing: .3em; font-stretch: 75%; font-size: var(--t-l) !important; text-align: center; }

/* page client « en attente » et « expirée » */
.notice { padding: clamp(40px, 8vw, 96px) var(--gutter) 40px; max-width: 820px; }
.notice h1 { margin: 0 0 16px; font-size: var(--t-2xl); font-stretch: 125%; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.notice p { margin: 0 0 12px; color: var(--graphite-2); max-width: 56ch; }
.notice__contact { padding: 16px 0 0; }
.mini-sheet { list-style: none; margin: 0; padding: 0 var(--gutter) 40px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.mini-sheet img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mini-sheet span { font-size: var(--t-xs); font-stretch: 75%; font-weight: 600; }

.client-list { list-style: none; margin: 0; padding: 0 var(--gutter); border-top: 2px solid var(--graphite); }
.client-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--paper-line); text-decoration: none; }
.client-list b { font-size: var(--t-l); font-weight: 600; }
.client-list span { color: var(--graphite-2); font-size: var(--t-s); }

.preview-bar {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px var(--gutter); background: var(--marker-ink); color: #fff; font-size: var(--t-s);
}
.preview-bar a { color: #fff; font-weight: 600; }

.closed-note { margin: 0 var(--gutter) 8px; padding: 12px 16px; border-radius: 10px; background: var(--graphite); color: #fff; font-size: var(--t-s); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.tally[data-readonly] .btn--marker { display: none; }
