/* Page de commande d'un paysage : bloc du texte imprimé et son aperçu (police servie par notre origine, CSP). */
@font-face { font-family: "Au loin texte"; src: url("../fonts/EBGaramond-Regular-NiXEqlp.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
.checkout-caption-text { font-family: "Au loin texte", serif; }
.checkout-caption { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 0.5rem; background: rgb(255 255 255 / 0.5); }
.checkout-caption legend { float: none; width: auto; padding: 0 0.5rem; font-size: 1rem; font-weight: 600; }
.checkout-caption-help, .checkout-caption-note { margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); }
.checkout-caption-line { margin: 0 0 1rem; }
.checkout-caption-line label { display: block; font-weight: 600; }
.checkout-caption-line input { box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: 0 0.75rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--muted); border-radius: 0.375rem; }
.checkout-caption-line input[aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.checkout-caption input:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.checkout-caption-count { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.checkout-caption-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.checkout-caption-choice legend { grid-column: 1 / -1; margin-bottom: 0.25rem; padding: 0; font-size: 0.9rem; }
/* Choix en tuiles : radio masqué mais focalisable, toute la tuile est cliquable (label étiré), la tuile cochée passe à l'encre. */
.checkout-caption-choice span { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.35rem 0.5rem; font-size: 0.9rem; line-height: 1.2; text-align: center; background: #fff; border: 1px solid var(--rule); border-radius: 0.5rem; }
.checkout-caption-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.checkout-caption-choice label { cursor: pointer; }
.checkout-caption-choice label::after { content: ""; position: absolute; inset: 0; }
.checkout-caption-choice span:has(input:checked) { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.checkout-caption-choice span:has(input:focus-visible) { outline: 3px solid #ffbf47; outline-offset: 2px; }
.checkout-caption-positions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-caption-status { margin: 0 0 1rem; color: var(--accent); font-weight: 600; }
.checkout-caption-status:empty { display: none; }
.checkout-caption-review { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; }
.checkout-caption-review input { margin-top: 0.35rem; }
.checkout-reminder-title { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; }
.checkout-reminder-recap { margin: 0 0 1rem; }
.checkout-reminder-recap dt { font-weight: 600; }
.checkout-reminder-recap dd { margin: 0 0 0.5rem; }
/* Bloc du texte de `/cadrer`, replié par défaut : la boîte passe du fieldset au `details`. */
.caption-toggle { border: 1px solid var(--rule); border-radius: 0.5rem; background: rgb(255 255 255 / 0.5); }
.caption-toggle-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: 0.75rem 1.25rem; font-weight: 600; list-style: none; cursor: pointer; }
.caption-toggle-summary::-webkit-details-marker { display: none; }
.caption-toggle-summary::after { content: "+" / ""; font-size: 1.4rem; font-weight: 400; line-height: 1; }
.caption-toggle[open] > .caption-toggle-summary::after { content: "\2212" / ""; }
.caption-toggle-summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; border-radius: 0.5rem; }
.caption-toggle .checkout-caption { margin: 0; padding: 0 1.25rem 1rem; border: 0; background: none; }
