/* VIGIE : la page de présentation, posée sur /home.css (l'en-tête et le pied de page de FunArena).
   Palette tirée du logo (cadenas à lentille rouge) : bleu-vert des molettes, crème du titre, rouge de l'œil de la caméra, laiton du cadenas.
   Même squelette que la page de Liberate (liberate.css), mêmes noms de classes avec le préfixe « v- ». */

@font-face {
  font-family: "Saira Stencil One";
  src: url("/vigie/fonts/saira-stencil-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --v-bg: #070605;
  --v-panel: rgba(14, 13, 11, 0.86);
  --v-line: rgba(43, 185, 163, 0.3);
  --v-line-soft: rgba(43, 185, 163, 0.16);
  --v-green: #2bb9a3;
  --v-cream: #efe9d8;
  --v-text: #d3d2c6;
  --v-muted: #9a9a8c;
  --v-red: #ff3b2e;
  --v-red-soft: #ff9a8f;
  --v-brass: #c9a45a;
  --v-brass-soft: #e6cb8c;
  --v-stencil: "Saira Stencil One", "Impact", "Arial Black", "Segoe UI", sans-serif;
  --v-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Menlo", "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
}

body.vigie {
  background:
    radial-gradient(900px 520px at 22% -4%, rgba(255, 59, 46, 0.12), transparent 62%),
    radial-gradient(1000px 640px at 94% 80%, rgba(43, 185, 163, 0.08), transparent 60%),
    linear-gradient(180deg, #050504, #0b0a08 42%, #070605);
  color: var(--v-text);
}

.vigie .bg-grid {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(43, 185, 163, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 185, 163, 0.07) 1px, transparent 1px);
}

.vigie .site-header,
.vigie .site-footer {
  border-color: var(--v-line);
  background: rgba(8, 8, 6, 0.82);
}

.vigie .brand {
  color: var(--v-cream);
}

.vigie .site-header nav a:hover,
.vigie .footer-links a:hover {
  color: var(--v-red-soft);
}

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

.vigie .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(--v-cream);
}

.skip:focus {
  left: 12px;
}

main {
  display: block;
}

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

.v-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1120px, 94vw);
  min-height: 620px;
  margin: 20px auto 0;
  padding: 54px clamp(22px, 5vw, 56px) 44px;
  border: 1px solid var(--v-line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

/* Le couloir et l'œil rouge à droite ; le tiers gauche de l'image est presque noir, là où est le texte. */
.v-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #050504 url("img/hero.jpg") 100% 50% / cover no-repeat;
  filter: saturate(1.05) brightness(1.12);
}

.v-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.9) 0%, rgba(5, 5, 4, 0.66) 38%, rgba(5, 5, 4, 0) 68%),
    linear-gradient(180deg, rgba(5, 5, 4, 0.25) 0%, rgba(5, 5, 4, 0) 26%, rgba(5, 5, 4, 0) 70%, rgba(5, 5, 4, 0.7) 100%);
}

.v-hero-text {
  max-width: 540px;
}

.v-emblem {
  display: block;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 0 22px rgba(255, 59, 46, 0.28));
  animation: v-alarm 5s ease-in-out infinite;
}

@keyframes v-alarm {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(255, 59, 46, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 36px rgba(255, 59, 46, 0.55));
  }
}

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

.v-hero h1 {
  margin: 8px 0 4px;
  font-family: var(--v-stencil);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 6.6rem);
  letter-spacing: 0.06em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--v-cream);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.8);
}

.v-sub {
  margin: 0;
  color: var(--v-green);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.7vw, 1rem);
}

.v-lead {
  margin: 24px 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--v-cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.v-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  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(--v-brass-soft), var(--v-brass));
  color: #1c1506;
  box-shadow: 0 10px 28px rgba(201, 164, 90, 0.26);
}

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

.btn-ghost {
  background: rgba(8, 8, 6, 0.62);
  border-color: rgba(255, 154, 143, 0.55);
  color: var(--v-cream);
}

.btn-ghost:hover {
  border-color: var(--v-red);
  color: var(--v-red-soft);
}

.btn-off {
  background: rgba(8, 8, 6, 0.6);
  border-color: var(--v-line);
  color: var(--v-cream);
  cursor: default;
}

.btn-off::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--v-red);
  box-shadow: 0 0 10px rgba(255, 59, 46, 0.8);
  animation: v-blink 2.4s ease-in-out infinite;
}

@keyframes v-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

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

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

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

.chip.live {
  border-color: rgba(255, 154, 143, 0.55);
}

.chip.live em {
  color: var(--v-red-soft);
}

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

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

.v-section h2 {
  margin: 0 0 18px;
  font-family: var(--v-stencil);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-cream);
}

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

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

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

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

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

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

