/* Navette Girolata — design system mobile-first.
   Palette héritée de l'application d'origine, enrichie de nuances dérivées. */

:root {
  --navy: #274c77;
  --navy-700: #1d3a5c;
  --navy-900: #142842;
  --sky: #6096ba;
  --sky-100: #e6eef5;
  --sky-200: #cbdeeb;
  --orange: #f38e55;
  --orange-100: #fdeade;
  --rose: #b87b7b;
  --rose-100: #f6e9e9;
  --plum: #4c004e;
  --grey: #7c7c7c;
  --green: #2e9c6a;
  --green-100: #e0f3ea;

  --ink: #16273a;
  --ink-soft: #5b6d80;
  --ink-faint: #8fa0b0;
  --line: #e2eaf1;
  --surface: #ffffff;
  --canvas: #f2f6fa;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 40, 66, 0.06), 0 2px 6px rgba(20, 40, 66, 0.05);
  --shadow: 0 4px 14px rgba(20, 40, 66, 0.08), 0 1px 3px rgba(20, 40, 66, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 40, 66, 0.16);

  --tap: 48px;
  --gutter: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--navy);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Les boutons en flex écraseraient sinon l'attribut HTML hidden. */
[hidden] {
  display: none !important;
}

/* --- Splash de chargement ------------------------------------------------ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.has-splash {
  overflow: hidden;
}

.splash__scene {
  position: relative;
  width: min(220px, 56vw);
  height: 110px;
}

.splash__boat {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 88px;
  height: auto;
  color: #fff;
  transform: translateX(-50%);
  transform-origin: 50% 90%;
  animation: splash-boat 2s ease-in-out infinite;
  z-index: 1;
}

.splash__waves {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 160%;
  height: 40px;
  color: #fff;
  transform: translateX(-50%);
  overflow: visible;
}

.splash__wave-path {
  animation: splash-wave 2s ease-in-out infinite;
  transform-origin: center;
}

.splash__wave-path--front {
  animation-delay: -1s;
}

@keyframes splash-boat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); }
  50% { transform: translateX(-50%) translateY(-7px) rotate(3deg); }
}

@keyframes splash-wave {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-12px) translateY(2px); }
}

/* --- Structure ----------------------------------------------------------- */

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.page {
  position: relative;
  z-index: 6;
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(28px + var(--safe-bottom));
}

.site-hero + .page {
  padding-top: 14px;
}

.page--wide {
  max-width: 780px;
}

/* La barre d'action flotte au-dessus du pied de page, qui réserve la place. */
.page--with-dock {
  padding-bottom: 20px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack--tight {
  gap: 8px;
}

.stack--loose {
  gap: 22px;
}

/* --- Bandeau institutionnel + hero --------------------------------------- */

.site-hero {
  position: relative;
  z-index: 5;
  color: #fff;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--navy);
  background-image: url("../branding/girolata-header.jpg");
  background-image: image-set(
    url("../branding/girolata-header.webp") type("image/webp"),
    url("../branding/girolata-header.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: 72% 42%;
  background-repeat: no-repeat;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(39, 76, 119, 0.94) 0%,
    rgba(39, 76, 119, 0.78) 14%,
    rgba(39, 76, 119, 0.42) 38%,
    rgba(39, 76, 119, 0.08) 62%,
    rgba(39, 76, 119, 0) 78%
  );
  pointer-events: none;
}

.site-hero--compact {
  background-position: 78% 35%;
}

.site-hero__curve {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  line-height: 0;
  pointer-events: none;
}

.site-hero__curve svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 46px;
}

.site-hero__curve path {
  fill: var(--canvas);
}

.brandbar {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 6px;
}

.brandbar__inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}

.brandbar__inner--wide {
  max-width: 780px;
}

.brandbar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 76px);
}

.brandbar .lang-switch {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-decoration: none;
}

.brandbar .brand-logo__img {
  display: block;
  height: clamp(36px, 11vw, 52px);
  width: auto;
  max-width: min(100%, 420px);
  object-fit: contain;
  mix-blend-mode: screen;
}

