/*
 * Le site lucarne.eu : les couleurs et la police de l'app (`theme/tokens.ts`),
 * une lueur verte de stade la nuit, et des animations (`main.js`) qui ne
 * cachent jamais rien : sans script, la page est complète.
 */

@font-face {
  font-family: Outfit;
  src: url('/fonts/Outfit_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url('/fonts/Outfit_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url('/fonts/Outfit_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url('/fonts/Outfit_700Bold.ttf') format('truetype');
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --background: #0a0a0b;
  --band: #0f0f11;
  --surface: #16161a;
  --accent: #39ff14;
  --accent-rgb: 57, 255, 20;
  --accent-foreground: #0a0a0b;
  --text-primary: #ffffff;
  --text-secondary: #919191;
  --border: rgba(145, 145, 145, 0.24);
  --glow: 0 0 24px rgba(var(--accent-rgb), 0.55), 0 0 72px rgba(var(--accent-rgb), 0.25);
  color-scheme: dark;
}

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

html {
  background: var(--background);
  color: var(--text-primary);
  font-family:
    Outfit,
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

/* Le fond est sur html : celui de body masquerait le quadrillage. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Le contour de l'app, jamais celui du navigateur, et seulement au clavier. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding-inline: 24px;
  width: 100%;
}

.accent {
  color: var(--accent);
}

.glow-text {
  text-shadow: var(--glow);
}

h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

/* En-tête, collé en haut, sur un verre fumé */

.site-header {
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 10, 11, 0.62);
  border-bottom: 1px solid rgba(145, 145, 145, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.45));
  height: 36px;
  width: auto;
}

.top-nav {
  align-items: center;
  display: flex;
  gap: 28px;
}

.langs {
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 16px;
  letter-spacing: 0.06em;
  list-style: none;
}

.langs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    color 0.2s,
    text-shadow 0.2s;
}

.langs a:hover,
.langs a[aria-current='true'] {
  color: var(--accent);
  text-shadow: var(--glow);
}

.nav-cta {
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 20px;
  text-decoration: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.nav-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.3);
}

/* Haut de page */

.hero {
  overflow: hidden;
  position: relative;
}

.hero-bg {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-glow {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.32), transparent 62%);
  filter: blur(30px);
  height: 900px;
  left: 50%;
  position: absolute;
  top: -260px;
  transform: translateX(-10%);
  width: 900px;
  animation: breathe 7s ease-in-out infinite;
}

/*
 * Le quadrillage vert, en fond de tout le site, à la demande d'Alexis. Fixe :
 * la page glisse dessus, comme sur un écran de stade. Il s'efface sur les
 * bords pour ne jamais faire cage.
 */
body::before {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
  background-position: center top;
  background-size: 64px 64px;
  content: '';
  inset: 0;
  mask-image: radial-gradient(ellipse 110% 85% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.hero-layout {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  padding-block: 64px 120px;
  position: relative;
}

.eyebrow {
  align-items: center;
  background: rgba(22, 22, 26, 0.8);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.12);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding: 8px 16px;
}

.dot {
  animation: pulse 2s ease-in-out infinite;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent);
  height: 8px;
  width: 8px;
}

.headline {
  font-size: clamp(50px, 7.6vw, 104px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* Les masques du titre, posés par le script. */
.word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  vertical-align: top;
}

.headline.is-revealed .word {
  overflow: visible;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  margin-top: 30px;
  max-width: 520px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 44px;
}

.cta {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.6),
    0 12px 48px rgba(var(--accent-rgb), 0.45),
    0 0 90px rgba(var(--accent-rgb), 0.25);
  color: var(--accent-foreground);
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  min-height: 62px;
  overflow: hidden;
  padding: 0 32px;
  position: relative;
  text-decoration: none;
  transition: box-shadow 0.3s;
}

.cta:hover {
  box-shadow:
    0 0 0 1px var(--accent),
    0 16px 64px rgba(var(--accent-rgb), 0.6),
    0 0 120px rgba(var(--accent-rgb), 0.35);
}

/* Un reflet qui traverse le bouton, de temps en temps. */
.cta-shine {
  animation: shine 4.5s ease-in-out infinite;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  inset: 0;
  position: absolute;
  transform: translateX(-120%);
}