.v-intro {
  margin: -4px 0 18px;
  max-width: 720px;
  line-height: 1.65;
  color: var(--v-text);
}

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

.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(--v-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(255, 59, 46, 0.5));
}

.video-play:hover {
  transform: scale(1.08);
  color: var(--v-red-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(--v-red);
}

/* ---------- Les répliques : l'interphone ---------- */

.console {
  overflow: hidden;
  border: 1px solid var(--v-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 14, 8, 0.92), rgba(8, 9, 7, 0.95));
  box-shadow: inset 0 0 60px rgba(43, 185, 163, 0.05), 0 24px 70px rgba(0, 0, 0, 0.45);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--v-line-soft);
  background: rgba(43, 185, 163, 0.06);
  color: var(--v-muted);
  font-family: var(--v-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(43, 185, 163, 0.35);
}

.console-bar i:first-child {
  background: var(--v-red);
  box-shadow: 0 0 8px rgba(255, 59, 46, 0.7);
}

.console-bar span {
  margin-left: 8px;
}

.console-lines {
  margin: 0;
  padding: 18px clamp(14px, 3vw, 28px) 22px;
  list-style: none;
  font-family: var(--v-mono);
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  line-height: 1.65;
}

.console-lines li {
  display: flex;
  gap: 0.9em;
  padding: 7px 0;
  color: var(--v-cream);
}

.console-lines li + li {
  border-top: 1px dashed var(--v-line-soft);
}

.console-lines .who {
  flex: none;
  color: var(--v-red);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 59, 46, 0.45);
}

.console-lines li:last-child .line::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--v-green);
  animation: v-cursor 1.1s steps(1) infinite;
}

@keyframes v-cursor {
  50% {
    opacity: 0;
  }
}

/* ---------- Les chiffres ---------- */

.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(--v-line);
  border-top: 3px solid var(--v-red);
  border-radius: 12px;
  background: rgba(12, 12, 10, 0.74);
}

.facts b {
  display: block;
  font-family: var(--v-stencil);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--v-brass-soft);
}

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

/* ---------- Les salles ---------- */

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

.rooms li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--v-line);
  border-radius: 10px;
  background: var(--v-panel);
  color: var(--v-cream);
  font-weight: 600;
  line-height: 1.3;
}

.rooms b {
  flex: none;
  min-width: 2ch;
  font-family: var(--v-stencil);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--v-green);
  opacity: 0.85;
}

.v-card-wide p {
  font-size: 1.04rem;
}

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

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

.v-card-wide .ticks {
  margin-top: 14px;
}

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

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--v-red);
  box-shadow: 0 0 10px rgba(255, 59, 46, 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(--v-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, 3, 2, 0.9));
  color: var(--v-cream);
  font-size: 0.84rem;
  line-height: 1.3;
}

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

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

.lightbox::backdrop {
  background: rgba(3, 3, 2, 0.94);
}

.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(--v-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(--v-muted);
}

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

.lb-btn:hover {
  border-color: var(--v-red);
  color: var(--v-red-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%);
}

/* ---------- La démo et le jeu complet ; où jouer ---------- */

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

.v-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: #0e1807;
  background: linear-gradient(120deg, #c4dc9c, var(--v-green));
}

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

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

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

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

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

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

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

.v-foot-ia {
  max-width: 820px;
  color: var(--v-muted);
  font-size: 0.84rem;
}

/* ---------- 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;
}

html.js .console-lines li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in .console-lines li {
  opacity: 1;
  transform: none;
}

html.js .reveal.in .console-lines li:nth-child(2) { transition-delay: 0.35s; }
html.js .reveal.in .console-lines li:nth-child(3) { transition-delay: 0.7s; }
html.js .reveal.in .console-lines li:nth-child(4) { transition-delay: 1.05s; }
html.js .reveal.in .console-lines li:nth-child(5) { transition-delay: 1.4s; }

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

  html.js .reveal,
  html.js .console-lines li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .v-emblem,
  .btn-off::before,
  .console-lines li:last-child .line::after {
    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;
  }

  .v-hero {
    min-height: 0;
    align-items: flex-end;
    padding: 250px 18px 30px;
  }

  .v-hero::before {
    background-position: 100% 0;
    background-size: auto 340px;
    background-repeat: no-repeat;
  }

  .v-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 4, 0) 0%, rgba(5, 5, 4, 0) 22%, rgba(5, 5, 4, 0.82) 46%, rgba(5, 5, 4, 0.95) 100%),
      linear-gradient(90deg, rgba(5, 5, 4, 0.55) 0%, rgba(5, 5, 4, 0) 40%);
  }

  .v-emblem {
    width: 110px;
    height: 110px;
  }

  .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%;
  }

  .v-actions {
    width: 100%;
  }

  .console-lines li {
    flex-direction: column;
    gap: 2px;
  }

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