/* ==========================================================================
   /{lang}/how-it-works — « Comment réserver une table VIP »
   (how-it-works.html, body.hiw-page + js/how-it-works.js)
   ========================================================================== */
body.hiw-page {
  --hiw-text: #f5f4f1;
  --hiw-muted: rgba(245, 244, 241, 0.62);
  --hiw-faint: rgba(245, 244, 241, 0.4);
  --hiw-line: rgba(245, 244, 241, 0.09);
  --hiw-gold: #c6a66a;
  --hiw-gold-hi: #d4b984;
  --hiw-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --og-accent: #c6a66a;
  --og-accent-hover: #d4b984;
  --og-text: #ffffff;
  --og-muted: #9a9a9a;
  --og-border: rgba(255, 255, 255, 0.08);
  background: #050505 !important;
}
/* <main> est en overflow:hidden globalement : ça crée un conteneur de défilement qui casse
   le téléphone « sticky ». clip empêche le débordement horizontal sans ce défaut. */
main.hiw { overflow: visible !important; overflow-x: clip !important; overflow-y: visible !important; }
/* html ET body en overflow non visible : body devient un conteneur de défilement (qui ne défile jamais)
   et neutralise tout position:sticky. clip garde la protection contre le débordement horizontal. */
body.hiw-page { overflow-x: clip !important; overflow-y: visible !important; }
.hiw, .hiw * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
.hiw a { text-decoration: none; }
.hiw > section { margin: 0 !important; opacity: 1 !important; transform: none !important; filter: none !important; background: none; }
.hiw-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hiw-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hiw-gold); }
.hiw-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--hiw-gold); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.18); }
.hiw-h2 {
  margin: 0 !important;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  color: var(--hiw-text) !important;
}
.hiw-h3 { margin: 0 0 10px !important; font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important; font-weight: 800 !important; letter-spacing: -0.025em !important; text-transform: none !important; color: var(--hiw-text) !important; }
.hiw-head { margin-bottom: 40px; max-width: 640px; }
.hiw-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.hiw-head--center .hiw-kicker { justify-content: center; }

/* Boutons */
.hiw-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hiw-ctas--center { justify-content: center; }
.hiw-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hiw-btn svg { width: 17px; height: 17px; transition: transform 0.2s var(--hiw-ease); }
.hiw-btn:hover svg { transform: translateX(3px); }
.hiw-btn--gold { background: var(--hiw-gold); color: #0b0a08 !important; box-shadow: 0 16px 34px -16px rgba(198, 166, 106, 0.75); }
.hiw-btn--gold:hover { background: var(--hiw-gold-hi); transform: translateY(-1px); }
.hiw-btn--ghost { border: 1px solid rgba(245, 244, 241, 0.16); color: var(--hiw-text) !important; }
.hiw-btn--ghost:hover { border-color: rgba(198, 166, 106, 0.6); background: rgba(198, 166, 106, 0.06); }
.hiw-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--hiw-gold) !important; }
.hiw-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--hiw-ease); }
.hiw-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- Hero */
.hiw .hiw-hero { position: relative; overflow: hidden; padding: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 110px) 0 80px !important; }
.hiw .hiw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 60% at 80% 40%, rgba(198, 166, 106, 0.16), transparent 70%),
    radial-gradient(rgba(245, 244, 241, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
  mask-image: linear-gradient(180deg, #000 50%, transparent);
  pointer-events: none;
}
.hiw-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hiw-title {
  margin: 0 0 20px !important;
  font-size: clamp(2.6rem, 5.8vw, 4.4rem) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  color: var(--hiw-text) !important;
}
.hiw-lead { max-width: 540px; margin: 0 0 30px; font-size: 17px; line-height: 1.65; color: var(--hiw-muted); }
.hiw-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hiw-line); }
.hiw-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--hiw-muted); }
.hiw-trust svg { width: 17px; height: 17px; color: var(--hiw-gold); }
.hiw-hero-visual { position: relative; height: 560px; }
.hiw-hero-glow { position: absolute; left: 50%; top: 50%; width: 480px; height: 480px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 166, 106, 0.3), transparent); filter: blur(30px); }
.hiw-hero-phone { position: absolute; left: 50%; top: 50%; height: 540px; width: auto; transform: translate(-50%, -50%) rotate(-3deg); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.75)); animation: hiwFloat 7s ease-in-out infinite alternate; }
@keyframes hiwFloat { to { transform: translate(-50%, -52%) rotate(-2deg); } }
.hiw-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(22, 21, 19, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.1), 0 20px 40px -18px rgba(0, 0, 0, 0.85);
  animation: hiwBob 5s ease-in-out infinite alternate;
}
.hiw-float > span:last-child { display: grid; line-height: 1.25; }
.hiw-float b { font-size: 13px; font-weight: 700; color: var(--hiw-text); }
.hiw-float small { font-size: 11.5px; font-weight: 600; color: #7fcf9a; }
.hiw-float-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--hiw-gold); color: #0b0a08; }
.hiw-float-ico svg { width: 18px; height: 18px; }
.hiw-float--1 { left: 0; top: 24%; }
.hiw-float--2 { right: 2%; bottom: 18%; animation-delay: -2.5s; }
@keyframes hiwBob { to { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Étapes */
.hiw .hiw-steps { padding: 60px 0 40px !important; }
.hiw-steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; }
.hiw-steps-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.hiw-step {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 40px 36px;
  opacity: 0.32;
  transition: opacity 0.5s var(--hiw-ease);
}
.hiw-step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--hiw-line); }
.hiw-step::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--hiw-gold); transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--hiw-ease); box-shadow: 0 0 12px rgba(198, 166, 106, 0.6); }
.hiw-step.is-active { opacity: 1; }
.hiw-step.is-active::after { transform: scaleY(1); }
.hiw-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hiw-step-num { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--hiw-gold); font-variant-numeric: tabular-nums; }
.hiw-step-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hiw-faint); }
.hiw-step-label::before { content: ''; display: inline-block; width: 18px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }
.hiw-step h3 { margin: 0 0 12px !important; font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; font-weight: 800 !important; line-height: 1.12 !important; letter-spacing: -0.03em !important; text-transform: none !important; color: var(--hiw-text) !important; }
.hiw-step p { max-width: 460px; margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: var(--hiw-muted); }
.hiw-step-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hiw-step-points li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; background: rgba(245, 244, 241, 0.04); box-shadow: inset 0 0 0 1px var(--hiw-line); font-size: 12.5px; font-weight: 600; color: rgba(245, 244, 241, 0.8); }
.hiw-step-points svg { width: 13px; height: 13px; color: var(--hiw-gold); }
.hiw-step-shot { display: none; }

