/* Fiches à remplir (espace équipe) — écran et impression A4 */
.fp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.fp-bar .eq-chip { cursor: pointer; }
.fp-spacer { flex: 1; }
.fp-note { background: var(--amber-bg); border: 1px solid var(--amber); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 0.84rem; margin-bottom: 14px; }
.fp-prefill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.88rem; }
.fp-prefill select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--white); max-width: 320px; }

.fp-paper { background: #fff; color: #111; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 22px 26px; max-width: 820px; margin: 0 auto 24px; font-family: "Inter", Arial, sans-serif; font-size: 0.86rem; }
.fp-sheet { width: 100%; border-collapse: collapse; }
.fp-sheet > thead { display: table-header-group; }
.fp-sheet td { padding: 0; }
.fp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 2px solid #1f4a39; padding-bottom: 6px; margin-bottom: 8px; }
.fp-brand { display: flex; align-items: center; gap: 10px; }
.fp-brand img { width: 36px; height: 36px; border-radius: 8px; }
.fp-brand strong { display: block; font-family: Georgia, "Fraunces", serif; font-size: 1.15rem; color: #1f4a39; line-height: 1.1; }
.fp-brand span { display: block; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; color: #ac421a; }
.fp-contact { text-align: right; font-size: 0.62rem; color: #5c6b62; line-height: 1.45; }
.fp-title { font-family: Georgia, "Fraunces", serif; font-size: 1.45rem; font-weight: 700; color: #1f4a39; text-align: center; margin: 6px 0 2px; }
.fp-sub { text-align: center; font-style: italic; color: #5c6b62; font-size: 0.78rem; margin: 0 0 4px; }
.fp-sec { font-family: Georgia, "Fraunces", serif; font-size: 0.98rem; color: #1f4a39; margin: 14px 0 6px; padding-bottom: 2px; border-bottom: 1.5px solid #ac421a; break-after: avoid; }
.fp-sec b { color: #ac421a; }
.fp-hint { font-style: italic; color: #5c6b62; font-size: 0.74rem; margin: 0 0 4px; }

.fp-row { display: grid; grid-template-columns: 1fr 1fr; break-inside: avoid; }
.fp-row.one { grid-template-columns: 1fr; }
.fp-cell { display: grid; grid-template-columns: 38% 1fr; border: 1px solid #b9c4bc; margin: 0 -1px -1px 0; min-height: 30px; }
.fp-row.one .fp-cell { grid-template-columns: 19% 1fr; }
.fp-lab { background: #eef2ee; color: #1f4a39; font-weight: 700; font-size: 0.74rem; padding: 6px 8px; display: flex; align-items: center; }
.fp-cell input[type="text"], .fp-cell textarea { border: 0; background: transparent; font: inherit; color: #00205b; padding: 5px 8px; width: 100%; min-width: 0; outline-offset: -2px; resize: none; }
.fp-cell textarea { overflow: hidden; line-height: 1.4; }
.fp-cell input:focus, .fp-cell textarea:focus, .fp-gridt input:focus { background: #fffbe6; outline: 2px solid #3d8a5a; }
.fp-val { display: block; padding: 5px 8px; color: #00205b; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.4em; align-self: center; }

.fp-check { display: grid; grid-template-columns: 19% 1fr; border: 1px solid #b9c4bc; margin: 0 -1px -1px 0; break-inside: avoid; }
.fp-opts { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 6px 9px; align-items: center; }
.fp-opt { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 0.8rem; }
.fp-opt input[type="checkbox"] { width: 15px; height: 15px; accent-color: #1f4a39; margin: 0; }
.fp-inline { border: 0 !important; border-bottom: 1px solid #8a968f !important; background: transparent; font: inherit; width: 110px; padding: 1px 3px; color: #00205b; }
.fp-box { display: inline-block; width: 12px; height: 12px; border: 1.3px solid #1f4a39; border-radius: 2px; position: relative; flex: none; }
.fp-box.on::after { content: "✓"; position: absolute; left: 1px; top: -4px; font-size: 13px; font-weight: 700; color: #1f4a39; }

.fp-gridt { width: 100%; border-collapse: collapse; margin-top: 6px; }
.fp-gridt th { background: #eef2ee; color: #1f4a39; font-size: 0.74rem; text-align: left; padding: 6px 8px; border: 1px solid #b9c4bc; }
.fp-gridt td { border: 1px solid #b9c4bc; padding: 0; height: 28px; }
.fp-gridt input { border: 0; background: transparent; font: inherit; color: #00205b; padding: 4px 8px; width: 100%; min-width: 0; }
.fp-gridt .fp-val { padding: 4px 8px; }
.fp-gridt tr { break-inside: avoid; }

.fp-legal { font-style: italic; color: #5c6b62; font-size: 0.72rem; margin: 12px 0 8px; break-inside: avoid; }
.fp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin-top: 8px; break-inside: avoid; }
.fp-sign .fp-line { display: flex; gap: 6px; align-items: baseline; font-size: 0.8rem; margin-bottom: 8px; }
.fp-sign .fp-line input[type="text"] { border: 0; border-bottom: 1px solid #8a968f; background: transparent; font: inherit; color: #00205b; flex: 1; min-width: 0; padding: 1px 3px; }
.fp-sign .fp-line .fp-val { border-bottom: 1px solid #8a968f; flex: 1; padding: 1px 3px; min-height: 1.2em; }
.fp-sign .fp-who { font-weight: 700; color: #1f4a39; font-size: 0.8rem; margin-bottom: 4px; }
.fp-sign .fp-zone { border: 1px solid #b9c4bc; height: 78px; max-width: 280px; }
.fp-band { background: #1f4a39; color: #fff; font-weight: 700; font-size: 0.76rem; padding: 4px 10px; margin: 16px 0 6px; break-after: avoid; }
.fp-foot { text-align: center; font-size: 0.64rem; color: #5c6b62; margin-top: 10px; }

#fp-print { display: none; }

@media (max-width: 640px) {
  .fp-paper { padding: 14px 12px; }
  .fp-row, .fp-sign { grid-template-columns: 1fr; }
  .fp-cell, .fp-row.one .fp-cell, .fp-check { grid-template-columns: 1fr; }
  .fp-head { flex-direction: column; align-items: flex-start; }
  .fp-contact { text-align: left; }
}

@media print {
  @page { size: A4; margin: 11mm 13mm; }
  html, body { background: #fff !important; }
  body > *:not(#fp-print) { display: none !important; }
  #fp-print { display: block !important; }
  #fp-print .fp-paper { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; margin: 0; font-size: 9.5pt; }
  #fp-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #fp-print .fp-row, #fp-print .fp-sign { grid-template-columns: 1fr 1fr !important; }
  #fp-print .fp-row.one { grid-template-columns: 1fr !important; }
  #fp-print .fp-cell { grid-template-columns: 38% 1fr !important; }
  #fp-print .fp-row.one .fp-cell, #fp-print .fp-check { grid-template-columns: 19% 1fr !important; }
  #fp-print .fp-head { flex-direction: row !important; }
  #fp-print .fp-contact { text-align: right !important; }
}
