:root {
  --ink: #07131a;
  --muted: #60717a;
  --green: #418357;
  --green-dark: #245739;
  --blue: #0d63b8;
  --water: #bcecf5;
  --line: #d9e7ea;
  --paper: #f5fafb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 86vh;
  padding: 22px clamp(16px, 5vw, 76px) 42px;
  color: white;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 42%), rgb(0 0 0 / 88%)),
    url("/static/img/site-hero-truck.png") center bottom / cover no-repeat,
    #050505;
}

.site-hero nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgb(0 0 0 / 45%));
}

.brand-mark strong {
  font-size: 22px;
  text-transform: uppercase;
}

.site-hero nav > a:not(.brand-mark),
.nav-actions a,
.primary-link,
.hero-rdv-link,
.secondary-link,
.booking-form > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #57a970, var(--green));
  box-shadow: 0 7px 0 var(--green-dark), 0 18px 28px rgb(0 0 0 / 24%);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opening-banner {
  align-self: start;
  justify-self: center;
  width: min(980px, 100%);
  margin-top: clamp(24px, 5vh, 56px);
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
  text-align: center;
}

.opening-banner span {
  display: block;
  color: white;
  font-size: clamp(34px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 4px 14px rgb(0 0 0 / 35%);
}

.nav-actions .map-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  color: #e5322d;
  background: white;
  border: 1px solid rgb(255 255 255 / 72%);
  box-shadow: 0 8px 18px rgb(0 0 0 / 20%);
  text-decoration: none;
  font-size: 0;
  font-weight: 400;
  cursor: pointer;
}

.nav-actions .map-link::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 4px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(2px, -2px);
  background: white;
}

.nav-actions .map-link::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 2px currentColor inset;
  transform: translateY(-3px);
}

.nav-actions .map-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero-copy {
  max-width: 1060px;
  padding: 6vh 0 0;
}

.hero-copy h1 {
  max-width: 1080px;
  margin: 0 0 26px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #effcff;
  font-size: 21px;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgb(0 0 0 / 45%);
}

.hero-center-actions {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 18px;
  width: min(760px, 92vw);
  margin: 0 auto 4vh;
}

.hero-center-actions a {
  min-height: 66px;
  border-radius: 999px;
  font-size: clamp(19px, 3vw, 28px);
}

.hero-rdv-link {
  width: 100%;
  padding-inline: 34px;
}

.pro-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  padding: 0 26px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #f5a540, #db761d);
  box-shadow: 0 7px 0 #9d4e12, 0 18px 28px rgb(0 0 0 / 24%);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.welcome-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  max-width: 1120px;
  margin: -66px auto 0;
  padding: 34px clamp(18px, 4vw, 50px);
  color: white;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 86%), rgb(0 0 0 / 64%)),
    url("/static/img/site-water-band.jpg") center / cover no-repeat;
  border-top: 4px solid #1d5eaa;
  box-shadow: 0 22px 48px rgb(0 0 0 / 24%);
}

.welcome-band h2,
.public-band h2,
.booking-shell h1 {
  margin: 0;
  letter-spacing: 0;
}

.welcome-band h2 {
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 400;
}

