/* NSFWTF.red — le mur */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070708;
  --surface: #111114;
  --red: #ff2e43;
  --text: #f5f3ef;
  --grey: #8a8a93;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gap: clamp(10px, 1.4vw, 22px);
  --header-h: 72px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.dot {
  color: var(--red);
}

/* ───────── Header ───────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 clamp(18px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.92), rgba(7, 7, 8, 0.55) 55%, rgba(7, 7, 8, 0));
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
}
.site-header a,
.site-header .scroll-hint {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.wordmark img {
  display: block;
  height: 22px;
  width: auto;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.admin-link {
  opacity: 0.55;
  transition: opacity 180ms, color 180ms;
}
.admin-link:hover,
.admin-link:focus-visible {
  opacity: 1;
  color: var(--red);
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  transition: opacity 400ms;
}
.scroll-hint svg {
  animation: nudge 1.8s ease-in-out infinite;
}
.scroll-hint.is-gone {
  opacity: 0;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.45;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

/* ───────── Le mur ───────── */

.wall {
  position: relative;
  height: 320vh;
}
.wall.is-empty {
  height: 100vh;
  height: 100dvh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 18px; /* compense un peu le header fixe */
}

.row {
  --rh: 28.5vh;
  position: relative;
  flex: none;
  width: 100%;
  height: var(--rh);
  transform: translateX(-8vw) rotate(-1.2deg);
  transform-origin: 50% 50%;
}
.row--1 {
  --rh: 28.5vh;
  margin-top: 6vh;
  transform: translateX(-8vw) rotate(-1.2deg);
}
.row--2 {
  --rh: 35vh;
  margin-top: -2vh;
  transform: translateX(-18vw) rotate(0.8deg);
}
.row--3 {
  --rh: 24vh;
  margin-top: 5vh;
  transform: translateX(-3vw) rotate(-0.7deg);
}
@supports (height: 1svh) {
  .row--1 {
    --rh: 28.5svh;
  }
  .row--2 {
    --rh: 35svh;
  }
  .row--3 {
    --rh: 24svh;
  }
}

.row:hover {
  z-index: 2; /* la rangée survolée passe au-dessus des voisines (halo, zoom) */
}

.track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.wall.is-empty .row {
  visibility: hidden;
}

.state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  color: var(--grey);
  font-size: 15px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.state[hidden] {
  display: none;
}

/* ───────── Tuiles ───────── */

.tile {
  --pad: 0px;
  --r: 0.75;
  position: relative;
  flex: none;
  isolation: isolate;
  height: 100%;
  width: calc(var(--rh) * var(--r));
  margin: 0 var(--gap) 0 0;
  padding: var(--pad) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.tile:focus-visible {
  outline: none;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface);
  box-shadow: 0 26px 46px -22px rgba(0, 0, 0, 0.95), 0 8px 18px -8px rgba(0, 0, 0, 0.7);
  transition: transform 220ms var(--ease);
  transform: translateZ(0);
}
/* halo rouge : couche à part, seule son opacité est animée */
.tile::after {
  content: "";
  position: absolute;
  inset: var(--pad) 0;
  z-index: -1;
  border-radius: 16px;
  box-shadow: 0 20px 60px -20px rgba(255, 46, 67, 0.5);
  opacity: 0;
  transform: scale(1);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  pointer-events: none;
}

.card > img,
.card > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface);
  user-select: none;
  -webkit-user-drag: none;
}

.ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 13px;
  background: linear-gradient(to top, rgba(5, 5, 6, 0.86), rgba(5, 5, 6, 0.1) 52%, rgba(5, 5, 6, 0));
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}
.ov-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.6);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.badge svg {
  flex: none;
  opacity: 0.85;
}

@media (hover: hover) {
  .tile:hover {
    z-index: 3;
  }
  .tile:not(.is-skel):hover .card,
  .tile:focus-visible .card {
    transform: scale(1.035);
  }
  .tile:not(.is-skel):hover::after,
  .tile:focus-visible::after {
    opacity: 1;
    transform: scale(1.035);
  }
  .tile:not(.is-skel):hover .ov,
  .tile:focus-visible .ov {
    opacity: 1;
  }
}
.tile:focus-visible .card {
  border-color: var(--red);
}

@media (hover: none) {
  .ov {
    opacity: 1;
    background: linear-gradient(to top, rgba(5, 5, 6, 0.7), rgba(5, 5, 6, 0) 40%);
  }
  .ov-title {
    font-size: 12px;
  }
}

.tile.is-open .card,
.tile.is-open::after {
  visibility: hidden;
}