.cta svg {
  position: relative;
}

.discover {
  align-items: center;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s;
}

.discover:hover {
  color: var(--accent);
}

.discover svg {
  animation: nudge 1.8s ease-in-out infinite;
}

/* La scène du téléphone */

.hero-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 640px;
  perspective: 1400px;
  position: relative;
}

.hero-stage > .pitch {
  height: 92%;
  inset: 4%;
  position: absolute;
  width: 92%;
}

.pitch g {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.22;
  stroke-width: 2;
}

.stage-glow {
  animation: breathe 5s ease-in-out infinite;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), transparent 60%);
  filter: blur(40px);
  height: 520px;
  position: absolute;
  width: 520px;
}

.phone-3d {
  position: relative;
  transform: rotateY(-16deg) rotateX(8deg) rotateZ(2deg);
  transform-style: preserve-3d;
  z-index: 2;
}

.phone {
  background: linear-gradient(145deg, #2c2c33, #0c0c0f 55%, #1b1b20);
  border-radius: 54px;
  box-shadow:
    inset 0 0 0 2px #3b3b44,
    inset 0 0 0 7px #0b0b0d,
    0 50px 120px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(var(--accent-rgb), 0.28);
  height: 630px;
  position: relative;
  width: 306px;
}

.phone-side {
  background: linear-gradient(90deg, #26262c, #3a3a42);
  border-radius: 3px;
  position: absolute;
  right: -3px;
  width: 4px;
}

.phone-side-a {
  height: 70px;
  top: 150px;
}

.phone-side-b {
  height: 44px;
  top: 236px;
}

/*
 * L'écran a son propre calque, à plat : sur iPhone, Safari mélangeait les
 * plans du téléphone en 3D pendant le fondu, et l'écran passait au noir
 * entre deux captures. Le masque force le découpage des coins arrondis.
 */
.phone-screen {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: var(--background);
  border-radius: 44px;
  inset: 12px;
  isolation: isolate;
  overflow: hidden;
  position: absolute;
  transform: translateZ(0);
}

/*
 * Les captures portent l'écran entier, barre d'état et Dynamic Island
 * comprises : posées en haut, sur toute la largeur, elles ne sont ni rognées
 * ni décalées. Le bas, coupé dans la capture, se fond dans le noir, au-dessus
 * de la barre d'accueil.
 */
.phone-screen::after {
  background: linear-gradient(transparent 80%, var(--background) 94%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.phone-screen::before {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  bottom: 2%;
  content: '';
  height: 5px;
  left: 33%;
  position: absolute;
  width: 34%;
  z-index: 4;
}

.screen {
  height: auto;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity 0.9s ease;
  width: 100%;
  will-change: opacity;
}

.screen.is-active {
  opacity: 1;
  z-index: 2;
}

/* L'écran qui s'en va reste plein dessous, le temps que l'autre arrive. */
.screen.is-leaving {
  opacity: 1;
  transition: none;
  z-index: 1;
}

.phone-glare {
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) calc(var(--glare-x, 40%) - 10%),
    transparent var(--glare-x, 40%)
  );
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.phone-floor {
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.35), transparent 70%);
  bottom: 18px;
  filter: blur(14px);
  height: 60px;
  position: absolute;
  width: 280px;
}

.float {
  position: absolute;
  z-index: 3;
}

.float-crest {
  backdrop-filter: blur(14px);
  background: rgba(22, 22, 26, 0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 26px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(var(--accent-rgb), 0.18);
  padding: 16px;
}

.float-crest img {
  height: 64px;
  width: 64px;
}

.float-home {
  left: 2%;
  top: 16%;
}

.float-away {
  bottom: 20%;
  right: 0;
}

.float-rating {
  align-items: baseline;
  backdrop-filter: blur(14px);
  background: rgba(22, 22, 26, 0.72);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 22px;
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.3);
  display: flex;
  gap: 4px;
  padding: 14px 20px;
  right: 6%;
  top: 6%;
}

.float-rating-value {
  color: var(--accent);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  text-shadow: var(--glow);
}

.float-rating-max {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
}

.float-notif {
  bottom: 6%;
  left: 0;
}

.notif-row {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(22, 22, 26, 0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 12px;
  padding: 14px 18px;
}

/*
 * L'icône de l'app, comme dans une vraie notification d'iOS. À cette taille,
 * le logo complet devient illisible : c'est toujours l'icône qu'on met.
 */
.notif-icon {
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.3);
  flex: 0 0 auto;
  height: 40px;
  width: 40px;
}

.notif-text {
  display: flex;
  flex-direction: column;
}

.notif-title {
  font-size: 13px;
  font-weight: 700;
}

.notif-body {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Le bandeau des compétitions, qui défile sans fin */

/* Les bords s'effacent par un masque : un dégradé plein cacherait le quadrillage. */
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
  border-block: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding-block: 28px;
  position: relative;
}

.marquee-row {
  display: flex;
  gap: 14px;
  width: max-content;
}

.marquee-track {
  animation: marquee 38s linear infinite;
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  list-style: none;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 46s;
}

.marquee-track li {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  font-size: 17px;
  font-weight: 600;
  gap: 12px;
  padding: 8px 24px 8px 10px;
  white-space: nowrap;
}

.marquee-track img {
  flex: 0 0 auto;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.marquee-reverse .marquee-track li {
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
}

/* Chiffres */

.stats-band {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    rgba(15, 15, 17, 0.55);
  border-bottom: 1px solid var(--border);
}

.stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 64px;
}

.stat-value {
  font-size: clamp(42px, 5.2vw, 66px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 12px;
}

/* La note qui grimpe */

.meter-section {
  --heat: 1;
  align-items: center;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(var(--accent-rgb), calc(0.05 + var(--heat) * 0.2)),
    transparent 60%
  );
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding-block: 96px;
}

.meter-layout {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.meter-text p {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 480px;
}

.meter {
  background: rgba(22, 22, 26, 0.75);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 36px;
  box-shadow: 0 0 80px rgba(var(--accent-rgb), calc(var(--heat) * 0.25));
  padding: 40px;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}

/*
 * À partir de 8, la carte tremble, de plus en plus fort et de plus en plus
 * vite (`data-heat` de 1 à 5, posé par main.js). À 10, elle s'embrase.
 */
.meter[data-heat] {
  animation: tremble var(--speed) linear infinite;
}

.meter[data-heat='1'] {
  --amp: 0.6;
  --speed: 0.42s;
}

.meter[data-heat='2'] {
  --amp: 1.3;
  --speed: 0.36s;
}

.meter[data-heat='3'] {
  --amp: 2.2;
  --speed: 0.3s;
}

.meter[data-heat='4'] {
  --amp: 3.2;
  --speed: 0.25s;
}

.meter[data-heat='5'] {
  --amp: 4.5;
  --speed: 0.2s;
}

.meter.is-max {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow:
    0 0 60px rgba(var(--accent-rgb), 0.45),
    0 0 140px rgba(var(--accent-rgb), 0.25);
}

.meter.is-max [data-meter-value] {
  animation: roar 0.6s ease-in-out infinite;
  display: inline-block;
}

.meter[data-heat] .supporter.lit {
  animation-duration: 0.5s;
}

/* L'explosion de 10 : une onde et des éclats, partis du chiffre. */
.meter {
  position: relative;
}

.meter-burst,
.meter-shard {
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 25%;
}

.meter-burst {
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 40px var(--accent),
    inset 0 0 40px rgba(var(--accent-rgb), 0.6);
  height: 220px;
  margin: -110px 0 0 -110px;
  width: 220px;
}

.meter-shard {
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 14px var(--accent);
  margin: -6px 0 0 -4px;
  z-index: 3;
}

.meter-shard.is-round {
  border-radius: 50%;
}

.meter-shard.is-light {
  background: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.meter.is-max .supporter.lit {
  animation: frenzy 0.34s ease-in-out infinite alternate;
}

.meter.is-max .supporter.lit .arm:nth-child(1) {
  animation: wave-left 0.28s ease-in-out infinite alternate;
}

.meter.is-max .supporter.lit .arm:nth-child(2) {
  animation: wave-right 0.28s ease-in-out infinite alternate;
}

.meter-value {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.meter-value [data-meter-value] {
  color: var(--accent);
  font-size: clamp(88px, 11vw, 140px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  text-shadow: var(--glow);
}

.meter-max {
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: 600;
}

.meter-crowd {
  display: grid;
  gap: 6px 4px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 28px auto 0;
  max-width: 440px;
}

.supporter svg {
  display: block;
  height: auto;
  width: 100%;
}

.supporter circle,
.supporter path:not(.arm) {
  fill: rgba(145, 145, 145, 0.35);
  transition: fill 0.3s;
}

.supporter .arm {
  stroke: rgba(145, 145, 145, 0.35);
  stroke-linecap: round;
  stroke-width: 3.5;
  transform-box: view-box;
  transition:
    stroke 0.3s,
    transform 0.3s;
}

/* Au repos, les bras pendent le long du corps ; allumé, il les lève. */
.supporter .arm:nth-child(1) {
  transform: rotate(-130deg);
  transform-origin: 6px 21px;
}

.supporter .arm:nth-child(2) {
  transform: rotate(130deg);
  transform-origin: 22px 21px;
}

.supporter.lit circle,
.supporter.lit path:not(.arm) {
  fill: var(--accent);
}

.supporter.lit .arm {
  stroke: var(--accent);
  transform: none;
}

.supporter.lit {
  animation: jump 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6));
}

.supporter.lit:nth-child(3n) {
  animation-delay: 0.2s;
}

.supporter.lit:nth-child(3n + 1) {
  animation-delay: 0.45s;
}

.meter-gauge {
  background: var(--border);
  border-radius: 6px;
  height: 10px;
  margin-top: 32px;
  position: relative;
}

.meter-fill {
  background: var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.7);
  height: 100%;
  transform: scaleX(1);
  transform-origin: left center;
}

.meter-thumb {
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(var(--accent-rgb), 0.2),
    0 0 24px var(--accent);
  height: 30px;
  left: 100%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
}

.meter-anchors {
  color: var(--text-secondary);
  display: flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: space-between;
  margin-top: 18px;
}

.meter-anchors span {
  transition:
    color 0.3s,
    text-shadow 0.3s;
}

.meter-anchors .is-on {
  color: var(--accent);
  text-shadow: var(--glow);
}

/* Les trois écrans en éventail */

.screens-section {
  overflow: hidden;
  padding-block: 120px 80px;
}

.section-head {
  text-align: center;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.55;
  margin: 20px auto 0;
  max-width: 560px;
}

.fan {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  margin-top: 72px;
  min-height: 600px;
  position: relative;
}

.fan::before {
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.3), transparent 65%);
  bottom: 40px;
  content: '';
  filter: blur(40px);
  height: 360px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 760px;
}