.welcome-band p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #e8f6f8;
  font-size: 19px;
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.welcome-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #57a970, var(--green));
  box-shadow: 0 7px 0 var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.contact-link {
  background: linear-gradient(180deg, #1f7fd2, #0d63b8);
  box-shadow: 0 7px 0 #083f78;
}

.welcome-band img {
  width: min(100%, 330px);
  max-height: 330px;
  object-fit: contain;
  justify-self: center;
  transform: translateY(4px);
  filter: drop-shadow(0 16px 28px rgb(0 0 0 / 45%));
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 38px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.site-footer a {
  color: #12343b;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.booking-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 18px 64px;
}

.booking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logout-link {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #c8dde1;
  padding: 0 16px;
  color: #12343b;
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.cgv-check {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.cgv-check input {
  width: 18px;
  min-height: 18px;
}

.cgv-download {
  margin-top: 30px;
  text-align: center;
  font-weight: 800;
}

#public-booking-status {
  color: var(--muted);
}

.booking-shell {
  margin-top: 0;
  padding-top: 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.booking-shell h1 {
  font-size: clamp(34px, 6vw, 58px);
  text-transform: uppercase;
}

.booking-form {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.form-step {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgb(7 19 26 / 9%);
}

.form-step h2 {
  margin: 0;
  color: var(--blue);
  font-size: 22px;
}

.choice-grid,
.slot-grid {
  display: grid;
  gap: 12px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card,
.date-chip,
.slot-button {
  border: 1px solid #cce0e4;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #eaf6f7);
  box-shadow: 0 6px 0 #c5dce0;
  font: inherit;
  cursor: pointer;
}

.choice-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  text-align: left;
}

.choice-card span {
  font-size: 20px;
  font-weight: 800;
}

.choice-card strong {
  color: var(--green-dark);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
}

.date-chip {
  display: grid;
  gap: 2px;
  min-height: 66px;
  padding: 10px;
}

.date-chip span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.slot-button {
  min-height: 46px;
  font-weight: 800;
}

.slot-button.is-unavailable,
.slot-button:disabled {
  color: #8b9aa1;
  background: #eef3f4;
  border-color: #d4e0e3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: #b23a3a;
}

.choice-card.is-selected,
.date-chip.is-selected,
.slot-button.is-selected {
  color: white;
  background: linear-gradient(180deg, #1f7fd2, #0d63b8);
  border-color: #0b559e;
  box-shadow: 0 6px 0 #083f78;
}

.choice-card.is-selected strong,
.choice-card.is-selected span,
.date-chip.is-selected span {
  color: white;
}

.booking-form label:not(.radio-line) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.booking-form input,
.booking-form textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: white;
}

.booking-form textarea {
  resize: vertical;
  line-height: 1.4;
}

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f2b7b7;
  border-radius: 8px;
  color: #9f1717;
  background: #fff0f0;
  font-weight: 800;
}

.account-dashboard {
  display: grid;
  gap: 20px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgb(7 19 26 / 9%);
}

.account-hero h1 {
  margin: 0 0 8px;
}

.account-hero p,
.account-hero small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.account-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-kpis article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 22px rgb(7 19 26 / 8%);
}

.account-kpis span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-kpis strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 24px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.account-list-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.account-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.account-badge {
  border-radius: 999px;
  padding: 7px 10px;
  color: #085f55;
  background: #dff7ef;
  font-weight: 900;
  white-space: nowrap;
}

.account-stats-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
}

#public-booking-status {
  min-height: 24px;
  font-weight: 800;
}

.access-shell {
  max-width: 860px;
}

.access-intro {
  background:
    linear-gradient(90deg, rgb(0 0 0 / 84%), rgb(0 0 0 / 54%)),
    url("/static/img/site-water-band.jpg") center / cover no-repeat;
  color: white;
}

.access-intro h2 {
  color: white;
}

.access-intro p {
  margin: 0;
  color: #e9fbff;
  line-height: 1.5;
}

.document-step {
  background: #fff8ed;
  border-color: #f3c586;
}

.document-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(180deg, #f5a540, #db761d);
  box-shadow: 0 5px 0 #9d4e12;
  font-weight: 900;
  text-decoration: none;
}

#client-access-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: grid;
}

