/**
 * Module de réservation — styles publics.
 *
 * Les couleurs reprennent celles du thème Bos Charaud lorsqu'elles existent,
 * avec des valeurs de repli pour que le plugin reste utilisable ailleurs.
 */

.bosr {
	--bosr-cream: var(--bos-cream, #f8f4e3);
	--bosr-soft: var(--bos-cream-soft, #fdfbf7);
	--bosr-green: var(--bos-green, #2a3a2a);
	--bosr-green-mid: var(--bos-green-mid, #4a5444);
	--bosr-gold: var(--bos-gold, #a28c73);
	--bosr-line: rgba(42, 58, 42, 0.14);
	--bosr-radius: 4px;
	--bosr-red: #a4462f;
	--bosr-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	font-family: var(--bos-font-body, inherit);
	color: var(--bosr-green);
}

.bosr *,
.bosr *::before,
.bosr *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------
 * Photo d'en-tête
 * ------------------------------------------------------------ */

.bosr-hero {
	margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
	overflow: hidden;
	border-radius: var(--bosr-radius);
	background: var(--bosr-line);
}

/* Comme les photos de formules, la photo garde ses proportions d'origine :
   rien n'est recadré, un visuel avec du texte reste lisible. */
.bosr-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------
 * Étapes
 * ------------------------------------------------------------ */

.bosr-step {
	padding-block: clamp(1.75rem, 3vw, 2.75rem);
	border-top: 1px solid var(--bosr-line);
}

.bosr-step:first-of-type { border-top: 0; padding-top: 0; }

.bosr-step__title {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0 0 1.5rem;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
	font-weight: 700;
	color: var(--bosr-green);
}

/*
 * Repli des coordonnées.
 *
 * Le titre de l'étape 3 devient un bouton quand le client est connecté : ses
 * coordonnées sont déjà remplies, autant lui présenter d'emblée ce qui lui
 * reste à faire. Les cases à cocher, elles, ne sont jamais masquées.
 */
.bosr-step__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.bosr-step__toggle:hover .bosr-step__chevron,
.bosr-step__toggle:focus-visible .bosr-step__chevron {
	border-color: var(--bosr-green);
	color: var(--bosr-green);
}

.bosr-step__toggle:focus-visible {
	outline: 2px solid var(--bosr-gold);
	outline-offset: 3px;
	border-radius: 3px;
}

/* Chevron dessiné en CSS : ni image à charger, ni police d'icônes. */
.bosr-step__chevron {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	flex-shrink: 0;
	border-right: 2px solid var(--bosr-gold);
	border-bottom: 2px solid var(--bosr-gold);
	/* Ouvert : la pointe vers le haut, elle invite à refermer. */
	transform: translateY(0.15em) rotate(-135deg);
	transition: transform 0.2s ease;
}

/* Replié : la pointe bascule vers le bas, elle invite à ouvrir. */
.bosr-step__toggle[aria-expanded="false"] .bosr-step__chevron {
	transform: translateY(-0.1em) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
	.bosr-step__chevron { transition: none; }
}

/* Replié, le titre ne doit pas garder la marge qui l'écartait des champs. */
.bosr-step--replie .bosr-step__title {
	margin-bottom: 1rem;
}

.bosr-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border: 1px solid var(--bosr-gold);
	border-radius: 50%;
	font-size: 0.85rem;
	color: var(--bosr-gold);
}

/* ---------------------------------------------------------------
 * Formules
 * ------------------------------------------------------------ */

.bosr-formulas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1rem;
}

.bosr-formula { position: relative; display: block; cursor: pointer; }

.bosr-formula input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.bosr-formula__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	height: 100%;
	padding: 1.4rem;
	background: var(--bosr-soft);
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	transition: border-color 0.3s var(--bosr-ease), box-shadow 0.3s var(--bosr-ease),
	            transform 0.3s var(--bosr-ease);
}

.bosr-formula:hover .bosr-formula__body { transform: translateY(-2px); }

.bosr-formula input:checked + .bosr-formula__body {
	border-color: var(--bosr-green);
	box-shadow: inset 0 0 0 1px var(--bosr-green);
}

.bosr-formula input:focus-visible + .bosr-formula__body {
	outline: 2px solid var(--bosr-gold);
	outline-offset: 2px;
}

/* Photo de la formule : elle affleure les bords de la carte, sous la bordure. */
/* Cadre de taille fixe, identique pour toutes les formules : sans lui, des
   photos de proportions différentes donneraient des cartes de hauteurs
   différentes, et les prix ne seraient plus alignés. */
.bosr-formula__media {
	display: block;
	margin: -1.4rem -1.4rem 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--bosr-radius) var(--bosr-radius) 0 0;
	background: rgba(42, 58, 42, 0.07);
}

/* La photo est affichée entière : rien n'est recadré. */
.bosr-formula__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s var(--bosr-ease);
}

