/* Formulaire du bon (téléphone et espace patron) */
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.section > h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; color: var(--marine); padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.section > h2::before { content: ""; width: 4px; height: 16px; background: var(--corail); border-radius: 2px; flex: none; }
.section .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.field .l { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.req { color: var(--corail-strong); }
.field input[type=text], .field textarea, .field select, .autre input {
  width: 100%; font-size: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.field textarea { min-height: 84px; resize: vertical; }
.ro { font-weight: 600; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 > * { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: var(--on-marine); font-weight: 600; }
.chip.ok[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.chip.attention[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); color: #fff; }
.chip.alerte[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yn .chip { border-radius: 10px; text-align: center; }
.checks { display: flex; flex-direction: column; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--marine); flex: none; }
.check.libre span::after { content: " · ajouté"; color: var(--corail-strong); font-size: 13px; }
.qte { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.qte .n { flex: 1; min-width: 0; }
.qte.on .n { font-weight: 700; }
.step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.step button { width: 42px; height: 40px; border: 0; background: var(--bg); color: var(--marine); font-size: 22px; cursor: pointer; }
.step output { width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.autre { display: flex; gap: 8px; margin-top: 10px; }
.btn-sec { font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--marine); color: var(--marine); background: transparent; cursor: pointer; white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { aspect-ratio: 1; max-width: 100%; border-radius: 10px; border: 1.5px dashed var(--line); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; padding: 6px; cursor: pointer; position: relative; overflow: hidden; }
.ph.has { border-style: solid; cursor: default; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .cam { font-size: 24px; color: var(--marine); }
.ph b { color: var(--ink); font-weight: 600; font-size: 12px; line-height: 1.2; }
.ph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } }
