/* Vide Hôtel, feuille de style unique (sans build) */

/* Polices auto-hébergées */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  --ink: #0B0B0B;
  --cream: #F5EEE8;
  --muted: #ADA79F;
  --line: #2E2B28;
  --line-strong: #4A4540;
  --panel: #141312;
  --yellow: #E6FF00;
  --green: #39FF14;
  --orange: #FF6B00;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --maxw: 1160px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --focus: 0 0 0 3px var(--ink), 0 0 0 6px var(--cream);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 800; }
h2, h3 { font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 0.85em; }

a { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-m);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--yellow), 0 10px 34px rgba(230, 255, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary:hover {
  background: #F1FF5C;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--green), 0 14px 40px rgba(57, 255, 20, 0.4);
}
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--cream); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 0 56px;
  text-align: center;
}
/* Halos fluo derrière le hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% 0;
  z-index: -1;
  background:
    radial-gradient(closest-side at 18% 22%, rgba(57, 255, 20, 0.42), transparent),
    radial-gradient(closest-side at 84% 18%, rgba(255, 107, 0, 0.5), transparent),
    radial-gradient(closest-side at 50% 78%, rgba(230, 255, 0, 0.3), transparent);
  filter: blur(36px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, 4%, 0) scale(1.08); }
}

.hero__logo {
  position: relative;
  width: min(90%, 520px);
  margin: 0 auto 32px;
  aspect-ratio: 1200 / 456;
  filter: drop-shadow(0 0 32px rgba(230, 255, 0, 0.45));
}
.hero__logo picture,
.hero__logo img { display: block; width: 100%; }

/* Logo : lettres noires intégrées à l'image. Apparition douce (opacité + échelle), sans calque ni clignotement */
.hero__logo { animation: logo-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

.hero__body { display: grid; gap: 32px; justify-items: center; }

.hero__lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.15rem + 2.9vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero__lead em {
  font-style: normal;
  color: var(--ink);
  background: var(--green);
  padding: 0 0.18em;
  white-space: nowrap;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__sub {
  margin: 18px auto 28px;
  max-width: 44ch;
  color: var(--cream);
}
.hero__sub + .btn { width: 100%; }

.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hero__when { width: 100%; max-width: 640px; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  border-radius: var(--radius-m);
  color: var(--ink);
  transform: rotate(-1.5deg);
}
.day:nth-child(1) { background: var(--green); }
.day:nth-child(2) { background: var(--yellow); transform: rotate(1deg); }
.day:nth-child(3) { background: var(--orange); transform: rotate(-0.5deg); }
.day__name { font-weight: 600; font-size: 0.9375rem; }
.day__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem);
  line-height: 1;
  margin: 8px 0 2px;
}
.day__month { font-size: 0.9375rem; font-weight: 600; margin-bottom: 14px; }

.tag {
  display: inline-block;
  margin-top: auto;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
  align-self: center;
}
.tag--green { color: var(--green); }
.tag--orange { color: var(--orange); }
.day:nth-child(2) .tag--green { color: var(--yellow); }

.hero__hours {
  margin-top: 28px;
  color: var(--cream);
}
.hero__hours span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  margin-right: 0.35em;
}

/* Bandeau défilant */
.ticker {
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.2deg);
  margin: 0 -8px;
  position: relative;
  z-index: 2;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker__track span {
  flex: none;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track i { font-style: normal; color: var(--orange); margin: 0 0.9em; }
.ticker__track b { color: #0B0B0B; background: var(--green); padding: 0 0.3em; font-weight: 800; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  max-width: 20ch;
  margin-bottom: 28px;
}
/* Trait fluo sous chaque titre de section */
.section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--accent, var(--yellow));
}
.event { --accent: var(--green); }
.booking { --accent: var(--orange); }

/* L'événement */
.event__grid { display: grid; gap: 48px; }
.event__text p { max-width: 62ch; }

.inventory__title {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cream);
}
.inventory__list { margin: 0; }
.inventory__row {
  padding: 14px 0;
  border-bottom: 2px dotted var(--line-strong);
}
.inventory__row dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
}
.inventory__row:nth-child(3n+2) dt { color: var(--yellow); }
.inventory__row:nth-child(3n) dt { color: var(--orange); }
.inventory__row dd { margin: 2px 0 0; color: var(--muted); }
@media (min-width: 960px) {
  .inventory__row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; align-items: baseline; }
  .inventory__row dd { margin: 0; }
}
.inventory__note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

/* Infos pratiques sur aplat jaune */
.infos {
  --accent: var(--ink);
  background: var(--yellow);
  color: var(--ink);
  border-top: 0;
}
.infos__list { margin: 0; display: grid; gap: 0; }
.infos__item {
  padding: 22px 0;
  border-top: 3px solid var(--ink);
}
.infos__item dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.infos__item dd { margin: 0; max-width: 40ch; }
.infos__item strong { font-weight: 700; }
.maps-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}
.maps-link:hover { color: var(--green); }
.maps-link [aria-hidden="true"] { margin-left: 6px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Réservation */
.booking { scroll-margin-top: 0; }
.booking:focus { outline: none; box-shadow: none; }
.booking__wrap { display: grid; gap: 32px; }
.booking__intro p { max-width: 44ch; }
.booking__aside {
  display: inline-block;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  color: var(--muted);
}

.booking__panel {
  background: var(--panel);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 5px rgba(57, 255, 20, 0.12), 0 0 48px rgba(57, 255, 20, 0.18);
  border-radius: var(--radius-l);
  padding: 24px 16px;
  margin-inline: calc(var(--gutter) * -0.5);
}

.form__status {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 2px solid var(--orange);
  border-radius: var(--radius-m);
  font-weight: 600;
}

.step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.step + .step { margin-top: 36px; }
.step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-size: 0.875rem;
  flex: none;
}
.step:nth-of-type(2) .step__num { background: var(--yellow); }
.step:nth-of-type(3) .step__num { background: var(--orange); }

.hint { font-size: 0.9375rem; color: var(--muted); margin: -6px 0 14px; }
.field .hint { margin: 8px 0 0; }

/* Radios en boutons (jour et créneau) */
.choice-day,
.slot { position: relative; }
.choice-day input,
.slot input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-day label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
  padding: 12px 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.choice-day__name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.choice-day__date { font-size: 0.9375rem; color: var(--muted); }

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.slot label {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}

.choice-day input:hover + label,
.slot input:hover + label { border-color: var(--green); }

.choice-day input:checked + label,
.slot input:checked + label {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(230, 255, 0, 0.45);
}
.choice-day input:checked + label .choice-day__date { color: var(--ink); }

.choice-day input:focus-visible + label,
.slot input:focus-visible + label { box-shadow: var(--focus); }

.choice-day input[aria-invalid="true"] + label,
.slot input[aria-invalid="true"] + label { border-color: var(--orange); }

/* Créneaux verrouillés tant que le jour n'est pas choisi (JS uniquement) */
.step[disabled] .slots { opacity: 0.4; }
.step[disabled] .slot input,
.step[disabled] .slot label { cursor: not-allowed; }
.slots-wrap { position: relative; }
.slots-lock { display: none; }
.step[disabled] .slots-lock {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  background: var(--ink);
  border: 2px solid var(--cream);
  border-radius: var(--radius-m);
  font-weight: 700;
  color: var(--cream);
  pointer-events: none;
}

/* Champs texte */
.field + .field { margin-top: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: 1rem;
}
.field input:hover { border-color: #6A645E; }
.field input:focus-visible { border-color: var(--cream); }
.field input[aria-invalid="true"] { border-color: var(--orange); }

.field--check {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  align-items: start;
  margin-top: 24px;
}
.field--check input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--yellow);
  cursor: pointer;
}
.field--check label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 0 6px;
}
.field--check .field-error { grid-column: 2; }
.field--check input[aria-invalid="true"] { outline: 2px solid var(--orange); outline-offset: 2px; }

.field-error {
  margin-top: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9375rem;
}
.field-error[hidden] { display: none; }

/* Pot de miel : hors écran, invisible pour les humains */
.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { margin-top: 32px; }
.recap {
  min-height: 1.6em;
  margin-bottom: 12px;
  font-weight: 600;
}
.recap:empty { display: none; }
.recap strong { font-weight: 700; color: var(--yellow); }

/* Écran de succès */
.success:focus { outline: none; box-shadow: none; }
.success__title {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.success__ticket {
  margin: 0 0 24px;
  padding: 18px 18px 18px 20px;
  border-left: 6px solid var(--green);
  background: var(--ink);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  display: grid;
  gap: 14px;
}
.success__ticket dt { font-size: 0.875rem; color: var(--muted); }
.success__ticket dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}
.success__text { max-width: 52ch; }
.success__place { margin-top: 16px; color: var(--muted); }
.success__place a,
.footer a { color: var(--yellow); font-weight: 700; }
.success .btn { margin-top: 28px; }

/* Pied de page */
.footer {
  padding: 48px 0 112px;
  border-top: 8px solid;
  border-image: linear-gradient(90deg, var(--green) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--orange) 66.6%) 1;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer__inner p { max-width: 64ch; }
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--cream);
  margin-bottom: 12px;
}

/* Bouton collant mobile (JS uniquement) */
.sticky-cta { display: none; }
.js-ready .sticky-cta {
  display: flex;
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, visibility 0.25s;
}
.js-ready .sticky-cta.is-hidden {
  transform: translateY(calc(100% + 32px));
  visibility: hidden;
}

/* Tablette et plus */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__sub + .btn { width: auto; }
  .day { padding: 18px 18px 16px; }
  .tag { font-size: 0.8125rem; }
  .slots { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .booking__panel { padding: 36px 32px; margin-inline: 0; }
  .infos__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .success__ticket { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .hero { padding: 40px 0 88px; }
  .hero__logo { width: 560px; margin-bottom: 40px; }
  .ticker__track span { font-size: 1.25rem; padding: 16px 0; }
  .section { padding: 112px 0; }
  .event__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 80px; align-items: start; }
  .inventory { margin-top: 10px; }
  .booking__wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .booking__intro { position: sticky; top: 40px; }
  .js-ready .sticky-cta { display: none; }
  .footer { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
