/* ==========================================================================
   TRIOPARC — Réservation (Individuel · Groupe · Cartes cadeaux · Formulaire groupe)
   Source : Figma « Trio Parc » — frames 339:2, 340:2, 340:100, 341:2
   ========================================================================== */

/* Fond de page : visible dans les coins de la courbe du hero */
.resa-page { background: #1b254e; }

/* ---------- HERO (585 px ; 648 px avec fil d'Ariane) ---------- */
.resa-hero {
  position: relative;
  height: 585px;
  background: var(--bg-1);
  /* Courbe du bas : même masque que l'accueil (ellipse 2800×808 alignée en bas) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block;%22 width=%222800%22 height=%22924%22 viewBox=%220 0 2800 924%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M2360 225.938C2630.89 299.61 2800 404.106 2800 520C2800 743.123 2173.2 924 1400 924C626.801 924 0 743.123 0 520C0 404.106 169.107 299.61 440 225.938V0H2360V225.938Z%22 fill=%22%23D9D9D9%22/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block;%22 width=%222800%22 height=%22924%22 viewBox=%220 0 2800 924%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M2360 225.938C2630.89 299.61 2800 404.106 2800 520C2800 743.123 2173.2 924 1400 924C626.801 924 0 743.123 0 520C0 404.106 169.107 299.61 440 225.938V0H2360V225.938Z%22 fill=%22%23D9D9D9%22/%3E%3C/svg%3E");
  -webkit-mask-size: max(2800px, 145.84%) 924px;
  mask-size: max(2800px, 145.84%) 924px;
  -webkit-mask-position: 50% 100%;
  mask-position: 50% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.resa-hero--form { height: 648px; }

/* VISUEL — hero (emplacement image / vidéo, dégradé de remplacement de la maquette) */
.resa-hero__media {
  position: absolute;
  top: 0; bottom: 0;
  left: 38.54%;      /* 740 / 1920 */
  width: 61.46%;     /* 1180 / 1920 */
  background: linear-gradient(180deg, #1a2450 0%, #0a1024 100%);
}
.resa-hero__media img, .resa-hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* VOILE — fusion de l'image vers la gauche */
.resa-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, #000 70.7%);
}
/* Dégradé — voile de gauche (haut/bas + 2 halos violets + horizontal) */
.resa-hero__voile {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(3, 5, 13, 0.88) 0%, rgba(3, 5, 13, 0.28) 10%, rgba(3, 5, 13, 0) 20%, rgba(3, 5, 13, 0) 84%, rgba(3, 5, 13, 0.42) 100%),
    radial-gradient(30% 34% at 14% 86%, rgba(201, 92, 255, 0.22) 0%, rgba(201, 92, 255, 0.1364) 40%, rgba(201, 92, 255, 0.0484) 70%, rgba(201, 92, 255, 0) 100%),
    radial-gradient(42% 70% at 30% 44%, rgba(138, 92, 255, 0.62) 0%, rgba(138, 92, 255, 0.3844) 40%, rgba(138, 92, 255, 0.1364) 70%, rgba(138, 92, 255, 0) 100%),
    linear-gradient(90deg, rgb(10, 15, 40) 0%, rgb(21, 15, 62) 26%, rgba(27, 18, 72, 0.9) 38.5%, rgba(23, 26, 68, 0.52) 47%, rgba(12, 20, 50, 0.16) 55%, rgba(6, 11, 28, 0) 63%, rgba(6, 11, 28, 0) 100%);
}
.resa-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 124px;
}
.resa-hero--form .container { gap: 44px; }