.bosr-formula:hover .bosr-formula__media img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
	.bosr-formula:hover .bosr-formula__media img { transform: none; }
}

.bosr-formula__label { font-weight: 700; font-size: 1.05rem; }

.bosr-formula__price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--bosr-green);
	line-height: 1.1;
}

.bosr-formula__price small {
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bosr-gold);
	margin-top: 0.2rem;
}

.bosr-formula__desc { font-size: 0.9rem; color: var(--bosr-green-mid); line-height: 1.45; }

.bosr-formula__tag {
	align-self: flex-start;
	padding: 0.28rem 0.7rem;
	border: 1px solid var(--bosr-gold);
	border-radius: 999px;
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bosr-gold);
}

/* ---------------------------------------------------------------
 * Barre date / quantité
 * ------------------------------------------------------------ */

.bosr-datebar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
}

.bosr-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	overflow: hidden;
	background: #fff;
}

.bosr-stepper__btn {
	width: 42px;
	height: 44px;
	border: 0;
	background: var(--bosr-soft);
	color: var(--bosr-green);
	font-size: 1.15rem;
	cursor: pointer;
	transition: background-color 0.25s var(--bosr-ease);
}

.bosr-stepper__btn:hover { background: var(--bosr-cream); }

.bosr-stepper input {
	width: 62px;
	height: 44px;
	border: 0;
	border-inline: 1px solid var(--bosr-line);
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	color: var(--bosr-green);
	-moz-appearance: textfield;
	appearance: textfield;
}

.bosr-stepper input::-webkit-outer-spin-button,
.bosr-stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bosr-hint {
	margin: 0.55rem 0 0;
	font-size: 0.85rem;
	color: var(--bosr-gold);
	min-height: 1.2em;
}

.bosr-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
	font-size: 0.82rem;
	color: var(--bosr-green-mid);
	padding-top: 1.7rem;
}

.bosr-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }

.bosr-dot {
	width: 11px;
	height: 11px;
	border-radius: 3px;
	display: inline-block;
}

