/* Flex Reservations : styles publics. Les couleurs reprennent celles du thème quand c'est possible. */
.flexres { --flexres-radius: 8px; --flexres-border: rgba(0, 0, 0, 0.12); --flexres-muted: rgba(0, 0, 0, 0.62); margin: 1.5em 0; }
.flexres *, .flexres *::before, .flexres *::after { box-sizing: border-box; }

.flexres-sessions__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.flexres-card { --flexres-color: #2271b1; padding: 16px 18px; border: 1px solid var(--flexres-border); border-left: 5px solid var(--flexres-color); border-radius: var(--flexres-radius); background: #fff; color: #1d2327; }
.flexres-card__type { margin: 0 0 4px; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--flexres-color); font-weight: 700; }
.flexres-card__title { margin: 0 0 8px; font-size: 1.15em; }
.flexres-card__when { margin: 0 0 8px; font-weight: 600; }
.flexres-card__time { margin-left: 8px; font-weight: 400; color: var(--flexres-muted); }
.flexres-card__fields { margin: 0 0 8px; }
.flexres-card__fields div { display: flex; gap: 6px; flex-wrap: wrap; }
.flexres-card__fields dt { font-weight: 600; }
.flexres-card__fields dt::after { content: " :"; }
.flexres-card__fields dd { margin: 0; }
.flexres-card__price { margin: 0 0 8px; font-weight: 700; }
.flexres-card__member-price { margin: -4px 0 8px; font-size: 0.92em; color: var(--flexres-muted); }
.flexres-card__seats { margin: 0 0 12px; color: var(--flexres-muted); font-size: 0.9em; }
.flexres-card--summary { margin-bottom: 20px; max-width: 520px; }

.flexres-button { display: inline-block; padding: 10px 18px; border: 0; border-radius: var(--flexres-radius); background: #1d2327; color: #fff; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.flexres-button:hover, .flexres-button:focus { background: #000; color: #fff; }
.flexres-button--secondary { background: #fff; color: #1d2327; border: 1px solid #1d2327; }
.flexres-button--secondary:hover, .flexres-button--secondary:focus { background: #f0f0f1; color: #1d2327; }

.flexres-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #f0f0f1; font-size: 0.85em; }
.flexres-badge--full { background: #fcf0f1; color: #8a1f23; }
.flexres-badge--booked { background: #edfaef; color: #1e6b33; font-weight: 600; }
.flexres-card__booked { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: auto 0 0; }

.flexres-form { max-width: 520px; }
.flexres-form p { margin: 0 0 14px; }
.flexres-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.flexres-form input[type="text"], .flexres-form input[type="email"], .flexres-form input[type="tel"], .flexres-form input[type="password"], .flexres-form input[type="date"], .flexres-form select { width: 100%; padding: 9px 10px; border: 1px solid var(--flexres-border); border-radius: var(--flexres-radius); font: inherit; background: #fff; color: #1d2327; }
.flexres-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.flexres-hint { color: var(--flexres-muted); font-size: 0.9em; }

.flexres-auth { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--flexres-border); border-radius: var(--flexres-radius); background: #f6f7f7; max-width: 520px; }
.flexres-auth__text { margin: 0 0 10px; }
.flexres-auth__buttons { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }

.flexres-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--flexres-radius); border: 1px solid var(--flexres-border); max-width: 640px; }
.flexres-notice--error { background: #fcf0f1; border-color: #d63638; color: #8a1f23; }
.flexres-notice--success { background: #edfaef; border-color: #00a32a; color: #0a4b1e; }
.flexres-notice--info { background: #f0f6fc; border-color: #72aee6; }

.flexres-table-wrap { overflow-x: auto; }
.flexres-table { width: 100%; border-collapse: collapse; }
.flexres-table th, .flexres-table td { padding: 10px 8px; border-bottom: 1px solid var(--flexres-border); text-align: left; vertical-align: top; }
.flexres-table tr.is-cancelled td { background: #fcf0f1; color: #8a1f23; }
.flexres-inline-form { display: inline; margin: 0; }
.flexres-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; margin-right: 8px; }
.flexres-link--danger { color: #b32d2e; }

@media (max-width: 600px) {
	.flexres-table thead { display: none; }
	.flexres-table tr { display: block; margin-bottom: 14px; border: 1px solid var(--flexres-border); border-radius: var(--flexres-radius); }
	.flexres-table td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--flexres-border); }
	.flexres-table td::before { content: attr(data-label); font-weight: 600; }
}

/* Calendrier */
.flexres-calendar-wrap { max-width: 1100px; }
.flexres-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.flexres-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.flexres-legend__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.flexres-calendar .fc-event { cursor: default; }
.flexres-calendar .fc-event[href] { cursor: pointer; }
.flexres-calendar .flexres-event--cancelled { opacity: 0.55; text-decoration: line-through; }
.flexres-calendar .flexres-event--full { opacity: 0.7; border-style: dashed; }
.flexres-calendar .flexres-event--past { opacity: 0.55; }
.flexres-calendar .fc-list-event-dot { border-color: currentColor; }

.flexres-subtitle { margin: 32px 0 12px; }
.flexres-profile input[readonly] { background: #f6f7f7; color: #50575e; }

.flexres-payment-choice { border: 0; padding: 0; margin: 0 0 14px; }
.flexres-payment-choice legend { font-weight: 600; margin-bottom: 6px; }
.flexres-payment-choice__option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--flexres-border); border-radius: var(--flexres-radius); cursor: pointer; font-weight: 400; }
.flexres-payment-choice__option:has(input:checked) { border-color: currentColor; }
.flexres-payment-choice__option input { margin-top: 4px; }
.flexres-payment-choice__option small { display: block; color: var(--flexres-muted); }
