.at-intro h1 { margin: 0 0 8px; font-size: 26px; }
.at-intro p { margin: 0; max-width: 70ch; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }

.at-setup {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end;
}
.at-setup label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.at-setup .wide { grid-column: 1 / -1; }
.at-setup input, .at-setup select {
  font: inherit; font-weight: 400; padding: 9px 11px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text);
}
.at-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Le kit : des feuilles A4 à l'écran comme à l'impression */
.kit { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.sheet {
  width: 100%; max-width: 794px; background: #fff; color: #1d1b16; box-shadow: var(--shadow); border-radius: 6px;
  padding: 40px 44px; font-size: 15px; line-height: 1.45;
}
.sheet h2 { margin: 0 0 4px; font-size: 26px; }
.sheet h3 { margin: 18px 0 6px; font-size: 17px; }
.sheet .sub { color: #6b665c; margin: 0 0 14px; }
.sheet ol, .sheet ul { margin: 0; padding-left: 22px; }
.sheet li { margin: 3px 0; }
.sheet .band { height: 10px; background: #ffcf00; border-radius: 4px; margin: 0 0 18px; }
.timeline { width: 100%; border-collapse: collapse; margin-top: 6px; }
.timeline td { border-top: 1px solid #e2ddd1; padding: 7px 6px; vertical-align: top; }
.timeline td:first-child { width: 90px; font-weight: 700; white-space: nowrap; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px dashed #b9b2a3; }
.card { border: 1px dashed #b9b2a3; padding: 22px 20px; min-height: 250px; display: flex; flex-direction: column; gap: 8px; }
.card .num { font-size: 13px; font-weight: 700; color: #6b665c; text-transform: uppercase; letter-spacing: .05em; }
.card .goal { font-size: 24px; font-weight: 800; line-height: 1.15; }
.card .rule { font-size: 15px; background: #fff4cc; border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.card .foot { margin-top: auto; font-size: 12px; color: #6b665c; display: flex; justify-content: space-between; }

.diplomas { display: grid; grid-template-columns: 1fr; gap: 0; }
.diploma {
  border: 6px double #e3000b; border-radius: 10px; padding: 26px 30px; margin-bottom: 18px; text-align: center; min-height: 440px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; background: linear-gradient(180deg, #fffdf5, #fff);
}
.diploma .logo-row { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.diploma .logo-row img { width: 40px; height: 40px; }
.diploma .title { font-size: 40px; font-weight: 800; color: #e3000b; margin: 6px 0; letter-spacing: -.01em; }
.diploma .line { border-bottom: 2px solid #1d1b16; height: 40px; width: 70%; margin: 0 auto; }
.diploma .small { color: #6b665c; font-size: 14px; }

.poster { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; min-height: 1000px; }
.poster img { width: 140px; height: 140px; }
.poster .big { font-size: 56px; font-weight: 800; line-height: 1.05; margin: 0; }
.poster .mid { font-size: 24px; margin: 0; }
.poster .where { font-size: 28px; font-weight: 700; background: #ffcf00; padding: 10px 24px; border-radius: 12px; }

@media print {
  @page { size: A4; margin: 12mm; }
  .no-print, header.top, .foot { display: none !important; }
  body, main.set-page { background: #fff !important; padding: 0 !important; margin: 0 !important; display: block; }
  .kit { display: block; gap: 0; }
  .sheet { box-shadow: none; border-radius: 0; max-width: none; padding: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .card, .diploma { break-inside: avoid; }
  .diploma { min-height: 125mm; }
  .poster { min-height: 260mm; }
}
@media (max-width: 600px) {
  .sheet { padding: 22px 18px; }
  .cards { grid-template-columns: 1fr; }
  .poster .big { font-size: 38px; }
}