.hiw-phone-col { position: relative; }
.hiw-phone-sticky { position: sticky; top: calc(50vh - 290px); height: 580px; display: grid; place-items: center; }
.hiw-phone-glow { position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 166, 106, 0.3), transparent); filter: blur(30px); }
.hiw-phone-stage { position: relative; width: 100%; height: 540px; }
.hiw-screen {
  position: absolute;
  left: 50%;
  top: 0;
  height: 540px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.7s var(--hiw-ease);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7));
}
.hiw-screen.is-active { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hiw-phone-dots { position: absolute; bottom: -6px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.hiw-phone-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(245, 244, 241, 0.2); transition: width 0.3s var(--hiw-ease), background 0.3s; }
.hiw-phone-dots i.is-active { width: 24px; background: var(--hiw-gold); }

/* ---------------------------------------------------------------- Table ou billet */
.hiw .hiw-compare { padding: 100px 0 40px !important; }
.hiw-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.hiw-offer {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, #10100f, #0a0a09);
  box-shadow: inset 0 0 0 1px var(--hiw-line);
  transition: box-shadow 0.3s, transform 0.3s var(--hiw-ease);
}
.hiw-offer:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.35); }
.hiw-offer--table { background: radial-gradient(90% 70% at 100% 0%, rgba(198, 166, 106, 0.16), transparent 60%), linear-gradient(180deg, #12110f, #0a0a09); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.35); }
.hiw-offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hiw-offer-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(198, 166, 106, 0.12); color: var(--hiw-gold); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3); }
.hiw-offer-ico svg { width: 23px; height: 23px; }
.hiw-offer-tag { padding: 6px 12px; border-radius: 999px; background: rgba(245, 244, 241, 0.05); box-shadow: inset 0 0 0 1px var(--hiw-line); font-size: 12px; font-weight: 700; color: var(--hiw-muted); }
.hiw-offer--table .hiw-offer-tag { background: var(--hiw-gold); color: #0b0a08; box-shadow: none; }
.hiw-offer h3 { margin: 0 0 18px !important; font-size: 1.6rem !important; font-weight: 800 !important; letter-spacing: -0.03em !important; text-transform: none !important; color: var(--hiw-text) !important; }
.hiw-offer ul { list-style: none; display: grid; gap: 12px; margin: 0 0 22px; padding: 0; }
.hiw-offer li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: rgba(245, 244, 241, 0.82); }
.hiw-offer li svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--hiw-gold); }
.hiw-offer-ideal { margin: 0; padding-top: 18px; border-top: 1px solid var(--hiw-line); font-size: 13.5px; line-height: 1.6; color: var(--hiw-muted); }

