/* Liberate : la page de présentation, posée sur /home.css (l'en-tête et le pied de page de FunArena).
   Palette tirée de l'art du jeu : mur vert-de-gris, laiton, lueur turquoise du trou de serrure. */

:root {
  --lib-bg: #070a09;
  --lib-panel: rgba(11, 17, 15, 0.84);
  --lib-line: rgba(201, 164, 90, 0.26);
  --lib-line-soft: rgba(201, 164, 90, 0.14);
  --lib-brass: #c9a45a;
  --lib-brass-soft: #e6cb8c;
  --lib-teal: #38e6d3;
  --lib-teal-soft: #93f3e9;
  --lib-cream: #efe9d8;
  --lib-text: #cdd6d0;
  --lib-muted: #93a39a;
  --lib-serif: "Trajan Pro", "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body.liberate {
  background:
    radial-gradient(900px 520px at 50% -4%, rgba(56, 230, 211, 0.13), transparent 62%),
    radial-gradient(1000px 640px at 92% 78%, rgba(201, 164, 90, 0.08), transparent 60%),
    linear-gradient(180deg, #050807, #0b1210 42%, #070a09);
  color: var(--lib-text);
}

.liberate .bg-grid {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(147, 243, 233, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 243, 233, 0.07) 1px, transparent 1px);
}

.liberate .site-header,
.liberate .site-footer {
  border-color: var(--lib-line);
  background: rgba(7, 11, 10, 0.8);
}

.liberate .brand {
  color: var(--lib-cream);
}

.liberate .site-header nav a:hover,
.liberate .footer-links a:hover {
  color: var(--lib-teal);
}

.liberate .footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.liberate .footer-links a {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: #000;
  color: var(--lib-cream);
}

.skip:focus {
  left: 12px;
}

main {
  display: block;
}

/* ---------- Le haut de page ---------- */

.lib-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1120px, 94vw);
  min-height: 600px;
  margin: 20px auto 0;
  padding: 54px 24px 40px;
  border: 1px solid var(--lib-line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lib-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("img/hero.jpg") center / cover no-repeat;
  filter: saturate(1.05) brightness(1.45) contrast(1.05);
  transform: scale(1.04);
}

/* Sombre au centre, là où est le texte ; les deux cellules restent lisibles sur les côtés. */
.lib-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 52% 72% at 50% 50%, rgba(4, 8, 7, 0.8) 0%, rgba(4, 8, 7, 0.5) 58%, rgba(4, 8, 7, 0.08) 100%),
    linear-gradient(180deg, rgba(4, 8, 7, 0.3) 0%, rgba(4, 8, 7, 0) 30%, rgba(4, 8, 7, 0) 62%, rgba(4, 8, 7, 0.82) 100%);
}

.lib-emblem {
  width: 168px;
  height: 168px;
  filter: drop-shadow(0 0 26px rgba(56, 230, 211, 0.34));
  animation: lib-glow 6s ease-in-out infinite;
}

@keyframes lib-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 22px rgba(56, 230, 211, 0.26));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(56, 230, 211, 0.5));
  }
}

.lib-kicker {
  margin: 20px 0 0;
  color: var(--lib-brass-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

.lib-hero h1 {
  margin: 10px 0 4px;
  padding-left: 0.22em;
  font-family: var(--lib-serif);
  font-weight: 700;
  font-size: clamp(2.7rem, 9vw, 5.2rem);
  letter-spacing: 0.22em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--lib-cream);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.75);
}

.lib-sub {
  margin: 0;
  padding-left: 0.3em;
  color: var(--lib-teal-soft);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.7vw, 1.02rem);
}

.lib-lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--lib-cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.lib-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lib-brass-soft), var(--lib-brass));
  color: #1c1506;
  box-shadow: 0 10px 28px rgba(201, 164, 90, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 164, 90, 0.4);
}

.btn-ghost {
  background: rgba(8, 14, 13, 0.6);
  border-color: rgba(147, 243, 233, 0.5);
  color: var(--lib-cream);
}

.btn-ghost:hover {
  border-color: var(--lib-teal);
  color: var(--lib-teal-soft);
}

.btn-off {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--lib-line-soft);
  color: var(--lib-muted);
  cursor: default;
}

.lib-promise {
  margin: 20px 0 0;
  color: var(--lib-brass-soft);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.chips {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--lib-line);
  background: rgba(8, 14, 13, 0.62);
  color: var(--lib-text);
  font-size: 0.88rem;
}

.chip em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lib-muted);
}

.chip.live {
  border-color: rgba(147, 243, 233, 0.55);
}

.chip.live em {
  color: var(--lib-teal-soft);
}

.chip.link {
  border-color: rgba(147, 243, 233, 0.55);
}

.chip.link em a {
  color: var(--lib-teal-soft);
  text-decoration: none;
}

