/* ==========================================================================
   TRIOPARC — Pages « Attraction » (gabarit commun aux 14 attractions)
   Source : Figma « Trio Parc » — frames « Attraction 01 … 14 » (1920 × 2791)
   Structure : .attr-hero (740) → .attr-details (878) → .attr-others (846) → footer
   La couleur néon de l'attraction est pilotée par une classe sur <main> :
   .attr--cyan / .attr--rose / .attr--jaune / .attr--lime / .attr--violet
   qui définit --c (r, g, b) et --c-hex.
   ========================================================================== */

/* ---------- Couleur de l'attraction ---------- */
.attr { --c: 56, 198, 240; --c-hex: #38c6f0; background: #161235; }
.attr--cyan   { --c: 56, 198, 240;  --c-hex: #38c6f0; }
.attr--rose   { --c: 255, 111, 168; --c-hex: #ff6fa8; }
.attr--jaune  { --c: 255, 198, 58; --glow: 160, 107, 255;  --c-hex: #ffc63a; }
.attr--lime   { --c: 169, 232, 94;  --c-hex: #a9e85e; }
.attr--violet { --c: 160, 107, 255; --c-hex: #a06bff; }

/* Modificateurs de couleur réutilisés par les stats et les cartes */
.attr-mini:not([class*="attr-c--"]) { --c: 169, 232, 94; --c-hex: #a9e85e; }
.attr-c--cyan   { --c: 56, 198, 240;  --c-hex: #38c6f0; }
.attr-c--rose   { --c: 255, 111, 168; --c-hex: #ff6fa8; }
.attr-c--jaune  { --c: 255, 198, 58; --glow: 160, 107, 255;  --c-hex: #ffc63a; }
.attr-c--lime   { --c: 169, 232, 94;  --c-hex: #a9e85e; }
.attr-c--violet { --c: 169, 145, 240; --c-hex: #a991f0; }

/* ---------- HERO (740) ---------- */
.attr-hero {
  position: relative;
  height: 740px;
  display: flex;
  align-items: center;
  background: #0a0f28;
  /* Masque Figma « courbe du bas » : rect 1920×630 + ellipse 2800×808 posée à (-440, -68) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio=%22none%22 overflow=%22visible%22 style=%22display: block;%22 width=%222800%22 height=%22808%22 viewBox=%220 0 2800 808%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M1400 0C1687.73 0 1955.18 25.0492 2177.61 68H2360V109.938C2630.89 183.61 2800 288.106 2800 404C2800 627.123 2173.2 808 1400 808C626.801 808 0 627.123 0 404C0 288.106 169.107 183.61 440 109.938V68H622.395C844.82 25.0492 1112.27 0 1400 0Z%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=%22808%22 viewBox=%220 0 2800 808%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M1400 0C1687.73 0 1955.18 25.0492 2177.61 68H2360V109.938C2630.89 183.61 2800 288.106 2800 404C2800 627.123 2173.2 808 1400 808C626.801 808 0 627.123 0 404C0 288.106 169.107 183.61 440 109.938V68H622.395C844.82 25.0492 1112.27 0 1400 0Z%22 fill=%22%23D9D9D9%22/%3E%3C/svg%3E");
  -webkit-mask-size: max(2800px, 145.84%) 808px;
  mask-size: max(2800px, 145.84%) 808px;
  -webkit-mask-position: 50% -68px;
  mask-position: 50% -68px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.attr-hero__media {
  position: absolute;
  top: 0; bottom: 0;
  left: 38.54%;        /* 740 / 1920 */
  width: 61.46%;       /* 1180 / 1920 */
  background: linear-gradient(180deg, #1a2450, #0a1024);
}
/* Variante : visuel décalé à droite (ex. 04 Krazy Darts : x = 828) */
.attr-hero__media--right { left: 43.125%; width: 56.875%; }
/* Cadrages Figma particuliers */
.attr-hero__media--pos-left img { object-position: 9% 50%; }          /* 08 — photo panoramique calée à gauche */
.attr-hero__media--offset img {                                        /* 12 — photo décalée vers la droite */
  left: 27.12%; top: 5.07%;
  width: 100%; height: 89.99%;
}
.attr-hero__media img, .attr-hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* VOILE — fusion de l'image vers la gauche */
.attr-hero__fusion {
  position: absolute;
  top: 0; bottom: 0;
  left: 38.54%;
  width: 61.46%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, #000 70.7%);
}
/* Dégradé — voile de gauche (assombrissement haut/bas + 2 halos violets + dégradé horizontal) */
.attr-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(576px 251.6px 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(806.4px 518px 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%);
}
.attr-hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 46px;
}

/* Fil d'Ariane */
.attr-hero__crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: normal;
  color: var(--txt-discret);
  white-space: nowrap;
}
.attr-hero__crumbs a { color: var(--txt-discret); transition: color .2s ease; }
.attr-hero__crumbs a:hover { color: var(--txt-doux); }
.attr-hero__crumbs .attr-hero__sep { color: var(--txt-tres-discret); }
.attr-hero__crumbs [aria-current="page"] { font-weight: 500; color: var(--c-hex); }

/* En-tête */
.attr-hero__header { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.attr-hero__eyebrow { line-height: 1.6; color: var(--c-hex); white-space: nowrap; }
.attr-hero__title {
  font-size: 80px;
  line-height: 1.02;
  letter-spacing: -0.8px;
  color: var(--txt-principal);
  text-shadow: 0 0 64px rgba(var(--c), 0.22);
  white-space: nowrap;
}
.attr-hero__title .grad-text {
  background-image: linear-gradient(90deg, var(--c-hex) 0%, #a991f0 100%);
  filter: drop-shadow(0 0 28px rgba(var(--glow, var(--c)), 0.22));
}
.attr-hero__keywords {
  font-size: 20px;
  line-height: 1.65;
  color: var(--txt-doux);
  white-space: pre-wrap;   /* conserve les doubles espaces autour des « · » */
}
.attr-hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Indicateur de défilement (« Le détail de l'attraction ») */
.attr-hero__scroll {
  position: absolute;
  left: 50%;
  top: 636px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #d1def5;
}
.attr-hero__scroll-label { display: flex; flex-direction: column; align-items: center; gap: 10px; white-space: nowrap; }
.attr-hero__scroll-label span:first-child { font-size: 12px; letter-spacing: 4.08px; text-transform: uppercase; }
.attr-hero__scroll-label span:last-child { font-size: 26px; font-weight: 300; line-height: 1; animation: attr-bob 2.2s ease-in-out infinite; }
.attr-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 attr-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- DÉTAILS (878) ---------- */
.attr-details {
  background: linear-gradient(180deg, #161235 0%, #19143b 25%, #1f1742 55%, #1d1541 80%, #1d163d 100%);
}
.attr-details .container { padding-top: 74px; padding-bottom: 140px; }
.attr-details .blob--fond { left: -620px; top: -40px; }
.attr-card {
  display: flex;
  align-items: stretch;
  height: 664px;
  border-radius: 16px;
  overflow: hidden;
  background: #070c1c;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.attr-card__media {
  position: relative;
  flex: 0 0 55.56%;    /* 800 / 1440 */
  min-width: 0;
  overflow: hidden;
  background: #0b1224;
  /* Fond du « VISUEL — déposer ici » (visible si l'image manque) */
  background-image: linear-gradient(180deg, rgba(var(--c), 0.14), #0b1224);
}
.attr-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.attr-card__media::before {           /* Gradient overlay */
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 11, 28, 0) 0%, rgba(6, 11, 28, 0.2) 72%, rgba(7, 12, 28, 0.85) 100%);
}
.attr-card__media::after {            /* Light stripe */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(var(--glow, var(--c)), 0.95) 0%, rgba(var(--glow, var(--c)), 0) 100%);
}
.attr-card__info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 54px;
}
.attr-card__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.34px;
  line-height: normal;
  color: var(--c-hex);
  text-transform: uppercase;
  white-space: nowrap;
}
.attr-card__title {
  font-size: 42px;
  line-height: 1.08;
  color: #fff;
  text-transform: uppercase;
}
.attr-card__desc { font-size: 20px; line-height: 1.6; color: var(--txt-doux); }
.attr-card__divider { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.12); }
.attr-stats { display: flex; align-items: flex-start; width: 100%; margin: 0; }
.attr-stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.attr-stat__value {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.44px;
  white-space: nowrap;
  background-image: linear-gradient(90deg, var(--c-hex) 0%, #fff 100%);
  filter: drop-shadow(0 0 13px rgba(var(--glow, var(--c)), 0.3));
}
.attr-stat__label { margin: 0; font-size: 17px; line-height: 1.4; color: var(--txt-discret); }
.attr-card__info .btn-neon { width: 100%; }
.attr-card__note {
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
  color: var(--txt-tres-discret);
  text-align: center;
  white-space: pre-wrap;
}

/* ---------- AUTRES ATTRACTIONS (846) ---------- */
.attr-others {
  background: linear-gradient(180deg, #1d163d 0%, #1a143a 12%, #101130 33%, #0a0d26 57%, #070b1e 80%, #05091a 94%, var(--bg-7) 100%);
}
.attr-others .container { display: flex; flex-direction: column; gap: 60px; padding-top: 140px; padding-bottom: 140px; }
.attr-others__header { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 620px; }
.attr-others__header .eyebrow--lime { line-height: 1.6; }
.attr-others__h2 {
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -0.64px;
  color: var(--txt-principal);
  white-space: nowrap;
}
.attr-others__h2 .grad-text { background-image: linear-gradient(90deg, #a9e85e 0%, #38c6f0 100%); }
.attr-others__grid { display: flex; gap: 20px; align-items: stretch; width: 100%; }

/* Carte « Autre attraction » */
.attr-mini {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 330px;
  border-radius: 16px;
  overflow: hidden;
  background: #070c1c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.attr-mini:hover { transform: translateY(-4px); border-color: rgba(var(--glow, var(--c)), 0.35); box-shadow: 0 20px 40px -18px rgba(var(--glow, var(--c)), 0.4); }
.attr-mini__photo {
  position: relative;
  height: 260px;
  flex: 0 0 260px;
  overflow: hidden;
  background: #0b1224;
  /* Fond du « PHOTO — déposer ici » (cartes sans photo : XD Dark Ride, Arcades…) */
  background-image: linear-gradient(180deg, rgba(var(--c), 0.14), #0b1224);
}
.attr-mini__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.attr-mini:hover .attr-mini__photo img { transform: scale(1.04); }
.attr-mini__photo::before {           /* Gradient overlay */
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 11, 28, 0) 0%, rgba(6, 11, 28, 0.8) 100%);
}
.attr-mini__photo::after {            /* Light stripe */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(var(--glow, var(--c)), 0.95) 0%, rgba(var(--glow, var(--c)), 0) 100%);
}
.attr-mini__title {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.attr-mini__title h3 {
  flex: 1 1 0;
  min-width: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.18;
  text-transform: uppercase;
}
.attr-mini__arrow {
  flex: none;
  font-size: 18px;
  line-height: normal;
  color: var(--c-hex);
  text-shadow: 0 0 16px rgba(var(--c), 0.55);
  transition: transform .3s ease;
}
.attr-mini:hover .attr-mini__arrow { transform: translateX(4px); }

/* Carte « Voir tout » */
.attr-all {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 330px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b142f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: transform .35s ease, border-color .35s ease;
}
.attr-all:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.attr-all__counter {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.attr-all__num {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.56px;
  background-image: linear-gradient(90deg, #ff6fa8 0%, #38c6f0 50%, #a9e85e 100%);
}
.attr-all__label { font-size: 20px; line-height: 1.4; color: var(--txt-discret); }
.attr-all__link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.attr-all__link span:first-child { flex: 1 1 0; font-size: 20px; font-weight: 500; line-height: 1.18; }
.attr-all__link .attr-mini__arrow { color: #fff; text-shadow: none; }
.attr-all:hover .attr-mini__arrow { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
  .attr-hero__title { font-size: 64px; }
  .attr-others__h2 { font-size: 52px; }
  .attr-card__info { padding: 44px; gap: 22px; }
  .attr-stat__value { font-size: 38px; }
}
@media (max-width: 1280px) {
  .attr-others__grid { flex-wrap: wrap; }
  .attr-mini, .attr-all { flex: 1 1 calc(50% - 10px); }
  .attr-card__title { font-size: 36px; }
}
@media (max-width: 1024px) {
  .attr-card { flex-direction: column; height: auto; }
  .attr-card__media { flex: 0 0 420px; height: 420px; }
  .attr-card__media::before { background: linear-gradient(180deg, rgba(6, 11, 28, 0) 40%, rgba(7, 12, 28, 0.85) 100%); }
  .attr-card__info { padding: 36px; }
}
@media (max-width: 720px) {
  .attr-hero__media--offset img { left: 0; top: 0; width: 100%; height: 100%; }
  .attr-hero {
    height: auto; min-height: 0;
    padding-block: 130px 110px;
    -webkit-mask-size: 300% calc(100% + 68px); mask-size: 300% calc(100% + 68px);
  }
  .attr-hero__media, .attr-hero__media--right { left: 0; width: 100%; opacity: .55; }
  .attr-hero__fusion { display: none; }
  .attr-hero > .container { gap: 32px; }
  .attr-hero__title { font-size: 44px; white-space: normal; }
  .attr-hero__crumbs { flex-wrap: wrap; white-space: normal; }
  .attr-hero__eyebrow { white-space: normal; }
  .attr-hero__keywords { font-size: 17px; white-space: normal; }
  .attr-hero__actions .btn { width: 100%; }
  .attr-hero__scroll { display: none; }
  .attr-details .container { padding-top: 60px; padding-bottom: 90px; }
  .attr-card__media { flex-basis: 260px; height: 260px; }
  .attr-card__info { padding: 28px 24px; gap: 18px; }
  .attr-card__title { font-size: 30px; }
  .attr-card__desc { font-size: 17px; }
  .attr-card__label { white-space: normal; }
  .attr-stats { flex-wrap: wrap; gap: 18px; }
  .attr-stat { flex: 1 1 40%; }
  .attr-stat__value { font-size: 34px; }
  .attr-others .container { padding-top: 90px; padding-bottom: 90px; gap: 40px; }
  .attr-others__h2 { font-size: 38px; white-space: normal; }
  .attr-mini, .attr-all { flex-basis: 100%; }
}