/* Fil d'Ariane */
.resa-crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: normal;
  color: var(--txt-discret);
  white-space: nowrap;
}
.resa-crumbs a { transition: color .2s ease; }
.resa-crumbs a:hover { color: #fff; }
.resa-crumbs__sep { color: var(--txt-tres-discret); }
.resa-crumbs__current { font-weight: 500; color: var(--neon-rose); }

.resa-hero__header { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.resa-hero__eyebrow {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.resa-hero__title {
  font-size: 80px;
  line-height: 1.02;
  letter-spacing: -0.8px;
  color: var(--txt-principal);
  text-shadow: 0 0 64px rgba(56, 198, 240, 0.2);
}
.resa-hero__title .grad-text { background-image: linear-gradient(90deg, #38c6f0 0%, #a9e85e 100%); }
.resa-hero__sub {
  max-width: 780px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--txt-doux);
}
/* Variante groupe (rose → jaune) */
.resa-hero--form .resa-hero__eyebrow { color: var(--neon-rose); }
.resa-hero--form .resa-hero__title { text-shadow: 0 0 64px rgba(255, 111, 168, 0.2); }
.resa-hero--form .resa-hero__title .grad-text { background-image: linear-gradient(90deg, #ff6fa8 0%, #ffc63a 100%); }

/* Indicateur de défilement */
.resa-hero__scroll {
  position: absolute;
  left: 50%;
  top: calc(100% - 104px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #d1def5;
}
.resa-hero__scroll-label { display: flex; flex-direction: column; align-items: center; gap: 10px; white-space: nowrap; }
.resa-hero__scroll-label span:first-child { font-size: 12px; letter-spacing: 4.08px; }
.resa-hero__scroll-label span:last-child { font-size: 26px; font-weight: 300; line-height: 1; animation: resa-bob 2.2s ease-in-out infinite; }
.resa-hero__light {
  width: 246px; height: 3px;
  background: linear-gradient(90deg, rgba(15, 28, 61, 0) 0%, rgba(56, 198, 240, 0.55) 28%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 111, 168, 0.55) 72%, rgba(15, 28, 61, 0) 100%);
  box-shadow: 0 -8px 60px 6px rgba(140, 102, 255, 0.5), 0 0 26px 0 rgba(255, 255, 255, 0.45);
}
@keyframes resa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- SECTIONS (onglets / formulaire) ---------- */
.resa-section {
  background: linear-gradient(180deg, #1b254e 0%, #151c45 40%, var(--bg-6) 86%, var(--bg-7) 100%);
}
/* Halo bleu central (échantillonné sur la maquette) */
.resa-section::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1500px; height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(56, 198, 240, 0.13) 0%, rgba(56, 198, 240, 0.06) 45%, rgba(56, 198, 240, 0) 100%);
  pointer-events: none;
}
.resa-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 140px;
}

/* Conteneur 900 px */
.resa-panel {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

/* Onglets (liens entre les 3 pages) */
.resa-tabs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.resa-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--txt-discret);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.resa-tab:hover { color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.resa-tab.is-active {
  background: var(--surface-pill);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 26px 0 rgba(56, 198, 240, 0.26);
}
/* Contour dégradé cyan → lime (1 px) */
.resa-tab.is-active::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #38c6f0 0%, #a9e85e 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Vues */
.resa-view { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 100%; }
.resa-view--groupe, .resa-view--cartes { gap: 30px; }
.resa-view[hidden] { display: none; }
.resa-filet {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(56, 198, 240, 0.6) 0%, rgba(56, 198, 240, 0.04) 100%);
}
.resa-view__title {
  width: 100%;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.42px;
  color: var(--txt-principal);
}
.resa-view__text { font-size: 20px; line-height: 1.65; color: var(--txt-doux); }
.resa-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.resa-note {
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
  color: var(--txt-tres-discret);
  text-align: center;
}
.resa-note--left { text-align: left; }
.resa-btn--full { width: 100%; }

/* ---------- Champs ---------- */
.resa-form { display: contents; }
.resa-fields { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.resa-row { display: flex; align-items: flex-start; gap: 28px; width: 100%; }
.resa-row > .resa-field { flex: 1 1 0; min-width: 0; }
.resa-field { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.resa-field__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.34px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--txt-discret);
}
.resa-box { position: relative; display: flex; align-items: center; width: 100%; }
.resa-input {
  width: 100%;
  margin: 0;
  padding: 15px 20px;          /* 58 px au total : bordure comprise, comme la maquette */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font: inherit;
  font-size: 20px;
  line-height: 1.3;
  color: var(--txt-principal);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.resa-input::placeholder { color: var(--txt-tres-discret); opacity: 1; }
.resa-input:hover { border-color: rgba(255, 255, 255, 0.22); }
.resa-input:focus { border-color: rgba(56, 198, 240, 0.6); box-shadow: 0 0 0 3px rgba(56, 198, 240, 0.12); background: rgba(255, 255, 255, 0.05); }
.resa-input[type="number"] { -moz-appearance: textfield; }
.resa-input::-webkit-outer-spin-button, .resa-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select.resa-input { padding-right: 48px; color: var(--txt-tres-discret); cursor: pointer; }
select.resa-input.has-value { color: var(--txt-principal); }
select.resa-input option { background: #0a122b; color: var(--txt-principal); }
textarea.resa-input { height: 150px; padding: 18px 20px; line-height: 1.5; resize: vertical; display: block; }
.resa-box__icon {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  color: var(--txt-discret);
  pointer-events: none;
}
/* Bouton calendrier (ouvre le sélecteur natif) */
.resa-box__picker {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1;
  color: var(--txt-discret);
  transition: color .2s ease, background-color .2s ease;
}
.resa-box__picker:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.resa-box__native {
  position: absolute;
  right: 10px; bottom: 0;
  width: 36px; height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0; padding: 0;
}
.resa-box--date .resa-input { padding-right: 56px; }

/* Erreurs */
.resa-field__error { display: none; font-size: 13px; line-height: 1.4; color: var(--neon-rose); }
.resa-field.is-invalid .resa-input { border-color: rgba(255, 111, 168, 0.7); }
.resa-field.is-invalid .resa-input:focus { box-shadow: 0 0 0 3px rgba(255, 111, 168, 0.12); }
.resa-field.is-invalid .resa-field__error { display: block; }

/* État de succès (remplace le formulaire) */
.resa-success {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px;
  border-radius: 16px;
  background: var(--surface-pill);
  border: 1px solid rgba(169, 232, 94, 0.45);
  box-shadow: 0 0 30px 0 rgba(169, 232, 94, 0.16);
}
.resa-success.is-open { display: flex; }
.resa-success__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 2.34px; text-transform: uppercase; color: var(--neon-lime); }
.resa-success h3 { font-size: 32px; line-height: 1.12; letter-spacing: -0.32px; color: var(--txt-principal); }
.resa-success p { font-size: 20px; line-height: 1.6; color: var(--txt-doux); }
.resa-success__recap { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 20px 24px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.13); }
.resa-success__recap div { display: flex; justify-content: space-between; gap: 24px; font-size: 17px; line-height: 1.5; }
.resa-success__recap dt { color: var(--txt-discret); }
.resa-success__recap dd { margin: 0; color: var(--txt-principal); text-align: right; }
.resa-success .resa-actions { padding-top: 8px; }
.resa-success .link-arrow { font-size: 17px; line-height: normal; }

/* ---------- Cartes cadeaux ---------- */
.resa-cards { display: flex; align-items: stretch; gap: 20px; width: 100%; }
.resa-card {
  --c: 56, 198, 240;
  --g2: #ffffff;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid rgba(var(--glow, var(--c)), 0.3);
  box-shadow: 0 14px 34px -14px rgba(var(--glow, var(--c)), 0.3);
  color: var(--txt-principal);
  text-align: center;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.resa-card:hover { transform: translateY(-3px); border-color: rgba(var(--glow, var(--c)), 0.55); }
.resa-card:focus-visible { outline: 2px solid rgba(var(--c), 0.8); outline-offset: 3px; }
.resa-card--cyan { --c: 56, 198, 240; }
.resa-card--lime { --c: 169, 232, 94; --g2: #38c6f0; }
.resa-card--jaune { --c: 255, 198, 58; --glow: 160, 107, 255; }
.resa-card--rose { --c: 255, 111, 168; }
.resa-card__light {
  position: absolute;
  left: 50%; top: -17px;
  width: 151px; height: 26px;
  transform: translateX(-50%);
  pointer-events: none;
}
.resa-card__amount {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.4px;
  white-space: nowrap;
  background-image: linear-gradient(90deg, rgb(var(--c)) 0%, var(--g2) 100%);
}
.resa-card__label { width: 100%; font-size: 15px; line-height: 1.4; color: var(--txt-discret); transition: color .3s ease; }
/* Carte sélectionnée (par défaut : 50 $ « La plus populaire ») */
.resa-card.is-selected {
  background: var(--surface-pill);
  border-color: transparent;
  box-shadow: 0 0 30px 0 rgba(var(--glow, var(--c)), 0.28);
}
.resa-card.is-selected::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, rgb(var(--glow, var(--c))) 0%, var(--g2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.resa-card.is-selected .resa-card__amount { filter: drop-shadow(0 0 22px rgba(var(--glow, var(--c)), 0.3)); }
.resa-card.is-selected .resa-card__label { color: rgb(var(--c)); }

/* Récapitulatif d'achat (quantité + total) */
.resa-checkout {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: var(--surface-pill);
  border: 1px solid rgba(56, 198, 240, 0.32);
  box-shadow: 0 14px 34px -14px rgba(56, 198, 240, 0.3);
}
.resa-checkout.is-open { display: flex; }
.resa-checkout__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.resa-checkout__label { font-size: 13px; font-weight: 500; letter-spacing: 2.34px; text-transform: uppercase; color: var(--txt-discret); }
.resa-checkout__value { font-size: 24px; line-height: 1.2; color: var(--txt-principal); }
.resa-checkout__total { font-size: 40px; line-height: 1.08; letter-spacing: -0.4px; background-image: linear-gradient(90deg, #38c6f0, #a9e85e); }
.resa-checkout__sep { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.09); }
.resa-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
}
.resa-stepper button {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 100px;
  font-size: 22px;
  line-height: 1;
  color: var(--txt-principal);
  transition: background-color .2s ease, color .2s ease;
}
.resa-stepper button:hover { background: rgba(56, 198, 240, 0.14); color: #fff; }
.resa-stepper button:disabled { color: var(--txt-tres-discret); cursor: not-allowed; background: none; }
.resa-stepper output { min-width: 44px; text-align: center; font-size: 20px; color: var(--txt-principal); }

/* ---------- Formulaire groupe ---------- */
.resa-formulaire {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.resa-formulaire__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
.resa-formulaire__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.34px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--neon-rose);
}
.resa-formulaire__title {
  width: 100%;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.42px;
  color: var(--txt-principal);
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .resa-hero__title { font-size: 64px; }
}
@media (max-width: 1280px) {
  .resa-hero, .resa-hero--form { height: auto; min-height: 585px; padding-bottom: 170px; }
  .resa-hero__title { font-size: 56px; }
}
@media (max-width: 1024px) {
  .resa-section::before { width: 140vw; }
  .resa-cards { flex-wrap: wrap; }
  .resa-card { flex: 1 1 40%; }
}
@media (max-width: 720px) {
  .resa-hero, .resa-hero--form { min-height: 0; padding-bottom: 130px; -webkit-mask-size: 300% 100%; mask-size: 300% 100%; }
  .resa-hero .container { padding-top: 104px; gap: 28px; }
  .resa-hero__media { left: 0; width: 100%; }
  .resa-hero__title { font-size: 44px; }
  .resa-hero__sub { font-size: 17px; }
  .resa-hero__scroll { display: none; }
  .resa-crumbs { flex-wrap: wrap; white-space: normal; row-gap: 4px; }
  .resa-section .container { padding-top: 90px; padding-bottom: 90px; }
  .resa-panel { gap: 36px; }
  .resa-tab { padding: 11px 20px; font-size: 15px; }
  .resa-view__title, .resa-formulaire__title { font-size: 32px; }
  .resa-view__text, .resa-input { font-size: 17px; }
  .resa-row { flex-direction: column; gap: 24px; }
  .resa-card { flex-basis: 100%; }
  .resa-card__amount { font-size: 34px; }
  .resa-actions .btn { width: 100%; }
  .resa-success, .resa-checkout { padding: 24px; }
  .resa-success h3 { font-size: 26px; }
  .resa-success p { font-size: 17px; }
  .resa-success__recap div { flex-direction: column; gap: 2px; }
  .resa-success__recap dd { text-align: left; }
}
