/* ==========================================================================
   ROOMPLAY — Pages produits (/louer/…)
   Chaque page déclare <body data-product="ps5|xbox|vr|switch|jeux">
   pour recevoir sa couleur d'accent.
   ========================================================================== */

[data-product="ps5"] {
  --accent: var(--accent-ps5);
}

[data-product="xbox"] {
  --accent: var(--accent-xbox);
}

[data-product="vr"] {
  --accent: var(--accent-vr);
}

[data-product="switch"] {
  --accent: var(--accent-switch);
}

[data-product="jeux"] {
  --accent: var(--accent-jeux);
}

/* Laisse la place à la barre de réservation en bas d'écran */
.has-sticky .site-footer {
  padding-bottom: calc(var(--sticky-h) + var(--space-6) + env(safe-area-inset-bottom, 0px));
}

/* Hero produit ------------------------------------------------------------ */
.p-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + var(--space-4)) 0 var(--space-8);
  overflow: hidden;
}

.p-hero::before {
  /* lumière d'ambiance teintée par le produit */
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 62%);
  opacity: 0.16;
  transform: translateX(-50%);
}

.p-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--color-bg));
}

.p-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* empêche le bandeau séjour d'élargir la page */
  gap: var(--space-5);
}

.p-hero__top {
  display: flex;
  justify-content: center;
}

.p-hero__stage {
  display: grid;
  place-items: center;
}

.p-hero__art,
.p-hero__photo {
  width: auto;
  height: min(44svh, 380px);
  max-width: 100%;
}

.p-hero__photo {
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.p-hero__content {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

.p-hero__title {
  font-size: var(--fs-4xl);
  letter-spacing: -0.02em;
}

.p-hero__subtitle {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.15;
  color: var(--color-gold-soft);
}

.p-hero__text {
  max-width: 40ch;
  color: var(--color-text-soft);
}

.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em 0.55em;
  margin-top: var(--space-1);
}

.price-tag__from {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.price-tag__amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
}

.price-tag__unit {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.p-hero__actions {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  width: 100%;
  max-width: 420px;
}

.p-hero__actions .btn {
  width: 100%;
}

.assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  width: 100%;
  max-width: 460px;
  margin-top: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.assurance {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  line-height: 1.35;
  text-align: center;
  color: var(--color-text-soft);
}

.assurance .icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}

/* Illustration : flottement doux */
.art-float {
  animation: float 7s ease-in-out infinite;
}

.art-float--late {
  animation-delay: -3.5s;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

/* Téléphone : visuel plus compact, prix et bouton « Réserver » visibles dès
   le premier écran ; le texte descriptif passe sous le bouton */
@media (max-width: 639px) {
  .p-hero {
    padding-bottom: var(--space-7);
  }

  .p-hero__inner {
    gap: var(--space-3);
  }

  .p-hero__art,
  .p-hero__photo {
    height: min(30svh, 250px);
  }

  .p-hero__content {
    gap: var(--space-3);
  }

  .p-hero__title {
    font-size: var(--fs-3xl);
  }

  .p-hero__subtitle {
    font-size: 1.4rem;
  }

  .p-hero__text {
    order: 1;
    font-size: var(--fs-sm);
  }

  .assurances {
    order: 2;
  }
}

@media (min-width: 960px) {
  .p-hero {
    display: flex;
    align-items: center;
    min-height: min(100svh, 920px);
    padding-bottom: var(--space-9);
  }

  .p-hero::before {
    top: 50%;
    left: 72%;
    transform: translate(-50%, -50%);
  }

  .p-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "top   stage"
      "copy  stage";
    align-items: center;
    column-gap: var(--space-8);
    row-gap: var(--space-5);
  }

  .p-hero__top {
    grid-area: top;
    justify-content: flex-start;
    align-self: end;
  }

  .p-hero__stage {
    grid-area: stage;
  }

  .p-hero__content {
    grid-area: copy;
    align-self: start;
    justify-items: start;
    text-align: left;
  }

  .p-hero__art,
  .p-hero__photo {
    height: min(72svh, 600px);
  }

  .price-tag {
    justify-content: flex-start;
  }

  .p-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    max-width: none;
  }

  .p-hero__actions .btn {
    width: auto;
  }

  .assurances {
    max-width: 520px;
  }

  .assurance {
    justify-items: start;
    text-align: left;
  }
}

/* Jeux inclus ------------------------------------------------------------ */
.games__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: var(--space-3);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-2) var(--gutter) var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
}

.games__list::-webkit-scrollbar {
  display: none;
}

.cover {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  scroll-snap-align: start;
}

.cover__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(255, 255, 255, 0.2), transparent 50%),
    radial-gradient(90% 60% at 100% 100%, rgba(0, 0, 0, 0.45), transparent 70%),
    linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow:
    var(--shadow-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: transform var(--dur-slow) var(--ease-out);
}

.cover__art::after {
  /* reflet de boîtier au survol */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.14) 50%, transparent 62%);
  transform: translateX(-70%);
  transition: transform 1.1s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cover:hover .cover__art {
    transform: translateY(-4px);
  }

  .cover:hover .cover__art::after {
    transform: translateX(70%);
  }
}