.bosr-dot--free { background: var(--bosr-soft); border: 1px solid var(--bosr-line); }
.bosr-dot--busy { background: repeating-linear-gradient(45deg, #e6e0cd, #e6e0cd 3px, #d8d1ba 3px, #d8d1ba 6px); }
.bosr-dot--sel  { background: var(--bosr-green); }

/* ---------------------------------------------------------------
 * Postes de pêche
 * ------------------------------------------------------------ */

/* Autant de boutons que le réglage « Capacité du lac » annonce de postes. */
.bosr-postes {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

.bosr-postes__title {
	padding: 0;
	margin-bottom: 0.7rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bosr-gold);
}

.bosr-postes__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.bosr-poste { position: relative; display: block; cursor: pointer; }

.bosr-poste input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.bosr-poste__body {
	display: block;
	padding: 0.6rem 1.15rem;
	background: var(--bosr-soft);
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--bosr-green);
	white-space: nowrap;
	transition: border-color 0.3s var(--bosr-ease), box-shadow 0.3s var(--bosr-ease),
	            background-color 0.3s var(--bosr-ease);
}

.bosr-poste:hover .bosr-poste__body { border-color: var(--bosr-gold); }

.bosr-poste input:checked + .bosr-poste__body {
	border-color: var(--bosr-green);
	box-shadow: inset 0 0 0 1px var(--bosr-green);
}

.bosr-poste input:focus-visible + .bosr-poste__body {
	outline: 2px solid var(--bosr-gold);
	outline-offset: 2px;
}

/* Poste déjà réservé sur les dates choisies : barré, non cliquable. */
.bosr-poste--taken { cursor: not-allowed; }

.bosr-poste--taken .bosr-poste__body {
	background: repeating-linear-gradient(45deg, #efece0, #efece0 4px, #e6e2d3 4px, #e6e2d3 8px);
	border-color: var(--bosr-line);
	color: var(--bosr-green-mid);
	opacity: 0.6;
	text-decoration: line-through;
}

.bosr-poste--taken:hover .bosr-poste__body { border-color: var(--bosr-line); }

/* Privatisation : le choix du poste ne s'applique pas. */
.bosr-postes--off .bosr-postes__list { opacity: 0.45; }
.bosr-postes--off .bosr-poste { cursor: not-allowed; }

.bosr-postes .bosr-hint,
.bosr-postes .bosr-error { margin-top: 0.6rem; }

/* ---------------------------------------------------------------
 * Calendrier
 * ------------------------------------------------------------ */

.bosr-calendar { min-height: 200px; }

.bosr-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.bosr-cal-nav__btn {
	width: 40px;
	height: 40px;
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	background: #fff;
	color: var(--bosr-green);
	font-size: 1.05rem;
	cursor: pointer;
	transition: background-color 0.25s var(--bosr-ease), opacity 0.25s var(--bosr-ease);
}

.bosr-cal-nav__btn:hover:not(:disabled) { background: var(--bosr-cream); }
.bosr-cal-nav__btn:disabled { opacity: 0.35; cursor: not-allowed; }

.bosr-months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.bosr-month__name {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	text-transform: capitalize;
}

.bosr-week,
.bosr-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.bosr-week {
	margin-bottom: 6px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bosr-gold);
	text-align: center;
}

.bosr-day {
	position: relative;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	background: var(--bosr-soft);
	color: var(--bosr-green);
	font-size: 0.88rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s var(--bosr-ease), color 0.2s var(--bosr-ease),
	            border-color 0.2s var(--bosr-ease);
}

.bosr-day:hover:not(:disabled) { border-color: var(--bosr-green); }

.bosr-day--empty {
	border: 0;
	background: transparent;
	cursor: default;
	pointer-events: none;
}

.bosr-day:disabled,
.bosr-day--blocked {
	background: repeating-linear-gradient(45deg, #ece7d6, #ece7d6 3px, #e0d9c4 3px, #e0d9c4 6px);
	color: rgba(42, 58, 42, 0.42);
	cursor: not-allowed;
	border-color: transparent;
}

.bosr-day--selected,
.bosr-day--in-range {
	background: var(--bosr-green);
	border-color: var(--bosr-green);
	color: var(--bosr-cream);
}

.bosr-day--start { box-shadow: inset 0 0 0 2px var(--bosr-gold); }

.bosr-loading { color: var(--bosr-green-mid); font-style: italic; }

/* ---------------------------------------------------------------
 * Champs
 * ------------------------------------------------------------ */

.bosr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.15rem;
}

.bosr-field--full { grid-column: 1 / -1; }

.bosr-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bosr-green-mid);
}

.bosr-field input[type="text"],
.bosr-field input[type="tel"],
.bosr-field input[type="email"],
.bosr-field textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	background: #fff;
	color: var(--bosr-green);
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.25s var(--bosr-ease);
}

.bosr-field input:focus,
.bosr-field textarea:focus {
	outline: none;
	border-color: var(--bosr-green);
	box-shadow: 0 0 0 1px var(--bosr-green);
}

.bosr-field--invalid input,
.bosr-field--invalid textarea { border-color: var(--bosr-red); }

.bosr-error {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: var(--bosr-red);
	min-height: 0;
}

.bosr-error:empty { display: none; }

.bosr-consent { margin-top: 1.5rem; }

.bosr-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--bosr-green-mid);
	cursor: pointer;
}

.bosr-consent input { margin-top: 0.25rem; flex-shrink: 0; }

/* Champ piège : masqué sans display:none pour rester rempli par les robots. */
.bosr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------
 * Récapitulatif
 * ------------------------------------------------------------ */

.bosr-summary {
	margin-top: 2rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--bosr-green);
	color: var(--bosr-cream);
	border-radius: var(--bosr-radius);
}

.bosr-summary__lines { font-size: 0.98rem; }

.bosr-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
	border-bottom: 1px solid rgba(248, 244, 227, 0.16);
}

.bosr-summary__empty { opacity: 0.75; font-style: italic; margin: 0; }

.bosr-summary__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(248, 244, 227, 0.3);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bosr-summary__total strong {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
	letter-spacing: -0.01em;
}

