/* ==========================================================================
   Réservation — tunnel en 4 étapes + récapitulatif
   ========================================================================== */

.rb-page { padding-top: 78px; min-height: 100svh; }
.rb-inner { max-width: 1400px; margin: 0 auto; }
.site-header__phone { display: none; }
@media (min-width: 640px) { .site-header__phone { display: block; } }

/* -- Progression ---------------------------------------------------------- */
.rb-progress-wrap { padding: clamp(24px, 4vw, 44px) var(--gutter) 0; }
.rb-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 1vw, 16px); }
.rb-progress__item { display: flex; }
.rb-progress__link {
	display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0;
	background: none; border: 0; text-align: left; cursor: default;
}
button.rb-progress__link { cursor: pointer; }
button.rb-progress__link:hover .rb-progress__label { color: var(--ink); }
button.rb-progress__link:hover .rb-progress__bar { background: var(--line-3); }
.rb-progress__bar { display: block; height: 2px; background: var(--line-2); transition: background-color .25s ease; }
.rb-progress__bar.is-on { background: var(--accent); }
.rb-progress__num { color: var(--ink-3); font-size: 12px; font-weight: 500; letter-spacing: .16em; }
.rb-progress__label { color: var(--ink-2); font-family: var(--f-title); font-weight: 600; font-size: clamp(16px, 1.6vw, 24px); line-height: 1; letter-spacing: .05em; transition: color .25s ease; }
.rb-progress__link[aria-current="step"] .rb-progress__label { color: var(--ink); }

/* -- Onglets d'univers (étape 1) ------------------------------------------- */
.rb-uni-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 2.6vw, 34px); }
.rb-uni-tabs .rb-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rb-uni-tabs .rb-chip[aria-pressed="true"]::after { display: none; }

/* -- Mise en page ---------------------------------------------------------- */
.rb-shell { padding: clamp(32px, 5vw, 70px) var(--gutter) clamp(60px, 8vw, 120px); }
.rb-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(34px, 4vw, 60px); }
.rb-main { flex: 1 1 520px; min-width: 0; }
.rb-title { margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(42px, 6.4vw, 108px); line-height: .9; outline: none; }
.rb-label { color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.rb-kicker { color: var(--accent-ink); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.rb-block { margin-top: clamp(30px, 4vw, 50px); }
.rb-block .rb-label { margin-bottom: 14px; }
.rb-hint { margin-top: clamp(26px, 3vw, 40px); color: var(--ink-3); font-size: 17px; line-height: 1.5; }
.rb-hint a { color: var(--ink-2); border-bottom: 1px solid var(--line-3); }
.rb-hint--small { margin-top: 18px; font-size: 13px; font-weight: 500; letter-spacing: .14em; }
.rb-noscript { color: var(--ink-2); font-size: 20px; }
.rb-noscript a { color: var(--accent-ink); }
.rb-alert { margin: 0 0 22px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--navy-deep); color: var(--ink); font-size: 17px; }

/* -- Pastilles de choix ---------------------------------------------------- */
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-chip {
	position: relative; min-height: 48px; padding: 0 22px;
	background: none; border: 1px solid var(--line-2); color: var(--ink-2);
	font-size: 15px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; cursor: pointer;
	transition: border-color .3s ease, color .3s ease;
}
.rb-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.rb-chip[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--accent); }
.rb-chip--slot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 62px; padding: 12px 24px; }
.rb-chip__sub { color: var(--ink-3); font-size: 12px; letter-spacing: .12em; }
.rb-chip.is-off { color: var(--ink-4); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }

/* -- Étape 1 : sessions --------------------------------------------------- */
.rb-sessions { border-top: 1px solid var(--line); }
.rb-session { border-bottom: 1px solid var(--line); }
.rb-session__btn {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 26px; align-items: center;
	gap: clamp(10px, 2vw, 26px); width: 100%; padding: clamp(18px, 2.2vw, 28px) 0;
	background: none; border: 0; text-align: left; color: var(--ink); cursor: pointer;
	transition: padding-left .35s var(--ease);
}
.rb-session__btn:hover { padding-left: 12px; }
.rb-session__num { color: var(--ink-3); font-size: 14px; font-weight: 500; }
.rb-session__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rb-session__name { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; }
.rb-session__note { color: var(--ink-3); font-size: 16px; line-height: 1.4; }
.rb-session__price { font-family: var(--f-display); font-size: clamp(16px, 1.6vw, 24px); text-align: right; }
.rb-radio { justify-self: end; width: 18px; height: 18px; border: 1px solid var(--line-3); border-radius: 50%; }
.rb-radio.is-on { background: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) { .rb-session__btn { grid-template-columns: 30px minmax(0, 1fr) 22px; } .rb-session__price { display: none; } }

