/* Barre du haut et premier ecran : titre, appels a l'action, scene (telephone qui enregistre, feuille, post-it). */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--wrap);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-links {
  display: none;
  gap: 26px;
  margin-left: 26px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-login {
  display: none;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta-long {
  display: none;
}

@media (min-width: 560px) {
  .nav-login,
  .nav-cta-long {
    display: inline;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Premier ecran ---------- */
.hero {
  position: relative;
  background-image: radial-gradient(#d5dbe5 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  background-position: 0 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(244, 246, 249, 0), var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 84px) 20px clamp(56px, 8vw, 110px);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(2.5rem, 1.2rem + 5.2vw, 4.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero-mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.hero-mark::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.04em;
  height: 0.36em;
  z-index: -1;
  border-radius: 4px;
  background: #fde86b;
  transform-origin: left;
  animation: mark-draw 0.9s 0.9s var(--ease) both;
}

.hero-sub {
  max-width: 33rem;
  margin-top: 22px;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.hero-in {
  animation: hero-rise 0.9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}

/* ---------- Scene ---------- */
.hero-scene {
  position: relative;
  width: min(100%, 440px);
  height: 500px;
  margin: 0 auto;
}

.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 236px;
  height: 480px;
  margin-left: -150px;
  padding: 9px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 40px 60px -30px rgba(15, 23, 42, 0.55);
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 16px 18px;
  border-radius: 32px;
  background: #0b0f19;
  color: #ffffff;
}

.rec-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rec-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--pill);
  background: #1e293b;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
}

.rec-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: rec-blink 1.4s ease-in-out infinite;
}

.rec-title {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.rec-timer {
  margin-top: 26px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 92px;
  margin-top: 26px;
}

.wave i {
  flex: 0 0 4px;
  height: 100%;
  border-radius: 4px;
  background: #ffffff;
  transform: scaleY(0.15);
  animation: wave-beat 1.2s ease-in-out infinite;
}

.wave i:nth-child(3n) {
  background: var(--orange);
}

.rec-stop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--orange);
}

.rec-stop span {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #ffffff;
}

.rec-hint {
  margin-top: 12px;
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
}

.scene-sheet {
  position: absolute;
  right: 0;
  top: 206px;
  width: 232px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 50px -30px rgba(15, 23, 42, 0.4);
  rotate: 5deg;
  z-index: 3;
}

.scene-sheet-text {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.scene-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.scene-lines i {
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
}

.scene-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.scene-actions span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.scene-actions b {
  width: 13px;
  height: 13px;
  border: 1.5px solid #94a3b8;
  border-radius: 4px;
}

.scene-postit {
  position: absolute;
  right: 10px;
  top: 22px;
  rotate: 6deg;
  z-index: 4;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 30px;
  }

  .hero-scene {
    width: 100%;
    max-width: 480px;
    height: 560px;
    margin: 0 0 0 auto;
  }

  .phone {
    width: 262px;
    height: 536px;
    margin-left: -200px;
  }

  .scene-sheet {
    top: 250px;
    width: 256px;
  }

  .scene-postit {
    top: 40px;
  }

  .rec-timer {
    font-size: 52px;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mark-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes rec-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

@keyframes wave-beat {
  0%,
  100% {
    transform: scaleY(var(--lo, 0.15));
  }

  50% {
    transform: scaleY(var(--hi, 0.8));
  }
}