/* ---------------------------------------------------------------- Paiement & accès */
.hiw .hiw-pay { padding: 100px 0 40px !important; }
.hiw-pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hiw-pay-card { padding: 28px 26px 30px; border-radius: 24px; background: linear-gradient(180deg, #0f0f0e, #0a0a09); box-shadow: inset 0 0 0 1px var(--hiw-line); }
.hiw-pay-ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; background: rgba(198, 166, 106, 0.12); color: var(--hiw-gold); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3); }
.hiw-pay-ico svg { width: 22px; height: 22px; }
.hiw-pay-card h3 { margin: 0 0 10px !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.3 !important; text-transform: none !important; color: var(--hiw-text) !important; }
.hiw-pay-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--hiw-muted); }

/* ---------------------------------------------------------------- FAQ */
.hiw .hiw-faq-section { padding: 100px 0 40px !important; }
.hiw-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.hiw-faq-list { display: grid; gap: 10px; }
.hiw-faq { border-radius: 18px; background: rgba(245, 244, 241, 0.025); box-shadow: inset 0 0 0 1px var(--hiw-line); transition: background 0.25s, box-shadow 0.25s; }
.hiw-faq[open] { background: rgba(198, 166, 106, 0.05); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3); }
.hiw-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; list-style: none; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--hiw-text); }
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq-ico { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.16); color: var(--hiw-gold); transition: transform 0.3s var(--hiw-ease), background 0.25s; }
.hiw-faq-ico svg { width: 15px; height: 15px; }
.hiw-faq[open] .hiw-faq-ico { transform: rotate(45deg); background: rgba(198, 166, 106, 0.14); }
.hiw-faq p { margin: 0; padding: 0 22px 22px; font-size: 14.5px; line-height: 1.7; color: var(--hiw-muted); }
.hiw-faq summary:focus-visible { outline: 2px solid var(--hiw-gold); outline-offset: 2px; border-radius: 18px; }

/* ---------------------------------------------------------------- Organisateurs + final */
.hiw .hiw-orga { padding: 100px 0 110px !important; }
.hiw-orga-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px 40px; border-radius: 28px; background: rgba(245, 244, 241, 0.03); box-shadow: inset 0 0 0 1px var(--hiw-line); }
.hiw-orga-card p:not(.hiw-kicker) { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--hiw-muted); }
.hiw-orga-card .hiw-btn { flex: 0 0 auto; }
.hiw .hiw-final { padding: 110px 0 110px !important; text-align: center; }
.hiw-final p { margin: 14px auto 28px; max-width: 480px; font-size: 16px; color: var(--hiw-muted); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hiw-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hiw-hero-visual { height: 460px; }
  .hiw-hero-phone { height: 440px; }
  .hiw-steps-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hiw-phone-col { display: none; }
  .hiw-step { min-height: 0; opacity: 1; padding: 30px 0 40px 26px; }
  .hiw-step::after { transform: scaleY(1); opacity: 0.5; }
  .hiw-step-shot { display: block; height: 400px; width: auto; max-width: 100%; margin: 26px auto 0; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)); }
  .hiw-pay-grid { grid-template-columns: minmax(0, 1fr); }
  .hiw-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hiw-orga-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hiw-wrap { padding: 0 16px; }
  .hiw .hiw-hero { padding: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 92px) 0 30px !important; }
  .hiw-lead { font-size: 16px; }
  .hiw-ctas .hiw-btn { flex: 1 1 100%; justify-content: center; }
  .hiw-hero-visual { height: 380px; }
  .hiw-hero-phone { height: 360px; }
  .hiw-float { transform: scale(0.9); }
  .hiw-head { margin-bottom: 26px; }
  .hiw-compare-grid { grid-template-columns: minmax(0, 1fr); }
  .hiw-offer { padding: 26px 22px; }
  .hiw .hiw-compare, .hiw .hiw-pay, .hiw .hiw-faq-section, .hiw .hiw-orga { padding-top: 70px !important; }
  .hiw .hiw-orga { padding-bottom: 80px !important; }
  .hiw-orga-card { padding: 28px 22px; }
  .hiw-orga-card .hiw-btn { width: 100%; justify-content: center; }
  .hiw .hiw-final { padding: 80px 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-hero-phone, .hiw-float { animation: none !important; }
  .hiw-step, .hiw-screen { transition: none; }
}
