/**
 * Demande de réservation de tireuse ([cbb_reservation_tireuse], Contenus\ReservationTireuse). Carte, deux colonnes sur
 * ordinateur, une sur téléphone. Jetons de la charte v2 uniquement (valeurs de repli pour les essais sans charte).
 * Chargée seulement sur les pages qui portent le code court. Sélecteurs « .cbb-resa .x » là où .cbb-prose (zone de
 * contenu des pages) impose ses marges de titres, de paragraphes et de listes.
 */

.cbb-resa { max-width: 860px; margin: var(--cbb-esp-6, 32px) auto; padding: var(--cbb-esp-6, 32px); background: var(--cbb-blanc, #fff); border: 1px solid var(--cbb-trait, #d8d2c4); border-radius: var(--cbb-rayon-lg, 12px); font-family: var(--cbb-police-texte, system-ui, sans-serif); color: var(--cbb-texte, #2b2f2c); box-sizing: border-box; scroll-margin-top: 96px; }
.cbb-resa *, .cbb-resa *::before, .cbb-resa *::after { box-sizing: border-box; }
.cbb-resa .cbb-resa__titre { margin: 0 0 6px; letter-spacing: -0.01em; font-family: var(--cbb-police-titre, Georgia, serif); font-size: 28px; font-weight: 400; line-height: 1.2; color: var(--cbb-encre, #1b2522); }
.cbb-resa .cbb-resa__intro { margin: 0 0 var(--cbb-esp-5, 20px); color: var(--cbb-texte-doux, #5a615c); line-height: 1.5; }
.cbb-resa__form { display: flex; flex-direction: column; gap: var(--cbb-esp-5, 20px); }
.cbb-resa__form--envoye { display: none; }

/* Blocs */
.cbb-resa fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cbb-resa__bloc { display: flex; flex-direction: column; gap: var(--cbb-esp-4, 16px); padding-top: var(--cbb-esp-5, 20px) !important; border-top: var(--cbb-filet, 1px solid #d8d2c4) !important; }
.cbb-resa__bloc:first-of-type { padding-top: 0 !important; border-top: 0 !important; }
.cbb-resa__legende { float: left; width: 100%; margin: 0 0 4px; padding: 0; font-size: var(--cbb-fs-mini, 12px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cbb-vert, #294c45); }
.cbb-resa__legende + * { clear: both; }
.cbb-resa__grille { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cbb-esp-4, 16px) var(--cbb-esp-5, 20px); }
.cbb-resa__champ--large { grid-column: 1 / -1; }

/* Champs */
.cbb-resa__champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cbb-resa__champ > label, .cbb-resa__choix > legend, .cbb-resa__futs > legend { padding: 0; font-size: var(--cbb-fs-petit, 13.5px); font-weight: 600; color: var(--cbb-encre, #1b2522); }
.cbb-resa__facultatif { font-weight: 400; color: var(--cbb-texte-doux, #5a615c); }
.cbb-resa__champ input[type="text"], .cbb-resa__champ input[type="email"], .cbb-resa__champ input[type="tel"], .cbb-resa__champ input[type="date"], .cbb-resa__champ input[type="number"], .cbb-resa__champ select, .cbb-resa__champ textarea {
	width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--cbb-trait, #d8d2c4); border-radius: var(--cbb-rayon, 8px); background: var(--cbb-blanc, #fff);
	font: 400 16px/1.4 var(--cbb-police-texte, system-ui, sans-serif); color: var(--cbb-encre, #1b2522); appearance: none; -webkit-appearance: none;
}
.cbb-resa__champ select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.cbb-resa__champ textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.cbb-resa input:focus-visible, .cbb-resa select:focus-visible, .cbb-resa textarea:focus-visible { outline: 2px solid var(--cbb-sauge, #8fa98a); outline-offset: 1px; border-color: var(--cbb-vert, #294c45); }
.cbb-resa__aide { font-size: var(--cbb-fs-mini, 12px); color: var(--cbb-texte-doux, #5a615c); }
.cbb-resa__champ--erreur input, .cbb-resa__champ--erreur select, .cbb-resa__champ--erreur textarea { border-color: var(--cbb-bordeaux, #8a2b3a); }
.cbb-resa__erreur { font-size: var(--cbb-fs-petit, 13.5px); font-weight: 600; color: var(--cbb-bordeaux, #8a2b3a); }

/* Tireuse : trois choix en pastilles */
.cbb-resa__choix { display: flex; flex-direction: column; gap: 8px; }
.cbb-resa__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cbb-resa__option { position: relative; display: flex; cursor: pointer; }
.cbb-resa__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cbb-resa__option span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid var(--cbb-trait, #d8d2c4); border-radius: var(--cbb-rayon, 8px); background: var(--cbb-blanc, #fff); text-align: center; font-size: 15px; line-height: 1.3; color: var(--cbb-encre, #1b2522); transition: border-color .15s, background-color .15s; }
.cbb-resa__option:hover span { border-color: var(--cbb-vert, #294c45); }
.cbb-resa__option input:checked + span { border: 2px solid var(--cbb-vert, #294c45); background: var(--cbb-sauge-pale, #e6eee3); font-weight: 600; }
.cbb-resa__option input:focus-visible + span { outline: 2px solid var(--cbb-sauge, #8fa98a); outline-offset: 2px; }

/* Fûts proposés (quand un module fournit la liste) */
.cbb-resa__futs { display: flex; flex-direction: column; gap: 10px; }
.cbb-resa .cbb-resa__liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.cbb-resa .cbb-resa__fut { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 4px 4px 4px 12px; border: 1px solid var(--cbb-trait, #d8d2c4); border-radius: var(--cbb-rayon, 8px); }
.cbb-resa__quantite input { width: 68px; min-height: 40px; padding: 0 8px; border: 1px solid var(--cbb-trait, #d8d2c4); border-radius: var(--cbb-rayon, 8px); font: 400 16px var(--cbb-police-texte, system-ui, sans-serif); text-align: center; }
.cbb-resa__quantite input:disabled { opacity: .45; }

/* Case de consentement */
.cbb-resa__case { display: flex; align-items: flex-start; gap: 10px; font-size: var(--cbb-fs-petit, 13.5px); font-weight: 400; line-height: 1.45; cursor: pointer; }
.cbb-resa__case input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--cbb-vert, #294c45); }
.cbb-resa__case a { color: var(--cbb-vert, #294c45); }

/* Envoi, états */
.cbb-resa__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cbb-resa__note { font-size: var(--cbb-fs-petit, 13.5px); color: var(--cbb-texte-doux, #5a615c); }
.cbb-resa__envoyer[aria-busy="true"] { opacity: .7; cursor: progress; }
.cbb-resa__piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.cbb-resa .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cbb-resa .cbb-resa__etat { margin: 0 0 var(--cbb-esp-4, 16px); padding: 14px 16px; border-radius: var(--cbb-rayon, 8px); font-size: var(--cbb-fs-texte, 15px); line-height: 1.45; }
.cbb-resa__etat:focus { outline: none; }
.cbb-resa__etat--ok { background: var(--cbb-sauge-pale, #e6eee3); color: var(--cbb-vert-fonce, #1f3b35); border: 1px solid var(--cbb-sauge, #8fa98a); font-weight: 600; }
.cbb-resa__etat--erreur { background: var(--cbb-bordeaux-pale, #f6e7e9); color: var(--cbb-bordeaux-fonce, #6d1f2c); border: 1px solid var(--cbb-bordeaux, #8a2b3a); }
.cbb-resa__etat-zone:empty { display: none; }

@media (max-width: 767px) {
	.cbb-resa { padding: var(--cbb-esp-5, 20px) 16px; margin: var(--cbb-esp-5, 20px) 0; border-radius: var(--cbb-rayon, 8px); }
	.cbb-resa .cbb-resa__titre { font-size: 24px; }
	.cbb-resa__grille, .cbb-resa .cbb-resa__liste { grid-template-columns: 1fr; }
	.cbb-resa__options { grid-template-columns: 1fr; gap: 8px; }
	.cbb-resa__option span { justify-content: flex-start; min-height: 48px; text-align: left; }
	.cbb-resa__actions .cbb-btn { width: 100%; }
	.cbb-resa__note { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cbb-resa__option span { transition: none; } }