.fan-item {
  position: relative;
}

.fan-left {
  margin-right: -40px;
  transform: rotate(-9deg) translateY(36px);
}

.fan-center {
  z-index: 2;
}

.fan-right {
  margin-left: -40px;
  transform: rotate(9deg) translateY(36px);
}

.phone-mini {
  border-radius: 46px;
  height: 540px;
  width: 262px;
}

.phone-mini .phone-screen {
  border-radius: 36px;
  inset: 10px;
}

/*
 * Fonctionnalités : un récit au défilement. Sur ordinateur, le téléphone
 * reste à droite et change d'écran à mesure qu'on descend dans les six
 * étapes ; une ligne verte se remplit. Sans script, tout reste lisible.
 */

.features {
  padding-block: 120px 80px;
}

.features h2 {
  max-width: 760px;
}

.story {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  margin-top: 24px;
}

.story-steps {
  list-style: none;
  position: relative;
}

/* La ligne de progression, et son remplissage vert posé par main.js. */
.story-steps::before,
.story-steps::after {
  border-radius: 2px;
  content: '';
  left: 27px;
  position: absolute;
  top: 12vh;
  width: 2px;
}

.story-steps::before {
  background: var(--border);
  bottom: 12vh;
}

.story-steps::after {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  height: calc(var(--progress, 0) * (100% - 24vh));
}

