/* ==========================================================================
   Landing pages thématiques UNAI® (s'appuie sur style/jeu.css)
   ========================================================================== */

.lp--series {
  --jeu-cyan: 330 90% 70%;
}

.lp--books {
  --jeu-cyan: 42 95% 62%;
}

.lp--hub {
  --jeu-cyan: 265 90% 75%;
}

/* ---------- Hero ---------- */

.lp-hero {
  min-height: 88vh;
  min-height: 88svh;
}

.lp-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
}

.lp-hero__inner--solo {
  grid-template-columns: minmax(0, 1fr);
}

.lp-hero__inner--solo .jeu-hero__content {
  max-width: 760px;
}

.lp-hero .jeu-hero__lead a,
.lp-answer a,
.lp-facts a,
.lp-step a:not(.lp-step__media),
.lp-fit a,
.lp-table a,
.lp .jeu-feature__copy a {
  color: hsl(var(--jeu-cyan));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lp-hero .jeu-hero__lead a:hover,
.lp-answer a:hover,
.lp-facts a:hover,
.lp-fit a:hover,
.lp-table a:hover,
.lp .jeu-feature__copy a:hover {
  color: #fff;
}

/* ---------- Boutons ---------- */

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(0 0% 100% / 0.28);
  border-radius: 14px;
  background: hsl(var(--jeu-ink) / 0.55);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.lp-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, hsl(var(--jeu-red)), hsl(var(--jeu-red-hot)));
  box-shadow: 0 12px 34px hsl(var(--jeu-red) / 0.42);
}

.lp-btn:hover,
.lp-btn:focus-visible {
  border-color: hsl(0 0% 100% / 0.6);
  transform: translateY(-3px);
}

.lp-btn--primary:hover,
.lp-btn--primary:focus-visible {
  box-shadow: 0 18px 46px hsl(var(--jeu-red) / 0.6);
}

.lp-btn:focus-visible,
.lp-link:focus-visible,
.lp-card:focus-visible {
  outline: 3px solid hsl(var(--jeu-cyan));
  outline-offset: 3px;
}

.lp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: hsl(var(--jeu-cyan)) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.lp-link:hover span {
  transform: translateX(3px);
}

.lp-link span {
  transition: transform 200ms ease;
}

.lp-final__cta {
  justify-content: center;
}

/* ---------- En bref (réponse courte) ---------- */

.lp-answer-wrap {
  padding-top: 4.5rem;
}

.lp-answer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem;
  border: 1px solid hsl(var(--jeu-line));
  border-left: 4px solid hsl(var(--jeu-cyan));
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 0% 0%, hsl(var(--jeu-cyan) / 0.1), transparent 60%),
    hsl(var(--jeu-panel));
}

.lp-answer h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.lp-answer__text p:not(.jeu-kicker) {
  margin: 1.1rem 0 0;
  color: hsl(0 0% 100% / 0.86);
  font-size: 1.08rem;
  line-height: 1.8;
}

.lp-facts {
  display: grid;
  align-content: start;
  margin: 0;
}

.lp-facts > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--jeu-line));
}

.lp-facts > div:last-child {
  border-bottom: 0;
}

.lp-facts dt {
  color: hsl(0 0% 100% / 0.55);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
}

.lp-facts dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Parcours (étapes) ---------- */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.lp-step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--jeu-line));
  border-radius: 16px;
  background: hsl(var(--jeu-panel));
  transition: transform 250ms ease, border-color 250ms ease;
}

.lp-step:hover {
  border-color: hsl(var(--jeu-cyan) / 0.5);
  transform: translateY(-4px);
}

.lp-step__media {
  position: relative;
  display: block;
}

.lp-step__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lp-step__num {
  position: absolute;
  bottom: -1.1rem;
  left: 1.25rem;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--jeu-cyan));
  color: hsl(var(--jeu-ink));
  font-weight: 900;
  box-shadow: 0 8px 20px hsl(var(--jeu-ink) / 0.6);
}

.lp-step__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.9rem 1.35rem 1.4rem;
}

