/* Le bon de sortie : feuille blanche posée sur le céruléen. */
.bon { background: var(--ceruleen); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 880px); gap: 32px clamp(32px, 5vw, 110px); align-items: start; }
.bon-tete { position: sticky; top: calc(var(--barre) + 40px); }
.bon-tete h2:focus { outline: none; }
.carnet { margin-top: clamp(28px, 3vw, 56px); padding-top: 20px; border-top: 6px solid var(--encre); max-width: 520px; }
.carnet-dest { font-family: var(--titre); font-size: clamp(56px, 5.4vw, 104px); line-height: 0.95; }
.carnet-donnees { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 24px 0 0; }
.carnet-donnees dt { font-size: 14px; font-weight: 520; }
.carnet-donnees dd { margin: 2px 0 0; font-size: clamp(20px, 1.6vw, 28px); font-weight: 600; letter-spacing: -0.01em; }
.carnet-lien { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 640; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.b-somme strong.vide { font-size: 18px; font-weight: 560; color: var(--gris); }
.bon-feuille { background: var(--blanc); padding: clamp(20px, 3vw, 52px); display: grid; gap: 30px; box-shadow: 0 30px 60px -30px rgba(4, 40, 60, 0.45); }
.b-bloc { margin: 0; padding: 0; border: 0; min-width: 0; }
.b-bloc legend, .b-lib { font-family: var(--titre); font-size: clamp(30px, 2.4vw, 40px); line-height: 1; padding: 0; margin-bottom: 14px; }

.b-bateau { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--trait); }
.b-bateau:last-child { border-bottom: 1px solid var(--trait); }
.b-nom { font-size: 17px; }
.b-nom b { font-weight: 680; }
.b-nom span { color: var(--gris); font-size: 14px; }
.b-reste { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 680; color: var(--encre); box-shadow: inset 0 -3px 0 var(--ceruleen); }
.b-unite { grid-column: 1; font-size: 14px; color: var(--gris); }
.b-bateau .pas { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.b-bateau.pris { background: linear-gradient(90deg, rgba(0, 163, 240, 0.12), rgba(0, 163, 240, 0)); }
.pas-clair button { width: 44px; height: 44px; background: var(--calcaire); color: var(--encre); font-size: 22px; }
.pas-clair button:hover:not([disabled]) { background: #dce4e7; }
.pas-clair button[disabled] { color: #a7b3b9; background: #f3f6f7; }
.pas-clair output { min-width: 44px; font-size: 20px; font-weight: 640; }

.b-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.b-jours button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 10px; border: 0; background: var(--calcaire); text-align: left; }
.b-jours button span { font-size: 13px; color: var(--gris); }
.b-jours button b { font-size: 15px; font-weight: 640; white-space: nowrap; }
.b-jours button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.b-jours button[aria-pressed="true"] span { color: var(--gris-sombre); }
.b-jours button[disabled] { background: repeating-linear-gradient(135deg, #f3f6f7 0 6px, #e6ecee 6px 12px); color: #6b787f; cursor: not-allowed; }
.b-autre { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-weight: 560; }
.b-autre input, .b-ligne select { min-height: 48px; padding: 0 12px; border: 2px solid var(--encre); border-radius: 0; background: var(--blanc); font-size: 16px; }
.b-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.b-ligne .b-lib { margin: 0; }
.b-ligne select { min-width: 140px; font-size: 20px; font-weight: 600; }

.b-durees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.b-duree { position: relative; cursor: pointer; }
.b-duree input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.b-duree span { display: flex; flex-direction: column; gap: 2px; min-height: 84px; padding: 10px 12px; background: var(--calcaire); }
.b-duree b { font-size: 18px; font-weight: 680; }
.b-duree em { font-style: normal; font-size: 13px; color: var(--gris); }
.b-duree strong { margin-top: auto; font-size: 17px; font-weight: 640; }
.b-duree input:checked + span { background: var(--encre); color: var(--blanc); }
.b-duree input:checked + span em { color: var(--gris-sombre); }
.b-duree input:focus-visible + span { outline: 3px solid var(--encre); outline-offset: 2px; }
.b-duree.ferme { cursor: not-allowed; }
.b-duree.ferme span { background: repeating-linear-gradient(135deg, #f3f6f7 0 6px, #e6ecee 6px 12px); }
.b-duree.ferme b { text-decoration: line-through; color: #6b787f; }

.b-total { display: grid; gap: 6px; padding-top: 20px; border-top: 3px solid var(--encre); }
.b-retour { font-size: 18px; font-weight: 600; }
.b-somme { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.b-somme span { font-weight: 560; }
.b-somme strong { font-size: clamp(30px, 3vw, 46px); font-weight: 620; letter-spacing: -0.01em; text-align: right; }
.b-caution { font-size: 15px; color: var(--gris); max-width: 52ch; }
.b-continuer { width: 100%; min-height: 58px; font-size: 18px; }

@media (max-width: 1023px) {
  .bon { grid-template-columns: 1fr; }
  .bon-tete { position: static; }
}
@media (max-width: 640px) {
  .bon-feuille { padding: 20px 16px; margin: 0 calc(-1 * var(--marge) + 8px); }
  .b-jours { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; }
  .b-jours button { flex: 0 0 82px; scroll-snap-align: start; }
  .b-durees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-autre { justify-content: space-between; }
  .b-autre input { flex: 1; max-width: 200px; }
}