.story-step {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 62vh;
  transition: opacity 0.45s ease;
}

.story-index {
  align-items: center;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  position: relative;
  transition:
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s,
    color 0.35s;
  width: 56px;
  z-index: 1;
}

.story-step.is-active .story-index {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.6);
  color: var(--accent-foreground);
}

.story-copy svg {
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.5));
}

.story-copy h3 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-top: 18px;
}

.story-copy p {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 500px;
}

.story-shot {
  display: none;
}

.story-stage {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  perspective: 1400px;
  position: sticky;
  top: 0;
}

.story-glow {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4), transparent 62%);
  filter: blur(40px);
  height: 560px;
  position: absolute;
  width: 560px;
}

.story-phone {
  position: relative;
  transform: rotateY(-10deg) rotateX(4deg);
  transform-style: preserve-3d;
}

/* Les rappels arrivent à côté du téléphone, à l'étape des équipes. */
.story-notifs {
  bottom: 18%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: -60px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 340px;
  z-index: 3;
}

.story[data-active='5'] .story-notifs {
  opacity: 1;
  transform: none;
}

/* Le haut d'un écran, sur téléphone, sous chaque étape. */
.peek-phone {
  background: linear-gradient(145deg, #2c2c33, #0c0c0f 55%, #1b1b20);
  border-radius: 36px 36px 0 0;
  box-shadow:
    inset 0 0 0 2px #3b3b44,
    0 0 70px rgba(var(--accent-rgb), 0.2);
  margin: 0 auto;
  overflow: hidden;
  padding: 9px 9px 0;
  width: 240px;
}

.peek-phone img {
  border-radius: 28px 28px 0 0;
  display: block;
  height: auto;
  transform: translateY(var(--shift, 0));
  width: 100%;
}

@media (min-width: 901px) {
  .motion .story-step {
    opacity: 0.3;
  }

  .motion .story-step.is-active {
    opacity: 1;
  }
}

/* Questions fréquentes */

.faq-section {
  padding-bottom: 120px;
}

.faq-section > h2 {
  margin-bottom: 40px;
}

.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  list-style: none;
  padding: 26px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  transition: color 0.2s;
}

