/* Page « Préparer un dépôt » (complète home.css). */

.seance { max-width: var(--max); margin: 0 auto; padding: 32px 24px 64px; }
.seance-intro { max-width: 760px; }
.seance-intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.note { color: var(--muted); font-size: .95rem; margin: 0; }
.note::before { content: "🔒 "; }

.seance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}
@media (max-width: 900px) { .seance-grid { grid-template-columns: 1fr; } }

.seance-form, .seance-output, .seance-tips {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.seance-form { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 650; font-size: .95rem; padding: 0; }
.field small, .help { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}
textarea.input { resize: vertical; min-height: 90px; }
.input[aria-invalid="true"] { border-color: var(--rec); border-width: 2px; }
.help.is-error { color: var(--error); font-weight: 600; }

.radio { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: .95rem; }
.radio input { width: 20px; height: 20px; accent-color: var(--grad-a); }

.seance-output h2, .seance-tips h2 { margin: 0 0 16px; font-size: 1.2rem; }
.qr-box {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.qr-box canvas { width: min(100%, 320px); height: auto; image-rendering: pixelated; }
.link-row { display: flex; gap: 8px; margin-top: 16px; }
.link-row .input { font: .85rem ui-monospace, monospace; min-width: 0; }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.seance-tips { margin-top: 32px; }
.seance-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.seance-tips strong { color: var(--text); }

/* Projection plein écran : <dialog> natif (fond inerte, Échap pour fermer). */
.projection {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: #fff;
  color: #111418;
  padding: 24px;
}
.projection[open] { display: grid; place-items: center; }
.projection::backdrop { background: #fff; }
.projection-inner { display: grid; justify-items: center; gap: 12px; text-align: center; }
.projection h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.projection-classe { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.8rem); font-weight: 700; color: #4338ca; }
.projection canvas { width: min(70vh, 80vw); height: auto; image-rendering: pixelated; }
.projection-hint { margin: 0; color: #4a5361; }
.projection .btn { color: #111418; border-color: #7a8494; background: #fff; }
.projection .btn:focus-visible { outline-color: #4338ca; }