.cover__mono {
  padding-inline: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8.5vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.cover__platform {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.45);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}

.cover__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: var(--radius-pill);
  background: rgba(11, 10, 9, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.cover__badge .icon {
  width: 13px;
  height: 13px;
  color: var(--color-gold);
}

.cover__title {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.3;
}

.cover__meta {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.games__note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.games__note .icon {
  color: var(--color-gold);
}

@media (min-width: 640px) {
  .games__list {
    grid-auto-columns: 30%;
  }
}

@media (min-width: 960px) {
  .games__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6) var(--space-4);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* Dans le coffret -------------------------------------------------------- */
.inbox {
  display: grid;
  gap: var(--space-6);
}

.inbox__body {
  display: grid;
  gap: var(--space-5);
}

.inbox__included {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--color-text-soft);
}

.inbox__needs-title {
  margin-top: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.needs {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}

.needs li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.needs .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--color-gold);
}

.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
  list-style: none;
}

.box-grid li {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.box-grid__qty {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-style: italic;
  line-height: 1;
  color: var(--color-gold-soft);
}

.box-grid__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}

.box-grid__text {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

@media (min-width: 960px) {
  .inbox {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-8);
    align-items: center;
  }

  .inbox .section-head {
    margin-bottom: 0;
  }

  .box-grid li {
    padding: var(--space-6) var(--space-5);
  }
}

/* Réservation ------------------------------------------------------------ */
.booking__inner {
  display: grid;
  gap: var(--space-6);
}

.booking__aside {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.booking__aside .section-head {
  margin-bottom: 0;
}

.booking__perks {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}

.booking__perks li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.booking__perks .icon {
  color: var(--color-gold);
}

.booking__card {
  display: grid;
  gap: var(--space-7);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(100% 40% at 50% 0%, rgba(214, 185, 127, 0.07), transparent 70%),
    var(--color-surface);
  box-shadow: var(--shadow-lift);
}

.booking__step {
  display: grid;
  gap: var(--space-4);
}

.booking__legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}

.booking__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(214, 185, 127, 0.55);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
}

.booking__fields {
  display: grid;
  gap: var(--space-4);
}

/* Bloc affiché selon le lieu de remise (hôtel ou domicile) : ses éléments
   gardent l'espacement de l'étape */
.booking__panel {
  display: contents;
}

/* Sécurité si le script n'a pas encore réaligné l'affichage : « Domicile ou
   location » coché masque toujours les choix propres à l'hôtel */
[data-booking-form]:has(input[name="lieu"][value="domicile"]:checked) [data-lieu-panel="hotel"] {
  display: none !important;
}

.booking__row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: var(--space-3);
}

.booking__summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}

.booking__total-label {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.booking__formula {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}

.booking__total-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* Ce que comprend la demande : livraison, inclus, garantie, restitution */
.booking__details {
  display: grid;
  gap: var(--space-2);
  margin-top: calc(var(--space-5) - var(--space-7));
  list-style: none;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--color-text-soft);
}

.booking__details li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.booking__details .icon {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--color-gold);
}

/* Pack de jeux : compteur et cases désactivées au-delà de 3 */
.games-count {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-gold);
}

.check-chip input:disabled + .check-chip__label {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking__actions {
  display: grid;
  gap: var(--space-3);
  margin-top: calc(var(--space-5) - var(--space-7)); /* resserre l'écart avec le total */
}

.booking__note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.booking__note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

@media (min-width: 640px) {
  .booking__card {
    padding: var(--space-7);
  }
}

@media (min-width: 960px) {
  .booking__inner {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
  }

  .booking__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

/* Groupes de jeux (ex. classiques / adultes) ------------------------------ */
.games__group + .games__group {
  margin-top: var(--space-8);
}

.games__group-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--fs-xl);
}

.age-tag {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 26px;
  padding-inline: 8px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-on-gold);
}

.cover__platform--adult {
  background: var(--gradient-gold);
  color: var(--color-on-gold);
}

/* Tuile « Et bien d'autres » */
.cover--more .cover__art {
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(214, 185, 127, 0.14), transparent 70%),
    var(--color-bg-soft);
  box-shadow: inset 0 0 0 1px var(--color-line-strong);
}

.cover--more .cover__mono {
  font-size: clamp(3rem, 12vw, 4.5rem);
  color: var(--color-gold);
}

.booking__note a {
  color: var(--color-text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Guide de démarrage (#guide) -------------------------------------------- */
.guide {
  display: grid;
  gap: var(--space-6);
}

.guide .section-head {
  margin-bottom: 0;
}

.guide__list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.guide__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
}

.guide__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(214, 185, 127, 0.5);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-gold);
}

.guide__title {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.guide__text {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.guide__help {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-gold-tint);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}

.guide__help .icon {
  margin-top: 2px;
  color: var(--color-whatsapp);
}

.guide__help a {
  color: var(--color-gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide__end {
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

@media (min-width: 960px) {
  .guide {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.booking__row--even {
  grid-template-columns: 1fr 1fr;
}