/* Squelette */
.tile.is-skel {
  cursor: default;
}
.tile.is-skel .card {
  background: linear-gradient(110deg, #131316 30%, #1b1b20 50%, #131316 70%);
  background-size: 200% 100%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0% {
    background-position: 100% 0;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: -100% 0;
    opacity: 0.7;
  }
}

/* ───────── Plein écran ───────── */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  overscroll-behavior: contain;
  touch-action: none;
}
.vback {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.vbox {
  position: fixed;
  transform-origin: 50% 50%;
  will-change: transform, clip-path;
}
.vmedia {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.vmedia > video,
.vmedia > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
/* Filigrane front : la règle générique .vmedia > img (plein cadre, fond noir) doit être annulée. */
.vmedia > img.wm {
  inset: auto;
  width: 26%;
  min-width: 90px;
  max-width: 220px;
  height: auto;
  object-fit: fill;
  background: none;
  opacity: 0.85;
}
.vmedia > img.full {
  opacity: 0;
  transition: opacity 240ms;
}
.vmedia > img.full.is-loaded {
  opacity: 1;
}

.wm {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 26%;
  min-width: 90px;
  max-width: 220px;
  height: auto;
  opacity: 0.85;
  transition: left 600ms var(--ease), top 600ms var(--ease);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.vmeta {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 100%;
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}
.vtitle {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vcount {
  flex: none;
  color: var(--grey);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.vbtn {
  position: fixed;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.7);
  cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 180ms var(--ease);
}
.vbtn:hover {
  background: var(--red);
  border-color: var(--red);
}
.vbtn--close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}
.vbtn--prev,
.vbtn--next {
  top: 50%;
  margin-top: -22px;
}
.vbtn--prev {
  left: max(16px, env(safe-area-inset-left));
}
.vbtn--next {
  right: max(16px, env(safe-area-inset-right));
}
@media (hover: none), (max-width: 760px) {
  .vbtn--prev,
  .vbtn--next {
    display: none;
  }
}

/* Partage et téléchargement : coin haut gauche (le bouton fermer est à droite). */
.vbtn--share {
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
}
.vbtn--download {
  top: max(16px, env(safe-area-inset-top));
  left: calc(max(16px, env(safe-area-inset-left)) + 52px);
}
.vbtn.is-busy {
  opacity: 0.5;
  cursor: progress;
}
.vtoast {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

/* ───────── Publicité : lecteur VAST plein écran (ads.js) ───────── */
.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
}
.ad-overlay > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ad-click {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ad-top,
.ad-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.ad-top > *,
.ad-bottom > * {
  pointer-events: auto;
}
.ad-top {
  top: 0;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.ad-bottom {
  bottom: 0;
  justify-content: flex-start;
  padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.ad-tag,
.ad-time {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.ad-skip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ad-skip:disabled {
  opacity: 0.6;
  cursor: default;
}
.ad-skip:not(:disabled):hover {
  border-color: var(--red);
}
.ad-sound {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.85);
  cursor: pointer;
}

/* ───────── Consentement publicité (visiteurs de l'UE, ads.js) ───────── */
.consent {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  width: min(560px, calc(100% - 32px));
  padding: 16px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(17, 17, 20, 0.96);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}
.consent-text {
  margin: 0 0 14px;
  color: #d6d4cf;
  font-size: 13px;
  line-height: 1.5;
}
.consent-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-actions {
  display: flex;
  gap: 10px;
}
/* Même style pour « Accepter » et « Refuser » : aucun choix mis en avant. */
.consent-btn {
  flex: 1;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn:hover {
  border-color: var(--red);
}

/* ───────── Footer ───────── */

.site-footer {
  padding: 72px 24px calc(48px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--grey);
}
.site-footer p {
  margin: 0;
}
.foot-brand img {
  display: block;
  height: 26px;
  width: auto;
  margin: 0 auto;
}
.foot-sep {
  color: var(--grey);
  margin: 0 4px;
}
.foot-tag {
  margin-top: 6px !important;
  font-size: 14px;
}
.foot-meta {
  margin-top: 22px !important;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.foot-meta a {
  opacity: 0.7;
  transition: color 180ms, opacity 180ms;
}
.foot-meta a:hover {
  color: var(--red);
  opacity: 1;
}

/* ───────── Mobile ───────── */

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --gap: 10px;
  }
  .wordmark img {
    height: 19px;
  }
  .wall {
    height: 240vh;
  }
  .stage {
    padding-top: 10px;
  }
  .row--1 {
    --rh: 26vh;
  }
  .row--2 {
    --rh: 32vh;
  }
  .row--3 {
    --rh: 22vh;
  }
  @supports (height: 1svh) {
    .row--1 {
      --rh: 26svh;
    }
    .row--2 {
      --rh: 32svh;
    }
    .row--3 {
      --rh: 22svh;
    }
  }
  .card {
    border-radius: 14px;
  }
  .tile::after {
    border-radius: 14px;
  }
  .scroll-hint {
    display: none;
  }
  .vmedia {
    border-radius: 18px;
  }
}

/* ───────── Mouvement réduit : pas de parallaxe, rangées défilables à la main ───────── */

@media (prefers-reduced-motion: reduce) {
  .wall {
    height: 100vh;
    height: 100dvh;
  }
  .row {
    transform: rotate(0deg) !important;
    overflow-x: auto;
    overflow-y: clip;
    scrollbar-width: none;
    padding: 0 clamp(18px, 3vw, 40px);
  }
  .row::-webkit-scrollbar {
    display: none;
  }
  .track {
    will-change: auto;
  }
  .scroll-hint svg,
  .tile.is-skel .card {
    animation: none;
  }
  .card,
  .tile::after,
  .ov {
    transition-duration: 1ms;
  }
}

/* ───────── Attribut hidden : toujours prioritaire sur display ───────── */

[hidden] {
  display: none !important;
}

/* ───────── Porte 18+ ───────── */

.age {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 7, 8, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.age-card {
  width: min(420px, 100%);
  text-align: center;
}
.age-logo {
  display: block;
  height: 34px;
  width: auto;
  margin: 0 auto 28px;
}
.age-title {
  margin: 0 0 14px;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.age-text {
  margin: 0 0 28px;
  color: var(--grey);
  font-size: 14px;
}
.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.age-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
}
.age-btn--yes {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.age-btn--yes:hover {
  background: #ff5566;
  border-color: #ff5566;
}
.age-btn--no {
  color: var(--grey);
  background: transparent;
}
.age-btn--no:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ───────── Pages légales ───────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) 22px 72px;
}
.legal h1 {
  margin: 0 0 24px;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.legal h2 {
  margin: 32px 0 8px;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.legal p {
  margin: 0 0 12px;
  color: #c9c7c2;
}
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover {
  color: var(--red);
}
.legal-back {
  margin-top: 36px !important;
}
