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

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #9ca3af;
  --gray-brand: #6b7280;
  --red: #e02020;
  --red-hover: #ff2a2a;
  --red-dim: rgba(224, 32, 32, 0.14);
  --font: "Inter", system-ui, sans-serif;
  --nav-h: 68px;
  --radius: 12px;
  --video-ratio: 16 / 9;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  margin-right: auto;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 16px 24px;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 18px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-cta {
  margin-top: 20px !important;
  text-align: center;
  padding: 16px !important;
  border-radius: var(--radius) !important;
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
}

main {
  padding-top: var(--nav-h);
}

/* —— Shared —— */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-brand);
}

.kicker--app {
  color: var(--muted);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: rec-pulse 1.4s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— FAQ —— */
.faq {
  padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 40px);
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.faq-item dt {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.98rem;
}

.faq-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-item dd a {
  color: #fca5a5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Hero —— */
.hero {
  padding: clamp(48px, 10vw, 96px) clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 28px;
  height: auto;
  max-width: min(320px, 78vw);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.hero-lead a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(224, 32, 32, 0.45);
  text-underline-offset: 3px;
}

.hero-lead a:hover {
  color: var(--red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: var(--red-hover);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--large {
  padding: 16px 28px;
  font-size: 1rem;
}

/* —— Video slots 16:9 —— */
.video-slot {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-slot-inner {
  width: 100%;
  aspect-ratio: var(--video-ratio);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-slot--placeholder {
  background: #000;
  position: relative;
}

.video-slot--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 32, 32, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.video-slot-label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.video-slot iframe {
  display: block;
  width: 100%;
  aspect-ratio: var(--video-ratio);
  border: none;
}

.video-slot--hero {
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* —— Showreel —— */
.showreel-section {
  padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}

/* —— Prestations —— */
.prestations {
  padding: clamp(48px, 8vw, 80px) clamp(16px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prestation {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prestation-copy h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.prestation-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* —— Contact vidéo —— */
.contact {
  padding: clamp(56px, 10vw, 96px) clamp(16px, 4vw, 40px);
}

.contact--video {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-lead {
  margin: 12px 0 24px;
  color: var(--muted);
}

/* —— Divider app —— */
.project-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-divider::before,
.project-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.project-divider span {
  white-space: nowrap;
  padding: 20px 0;
}

/* —— App project (visuellement séparé) —— */
.app-project {
  padding: clamp(48px, 8vw, 72px) clamp(16px, 4vw, 40px) clamp(64px, 10vw, 96px);
  background: linear-gradient(180deg, #0d0d12 0%, #12121a 100%);
  border-top: 3px solid rgba(99, 102, 241, 0.35);
}

.app-project-inner {
  max-width: 680px;
  margin: 0 auto;
}

.app-project-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-logo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
}

.app-project-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.app-points {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.app-points li {
  padding: 12px 14px 12px 36px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
}

.app-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-discover {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.app-discover a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.app-note a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Footer —— */
.footer {
  padding: 28px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-tagline {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(156, 163, 175, 0.85);
}

.footer-copy {
  margin-right: auto;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .prestations-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prestation .video-slot {
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-logo img {
    height: 30px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-logo {
    max-width: min(260px, 85vw);
  }

  .hero-actions .btn,
  .app-actions .btn,
  .contact-inner .btn {
    width: 100%;
  }

  .app-project-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-actions {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    margin-left: 0;
    justify-content: center;
  }

  .video-slot--hero {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }
}
