:root {
  --coral: #f4918a;
  --coral-light: #f8b0a9;
  --coral-tint: #fdeceb;
  --ink: #4a4a4a;
  --ink-strong: #3a3a3a;
  --muted: #ababab;
  --paper: #ffffff;
  --sans: "Oswald", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  /* warm, barely-there off-white instead of stark white */
  background: linear-gradient(170deg, #fffdfc 0%, #fdf4f2 100%);
  overflow: hidden; /* one page, no scroll */
}

/* Full-screen layout: header / main / footer */
.page {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-top: 5px solid var(--coral); /* boarding-pass accent strip */
}

/* ---- Header bar ---- */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: clamp(20px, 3vh, 34px) clamp(32px, 6vw, 84px);
  border-bottom: 1px solid rgba(244, 145, 138, 0.18);
}

.brand__title {
  color: var(--ink-strong);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.02em;
}

.brand__tagline {
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.brand__leaf {
  font-size: 0.8em;
  margin-left: 0.15em;
  vertical-align: 0.04em;
}

.brand__route {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--coral);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.16em;
}

.brand__plane {
  width: 1.1em;
  height: 1.1em;
}

/* ---- Main: total dead-center of the page, list floats to the side ---- */
.main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(24px, 5vh, 64px);
  /* soft, happy warmth behind the total — subtle */
  background: radial-gradient(
    ellipse 60% 70% at 42% 50%,
    rgba(244, 145, 138, 0.1) 0%,
    rgba(244, 145, 138, 0) 70%
  );
}

/* faint decorative flight path drifting across the body */
.flightpath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.flightpath__line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  opacity: 0.35;
}

.flightpath__dot {
  fill: var(--coral);
  opacity: 0.4;
}

.flightpath__plane {
  fill: var(--coral);
  opacity: 0.45;
}

/* Total — big, dark/grey, perfectly centered */
.total {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.total__count {
  color: var(--coral);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.8em;
}

.total__label {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: 0.4em;
  margin-bottom: 0.5em;
  padding-left: 0.4em; /* optical balance for letter-spacing */
}

.total__amount {
  color: var(--ink-strong);
  font-weight: 700;
  font-size: clamp(78px, 17vw, 240px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

/* Participants — floating card pinned to the right, vertically centered */
.pax-panel {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(28px, 5vw, 84px);
  transform: translateY(-50%);
  width: clamp(220px, 24vw, 300px);
  max-height: 78%;
  background: var(--coral-tint);
  border-radius: 16px;
  padding: clamp(26px, 3.4vh, 40px) clamp(24px, 2vw, 34px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pax-panel__label {
  color: var(--coral);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.28em;
  margin-bottom: 22px;
}

.pax {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto; /* contained scroll if many — page itself never scrolls */
  min-height: 0;
}

.pax li {
  color: var(--ink-strong);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.03em;
}

.pax--empty {
  color: var(--muted);
}

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vh, 32px) clamp(32px, 6vw, 84px);
  border-top: 1px solid rgba(244, 145, 138, 0.18);
}

.footer__meta {
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.cta__arrow {
  transition: transform 0.18s ease;
}

.cta:hover {
  color: #ef7d75;
  border-bottom-color: currentColor;
}

.cta:hover .cta__arrow {
  transform: translateX(3px);
}

/* ---- "Je veux participer" modal ---- */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 18px;
  padding: clamp(32px, 4vw, 48px);
  width: min(440px, 90vw);
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border-top: 5px solid var(--coral);
  box-shadow: 0 24px 60px rgba(74, 74, 74, 0.28);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(74, 74, 74, 0.45);
  backdrop-filter: blur(2px);
}

/* gentle entrance */
.modal[open] {
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 8px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease;
}

.modal__close:hover {
  color: var(--coral);
}

.modal__leaf {
  font-size: 34px;
}

.modal__title {
  color: var(--ink-strong);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.02em;
  margin: 10px 0 14px;
}

.modal__text {
  color: var(--ink);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.modal__text strong {
  color: var(--coral);
  font-weight: 600;
}

.modal__quote {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 145, 138, 0.25);
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.5;
}

/* Narrow screens: stack the list below the total, still no page scroll */
@media (max-width: 720px) {
  .main {
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 5vh, 48px);
  }
  .pax-panel {
    position: static;
    transform: none;
    width: min(420px, 100%);
    max-height: 34vh;
  }
  .footer {
    flex-direction: column-reverse;
    gap: 10px;
    text-align: center;
  }
}
