/* ============================================================
   UN JOB EN OR — feed vertical façon TikTok, mobile first
   ============================================================ */

@import url("https://use.typekit.net/syt1zdk.css");

:root {
  --black: #0b0b0c;
  --black-2: #131315;
  --card: #17171a;
  --white: #ffffff;
  --grey: #b9b9bf;
  --gold: #d8b45c;
  --gold-deep: #a97b2f;
  --gold-grad: linear-gradient(100deg, #8a6420 0%, #d8b45c 25%, #f7e7ae 50%, #c9a24b 75%, #8a6420 100%);
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --vh: 100vh;
}

@supports (height: 100svh) {
  :root { --vh: 100svh; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ===== texte or ===== */
.gold, .gold-text, .logo em, .footer-mini em {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
  animation: gold-shimmer 6s linear infinite;
}

@keyframes gold-shimmer {
  to { background-position: 200% center; }
}

/* ===== titres ===== */
h1, h2 {
  font-family: "force", sans-serif !important;
  font-weight: 100;

}

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(rgba(11, 11, 12, 0.92), rgba(11, 11, 12, 0));
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.logo {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  font-family: "force", sans-serif !important;
  font-weight: 100;
}

.btn-gold {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #241a05;
  background: linear-gradient(100deg, #a97b2f, #f1dc9a 45%, #caa54b);
  border-radius: 999px;
  padding: 14px 26px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(216, 180, 92, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold:active { transform: scale(0.96); }
.btn-small { font-size: 12px; padding: 10px 18px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:active { transform: scale(0.88) rotate(-20deg); }

/* l'icône affichée est celle du thème qu'on obtiendra en cliquant */
html[data-theme="light"] .theme-ico-sun { display: none; }
html:not([data-theme="light"]) .theme-ico-moon { display: none; }

/* ===== bascule de thème adoucie ===== */
/* fondu croisé natif (navigateurs avec View Transitions) */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

/* repli : transitions de couleurs activées le temps de la bascule */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* ============================================================
   RAIL DE PROGRESSION (points à droite)
   ============================================================ */
.rail {
  position: fixed;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 0.3s ease, background 0.3s ease;
  padding: 0;
}

.rail-dot.active {
  height: 20px;
  background: var(--gold);
}

/* ============================================================
   FEED + SLIDES
   ============================================================ */
.feed {
  height: var(--vh);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.feed::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  height: var(--vh);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.slide:nth-of-type(even):not(.slide-video) { background: var(--black-2); }

.slide-content {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 84px 22px 40px;
}

.slide-content-wide { max-width: 720px; }

/* ===== typographie ===== */
.kicker {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 12px;
}

.title-xl {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.body-text {
  color: var(--grey);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 20px;
}

.body-text strong { color: var(--white); }

.mini-note {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
}

/* ============================================================
   ANIMATIONS D'APPARITION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.slide.in-view .reveal { opacity: 1; transform: none; }

.slide.in-view .delay-1 { transition-delay: 0.12s; }
.slide.in-view .delay-2 { transition-delay: 0.24s; }
.slide.in-view .delay-3 { transition-delay: 0.36s; }
.slide.in-view .delay-4 { transition-delay: 0.48s; }
.slide.in-view .delay-5 { transition-delay: 0.6s; }

/* les titres (.title-xl.reveal-word, .hero-title) sont animés
   mot à mot par GSAP SplitText dans app.js ; dans les titres splittés,
   le dégradé .gold est porté par les mots, le parent devient .gold-split */
.gold-split { font-style: normal; }

/* ============================================================
   1 · HERO
   ============================================================ */
.slide-hero {
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(216, 180, 92, 0.16), transparent 65%),
    var(--black);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 17vw, 110px);
  line-height: 0.98;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.hero-title-page { font-size: clamp(38px, 11.5vw, 84px); }

.hero-over {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-tagline {
  margin-top: 22px;
  font-weight: 800;
  font-size: clamp(15px, 4.4vw, 20px);
  letter-spacing: 0.08em;
  padding-inline: 24px;
}

.hero-sub {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  padding-inline: 16px;
}

.hero-sub strong { color: var(--gold); }

.swipe-cue {
  position: absolute;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.swipe-arrow {
  font-size: 18px;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.5; }
}

/* ============================================================
   2 · PITCH
   ============================================================ */
.punch-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.punch {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid rgba(216, 180, 92, 0.18);
  border-radius: 16px;
  padding: 15px 16px;
  font-weight: 700;
  font-size: 15px;
}

.punch-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   COMPTEURS (Oméo en chiffres, chiffres commercial expert)
   ============================================================ */
.stat-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }

.stat {
  background: var(--card);
  border: 1px solid rgba(216, 180, 92, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.stat-label { font-size: 13px; font-weight: 600; color: var(--grey); }
.stat-label strong { -webkit-text-fill-color: initial; }

/* ============================================================
   CARTES JOBS (accueil)
   ============================================================ */
.job-list { display: flex; flex-direction: column; gap: 12px; }

.job-card {
  display: block;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.job-card:active { transform: scale(0.98); }

.job-card-elite {
  border-color: rgba(216, 180, 92, 0.55);
  background:
    radial-gradient(ellipse 120% 100% at 100% 0%, rgba(216, 180, 92, 0.14), transparent 60%),
    var(--card);
}

.job-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.job-card h3 { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; }

.job-pay {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}

.job-card p { font-size: 13px; font-weight: 500; color: var(--grey); line-height: 1.45; margin-bottom: 10px; }

.job-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.job-chips span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(216, 180, 92, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.job-cta { font-size: 13px; font-weight: 800; color: var(--gold); }
.job-cta a { color: var(--gold); text-decoration: underline; }

/* ============================================================
   QUIZ (accueil)
   ============================================================ */
.quiz { margin-top: 6px; }

.quiz-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
}

.quiz-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--gold-grad);
  background-size: 200% auto;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quiz-q { font-weight: 800; font-size: 17px; margin-bottom: 14px; }

.quiz-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(216, 180, 92, 0.45);
  border-radius: 999px;
  padding: 3px 9px;
  margin-right: 10px;
  vertical-align: middle;
}

.quiz-emoji { font-size: 20px; margin-right: 12px; }

.quiz-a {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 15px 16px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, transform 0.12s ease;
}

.quiz-a:active { transform: scale(0.98); border-color: var(--gold); }

.quiz-step { animation: result-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }

.quiz-result { text-align: center; animation: result-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

.quiz-persona { font-size: 52px; line-height: 1; margin-bottom: 10px; }

.quiz-verdict {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
}

.quiz-verdict strong {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.quiz-match { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.quiz-match strong { color: var(--gold); }
.quiz-match [data-quiz-match] { font-weight: 800; color: var(--gold); }

.quiz-desc { font-size: 14px; font-weight: 600; color: var(--grey); margin-bottom: 18px; }

.quiz-restart {
  display: block;
  margin: 14px auto 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  text-decoration: underline;
}

/* ============================================================
   STARTER PACK (commercial expert) — cartes de loot à retourner
   ============================================================ */
.loot-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.loot-carousel::-webkit-scrollbar { display: none; }

.loot-card {
  flex: 0 0 min(58vw, 220px);
  aspect-ratio: 3 / 4;
  scroll-snap-align: center;
  perspective: 900px;
  padding: 0;
  text-align: left;
}

.loot-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.3, 0.9, 0.35, 1);
}

.loot-card.flipped .loot-inner { transform: rotateY(180deg); }

.loot-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
}

/* dos de carte : doré, mystère */
.loot-back {
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(216, 180, 92, 0.25), transparent 65%),
    var(--card);
  border: 1px solid rgba(216, 180, 92, 0.55);
}

.loot-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
}

.loot-q {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.loot-tap {
  position: absolute;
  bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  animation: bounce 1.8s ease-in-out infinite;
}

/* face révélée */
.loot-front {
  transform: rotateY(180deg);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  justify-content: flex-start;
  padding-top: 20px;
}

.loot-front[data-rarity="epique"] { border-color: rgba(216, 180, 92, 0.5); }

.loot-front[data-rarity="legendaire"] {
  border: 2px solid var(--gold);
  background:
    radial-gradient(ellipse 130% 100% at 50% 0%, rgba(216, 180, 92, 0.28), transparent 70%),
    var(--card);
  box-shadow: 0 0 30px rgba(216, 180, 92, 0.3);
}

.loot-rarity {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--grey);
}

.loot-front[data-rarity="epique"] .loot-rarity { border-color: rgba(216, 180, 92, 0.5); color: var(--gold); }

.loot-front[data-rarity="legendaire"] .loot-rarity {
  border: none;
  background: linear-gradient(100deg, #a97b2f, #f1dc9a 45%, #caa54b);
  color: #241a05;
}

.loot-emoji { font-size: 42px; line-height: 1.1; margin-top: 6px; }

/* visuel des cartes : image (ou vidéo) du starter pack d'origine */
.loot-img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 2px;
  margin-bottom: 4px;
  display: block;
}

.loot-name {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.25;
  color: var(--white);
}

.loot-desc { font-size: 11.5px; font-weight: 500; color: var(--grey); line-height: 1.45; }

/* ============================================================
   CTAS FINALES (accueil) + liens secondaires
   ============================================================ */
.final-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.btn-ghost {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 13px 20px;
}

.form-help {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.6;
}

.form-help a { color: var(--gold); text-decoration: underline; }

.mini-note a { color: var(--gold); }

/* ============================================================
   3/6 · SLIDES VIDÉO PLEIN ÉCRAN
   ============================================================ */
.slide-video { background: #000; }

.feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), transparent 22%),
    linear-gradient(transparent 55%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.video-ui {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px calc(30px + env(safe-area-inset-bottom)) 18px;
}

.video-caption { max-width: 72%; }

.video-handle { font-weight: 800; font-size: 14px; color: var(--gold); margin-bottom: 6px; }

.video-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.video-desc { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }

.video-rail { display: flex; flex-direction: column; gap: 16px; align-items: center; }

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.12s ease;
}

.rail-btn:active { transform: scale(1.25); }

.rail-ico {
  font-size: 26px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.rail-count { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.9); }

.rail-btn.liked .rail-ico { animation: pop 0.35s ease; }

@keyframes pop {
  40% { transform: scale(1.5) rotate(-8deg); }
}

.video-progress {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(6px + env(safe-area-inset-bottom));
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: height 0.15s ease;
}

.video-progress-bar {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--gold-grad);
}

/* zone de toucher élargie pour scruber la timeline */
.video-scrub-zone {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: calc(32px + env(safe-area-inset-bottom));
  z-index: 6;
  touch-action: none;
  cursor: pointer;
}

/* pendant le drag : la barre s'épaissit et une poignée apparaît */
.slide-video.scrubbing .video-progress { height: 7px; }

.slide-video.scrubbing .video-progress-bar::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1dc9a, #caa54b);
  box-shadow: 0 0 10px rgba(216, 180, 92, 0.7);
}

/* zone d'appui maintenu (haut droit) pour la lecture ×2 */
.speed-zone {
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 50%;
  z-index: 5;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.speed-badge {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  z-index: 7;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.slide-video.speeding .speed-badge {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* chenillard des flèches du badge 2× */
.speed-badge .chev {
  display: inline-block;
  opacity: 0.35;
}

.slide-video.speeding .speed-badge .chev {
  animation: chev-chase 0.6s linear infinite;
}

.slide-video.speeding .speed-badge .chev:last-child {
  animation-delay: 0.3s;
}

@keyframes chev-chase {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(1.5px); }
}


.tap-hint {
  position: absolute;
  top: calc(70px + env(safe-area-inset-top));
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.slide-video.in-view .tap-hint { opacity: 1; }
.slide-video.sound-on .tap-hint { opacity: 0; }

/* ============================================================
   4 · SIMULATEUR SALAIRE
   ============================================================ */
.salary-box {
  background: var(--card);
  border: 1px solid rgba(216, 180, 92, 0.25);
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
}

.salary-amount {
  font-family: var(--font-display);
  font-size: clamp(44px, 13vw, 64px);
  line-height: 1;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}

.salary-per { font-size: 12px; font-weight: 600; color: var(--grey); margin: 8px 0 24px; }

.slider-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.slider-label strong { color: var(--gold); }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 20%), rgba(255, 255, 255, 0.15) var(--fill, 20%));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1dc9a, #caa54b);
  border: 3px solid #0b0b0c;
  box-shadow: 0 2px 12px rgba(216, 180, 92, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1dc9a, #caa54b);
  border: 3px solid #0b0b0c;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 16px;
}

/* ============================================================
   5 · TAF D'AVENIR — liste typographique éditoriale
   ============================================================ */
.future-list { list-style: none; }

.future-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.future-item + .future-item {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, rgba(216, 180, 92, 0.55), rgba(216, 180, 92, 0.05) 75%) 1;
}

/* numéro géant en contour or, vide à l'intérieur */
.future-num {
  font-family: var(--font-display);
  font-size: clamp(46px, 13vw, 60px);
  line-height: 1;
  flex-shrink: 0;
  min-width: 1.6em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(216, 180, 92, 0.55);
}

.future-body h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 5vw, 21px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.future-body p {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  line-height: 1.5;
}

/* ============================================================
   7 · ÉVOLUTION
   ============================================================ */
.level-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.level { display: flex; align-items: center; gap: 14px; }

.level-badge {
  font-family: var(--font-display);
  font-size: 12px;
  color: #241a05;
  background: linear-gradient(100deg, #a97b2f, #f1dc9a 45%, #caa54b);
  border-radius: 10px;
  padding: 8px 10px;
  flex-shrink: 0;
}

.level h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.level p { font-size: 13px; font-weight: 500; color: var(--grey); }

.xp-bar {
  margin-top: 20px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--gold-grad);
  background-size: 200% auto;
  transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s;
}

.slide.in-view .xp-fill { width: 100%; }

.quote {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--grey);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  line-height: 1.5;
}

/* ============================================================
   8 · CHECKLIST
   ============================================================ */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.check {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.25s ease;
}

.check.checked {
  border-color: rgba(216, 180, 92, 0.6);
  background: rgba(216, 180, 92, 0.1);
}

.check.checked .check-box {
  background: linear-gradient(135deg, #f1dc9a, #caa54b);
  border-color: transparent;
}

.check.checked .check-box::after { content: "✓"; color: #241a05; font-weight: 900; }

.check-result { margin-top: 20px; text-align: center; animation: result-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes result-in {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
}

.check-verdict { font-weight: 800; font-size: 17px; margin-bottom: 14px; }

/* ============================================================
   9 · TÉMOIGNAGES (carousel horizontal)
   ============================================================ */
.testi-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.testi-carousel::-webkit-scrollbar { display: none; }

.testi-card {
  position: relative;
  flex: 0 0 min(62vw, 250px);
  aspect-ratio: 9 / 16;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(216, 180, 92, 0.2);
}

.testi-card video { width: 100%; height: 100%; object-fit: cover; }

/* même pastille sombre floutée que le player TikTok */
.testi-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  text-indent: 4px; /* recentre optiquement le triangle */
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.65));
}

.testi-play::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.testi-play { z-index: 1; }

/* pendant la lecture, l'overlay s'efface ET laisse passer les clics
   → le tap sur la vidéo la met en pause */
.testi-play.playing {
  opacity: 0;
  pointer-events: none;
}

.testi-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* ============================================================
   10 · COMMENT POSTULER
   ============================================================ */
.howto-video {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(216, 180, 92, 0.2);
  margin-bottom: 18px;
}

.howto-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.howto-video figcaption {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
}

.steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.steps li { font-size: 14px; font-weight: 600; color: var(--grey); }
.steps strong { color: var(--gold); font-weight: 800; margin-right: 4px; }

/* ============================================================
   11 · FORMULAIRE
   ============================================================ */
.slide-form {
  height: auto;
  min-height: var(--vh);
  justify-content: flex-start;
}

.slide-form .slide-content { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }

.apply-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"] {
  font: 600 16px var(--font-body);
  color: var(--white);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.apply-form input:focus { border-color: var(--gold); }

.apply-form input.invalid { border-color: #e05c5c; }

.file-label { position: relative; }
.file-label small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; margin-top: 2px; }
.file-label input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.file-cta {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
  border: 2px dashed rgba(216, 180, 92, 0.5);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.file-cta.invalid {
  border-color: #e05c5c;
  color: #e05c5c;
}

.consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}

.consent input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; margin-top: 1px; }

.btn-submit { border: none; font-size: 15px; padding: 17px; }

.form-feedback { min-height: 20px; text-align: center; font-size: 14px; font-weight: 700; }
.form-feedback.ok { color: var(--gold); }
.form-feedback.ko { color: #e05c5c; }

.footer-mini {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.footer-mini a { text-decoration: underline; }

/* ============================================================
   CONFETTIS
   ============================================================ */
.confetti {
  position: fixed;
  top: -12px;
  z-index: 100;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.6; }
}

/* ============================================================
   DESKTOP (le feed reste, le contenu respire)
   ============================================================ */
@media (min-width: 900px) {
  .topbar { padding: 18px 40px; }
  .logo { font-size: 16px; }
  .rail { right: 24px; }

  .slide-content { max-width: 640px; padding-top: 100px; }
  .title-xl { font-size: 52px; }
  .body-text { font-size: 17px; }

  /* vidéos verticales : format téléphone centré, halo doré */
  .slide-video .feed-video {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 92%;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    box-shadow: 0 0 80px rgba(216, 180, 92, 0.18);
  }

  .video-ui {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(52vh, 420px);
    padding-bottom: 7vh;
  }

  .video-progress, .video-scrub-zone { display: none; }

  .testi-card { flex-basis: 220px; }
}

/* ============================================================
   ACCESSIBILITÉ — mouvement réduit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gold, .gold-text, .salary-amount, .logo em { animation: none; }
  .swipe-arrow { animation: none; }
  .feed { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ============================================================
   THÈME CLAIR — activé via le bouton du header (data-theme
   sur <html>). Les variables font l'essentiel du travail, le
   reste corrige les couleurs codées en dur. Les slides vidéo
   plein écran restent volontairement sombres.
   ============================================================ */
html[data-theme="light"] {
  --black: #f6f4ee;
  --black-2: #edeae1;
  --card: #ffffff;
  --white: #17130c;
  --grey: #6b6659;
  --gold: #a97b2f;
  --gold-grad: linear-gradient(100deg, #7a5717 0%, #b8862f 25%, #d8b45c 50%, #9a7226 75%, #7a5717 100%);
}

/* header : le voile dégradé passe au clair */
html[data-theme="light"] .topbar {
  background: linear-gradient(rgba(246, 244, 238, 0.94), rgba(246, 244, 238, 0));
}

html[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.18);
}

/* rail de progression */
html[data-theme="light"] .rail-dot { background: rgba(0, 0, 0, 0.2); }
html[data-theme="light"] .rail-dot.active { background: var(--gold); }

/* bordures / fonds subtils : blanc translucide → noir translucide */
html[data-theme="light"] .job-card { border-color: rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .job-chips span { color: rgba(23, 19, 12, 0.75); }
html[data-theme="light"] .quiz-a { border-color: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .quiz-bar { background: rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .btn-ghost { border-color: rgba(0, 0, 0, 0.22); }
html[data-theme="light"] .check { border-color: rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .check-box { border-color: rgba(0, 0, 0, 0.3); }
html[data-theme="light"] .xp-bar { background: rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .loot-front { border-color: rgba(0, 0, 0, 0.14); }
html[data-theme="light"] .loot-rarity { border-color: rgba(0, 0, 0, 0.25); }
html[data-theme="light"] .apply-form input[type="text"],
html[data-theme="light"] .apply-form input[type="email"],
html[data-theme="light"] .apply-form input[type="tel"] {
  border-color: rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .form-help { color: rgba(23, 19, 12, 0.55); }
html[data-theme="light"] .footer-mini { color: rgba(23, 19, 12, 0.45); }

/* slider salaire */
html[data-theme="light"] input[type="range"] {
  background: linear-gradient(90deg, var(--gold) var(--fill, 20%), rgba(0, 0, 0, 0.12) var(--fill, 20%));
}
html[data-theme="light"] input[type="range"]::-webkit-slider-thumb { border-color: #f6f4ee; }
html[data-theme="light"] input[type="range"]::-moz-range-thumb { border-color: #f6f4ee; }

/* numéros en contour : un or plus soutenu pour rester lisible */
html[data-theme="light"] .future-num { -webkit-text-stroke-color: rgba(169, 123, 47, 0.75); }

/* slides vidéo plein écran : fond sombre → on garde les couleurs
   de texte du thème sombre pour rester lisible */
html[data-theme="light"] .video-handle { color: #d8b45c; }
html[data-theme="light"] .video-title { color: #ffffff; }

/* ============================================================
   VARIANTE "STORIES" — pages *2.html (body.variant-h)
   Le feed vertical scroll-snap et toute la DA sont conservés,
   mais les vidéos horizontales ont un player repensé façon
   stories : segments de progression en haut, tap gauche/droite
   pour naviguer, son en coin, réactions qui s'envolent.
   ============================================================ */

/* --- scène : la vidéo n'est plus plein écran, on la centre --- */
.variant-h .slide-video {
  justify-content: center;
  align-items: center;
  padding: 84px 16px calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 84% 46% at 50% 6%, rgba(216, 180, 92, 0.18), transparent 62%),
    radial-gradient(ellipse 98% 60% at 50% 120%, rgba(216, 180, 92, 0.12), transparent 60%),
    var(--black);
}

.variant-h .st-stage { width: 100%; max-width: 660px; }

@media (min-width: 900px) {
  .variant-h .st-stage { max-width: 780px; }
}

/* l'écran 16:9 qui contient tout (vidéo + UI en surimpression) */
.variant-h .st-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(216, 180, 92, 0.28);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(216, 180, 92, 0.1);
}

/* la vidéo remplit l'écran (on écrase la règle plein écran + la media query desktop) */
.variant-h .st-player .feed-video,
.variant-h .slide-video .feed-video {
  position: absolute;
  inset: 0;
  top: auto; left: auto;
  transform: none;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

/* voile dégradé pour la lisibilité (haut : segments, bas : légende) */
.variant-h .st-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), transparent 24%),
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.74));
}

/* --- segments de progression (façon stories) --- */
.variant-h .st-segments {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 11px 56px 0 12px; /* place à droite pour le bouton son */
  pointer-events: none;
}

.variant-h .st-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.variant-h .st-seg-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--gold-grad);
  background-size: 200% auto;
  transition: width 0.12s linear;
}

/* --- zones de navigation gauche / droite --- */
.variant-h .st-nav {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 2;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.variant-h .st-prev { left: 0; }
.variant-h .st-next { right: 0; }

/* chevrons qui apparaissent brièvement au tap */
.variant-h .st-nav::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.variant-h .st-prev::after { content: "‹"; left: 16px; }
.variant-h .st-next::after { content: "›"; right: 16px; }
.variant-h .st-nav:active::after { opacity: 0.9; }

/* --- son en coin --- */
.variant-h .st-mute {
  position: absolute;
  top: 9px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  background: rgba(11, 11, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.12s ease;
}
.variant-h .st-mute:active { transform: scale(0.88); }

/* --- légende en bas à gauche --- */
.variant-h .st-caption {
  position: absolute;
  left: 14px; bottom: 13px;
  z-index: 3;
  max-width: 62%;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.variant-h .st-handle { font-weight: 800; font-size: 13px; color: var(--gold); margin-bottom: 3px; }
.variant-h .st-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 4.3vw, 20px);
  line-height: 1.12;
  text-transform: uppercase;
  color: #fff;
}

/* --- réactions en bas à droite --- */
.variant-h .st-reacts {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.variant-h .st-react {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 11px;
  border-radius: 15px;
  background: rgba(11, 11, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.12s ease;
}
.variant-h .st-react:active { transform: scale(0.9); }
.variant-h .st-react.popped .st-react-ico { animation: st-react-pop 0.4s ease; }
.variant-h .st-react-ico { font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.variant-h .st-react-n { font-size: 10px; font-weight: 800; color: #fff; }

@keyframes st-react-pop {
  40% { transform: scale(1.5) rotate(-8deg); }
}

/* --- couche des particules qui s'envolent --- */
.variant-h .st-particles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.variant-h .st-particle {
  position: absolute;
  font-size: 24px;
  will-change: transform, opacity;
  animation: st-fly 1.15s ease-out forwards;
}

@keyframes st-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), -165px) scale(1.3); }
}

/* thème clair : les pastilles restent lisibles sur la vidéo sombre */
html[data-theme="light"] .variant-h .st-mute,
html[data-theme="light"] .variant-h .st-react {
  background: rgba(11, 11, 12, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
html[data-theme="light"] .variant-h .st-react-n { color: #fff; }

/* Les témoignages restent verticaux (9:16) comme sur les pages de base :
   pas d'override de format ici, on hérite de .testi-card. */

/* accessibilité : mouvement réduit → pas de remplissage animé ni d'envol */
@media (prefers-reduced-motion: reduce) {
  .variant-h .st-seg-fill { transition: none; }
  .variant-h .st-particle { animation-duration: 1ms; }
}

/* ============================================================
   BANC D'ESSAI — plusieurs concepts de player (index2.html)
   Chaque section .slide-video porte une classe de concept.
   ============================================================ */

/* étiquette de concept (pastille dorée en haut) */
.variant-h .concept-tag {
  position: absolute;
  top: calc(62px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #241a05;
  background: linear-gradient(100deg, #a97b2f, #f1dc9a 45%, #caa54b);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* couche générique de particules (réactions qui s'envolent) */
.variant-h .fx-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.variant-h .fx-particle {
  position: absolute;
  font-size: 24px;
  will-change: transform, opacity;
  animation: st-fly 1.15s ease-out forwards;
}

/* ---------- CONCEPT 2 · CONSOLE ARCADE ---------- */
.variant-h .cx-cab {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1a1a1e, #101012);
  border: 1px solid rgba(216, 180, 92, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.variant-h .cx-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 2px rgba(216, 180, 92, 0.25), inset 0 0 44px rgba(0, 0, 0, 0.75);
}
.variant-h .cx-screen .feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.variant-h .cx-scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.variant-h .cx-hud { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.variant-h .cx-xp { display: flex; align-items: center; gap: 10px; }
.variant-h .cx-xp-label { font-family: var(--font-display); font-size: 12px; color: var(--gold); }
.variant-h .cx-xp-track {
  flex: 1; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(0, 0, 0, 0.4); overflow: hidden;
}
.variant-h .cx-xp-fill {
  display: block; height: 100%; width: 0;
  background: var(--gold-grad); background-size: 200% auto; box-shadow: 0 0 12px rgba(216, 180, 92, 0.5);
}
.variant-h .cx-score { font-family: var(--font-display); font-size: 14px; color: #fff; min-width: 62px; text-align: right; }
.variant-h .cx-pad { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.variant-h .cx-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 35% 30%, #2c2c33, #141416);
  border: 1px solid rgba(216, 180, 92, 0.4);
  box-shadow: 0 6px 0 #000, 0 8px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.variant-h .cx-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000, 0 4px 8px rgba(0, 0, 0, 0.5); }
.variant-h .cx-btn b {
  position: absolute; bottom: -16px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-size: 10px; color: var(--gold);
}
.variant-h .cx-btn.popped { animation: st-react-pop 0.4s ease; }

/* ---------- CONCEPT 3 · ÉDITEUR VIDÉO ---------- */
.variant-h .ed-app {
  width: 100%; max-width: 680px; border-radius: 16px; overflow: hidden;
  background: #141417; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.variant-h .ed-preview { position: relative; aspect-ratio: 16 / 9; background: #000; }
.variant-h .ed-preview .feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.variant-h .ed-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: #1b1b1f; border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.variant-h .ed-tool {
  font-size: 13px; font-weight: 700; color: #d7d7db; padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
}
.variant-h .ed-tool.ed-export { color: #241a05; background: linear-gradient(100deg, #a97b2f, #f1dc9a 45%, #caa54b); border: none; }
.variant-h .ed-time { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; color: var(--gold); }
.variant-h .ed-spacer { flex: 1; }
.variant-h .ed-timeline { position: relative; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #101012; }
.variant-h .ed-track { position: relative; height: 42px; border-radius: 8px; overflow: hidden; }
.variant-h .ed-timeline[data-scrub] { cursor: pointer; }
.variant-h .ed-clip {
  position: absolute; inset: 0; display: flex; align-items: center; padding-left: 10px;
  font-size: 11px; font-weight: 800; color: #241a05;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #e6c877, #b8862f);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.variant-h .ed-track-audio { background: #17171a; border: 1px solid rgba(255, 255, 255, 0.06); }
.variant-h .ed-wave { position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(216, 180, 92, 0.6) 0 2px, transparent 2px 5px); }
.variant-h .ed-playhead {
  position: absolute; top: 8px; bottom: 8px; left: 12px; width: 2px; z-index: 3;
  background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}
.variant-h .ed-playhead::before {
  content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 6px; border-radius: 2px; background: #fff;
}

/* ---------- CONCEPT 4 · CINÉ PLEIN-CADRE ---------- */
.variant-h .cine-player { padding-left: 0; padding-right: 0; }
.variant-h .cine-wrap { position: relative; width: 100%; height: min(66vh, 470px); background: #000; overflow: hidden; }
.variant-h .cine-wrap .feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.variant-h .cine-bars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.9), transparent 12%), linear-gradient(transparent 72%, rgba(0, 0, 0, 0.92));
}
.variant-h .cine-title {
  position: absolute; left: 18px; bottom: 66px; z-index: 2; max-width: 72%;
  font-family: var(--font-display); font-size: clamp(18px, 5.5vw, 30px); line-height: 1.05;
  text-transform: uppercase; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.variant-h .cine-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
}
.variant-h .cine-play { font-size: 18px; color: #fff; }
.variant-h .cine-seek { position: relative; flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); cursor: pointer; }
.variant-h .cine-seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--gold-grad); background-size: 200% auto; }
.variant-h .cine-seek-thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(216, 180, 92, 0.8); }
.variant-h .cine-time { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.variant-h .cine-ic { font-size: 18px; color: #fff; transition: transform 0.12s ease; }
.variant-h .cine-ic:active { transform: scale(0.85); }
.variant-h .cine-ic.popped { animation: st-react-pop 0.4s ease; }

/* ---------- CONCEPT 5 · BANDE + MARQUEE ---------- */
.variant-h .mq-player { padding-left: 0; padding-right: 0; }
.variant-h .mq-wrap { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.variant-h .mq-strip { overflow: hidden; }
.variant-h .mq-track { display: inline-flex; white-space: nowrap; animation: mq-left 20s linear infinite; }
.variant-h .mq-bottom .mq-track { animation-direction: reverse; }
.variant-h .mq-track span {
  display: inline-block; padding-right: 18px;
  font-family: var(--font-display); font-size: clamp(22px, 7vw, 40px); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(216, 180, 92, 0.7);
}
@keyframes mq-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.variant-h .mq-band {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  border-top: 2px solid rgba(216, 180, 92, 0.5); border-bottom: 2px solid rgba(216, 180, 92, 0.5);
}
.variant-h .mq-band .feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.variant-h .mq-sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #fff;
  background: rgba(11, 11, 12, 0.5); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .variant-h .mq-track { animation: none; }
  .variant-h .fx-particle { animation-duration: 1ms; }
  .variant-h .cx-xp-fill { transition: none; }
}

/* ============================================================
   CONCEPT 06 · PLEIN ÉCRAN À LA ROTATION + robustesse paysage
   ============================================================ */

/* --- état portrait : aperçu + invite à tourner --- */
.variant-h .rot-stage {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.variant-h .rot-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(216, 180, 92, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
}
.variant-h .rot-screen .feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.variant-h .rot-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: var(--grey);
}
.variant-h .rot-phone {
  font-size: 34px;
  display: inline-block;
  transform-origin: 50% 50%;
  animation: rot-tilt 2.4s ease-in-out infinite;
}
@keyframes rot-tilt {
  0%, 55%, 100% { transform: rotate(0deg); }
  72%, 92% { transform: rotate(-90deg); }
}
.variant-h .rot-cue p { font-size: 14px; font-weight: 600; max-width: 330px; line-height: 1.4; }
.variant-h .rot-cue strong { color: var(--gold); }
.variant-h .rot-open {
  margin-top: 2px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #241a05;
  background: linear-gradient(100deg, #a97b2f, #f1dc9a 45%, #caa54b);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(216, 180, 92, 0.35);
}

/* --- la visionneuse plein écran (overlay fixe) --- */
.rot-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rot-viewer[hidden] { display: none; }
/* la visionneuse devenue élément plein écran natif : elle remplit tout l'écran physique */
.rot-viewer:fullscreen, .rot-viewer:-webkit-full-screen {
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.rot-vid { width: 100%; height: 100%; object-fit: contain; background: #000; }
.rot-viewer:fullscreen .rot-vid, .rot-viewer:-webkit-full-screen .rot-vid { width: 100%; height: 100%; }
.rot-badge {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.rot-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rot-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px max(18px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.rot-c-play, .rot-c-sound { font-size: 18px; color: #fff; }
.rot-c-seek { position: relative; flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); cursor: pointer; }
.rot-c-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--gold-grad); background-size: 200% auto; }
.rot-c-thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(216, 180, 92, 0.8); }
.rot-c-time { font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }

/* quand la visionneuse est ouverte, on gèle le feed derrière */
body.rot-open .feed { overflow: hidden; }

/* ------------------------------------------------------------
   FILET DE SÉCURITÉ PAYSAGE (téléphone tourné)
   Le feed vertical 100vh casserait en paysage court : on relâche
   la hauteur fixe, on autorise le défilement naturel et on coupe
   le scroll-snap pour que RIEN ne soit tronqué.
   ------------------------------------------------------------ */
@media (orientation: landscape) and (max-height: 560px) {
  .variant-h .feed { scroll-snap-type: none; }
  .variant-h .slide {
    height: auto;
    min-height: var(--vh);
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding-top: 74px;
    padding-bottom: 34px;
  }
  .variant-h .slide-content { padding-top: 8px; padding-bottom: 8px; }
  /* l'invite du concept 06 devient inutile en paysage : la visionneuse prend le relais */
  .variant-h .rot-player .rot-cue { display: none; }
  .variant-h .concept-tag { top: 12px; }
}