.brand-logo__text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* --- En-tête ------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 12px var(--gutter) 56px;
  background: transparent;
}

.site-hero:not(:has(.brandbar)) .topbar {
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      105deg,
      rgba(20, 40, 66, 0.55) 0%,
      rgba(20, 40, 66, 0.38) 38%,
      rgba(20, 40, 66, 0.12) 72%,
      rgba(20, 40, 66, 0) 100%
    );
  pointer-events: none;
}

.topbar__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.page--wide ~ .topbar .topbar__inner,
.topbar--wide .topbar__inner {
  max-width: 780px;
}

.topbar__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px;
  object-fit: contain;
  flex: none;
  filter: brightness(0) invert(1);
  margin-top: 2px;
}

.topbar__text {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}

.topbar__title {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.topbar__subtitle {
  margin-top: 6px;
  font-size: clamp(14px, 3.6vw, 17px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  font-weight: 500;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.topbar__action {
  flex: none;
  min-width: var(--tap);
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.topbar__action:active {
  background: rgba(255, 255, 255, 0.2);
}

.lang-switch {
  position: relative;
  flex: none;
  margin-left: auto;
  z-index: 6;
}

.lang-switch__details {
  position: relative;
}

.lang-switch__summary {
  list-style: none;
  min-width: 64px;
  min-height: 36px;
  padding: 4px 8px 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #274c77;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  user-select: none;
}

.lang-switch__summary::-webkit-details-marker {
  display: none;
}

.lang-switch__summary::marker {
  content: "";
}

.lang-switch__chevron {
  flex: none;
  margin-left: 2px;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.lang-switch__details[open] .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__flag {
  font-size: 18px;
  line-height: 1;
}

.lang-switch__code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 40, 66, 0.22);
  border: 1px solid rgba(20, 40, 66, 0.08);
}

.lang-switch__option {
  min-height: 36px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  background: transparent;
  border: none;
  white-space: nowrap;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: var(--sky-100);
}

.lang-switch__option--current {
  background: var(--sky-100);
  font-weight: 700;
  cursor: default;
}

.topbar__action {
  margin-left: 0;
}

.lang-switch + .topbar__action {
  margin-left: 4px;
}

.topbar--compact {
  padding-bottom: 22px;
}

.pull-up {
  margin-top: -8px;
  position: relative;
  z-index: 2;
}

/* --- Cartes -------------------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--line);
}

.card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.card__subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 18px 0 10px;
}

/* --- Formulaire guidé : barre de progression et étapes -------------------- */

.form-progress {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: -4px -2px 2px;
  padding: 10px 12px 12px;
  border-radius: var(--radius-lg);
  background: rgba(242, 246, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 40, 66, 0.06);
}

.form-progress__bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}

.form-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  transition: width 0.35s ease;
}

.form-progress__list {
  display: flex;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.form-progress__list::-webkit-scrollbar {
  display: none;
}

.form-progress__item {
  flex: 1 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.form-progress__item:disabled {
  cursor: default;
  opacity: 0.45;
}

.form-progress__item.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-progress__item.is-ready {
  color: var(--sky);
}

.form-progress__item.is-ready .form-progress__dot {
  opacity: 1;
  background: var(--sky);
}

.form-progress__dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.form-progress__item.is-active .form-progress__dot,
.form-progress__item.is-done .form-progress__dot {
  opacity: 1;
  background: var(--navy);
}

.form-progress__item.is-active .form-progress__dot {
  box-shadow: 0 0 0 3px var(--sky-100);
}

.form-progress__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-step {
  scroll-margin-top: 92px;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-step.is-future {
  display: none;
}

.form-step.is-active {
  box-shadow: var(--shadow-lg);
}

.form-step.is-done.is-collapsed .form-step__body {
  display: none;
}

.form-step.is-done.is-collapsed .form-step__head {
  display: flex;
}

.form-step__head {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.form-step__title {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.form-step__summary {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-step__edit {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
}

.form-step.is-editing .card__title {
  margin-bottom: 12px;
}

/* Sans JavaScript, toutes les étapes restent visibles. */
[data-booking-form]:not(.is-guided) .form-progress {
  display: none;
}

[data-booking-form]:not(.is-guided) .form-step.is-future {
  display: block;
}

[data-booking-form]:not(.is-guided) .form-step__head {
  display: none !important;
}

[data-booking-form]:not(.is-guided) .form-step__body {
  display: block !important;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 6px 4px 0;
}

/* --- Formulaire ---------------------------------------------------------- */

.field {
  display: block;
}

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.input,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-faint);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-100);
}

select.input {
  appearance: auto;
}

.field--invalid .input,
.field--invalid .textarea {
  border-color: var(--rose);
  background: var(--rose-100);
}

.field__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #a34a4a;
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-faint);
}

.settings-heading {
  margin: 18px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.settings-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.settings-heading__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

/* Choix du trajet : départ puis arrivée, en tuiles tactiles. */

.place-field {
  margin-bottom: 14px;
}

.place-field:last-of-type {
  margin-bottom: 0;
}

.place-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.place-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.place-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.place-pick__option {
  display: block;
  height: 100%;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.place-pick__option:active {
  transform: scale(0.985);
}

.place-pick__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.place-pick input:checked + .place-pick__option {
  border-color: var(--navy);
  background: var(--sky-100);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.place-pick input:checked + .place-pick__option .place-note {
  background: #fff;
}

.place-note {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--orange-100);
  color: #9a4a1a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
}

.trip .place-note {
  margin-top: 0;
}

/* Dates : aujourd'hui, demain, et le calendrier pour tout le reste. */

.day-pick {
  display: flex;
  gap: 8px;
}

.day-pick > label:not(.day-pick__cal) {
  flex: 1;
  min-width: 0;
}

.day-pick__cal {
  flex: 0 0 3.4rem;
  width: 3.4rem;
}

.day-pick label {
  position: relative;
  display: block;
}

.day-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-pick__option {
  height: 100%;
  min-height: 52px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.day-pick__option:active {
  transform: scale(0.985);
}

.day-pick__option--cal {
  padding: 0;
}

.day-pick__icon {
  width: 22px;
  height: 22px;
  color: var(--sky);
}

.day-pick input:checked + .day-pick__option {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.day-pick input:checked + .day-pick__option .day-pick__icon {
  color: #fff;
}

.day-pick__chosen {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.day-calendar {
  margin-top: 12px;
}

.day-calendar[hidden] {
  display: none;
}

/* Sans JavaScript, le champ ne s'affiche que si le calendrier est coché. */
.day-field:has(#day-other:not(:checked)) .day-calendar {
  display: none;
}

/* Créneaux horaires. */

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slots input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 4px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.slot__time {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.slot__meta {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
}

.slots input:checked + .slot {
  border-color: var(--navy);
  background: var(--sky-100);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.slot--off {
  cursor: not-allowed;
  background: #f6f8fa;
  border-style: dashed;
  opacity: 0.75;
}

.slot--off .slot__time {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.slots-empty {
  padding: 22px 14px;
  text-align: center;
  color: var(--ink-soft);
  background: #f6f8fa;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}

.slots-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--orange-100);
  color: #9a4a1a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Compteur de passagers. */

.pax {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 4px;
}

.pax [data-pax-hint] {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.pax [data-pax-hint].pax-hint--ok {
  color: var(--green);
}

.pax [data-pax-hint].pax-hint--over {
  color: #a34a4a;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 280px);
  margin-inline: auto;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stepper__btn {
  width: var(--tap);
  height: var(--tap);
  border: none;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--navy);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper__btn:active:not(:disabled) {
  background: var(--sky-200);
}

.stepper__value {
  width: 3.2ch;
  min-width: 46px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
  cursor: text;
}

.stepper__value:focus {
  outline: 2px solid var(--sky-200);
  outline-offset: 2px;
  border-radius: 8px;
}

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

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--success {
  background: var(--green);
  color: #fff;
}

.btn--danger {
  background: var(--rose);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.btn--quiet {
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  min-height: 44px;
}

.btn--sm {
  min-height: 42px;
  font-size: 15px;
  padding: 0 16px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Barre d'action collée en bas, toujours atteignable au pouce. */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.dock__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock__summary {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.dock__summary strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Pied de page -------------------------------------------------------- */

.sitefoot {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter) calc(20px + var(--safe-bottom));
}

.sitefoot--docked {
  padding-bottom: calc(96px + var(--safe-bottom));
}

.sitefoot__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.sitefoot__inner--wide {
  max-width: 780px;
}

.sitefoot__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 14px;
}

.sitefoot .brand-logo {
  flex: 1 1 140px;
  max-width: 240px;
}

.sitefoot .brand-logo__img {
  display: block;
  height: auto;
  width: auto;
  max-height: 56px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.sitefoot__note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.sitefoot__legal {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.45;
}

/* --- Statuts et messages ------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--pending {
  background: var(--orange-100);
  color: #b4622c;
}

.badge--confirmed {
  background: var(--green-100);
  color: #1d7a4f;
}

.badge--declined {
  background: var(--rose-100);
  color: #9c4a4a;
}

.badge--cancelled {
  background: #eceff2;
  color: var(--grey);
}

.badge--tourist {
  background: var(--sky-100);
  color: var(--navy-700);
}

.badge--resident {
  background: #f3e6f4;
  color: var(--plum);
}

.booking--kind-resident {
  background: #fdf8fb;
}

.badge--count {
  background: var(--sky-100);
  color: var(--navy);
}

.badge--count::before {
  display: none;
}

.alert {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.alert--success {
  background: var(--green-100);
  color: #1a6f47;
}

.alert--error {
  background: var(--rose-100);
  color: #8f3f3f;
}

.alert--info {
  background: var(--sky-100);
  color: var(--navy-700);
}

.alert--warning {
  background: var(--orange-100);
  color: #9c5322;
}

.empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--ink-soft);
}

.empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  opacity: 0.35;
}

.empty__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

/* --- Réservation : carte pilote ------------------------------------------ */

.trip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.trip__time {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.trip__route {
  font-size: 15px;
  font-weight: 700;
  color: var(--sky);
}

.trip__date {
  font-size: 14px;
  color: var(--ink-soft);
}

.booking {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--line);
  padding: 15px 16px;
}

.booking--pending {
  border-left-color: var(--orange);
  box-shadow: var(--shadow);
}

.booking--confirmed {
  border-left-color: var(--green);
}

.booking--declined {
  border-left-color: var(--rose);
}

.booking--cancelled {
  border-left-color: var(--grey);
  opacity: 0.7;
}

.booking__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.booking__ref {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.booking__who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.booking__name {
  font-size: 16px;
  font-weight: 700;
}

.booking__pax {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.booking__phone {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.booking__note {
  margin-top: 10px;
  padding: 9px 12px;
  background: var(--sky-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--navy-700);
  font-style: italic;
}

.booking__actions {
  margin-top: 13px;
}

.booking__meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* Feuille de départ groupée par créneau. */

.departure {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.departure__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  text-decoration: none;
}

.departure__head:active {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
}

.departure__time {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.departure__route {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.departure__load {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.departure__gauge {
  width: 54px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.departure__gauge span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #fff;
}

.departure__list {
  display: flex;
  flex-direction: column;
}

.departure__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: inherit;
  text-decoration: none;
}

.departure__row:first-child {
  border-top: none;
}

.departure__row:active {
  background: var(--sky-100);
}

.departure__chevron {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
}

/* Jauge de remplissage d'un départ. */

.load-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.load-line__value {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.load-line__value .muted {
  font-size: 18px;
  font-weight: 700;
}

.load-line__gauge {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: var(--sky-100);
  overflow: hidden;
}

.load-line__gauge span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--sky), var(--navy));
}

/* --- Conversation SMS ---------------------------------------------------- */

.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.thread__day {
  align-self: center;
  padding: 3px 12px;
  margin: 6px 0;
  border-radius: var(--radius-pill);
  background: #eef2f6;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.thread__system {
  align-self: center;
  max-width: 90%;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
  padding: 2px 0;
}

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
}

.bubble__body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bubble__translation {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  opacity: 0.92;
}

.bubble--out .bubble__translation {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.bubble__translation--hint {
  border-top: none;
  padding-top: 4px;
  font-size: 12px;
  font-style: italic;
  opacity: 0.75;
}

.bubble__tr-label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.booking__note-tr {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted, #5a6b7d);
}

.booking__note-tr .bubble__tr-label {
  display: inline;
  margin-right: 6px;
}

.bubble__meta {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.bubble--out {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble--in {
  align-self: flex-start;
  background: #eef2f6;
  color: var(--ink);
  border-bottom-left-radius: 5px;
}

.bubble--failed {
  background: var(--rose-100);
  color: #8f3f3f;
  border: 1px solid var(--rose);
}

/* --- Onglets pilote ------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #e7edf3;
  border-radius: var(--radius-pill);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__link {
  flex: 1;
  min-width: max-content;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tabs__link[aria-current="page"] {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.tabs__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

/* Bandeau de statistiques du jour. */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Suivi client -------------------------------------------------------- */

.ticket {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticket__banner {
  padding: 20px 18px;
  text-align: center;
  color: #fff;
}

.ticket__banner--pending {
  background: linear-gradient(135deg, var(--orange) 0%, #e0763c 100%);
}

.ticket__banner--confirmed {
  background: linear-gradient(135deg, var(--green) 0%, #1d7a4f 100%);
}

.ticket__banner--declined {
  background: linear-gradient(135deg, var(--rose) 0%, #9c4a4a 100%);
}

.ticket__banner--cancelled {
  background: linear-gradient(135deg, #8d9aa6 0%, var(--grey) 100%);
}

.ticket__state {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ticket__hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
}

.ticket__body {
  padding: 18px;
}

.ticket__ref {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--sky-100);
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list__row:last-child {
  border-bottom: none;
}

.detail-list__key {
  font-size: 14px;
  color: var(--ink-soft);
  flex: none;
}

.detail-list__value {
  font-weight: 700;
  text-align: right;
}

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* --- Divers -------------------------------------------------------------- */

.muted {
  color: var(--ink-soft);
  font-size: 14px;
}

.center {
  text-align: center;
}

.pin-input {
  width: 100%;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  padding: 14px;
  font-variant-numeric: tabular-nums;
}

.sms-log {
  font-size: 13px;
  line-height: 1.45;
}

.sms-log__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sms-log__item:last-child {
  border-bottom: none;
}

.sms-log__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 12px;
  margin-bottom: 3px;
}

.sms-log__body {
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .place-pick__name {
    font-size: 17px;
  }

  .place-pick {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .dock__inner {
    max-width: 560px;
  }
}

@media (max-width: 380px) {
  .day-pick__option {
    font-size: 13px;
    padding: 12px 6px;
  }

  .topbar {
    padding-bottom: 48px;
  }

  .site-hero {
    background-position: 80% 40%;
  }

  .brandbar__logos {
    max-width: calc(100% - 68px);
  }

  .topbar__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 5px;
  }

  .topbar__inner {
    gap: 10px;
  }

  .lang-switch__summary {
    min-width: 56px;
    padding: 4px 7px 4px 8px;
  }

  .lang-switch__code {
    font-size: 10px;
  }
}

@media (min-width: 560px) {
  .site-hero {
    background-position: 68% 40%;
  }

  .topbar::before {
    background:
      linear-gradient(
        100deg,
        rgba(20, 40, 66, 0.5) 0%,
        rgba(20, 40, 66, 0.32) 40%,
        rgba(20, 40, 66, 0.1) 70%,
        rgba(20, 40, 66, 0) 100%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .splash__boat,
  .splash__wave-path {
    animation: none !important;
  }
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check:last-of-type {
  border-bottom: 0;
}

.check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.check__label {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.check__hint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.4;
}

.habitant-ask {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

[data-carpool-ask]:has([name="carpool_want"][value="1"]:checked) [data-carpool-details] {
  display: flex;
}

.departure__row .badge {
  margin-left: auto;
}