.chip.link em a:hover,
.chip.link em a:focus-visible {
  text-decoration: underline;
}

/* ---------- Les sections ---------- */

.lib-section {
  width: min(1120px, 94vw);
  margin: 44px auto 0;
}

.lib-section h2 {
  margin: 0 0 18px;
  font-family: var(--lib-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lib-cream);
}

.lib-section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--lib-brass), transparent);
}

.lib-card {
  padding: 22px;
  border: 1px solid var(--lib-line);
  border-radius: 14px;
  background: var(--lib-panel);
}

.lib-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--lib-cream);
}

.lib-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--lib-text);
}

.lib-note,
.lib-aside {
  margin: 14px 0 0;
  color: var(--lib-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lib-aside {
  text-align: center;
  font-size: 1rem;
  color: var(--lib-teal-soft);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lib-line);
  border-radius: 14px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-play {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--lib-cream);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.video-play svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(56, 230, 211, 0.45));
}

.video-play:hover {
  transform: scale(1.08);
  color: var(--lib-teal-soft);
}

html.js .video-play {
  display: block;
}

.video-play.gone {
  display: none !important;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps .icon {
  display: block;
  margin-bottom: 14px;
  color: var(--lib-teal);
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.facts li {
  padding: 18px 10px 16px;
  text-align: center;
  border: 1px solid var(--lib-line);
  border-radius: 12px;
  background: rgba(10, 16, 14, 0.72);
}

.facts b {
  display: block;
  font-family: var(--lib-serif);
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--lib-brass-soft);
}

.facts span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--lib-muted);
}

.story-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--lib-cream);
}

.ticks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-top: 10px;
  padding-left: 26px;
  line-height: 1.6;
  color: var(--lib-text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--lib-teal);
  box-shadow: 0 0 10px rgba(56, 230, 211, 0.6);
}

/* ---------- La galerie ---------- */

.shots {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.shots a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--lib-line);
  border-radius: 10px;
  background: #000;
}

.shots img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.shots a:hover img,
.shots a:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.shots span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 5, 0.88));
  color: var(--lib-cream);
  font-size: 0.84rem;
  line-height: 1.3;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lib-teal);
  outline-offset: 3px;
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lib-cream);
}

.lightbox::backdrop {
  background: rgba(3, 6, 5, 0.93);
}

.lightbox figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4vh 70px;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid var(--lib-line);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}

.lightbox figcaption {
  text-align: center;
  font-size: 0.98rem;
}

.lb-count {
  margin-left: 8px;
  color: var(--lib-muted);
}

.lb-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--lib-line);
  background: rgba(8, 13, 12, 0.8);
  color: var(--lib-cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--lib-teal);
  color: var(--lib-teal-soft);
}

.lb-close {
  top: 18px;
  right: 18px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Un seul achat pour deux ; où jouer ---------- */

.offer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}

.lib-card .tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #06201c;
  background: linear-gradient(120deg, var(--lib-teal-soft), var(--lib-teal));
}

.lib-card.offer-full {
  border-color: rgba(201, 164, 90, 0.5);
  box-shadow: inset 0 0 40px rgba(201, 164, 90, 0.06);
}

.lib-card.offer-full .tag {
  color: #1c1506;
  background: linear-gradient(120deg, var(--lib-brass-soft), var(--lib-brass));
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.platform p {
  color: var(--lib-muted);
  margin-bottom: 14px;
}

.platform .btn {
  margin-top: auto;
}

.platform .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.platform .btns .btn {
  margin-top: 0;
}

.platform.live {
  border-color: rgba(147, 243, 233, 0.45);
}

.lib-foot {
  width: min(1120px, 94vw);
  margin: 34px auto 26px;
  text-align: center;
  font-size: 0.92rem;
}

.lib-foot a {
  color: var(--lib-muted);
}

.lib-foot a:hover {
  color: var(--lib-teal-soft);
}

/* ---------- Apparition douce (seulement si le script tourne) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lib-emblem {
    animation: none;
  }

  .shots img,
  .btn {
    transition: none;
  }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 960px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .steps,
  .offer,
  .platforms {
    grid-template-columns: 1fr;
  }

  .lib-hero {
    min-height: 0;
    padding: 40px 18px 32px;
  }

  .lib-emblem {
    width: 132px;
    height: 132px;
  }

  .lightbox figure {
    padding: 8vh 14px 14px;
  }

  .lb-prev {
    top: auto;
    bottom: 14px;
    left: 14px;
    transform: none;
  }

  .lb-next {
    top: auto;
    bottom: 14px;
    right: 14px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .shots span {
    font-size: 0.72rem;
    padding: 20px 8px 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn {
    width: 100%;
  }

  .lib-actions {
    width: 100%;
  }

  .video-play {
    width: 72px;
    height: 72px;
  }
}