.bosr-submit {
	width: 100%;
	margin-top: 1.5rem;
	padding: 1.05rem 2rem;
	border: 1px solid var(--bosr-cream);
	border-radius: var(--bosr-radius);
	background: var(--bosr-cream);
	color: var(--bosr-green);
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s var(--bosr-ease), color 0.3s var(--bosr-ease),
	            opacity 0.3s var(--bosr-ease);
}

/* Au survol, le fond devenait transparent ET le texte crème : sur une page
   claire, cela donnait du crème sur crème, donc un bouton invisible. */
.bosr-submit:hover:not(:disabled) {
	background: var(--bosr-green);
	border-color: var(--bosr-green);
	color: var(--bosr-cream);
}
.bosr-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.bosr-secure {
	margin: 1rem 0 0;
	font-size: 0.8rem;
	text-align: center;
	opacity: 0.75;
}

.bosr-message { margin: 1rem 0 0; font-size: 0.94rem; min-height: 0; }
.bosr-message:empty { display: none; }
.bosr-message--error { color: #f2c0b2; }
.bosr-message--ok { color: #cfe0c0; }

/* ---------------------------------------------------------------
 * Bandeaux de retour
 * ------------------------------------------------------------ */

.bosr-notice {
	margin-bottom: 2.5rem;
	padding: clamp(1.4rem, 3vw, 2rem);
	border-left: 3px solid var(--bos-gold, #a28c73);
	border-radius: var(--bosr-radius);
	background: var(--bos-cream-soft, #fdfbf7);
}

.bosr-notice h3 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.bosr-notice p { margin: 0 0 0.5rem; }
.bosr-notice p:last-child { margin-bottom: 0; }
.bosr-notice__small { font-size: 0.88rem; opacity: 0.8; }
.bosr-notice--success { border-left-color: #5c7a4a; }
.bosr-notice--warning { border-left-color: #b8862f; }

/* ---------------------------------------------------------------
 * Espace client
 * ------------------------------------------------------------ */

.bosr-account-bar {
	margin: 0 0 2rem;
	padding: 0.9rem 1.15rem;
	background: var(--bosr-soft);
	border-left: 3px solid var(--bosr-gold);
	border-radius: var(--bosr-radius);
	font-size: 0.93rem;
	color: var(--bosr-green-mid);
}

.bosr-account-bar a {
	color: var(--bosr-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bosr-account__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.bosr-account__panel {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--bosr-soft);
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
}

.bosr-account__panel + .bosr-account__panel { margin-top: 2rem; }

.bosr-account__panel .bosr-step__title { margin-bottom: 1.25rem; }

.bosr-account__subtitle {
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bosr-green);
}

.bosr-account__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--bosr-line);
}

.bosr-account__link { margin: 1rem 0 0; font-size: 0.88rem; }
.bosr-account__link a { color: var(--bosr-gold); text-decoration: underline; text-underline-offset: 3px; }

.bosr-logout {
	padding: 0.6rem 1.2rem;
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bosr-green-mid);
	transition: border-color 0.25s var(--bosr-ease), color 0.25s var(--bosr-ease);
}

.bosr-logout:hover { border-color: var(--bosr-green); color: var(--bosr-green); }

.bosr-check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 1rem 0;
	font-size: 0.92rem;
	color: var(--bosr-green-mid);
	cursor: pointer;
}

.bosr-submit--inline { width: auto; display: inline-block; margin-top: 1rem; }

/* Connexion externe */

.bosr-social { max-width: 420px; margin: 0 auto 2rem; }

.bosr-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	padding: 0.95rem 1.5rem;
	border: 1px solid var(--bosr-line);
	border-radius: var(--bosr-radius);
	background: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bosr-green);
	transition: border-color 0.25s var(--bosr-ease), transform 0.25s var(--bosr-ease);
}

.bosr-social__btn:hover { border-color: var(--bosr-green); transform: translateY(-1px); }
.bosr-social__btn--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.bosr-social__btn--facebook:hover { border-color: #1877f2; }

.bosr-social__sep {
	position: relative;
	margin: 1.5rem 0;
	text-align: center;
	font-size: 0.82rem;
	color: var(--bosr-green-mid);
}

.bosr-social__sep::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--bosr-line);
}

.bosr-social__sep span {
	position: relative;
	padding: 0 0.9rem;
	background: var(--bos-cream, #f8f4e3);
}

/* Tableau des réservations du client */

.bosr-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }

.bosr-table th {
	padding: 0.6rem 0.5rem;
	border-bottom: 1px solid var(--bosr-line);
	text-align: left;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bosr-gold);
}

