/* Page « Attestation » (06/10/2026) : formulaire à gauche, document A4 à droite ; à l'impression, le document seul. */
.att-main { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.att-form h1 { font-size: 1.5rem; margin: 0 0 8px; }
.att-form h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.att-form .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.att-types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 12px 0; }
.att-types legend { font-weight: 700; margin-bottom: 6px; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.att-chip:has(input:checked) { border-color: var(--primary); background: #e6f0fa; font-weight: 600; }
.att-preview-pane { position: sticky; top: 12px; }
.att-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.att-actions .hint { margin: 0; }
.att-doc { background: #fff; color: #111; aspect-ratio: 210 / 297; padding: 9% 10%; box-shadow: 0 6px 30px rgba(0, 0, 0, .15); border-radius: 4px;
  font: 11.5pt/1.6 "Source Serif 4", Georgia, "Times New Roman", serif; overflow: hidden; }
.att-head { font-size: 10pt; line-height: 1.4; margin-bottom: 14%; }
.att-title { text-align: center; font-size: 15pt; letter-spacing: .08em; text-decoration: underline; margin: 0 0 10%; }
.att-doc p { text-align: justify; margin: 0 0 1em; }
.att-date { margin-top: 2em !important; text-align: right !important; }
.att-sign { display: flex; justify-content: flex-end; text-align: center; margin-top: 1em; }
.att-sign p { text-align: center !important; }
.att-sign-space { margin-top: 5em !important; font-size: 9pt; color: #6b7280; }
@media (max-width: 900px) { .att-main { grid-template-columns: 1fr; } .att-preview-pane { position: static; } }
@page { size: A4; margin: 0; }
@media print {
  body.att-page > header, body.att-page > footer, .att-form, .att-actions { display: none !important; }
  .att-main { display: block; padding: 0; max-width: none; }
  .att-doc { box-shadow: none; border-radius: 0; width: 210mm; height: 297mm; aspect-ratio: auto; padding: 25mm 22mm; }
}