.lp-step__meta {
  margin: 0 0 0.45rem;
  color: hsl(0 0% 100% / 0.55);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lp-step h3 {
  font-size: 1.25rem;
}

.lp-step__body > p:not(.lp-step__meta) {
  flex: 1;
  margin: 0.75rem 0 1rem;
  color: hsl(0 0% 100% / 0.76);
  line-height: 1.65;
}

/* ---------- Images des sections ---------- */

.lp-shot {
  cursor: default;
}

.lp .jeu-feature__copy p {
  color: hsl(0 0% 100% / 0.78);
  line-height: 1.75;
}

/* ---------- Pour qui ---------- */

.lp-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.lp-fit__col {
  padding: 2rem;
  border: 1px solid hsl(var(--jeu-line));
  border-radius: 18px;
  background: hsl(var(--jeu-panel));
}

.lp-fit__col--yes {
  border-top: 4px solid hsl(145 65% 52%);
}

.lp-fit__col--no {
  border-top: 4px solid hsl(var(--jeu-red));
}

.lp-fit h3 {
  margin-bottom: 1.1rem !important;
  font-size: 1.3rem;
}

.lp-fit ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-fit li {
  position: relative;
  padding-left: 2rem;
  color: hsl(0 0% 100% / 0.84);
  line-height: 1.6;
}

.lp-fit li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.lp-fit__col--yes li::before {
  content: "✓";
  background: hsl(145 65% 52% / 0.18);
  color: hsl(145 65% 62%);
}

.lp-fit__col--no li::before {
  content: "✕";
  background: hsl(var(--jeu-red) / 0.18);
  color: hsl(var(--jeu-red-hot));
}

/* ---------- Tableau ---------- */

.lp-table-scroll {
  overflow-x: auto;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid hsl(var(--jeu-line));
  border-radius: 16px;
  background: hsl(var(--jeu-panel));
}

.lp-table-scroll:focus-visible {
  outline: 3px solid hsl(var(--jeu-cyan));
  outline-offset: 3px;
}

.lp-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.lp-table th,
.lp-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--jeu-line));
  vertical-align: top;
  line-height: 1.5;
}

.lp-table thead th {
  background: hsl(var(--jeu-ink) / 0.6);
  color: hsl(var(--jeu-cyan));
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
}

.lp-table tbody th {
  color: #fff;
  font-weight: 800;
}

.lp-table td {
  color: hsl(0 0% 100% / 0.8);
}

.lp-table tbody tr:last-child th,
.lp-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Maillage (cartes) ---------- */

.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--jeu-line));
  border-radius: 16px;
  background: hsl(var(--jeu-panel));
  color: #fff;
  text-decoration: none;
  transition: transform 250ms ease, border-color 250ms ease;
}

.lp-card:hover {
  border-color: hsl(var(--jeu-cyan) / 0.55);
  transform: translateY(-4px);
}

.lp-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.lp-card:hover img {
  transform: scale(1.05);
}

.lp-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem 1.4rem;
}

.lp-card__tag {
  color: hsl(var(--jeu-cyan));
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
}

.lp-card strong {
  font-size: 1.15rem;
  line-height: 1.25;
}

.lp-card__body > span:last-child {
  color: hsl(0 0% 100% / 0.7);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Vidéos (façade YouTube) ---------- */

.lp-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lp-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 250ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.lp-video:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.lp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lp-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(0deg, hsl(var(--jeu-ink) / 0.55), transparent 55%);
  cursor: pointer;
}

.lp-video__play span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--jeu-red));
  box-shadow: 0 14px 40px hsl(var(--jeu-red) / 0.55);
  transition: transform 200ms ease;
}

.lp-video__play span::before {
  content: "";
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
}

.lp-video__play:hover span,
.lp-video__play:focus-visible span {
  transform: scale(1.1);
}

.lp-video__play:focus-visible {
  outline: 3px solid hsl(var(--jeu-cyan));
  outline-offset: -3px;
}

.lp-video__fallback {
  position: absolute;
  right: 0.75rem;
  bottom: 0.6rem;
  color: hsl(0 0% 100% / 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.lp-video__fallback:hover {
  color: #fff;
}

.lp-hero__video .jeu-window {
  transform: none;
}

.lp-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.lp-videos--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.lp-videos .lp-video {
  border: 1px solid hsl(var(--jeu-line));
  border-radius: 16px;
  box-shadow: 0 24px 50px hsl(var(--jeu-ink) / 0.55);
}

.lp-videos h3 {
  margin-top: 1.1rem !important;
  font-size: 1.25rem;
}

.lp-videos__meta {
  margin: 0.35rem 0 0;
  color: hsl(var(--jeu-cyan));
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lp-videos li > p:last-child {
  margin: 0.6rem 0 0;
  color: hsl(0 0% 100% / 0.74);
  line-height: 1.65;
}

/* Visuels portrait (captures iPhone/iPad) */
.lp-shot--portrait img {
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.jeu-feature__media > .lp-shot--portrait {
  max-width: 380px;
  margin-inline: auto;
}

.lp--blast {
  --jeu-cyan: 190 95% 62%;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  /* Sur mobile/tablette, la vidéo du hero reste visible (les captures décoratives, elles, sont masquées). */
  .jeu-hero__window.lp-hero__video {
    display: block;
    width: 100%;
    max-width: 640px;
    margin-top: 2rem;
    padding-bottom: 0;
  }

  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-answer {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .lp-videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-fit {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .lp-hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .lp-answer {
    padding: 1.6rem 1.35rem;
  }

  .lp-steps,
  .lp-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-fit__col {
    padding: 1.5rem 1.35rem;
  }

  .lp-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-step,
  .lp-card,
  .lp-card img,
  .lp-btn {
    transition: none;
  }
}