.bosr-table td {
	padding: 0.85rem 0.5rem;
	border-bottom: 1px solid var(--bosr-line);
	vertical-align: top;
}

.bosr-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 600;
	white-space: nowrap;
}

.bosr-badge--pending   { background: #fcf3d7; color: #8a6d1f; }
.bosr-badge--confirmed { background: #dcf0dc; color: #2f6b2f; }
.bosr-badge--cancelled { background: #f2dede; color: #8a2f2f; }

@media (max-width: 640px) {
	.bosr-legend { padding-top: 0; }
	.bosr-datebar { gap: 1rem; }

	.bosr-table,
	.bosr-table thead,
	.bosr-table tbody,
	.bosr-table tr,
	.bosr-table td { display: block; width: 100%; }

	.bosr-table thead { display: none; }

	.bosr-table tr {
		margin-bottom: 1rem;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid var(--bosr-line);
	}

	/* L'en-tête de colonne est masqué : on le rappelle devant chaque valeur. */
	.bosr-table td {
		display: flex;
		gap: 0.75rem;
		justify-content: space-between;
		align-items: baseline;
		border: 0;
		padding: 0.35rem 0;
	}

	.bosr-table td[data-label]::before {
		content: attr(data-label);
		flex-shrink: 0;
		font-size: 0.7rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--bosr-gold);
	}

	.bosr-table td:not([data-label]) { display: block; }
}

/* ---------------------------------------------------------------
 * Rappel « choisissez une formule »
 * ------------------------------------------------------------ */

.bosr-hint--attention {
	margin: 1rem 0 0;
	padding: 0.7rem 0.9rem;
	border-left: 3px solid var(--bosr-red);
	background: rgba(164, 70, 47, 0.07);
	color: var(--bosr-red);
	font-size: 0.9rem;
	font-weight: 600;
}

.bosr-hint--attention[hidden] { display: none; }

/* Bref clignotement des cartes, pour que l'œil sache où regarder. */
.bosr-formulas--attention .bosr-formula__body {
	animation: bosr-pulse 0.6s var(--bosr-ease) 2;
}

@keyframes bosr-pulse {
	0%, 100% { border-color: var(--bosr-line); }
	50%      { border-color: var(--bosr-red); box-shadow: 0 0 0 3px rgba(164, 70, 47, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
	.bosr-formulas--attention .bosr-formula__body { animation: none; border-color: var(--bosr-red); }
}

/* ---------------------------------------------------------------
 * Annulation depuis l'espace client
 * ------------------------------------------------------------ */

.bosr-table__actions { white-space: nowrap; }

.bosr-cancel { margin: 0; }

.bosr-cancel__btn {
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--bosr-red);
	border-radius: var(--bosr-radius);
	background: transparent;
	color: var(--bosr-red);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s var(--bosr-ease), color 0.2s var(--bosr-ease);
}

.bosr-cancel__btn:hover { background: var(--bosr-red); color: var(--bosr-cream); }

.bosr-cancel__btn:focus-visible {
	outline: 2px solid var(--bosr-gold);
	outline-offset: 2px;
}

.bosr-cancel__note {
	margin: 0.35rem 0 0;
	font-size: 0.74rem;
	line-height: 1.3;
	color: var(--bosr-green-mid);
}

/* Zone de suppression de compte : visuellement distincte du reste. */
.bosr-danger {
	margin-top: 1.5rem;
	border: 1px solid rgba(164, 70, 47, 0.35);
	border-radius: var(--bosr-radius);
	background: rgba(164, 70, 47, 0.04);
}

.bosr-cancel__btn--strong {
	padding: 0.5rem 1.1rem;
	font-size: 0.85rem;
}

/* ---------------------------------------------------------------
 * Onglets de l'espace client
 * ------------------------------------------------------------ */

.bosr-tabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--bosr-line);
}

.bosr-tabs__link {
	padding: 0.6rem 1.1rem;
	border-bottom: 2px solid transparent;
	color: var(--bosr-green-mid);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 0.2s var(--bosr-ease), border-color 0.2s var(--bosr-ease);
}

.bosr-tabs__link:hover { color: var(--bosr-green); }

.bosr-tabs__link.is-active {
	color: var(--bosr-green);
	border-bottom-color: var(--bosr-gold);
}

.bosr-tabs__link:focus-visible {
	outline: 2px solid var(--bosr-gold);
	outline-offset: -2px;
}