.account-switch {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.account-switch button {
  border: 0;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.account-summary small {
  color: var(--muted);
  font-weight: 800;
}

.booking-form.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.supplement-summary {
  min-height: 22px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 42%);
}

.modal-backdrop[hidden] {
  display: none;
}

.supplement-modal {
  position: relative;
  width: min(760px, 96vw);
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  box-shadow: 0 28px 70px rgb(0 0 0 / 32%);
}

.supplement-modal h1 {
  margin: 0 42px 6px 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
}

.supplement-modal h2 {
  margin: 54px 0 24px;
  font-size: 26px;
  font-weight: 400;
}

.supplement-modal > p,
.supplement-modal > small {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.supplement-line {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  border-bottom: 1px solid #cfd8dc;
  color: var(--ink);
}

.supplement-line input {
  width: 20px;
  height: 20px;
}

.supplement-line span {
  display: grid;
  gap: 8px;
}

.supplement-line small {
  color: var(--muted);
  font-size: 18px;
}

.modal-next {
  float: right;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 30px;
  border: 0;
  color: white;
  background: #050505;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-hero {
    min-height: auto;
    padding: 14px 14px 30px;
    gap: 22px;
    background:
      linear-gradient(180deg, rgb(0 0 0 / 50%), rgb(0 0 0 / 90%)),
      url("/static/img/site-hero-truck.png") center bottom / cover no-repeat,
      #050505;
  }

  .site-hero nav {
    align-items: flex-start;
    gap: 12px;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-mark img {
    width: 56px;
    height: 56px;
  }

  .brand-mark strong {
    font-size: 16px;
    line-height: 1.1;
  }

  .nav-actions {
    flex-shrink: 0;
    gap: 8px;
  }

  .site-hero nav > a:not(.brand-mark),
  .nav-actions a:not(.map-link) {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .nav-actions .map-link {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero-copy h1 {
    margin-bottom: 16px;
    font-size: 38px;
    line-height: 0.98;
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.42;
  }

  .hero-center-actions {
    width: 100%;
    gap: 12px;
    margin-bottom: 10px;
  }

  .hero-center-actions a {
    min-height: 58px;
    padding: 0 18px;
    font-size: 17px;
  }

  .pro-link {
    min-height: 62px;
    padding-block: 10px;
    font-size: 15px;
    line-height: 1.18;
  }

  .welcome-band {
    grid-template-columns: 1fr;
    margin: 0 -14px;
    padding: 28px 18px;
  }

  .welcome-band h2 {
    font-size: 40px;
  }

  .welcome-band p {
    font-size: 16px;
  }

  .welcome-actions {
    display: grid;
    gap: 12px;
  }

  .welcome-link {
    width: 100%;
  }

  .welcome-band img {
    width: 210px;
    max-height: 210px;
  }

  .site-footer {
    padding: 20px 18px 30px;
    font-size: 14px;
    line-height: 1.35;
  }

  .booking-shell {
    padding: 18px 12px 44px;
  }

  .booking-shell h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .back-link,
  .logout-link {
    min-height: 40px;
  }

  .form-step,
  .booking-form,
  .account-panel {
    border-radius: 8px;
  }

  .account-hero,
  .account-list-row {
    align-items: stretch;
    flex-direction: column;
  }

  .account-kpis,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-list-actions {
    justify-content: space-between;
    white-space: normal;
  }

  .form-step {
    padding: 16px;
  }

  .booking-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-form label,
  .booking-form .wide {
    grid-column: 1 / -1;
  }

  .booking-form input,
  .booking-form textarea,
  .booking-form select {
    min-height: 48px;
    font-size: 16px;
  }

  .choice-grid,
  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice-card {
    min-height: 76px;
    padding: 14px;
  }

  .choice-card span,
  .choice-card strong {
    font-size: 18px;
  }

  .date-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .date-chip {
    min-width: 0;
    min-height: 72px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .slot-button {
    min-height: 54px;
    font-size: 18px;
  }

  #public-booking-form > button,
  .booking-form > button {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
  }

  .cgv-check {
    align-items: flex-start;
    line-height: 1.3;
  }

  .cgv-download {
    font-size: 15px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .supplement-modal {
    width: 100%;
    max-height: 90vh;
    padding: 22px 18px;
    border-radius: 8px 8px 0 0;
  }

  .supplement-modal h1 {
    padding-right: 42px;
    font-size: 24px;
  }

  .supplement-modal h2 {
    margin: 34px 0 14px;
    font-size: 22px;
  }

  .supplement-line {
    grid-template-columns: 26px 1fr auto;
    gap: 12px;
    min-height: 88px;
  }

  .supplement-line small {
    font-size: 15px;
  }

  .modal-next {
    float: none;
    width: 100%;
    min-height: 52px;
  }
}

@media (max-width: 420px) {
  .site-hero nav {
    flex-wrap: wrap;
  }

  .brand-mark strong {
    display: none;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-center-actions a {
    font-size: 16px;
  }

  .date-strip,
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
