/* Fiches A5 (deux par feuille A4) : QR codes des stations et carnets d'équipe */
.aide-impression { margin: 0 auto; padding-bottom: 12px; font-size: 13px; }
.choix-impression { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.choix-impression input { width: 18px; height: 18px; accent-color: var(--encre); }
.feuilles { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 12px 60px; }
.feuille { width: 210mm; height: 297mm; background: #fff; box-shadow: 0 10px 30px -18px rgba(31, 43, 71, .6); display: grid; grid-template-rows: 1fr 1fr; }
.fiche { position: relative; display: flex; flex-direction: column; padding: 9mm 11mm; overflow: hidden; color: #1F2B47; }
.fiche + .fiche { border-top: 1px dashed #C9CEDB; }
.fiche-bande { display: flex; justify-content: space-between; align-items: center; padding: 3mm 5mm; border-radius: 4mm; background: var(--univers); color: #fff; font-weight: 800; font-size: 13pt; letter-spacing: .03em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fiche-corps { flex: 1; display: flex; gap: 9mm; align-items: center; padding-top: 6mm; }
.fiche-qr-code .qr { display: block; width: 92mm; height: 92mm; border: 1.2mm solid var(--univers); border-radius: 4mm; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fiche-qr-code svg { display: block; width: 100%; height: 100%; }
.fiche-texte { flex: 1; min-width: 0; }
.fiche-sur-titre { margin: 0; font-size: 9pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8C5A2B; }
.fiche-texte h2 { margin: 1mm 0 4mm; font-family: var(--titre); font-weight: 400; font-size: 28pt; line-height: 1.05; }
.fiche-texte ol { margin: 0; padding-left: 5mm; font-size: 11.5pt; line-height: 1.45; }
.fiche-texte li { margin-bottom: 1.5mm; }
.fiche-url { margin: 4mm 0 0; font-size: 7.5pt; color: #5A6482; word-break: break-all; font-family: ui-monospace, monospace; }
.fiche-alerte { position: absolute; right: 11mm; bottom: 4mm; margin: 0; font-size: 9pt; font-weight: 700; color: #9A2A1E; }

.carnet-bande { background: var(--binome); }
.carnet-corps { flex: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 8mm; padding-top: 5mm; }
.carnet-corps h3 { margin: 0 0 3mm; font-family: var(--titre); font-weight: 400; font-size: 16pt; }
.carnet-grille { display: flex; flex-direction: column; gap: 2.5mm; }
.carnet-couleur { display: flex; align-items: center; gap: 2mm; padding: 1.8mm 2.5mm; border-radius: 3mm; background: var(--univers-clair); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.carnet-nom { width: 14mm; font-weight: 800; font-size: 9.5pt; color: var(--univers); text-transform: uppercase; }
.case-carnet { position: relative; display: inline-block; width: 13mm; height: 11mm; border: .5mm solid var(--univers, #1F2B47); border-radius: 2mm; background: #fff; }
.case-carnet.large { width: 15mm; }
.case-carnet.chiffre { width: 10mm; border-width: .8mm; }
.case-carnet small { position: absolute; left: 1mm; top: .3mm; font-size: 6pt; color: #5A6482; }
.signe { font-weight: 700; font-size: 11pt; color: #5A6482; }
.carnet-code { display: flex; align-items: center; gap: 2.5mm; margin-top: 4mm; padding-top: 3mm; border-top: .4mm solid #E1E4EC; font-family: var(--titre); font-size: 14pt; }
.carnet-code .case-carnet { width: 12mm; height: 14mm; border-color: #8C5A2B; }
.carnet-note { margin: 2mm 0 0; font-size: 8pt; color: #5A6482; }
.carnet-parcours { list-style: none; margin: 0; padding: 0; font-size: 9.5pt; }
.carnet-parcours li { display: flex; align-items: center; gap: 2mm; padding: 1.2mm 0; border-bottom: .3mm solid #EEF0F4; }
.carnet-parcours .heure { width: 11mm; font-weight: 700; font-variant-numeric: tabular-nums; }
.carnet-parcours .pastille { width: 5.5mm; height: 5.5mm; border-radius: 50%; color: #fff; font-size: 8pt; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

@media screen and (max-width: 860px) {
  .feuille { width: 100%; height: auto; grid-template-rows: none; }
  .fiche { min-height: 0; }
  .fiche-corps, .carnet-corps { flex-direction: column; grid-template-columns: 1fr; }
  .fiche-qr-code .qr { width: 60vw; height: 60vw; }
}
@page { size: A4 portrait; margin: 0; }
@media print {
  .barre-admin { display: none !important; }
  body.admin { background: #fff; }
  .feuilles { display: block; padding: 0; }
  .feuille { box-shadow: none; break-after: page; page-break-after: always; }
  .feuille:last-child { break-after: auto; page-break-after: auto; }
}