.faq-item summary:hover h3,
.faq-item[open] h3 {
  color: var(--accent);
}

/* Un plus qui tourne en croix à l'ouverture. */
.faq-icon {
  flex: 0 0 auto;
  height: 22px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 22px;
}

.faq-icon::before,
.faq-icon::after {
  background: var(--accent);
  border-radius: 2px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  top: 10px;
  width: 22px;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  animation: faq-open 0.35s ease;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  max-width: 820px;
  padding-bottom: 28px;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Dernier appel */

.final-section {
  padding-bottom: 120px;
}

.final {
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 40px;
  overflow: hidden;
  padding: 112px 32px;
  position: relative;
  text-align: center;
}

.final-glow {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.38), transparent 60%);
  filter: blur(30px);
  height: 760px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
}

.final .pitch {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.final-content {
  position: relative;
}

.final h2 {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1;
  margin: 0 auto;
  max-width: 820px;
}

.final p:not(.cta) {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.55;
  margin: 24px auto 0;
  max-width: 520px;
}

.final .cta {
  margin-top: 44px;
}

/* Pages légales */

.legal {
  max-width: 760px;
  padding-block: 40px 96px;
}

.back {
  color: var(--text-secondary);
  display: inline-block;
  font-size: 15px;
  margin-bottom: 32px;
  text-decoration: none;
}

.back:hover {
  color: var(--accent);
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}

.updated {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 14px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 44px 0 16px;
}

.legal p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal p a {
  color: var(--accent);
}

/* Pied de page */

.footer {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-top: auto;
  padding-block: 48px 64px;
  position: relative;
}

/* Une ligne de lueur au-dessus du pied de page. */
.footer::before {
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
  content: '';
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: -1px;
}

.footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin-bottom: 24px;
}

.footer nav a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--accent);
}

.footer p {
  max-width: 760px;
}

.nowrap {
  white-space: nowrap;
}

.footer p + p {
  margin-top: 10px;
}

/* Animations de fond, en CSS */

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    scale: 1;
  }

  50% {
    opacity: 1;
    scale: 1.08;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 6px var(--accent);
  }

  50% {
    box-shadow: 0 0 18px var(--accent);
  }
}

