.vip-page { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.vip-page h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  color: #0b1f4d;
  margin: 0 0 0.5rem;
}
.vip-lead { color: #4b5b76; max-width: 40rem; margin: 0 0 1.5rem; }

.vip-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(11,31,77,.08);
}
.vip-toolbar label { display:block; font-weight:600; font-size:.88rem; margin-bottom:.3rem; }
.vip-toolbar select, .vip-toolbar input {
  border: 1.5px solid #d7e3f4;
  border-radius: .7rem;
  padding: .65rem .8rem;
  font: inherit;
  background: #f8fbff;
  min-width: 220px;
}
.vip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin: 0 0 1rem;
  font-size: .9rem;
  color: #4b5b76;
}
.vip-legend i {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 4px;
  margin-right: .35rem;
  vertical-align: -2px;
}
.leg-free { background: #2f9e64; }
.leg-busy { background: #c62828; }
.leg-biz { background: #1565c0; }
.leg-sel { background: #ffd23f; outline: 2px solid #0b1f4d; }
.leg-brace { background: #90a4ae; }
.leg-frame { background: #0b1f4d; }

.vip-plan-wrap {
  overflow-x: auto;
  background: #eaf3ff;
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: 0 14px 40px rgba(11,31,77,.1);
}
/* Vue du haut : longueur 50 m (horizontal) · largeur 12 m = loges 10 m + couloir 2 m */
.vip-plan {
  --terrace-h: 22%;
  --lodge-h: 58%;   /* ~10/12 du chapiteau */
  --corridor-h: 20%; /* ~2/12 du chapiteau, sur toute la longueur */
  position: relative;
  width: 100%;
  min-width: 720px;
  aspect-ratio: 50 / 18;
  background: #dceeff;
  border-radius: .9rem;
  border: 2px solid #9bb8de;
}
.vip-terrace-band {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--terrace-h);
  background: #e8f5e9;
  border-bottom: 2px solid #2e7d32;
  z-index: 0;
  pointer-events: none;
}
/* Terrasse individuelle devant chaque stand / loge */
.vip-terrace-plot {
  position: absolute;
  top: 0;
  height: var(--terrace-h);
  box-sizing: border-box;
  background: repeating-linear-gradient(
    90deg,
    rgba(46, 125, 50, 0.16),
    rgba(46, 125, 50, 0.16) 8px,
    rgba(46, 125, 50, 0.07) 8px,
    rgba(46, 125, 50, 0.07) 16px
  );
  border: 2px solid #2e7d32;
  border-bottom-width: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1b5e20;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 1;
  padding: 0.2rem;
}
.vip-terrace-plot small {
  font-weight: 600;
  opacity: 0.85;
  font-size: 0.62rem;
}
.vip-terrace-plot.is-biz {
  background: repeating-linear-gradient(
    90deg,
    rgba(21, 101, 192, 0.14),
    rgba(21, 101, 192, 0.14) 8px,
    rgba(21, 101, 192, 0.06) 8px,
    rgba(21, 101, 192, 0.06) 16px
  );
  border-color: #1565c0;
  color: #0d47a1;
}
.vip-tent {
  position: absolute;
  left: 0; right: 0;
  top: var(--terrace-h);
  bottom: 0;
  background: rgba(255,255,255,.5);
  border-top: 3px solid #0b1f4d;
  box-shadow: inset 0 0 0 2px rgba(11,31,77,.15);
  pointer-events: none;
  z-index: 0;
}
.vip-tent-label {
  position: absolute;
  left: .5rem;
  top: calc(var(--terrace-h) + .35rem);
  font-size: .68rem;
  font-weight: 700;
  color: #0b1f4d;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 6;
  opacity: .75;
}
/* Couloir 2 m : toute la longueur (50 m), dessert chaque loge */
.vip-corridor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--corridor-h);
  background: repeating-linear-gradient(
    90deg,
    #ff8a3d,
    #ff8a3d 10px,
    #ffb074 10px,
    #ffb074 20px
  );
  border-top: 3px solid #e65100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 800;
  color: #5d2c00;
  letter-spacing: .04em;
  pointer-events: none;
  z-index: 2;
}
.vip-corridor span {
  background: rgba(255, 248, 240, 0.92);
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 81, 0, 0.35);
}
.vip-zone {
  position: absolute;
  top: var(--terrace-h);
  height: var(--lodge-h);
  border: 2px solid rgba(11,31,77,.4);
  border-bottom-width: 1px;
  background: #2f9e64;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .35rem;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  z-index: 1;
}
.vip-zone:hover { filter: brightness(1.08); z-index: 3; }
.vip-zone.is-business { background: #1565c0; }
.vip-zone.is-busy { background: #c62828; cursor: not-allowed; opacity: .92; }
.vip-zone.is-selected {
  background: #ffd23f !important;
  color: #0b1f4d;
  box-shadow: 0 0 0 3px #0b1f4d inset;
  z-index: 4;
}
.vip-zone strong { font-size: .82rem; line-height: 1.15; }
.vip-zone small { font-size: .7rem; opacity: .95; margin-top: .2rem; }
/* Portes d’accès loge → couloir */
.vip-zone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 18%;
  min-width: 14px;
  max-width: 36px;
  height: 6px;
  background: #fff59d;
  border: 1px solid #0b1f4d;
  border-radius: 2px 2px 0 0;
  z-index: 2;
}
/* Trames structurelles tous les 5 m */
.vip-frame {
  position: absolute;
  top: var(--terrace-h);
  bottom: 0;
  border-left: 2px dashed rgba(11, 31, 77, 0.35);
  z-index: 4;
  pointer-events: none;
  box-sizing: border-box;
}
.vip-frame-label {
  position: absolute;
  top: -1.15rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  font-weight: 800;
  color: #0b1f4d;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 31, 77, 0.2);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
/* Zones structure : pas d’accès direct couloir → terrasse */
.vip-frame.is-cable {
  border-left: 2px solid rgba(183, 28, 28, 0.25);
  background: transparent;
  z-index: 5;
}
.vip-no-access {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
  background: linear-gradient(
    180deg,
    rgba(183, 28, 28, 0.2),
    rgba(183, 28, 28, 0.06) 70%,
    transparent
  );
  border-top: 3px solid #c62828;
  pointer-events: none;
  z-index: 6;
}
.vip-no-access span {
  font-size: clamp(0.55rem, 1.1vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(198, 40, 40, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(127, 29, 29, 0.12);
}
/* Chemin latéral Loge Arrivée → terrasse (bout gauche du chapiteau) */
.vip-arrival-path {
  position: absolute;
  left: 0;
  width: 1.8%;
  top: 0;
  bottom: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #81c784 0%,
    #a5d6a7 22%,
    #ffcc80 45%,
    #ffb74d 70%,
    #ff8a3d 100%
  );
  border-right: 2px solid #ef6c00;
  box-shadow: 2px 0 0 rgba(255, 255, 255, 0.35);
}
.vip-arrival-path span {
  position: absolute;
  top: 38%;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #4e342e;
  background: rgba(255, 248, 225, 0.95);
  padding: 0.35rem 0.12rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(239, 108, 0, 0.35);
  text-transform: uppercase;
}
.vip-side {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 860px) {
  .vip-side { grid-template-columns: 1fr; }
}
.vip-panel {
  background: #fff;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 32px rgba(11,31,77,.08);
}
.vip-panel h2 {
  margin: 0 0 .75rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: .03em;
  color: #0b1f4d;
  font-size: 1.6rem;
}
.vip-panel p, .vip-panel li { color: #4b5b76; }
.vip-meal h2, .vip-meal h3 {
  margin: 0 0 .55rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: .03em;
  color: #0b1f4d;
  font-size: 1.35rem;
}
.vip-meal p, .vip-meal div {
  color: #4b5b76;
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}
.vip-detail .vip-meal,
#vip-detail .vip-meal {
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px solid #d9e4f2;
}
.vip-actions { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1rem; }
.vip-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:.75rem 1.15rem; border-radius:999px; border:0; font:inherit; font-weight:700;
  text-decoration:none; cursor:pointer;
}
.vip-btn-primary { background:linear-gradient(135deg,#e2182a,#b40f1e); color:#fff; }
.vip-btn-secondary { background:#e8f1ff; color:#0b1f4d; }
.vip-btn-ghost { background:#f3f6fa; color:#4b5b76; }
.vip-btn:disabled { opacity:.5; cursor:not-allowed; }

.vip-auth, .vip-form .form-row { margin-bottom: .9rem; }
.vip-form label { display:block; font-weight:600; margin-bottom:.3rem; font-size:.92rem; }
.vip-form input, .vip-form textarea, .vip-form select {
  width:100%; border:1.5px solid #d7e3f4; border-radius:.75rem; padding:.75rem .9rem; font:inherit; background:#f8fbff;
}
.vip-alert { padding:.85rem 1rem; border-radius:.8rem; margin-bottom:1rem; font-weight:600; }
.vip-alert-ok { background:#e8fff1; color:#0f6b3c; }
.vip-alert-err { background:#ffe8eb; color:#9d1020; }
.vip-alert-info { background:#eef5ff; color:#0b1f4d; }

.vip-table { width:100%; border-collapse:collapse; font-size:.95rem; }
.vip-table th, .vip-table td { text-align:left; padding:.7rem .45rem; border-bottom:1px solid #d9e4f2; vertical-align:top; }
.vip-badge { display:inline-block; padding:.15rem .55rem; border-radius:999px; font-size:.75rem; font-weight:700; }
.vip-badge-pending { background:#fff3cd; color:#7a5a00; }
.vip-badge-confirmed { background:#e3f2fd; color:#0d47a1; }
.vip-badge-paid { background:#e8fff1; color:#0f6b3c; }
.vip-badge-cancelled { background:#ffe8eb; color:#9d1020; }
.access-code { font-family: ui-monospace, Consolas, monospace; font-weight:700; letter-spacing:.04em; }

/* Vue 3D loge — vrai plein écran (au-dessus du header site z-index 100) */
body.vip-3d-open {
  overflow: hidden !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.vip-3d-open .site-header,
body.vip-3d-open .preview-banner,
body.vip-3d-open .skip-link,
body.vip-3d-open .site-footer {
  display: none !important;
}
.vip-3d-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  display: grid;
  place-items: stretch;
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  background: #0b1f4d;
}
.vip-3d-modal[hidden] { display: none !important; }
.vip-3d-backdrop {
  position: absolute;
  inset: 0;
  background: #071427;
  pointer-events: none;
}
.vip-3d-dialog {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  background: #0b1f4d;
  color: #fff;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vip-3d-dialog.is-native-fs {
  background: #0b1f4d;
}
.vip-3d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .75rem;
  flex-shrink: 0;
  padding-top: max(.55rem, env(safe-area-inset-top));
}
.vip-3d-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.vip-3d-head h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: .04em;
  font-size: clamp(1.15rem, 4vw, 1.85rem);
  color: #fff;
  line-height: 1.1;
}
.vip-3d-hint {
  margin: 0;
  padding: 0 .75rem .45rem;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  flex-shrink: 0;
}
.vip-3d-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: 0 .75rem .55rem;
  flex-shrink: 0;
  max-height: 28vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.vip-3d-nav .vip-btn {
  padding: .42rem .7rem;
  font-size: .82rem;
  user-select: none;
  -webkit-user-select: none;
}
.vip-3d-pad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin-left: .25rem;
}
.vip-3d-pad-mid {
  display: inline-flex;
  gap: .2rem;
}
.vip-3d-pad .vip-btn {
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-weight: 800;
}
.vip-3d-lodges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  width: 100%;
  margin-top: .2rem;
}
.vip-3d-lodges .vip-btn {
  font-size: .78rem;
  padding: .32rem .55rem;
}
.vip-3d-lodges .vip-btn.is-current {
  background: rgba(255, 210, 63, .28);
  color: #fff;
}
.vip-3d-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.vip-3d-canvas {
  width: 100%;
  flex: 1 1 auto;
  min-height: 42vh;
  height: auto;
  background: linear-gradient(180deg, #7eb6e8 0%, #cfe6f7 55%, #6fae45 100%);
  cursor: grab;
  touch-action: none;
}
.vip-3d-canvas canvas,
.vip-3d-canvas.is-dragging,
.vip-3d-canvas canvas.is-dragging {
  cursor: grabbing;
}
.vip-3d-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}
.vip-3d-dialog .vip-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Touches tactiles (surtout mobile) */
.vip-3d-touch {
  display: none;
  pointer-events: none;
}
.vip-3d-touch-pad,
.vip-3d-touch-tip {
  pointer-events: auto;
}
.vip-3d-touch-pad {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: .35rem;
}
.vip-3d-touch-row {
  display: flex;
  gap: .35rem;
}
.vip-3d-touch-btn {
  width: 3.4rem;
  height: 3.4rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(11, 31, 77, 0.72);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.vip-3d-touch-btn:active {
  background: rgba(255, 210, 63, 0.85);
  color: #0b1f4d;
}
.vip-3d-touch-tip {
  margin: .45rem 0 0;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  text-align: center;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .vip-3d-hint,
  .vip-3d-fs-desktop,
  .vip-3d-pad-desktop,
  .vip-3d-lodges {
    display: none !important;
  }
  .vip-3d-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    padding: .35rem .55rem;
    padding-top: max(.35rem, env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(7, 20, 39, 0.88), transparent);
    pointer-events: none;
  }
  .vip-3d-head-actions {
    pointer-events: auto;
  }
  .vip-3d-head h2 {
    font-size: 1.05rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
  }
  .vip-3d-nav {
    position: absolute;
    top: calc(2.4rem + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 6;
    max-height: none;
    padding: 0 .5rem;
    gap: .28rem;
    background: transparent;
    overflow: visible;
  }
  .vip-3d-nav .vip-btn {
    padding: .4rem .55rem;
    font-size: .75rem;
    background: rgba(11, 31, 77, 0.7);
    backdrop-filter: blur(6px);
  }
  .vip-3d-stage {
    flex: 1;
    min-height: 0;
    height: 100%;
  }
  .vip-3d-canvas {
    min-height: 0;
    height: 100% !important;
    position: absolute;
    inset: 0;
  }
  .vip-3d-touch {
    display: block;
    position: absolute;
    left: max(.7rem, env(safe-area-inset-left));
    bottom: max(.85rem, env(safe-area-inset-bottom));
    z-index: 8;
  }
}

/* Fallback plein écran (iOS / navigateurs sans Fullscreen API) */
.vip-3d-modal.is-fs-fallback {
  z-index: 9999;
}
.vip-3d-modal.is-fs-fallback .vip-3d-dialog {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