/* -- Étape 2 : calendrier -------------------------------------------------- */
.rb-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rb-cal__month { font-family: var(--f-title); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .05em; text-transform: uppercase; }
.rb-cal__nav { display: flex; gap: 8px; }
.rb-square {
	display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
	background: none; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; cursor: pointer;
	transition: border-color .3s ease;
}
.rb-square:hover:not(:disabled) { border-color: var(--ink); }
.rb-square:disabled { opacity: .35; cursor: not-allowed; }
.rb-square--lg { width: 52px; height: 52px; font-size: 20px; }
.rb-cal__dow, .rb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rb-cal__dow { padding: 16px 0 8px; }
.rb-cal__dow span { color: var(--ink-3); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-align: center; }
.rb-day {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; min-height: 44px;
	border: 1px solid var(--line); background: var(--navy-deep); color: var(--ink);
	font-size: 17px; font-weight: 500;
}
.rb-day--pad { border: 0; background: none; }
.rb-day--open { cursor: pointer; border-color: var(--line-2); transition: border-color .25s ease, background-color .25s ease; }
.rb-day--open:hover { border-color: var(--accent); background: var(--navy-soft); }
.rb-day--sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }
.rb-day--closed { color: var(--ink-4); border-color: transparent; text-decoration: line-through; }
.rb-cal__grid[aria-busy="true"] { opacity: .5; }

/* -- Étape 3 : riders ------------------------------------------------------- */
.rb-row {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding: clamp(20px, 2.5vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.rb-row--first { border-top: 1px solid var(--line); }
.rb-row__title { font-family: var(--f-title); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .04em; text-transform: uppercase; }
.rb-row__note { margin-top: 6px; max-width: 46ch; color: var(--ink-3); font-size: 16px; line-height: 1.4; }
.rb-stepper { display: flex; align-items: center; gap: 14px; }
.rb-stepper__val { min-width: 56px; text-align: center; font-family: var(--f-title); font-weight: 600; font-size: clamp(38px, 4vw, 58px); line-height: 1; }
.rb-callout { margin-top: 22px; padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--navy-deep); color: var(--ink-2); font-size: 17px; line-height: 1.45; }

/* -- Étape 4 : coordonnées --------------------------------------------------- */
.rb-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.rb-field { display: flex; flex-direction: column; gap: 10px; }
.rb-field--full { margin-top: 20px; }
.rb-field input, .rb-field textarea {
	min-height: 54px; padding: 0 16px; background: var(--navy-deep); border: 1px solid var(--line-2);
	color: var(--ink); font: 400 19px/1.4 var(--f-body);
}
.rb-field textarea { padding: 14px 16px; resize: vertical; }
.rb-field input::placeholder, .rb-field textarea::placeholder { color: var(--ink-4); }
.rb-field input:focus, .rb-field textarea:focus { border-color: var(--accent); outline: none; }
.rb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#rb-error { margin-top: 18px; }
#rb-error .rb-alert { margin: 0; }

/* -- Récapitulatif ----------------------------------------------------------- */
.rb-recap {
	flex: 0 1 360px; align-self: flex-start; position: sticky; top: 90px;
	border: 1px solid var(--line); background: var(--navy-deep);
}
.rb-recap__head { padding: clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.rb-recap__head .rb-label { margin-bottom: 6px; }
.rb-recap__name { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05; text-transform: uppercase; }
.rb-recap__list { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 2.2vw, 26px); }
.rb-recap__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.rb-recap__row dt { color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.rb-recap__row dd { text-align: right; color: var(--ink); font-size: 17px; }
.rb-recap__total { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: clamp(18px, 2.2vw, 26px); border-top: 1px solid var(--line); }
.rb-recap__price { font-family: var(--f-display); font-size: clamp(30px, 3vw, 46px); line-height: .9; color: var(--accent-ink); }
.rb-recap__nav { display: flex; flex-direction: column; gap: 10px; padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px); }
.rb-next {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 24px;
	background: var(--accent); border: 0; color: var(--on-accent); cursor: pointer;
	font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
	transition: filter .3s ease;
}
.rb-next:hover { filter: brightness(1.12); }
.rb-next.is-off { background: var(--navy-soft); color: var(--ink-3); cursor: not-allowed; }
.rb-next.is-off:hover { filter: none; }
.rb-back {
	min-height: 48px; padding: 0 24px; background: none; border: 1px solid var(--line-2); color: var(--ink-3);
	font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; cursor: pointer;
	transition: border-color .3s ease, color .3s ease;
}
.rb-back:hover { border-color: var(--ink-3); color: var(--ink); }
@media (max-width: 900px) { .rb-recap { position: static; flex-basis: 100%; } }