@keyframes shine {
  0%,
  60% {
    transform: translateX(-120%);
  }

  85%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(calc(-100% - 14px));
  }
}

@keyframes tremble {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(calc(var(--amp) * -1px), calc(var(--amp) * 0.5px))
      rotate(calc(var(--amp) * -0.16deg));
  }

  40% {
    transform: translate(calc(var(--amp) * 1px), calc(var(--amp) * -0.5px))
      rotate(calc(var(--amp) * 0.14deg));
  }

  60% {
    transform: translate(calc(var(--amp) * -0.7px), calc(var(--amp) * -0.7px))
      rotate(calc(var(--amp) * -0.12deg));
  }

  80% {
    transform: translate(calc(var(--amp) * 0.7px), calc(var(--amp) * 0.7px))
      rotate(calc(var(--amp) * 0.16deg));
  }
}

@keyframes roar {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes frenzy {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes wave-left {
  from {
    transform: rotate(-28deg);
  }

  to {
    transform: rotate(12deg);
  }
}

@keyframes wave-right {
  from {
    transform: rotate(28deg);
  }

  to {
    transform: rotate(-12deg);
  }
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Téléphone et tablette */

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .story-stage {
    display: none;
  }

  .story-steps::before,
  .story-steps::after {
    bottom: 0;
    top: 0;
  }

  .story-step {
    align-items: start;
    min-height: 0;
    padding-block: 36px;
    row-gap: 28px;
  }

  .story-shot {
    display: block;
    grid-column: 2;
    height: 380px;
    overflow: hidden;
    position: relative;
  }

  .story-shot::after {
    background: linear-gradient(transparent 55%, var(--background));
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
  }

  .story-shot-notifs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .story-shot:has(.story-shot-notifs) {
    height: auto;
  }

  .story-shot:has(.story-shot-notifs)::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .fan {
    min-height: 460px;
  }

  .phone-mini {
    border-radius: 34px;
    height: 400px;
    width: 194px;
  }

  .phone-mini .phone-screen {
    border-radius: 26px;
    inset: 8px;
  }

  .fan-left {
    margin-right: -70px;
  }

  .fan-right {
    margin-left: -70px;
  }
}

@media (max-width: 640px) {
  .hero-layout {
    gap: 8px;
    padding-block: 28px 64px;
  }

  /* Sur téléphone, on fait défiler de toute façon : le lien laisse sa place au téléphone. */
  .discover {
    display: none;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .lead {
    font-size: 17px;
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-stage {
    min-height: 560px;
    perspective: 1000px;
  }

  .phone {
    border-radius: 46px;
    height: 500px;
    width: 244px;
  }

  .phone-screen {
    border-radius: 36px;
    inset: 10px;
  }

  .float-crest {
    border-radius: 18px;
    padding: 10px;
  }

  .float-crest img {
    height: 44px;
    width: 44px;
  }

  .float-rating {
    padding: 10px 14px;
    right: 2%;
  }

  .float-rating-value {
    font-size: 30px;
  }

  .float-notif {
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }

  .float-notif .notif-row {
    padding: 10px 14px;
  }

  .stats {
    gap: 36px 24px;
  }

  .stat-value {
    font-size: 34px;
  }

  .cta {
    font-size: 16px;
    gap: 10px;
    min-height: 58px;
    padding: 0 22px;
  }

  .meter {
    padding: 28px 22px;
  }

  .story-steps::before,
  .story-steps::after {
    left: 19px;
  }

  .story-step {
    gap: 18px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .story-index {
    font-size: 14px;
    height: 40px;
    width: 40px;
  }

  .story-copy p {
    font-size: 17px;
  }

  .story-shot {
    height: 340px;
  }

  .final {
    padding: 72px 24px;
  }

  .phone-mini {
    height: 330px;
    width: 160px;
  }

  .fan {
    min-height: 380px;
  }

  .fan-left {
    margin-right: -80px;
  }

  .fan-right {
    margin-left: -80px;
  }

  .marquee {
    mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  }
}

/* Page introuvable */

.wrap.hero {
  padding-block: 120px;
  text-align: center;
}

.wrap.hero h1 {
  color: var(--accent);
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 800;
  line-height: 1;
  text-shadow: var(--glow);
}
