/* Videoo — site vitrine. Même identité que l'app iOS (ios/Videoo/Shared/Theme.swift) :
   fond noir, dégradé rose → orange, titres arrondis très gras, boutons en pilule. */

:root {
  --brand: #ff4573;          /* Color.brand          (1.0, 0.27, 0.45) */
  --brand-2: #ff9e33;        /* Color.brandSecondary (1.0, 0.62, 0.2)  */
  --gradient: linear-gradient(135deg, var(--brand), var(--brand-2));
  --bg: #000;
  --text: #fff;
  --muted: rgba(235, 235, 245, 0.62);   /* .secondary d'iOS en mode sombre */
  --surface: rgba(255, 255, 255, 0.08); /* cartes de l'app (RoomCard) */
  --surface-2: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --rounded: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  font: 900 28px/1 var(--rounded);
  letter-spacing: -0.5px;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Boutons (PrimaryButtonStyle / SecondaryButtonStyle) ───────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font: 600 17px/1 var(--sans);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease-out, background-color 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.btn-primary { background: var(--gradient); }
.btn-secondary { background: var(--surface-2); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.22); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }

/* ── En-tête ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.site-header nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) {
  .site-header nav a:not(.btn) { display: none; }
}

/* ── Hero (même fond que l'écran de connexion de l'app) ───────────────── */

.hero {
  position: relative;
  background: linear-gradient(180deg, #000 0%, rgba(255, 69, 115, 0.35) 100%);
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.hero h1 {
  margin: 20px 0 18px;
  font: 900 clamp(40px, 5.6vw, 66px)/1.04 var(--rounded);
  letter-spacing: -1.5px;
}
.hero .lead {
  margin: 0 0 32px;
  max-width: 520px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: rgba(255, 255, 255, 0.85);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.cta-note { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
}

/* ── Maquette d'iPhone : l'écran d'accueil de l'app, en HTML ──────────── */

.phone {
  position: relative;
  justify-self: center;
  width: 300px;
  height: 620px;
  text-align: left;
  padding: 12px;
  border-radius: 52px;
  background: #1c1c1e;
  box-shadow: 0 0 0 2px #3a3a3c, 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(255, 69, 115, 0.35);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  background: #000;
  overflow: hidden;
  padding: 54px 16px 0;
  font-size: 13px;
}
.screen::before { /* Dynamic Island */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px #111;
}
.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.screen-bar .logo { font-size: 22px; }
.screen-bar svg { width: 22px; height: 22px; color: var(--brand); }
.screen h2 {
  margin: 0 0 12px;
  font: 700 19px/1.2 var(--sans);
}
.room-card {
  padding: 13px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: var(--surface);
}
.room-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.room-card strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 9.5px;
  font-weight: 700;
}
.room-card .status {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}
.gauge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.gauge-track {
  position: relative;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.gauge-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: var(--gradient);
}
.fill-76 { width: 76%; }
.fill-100 { width: 100%; }
.fill-30 { width: 30%; }
.screen-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.screen-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: var(--surface-2);
}
.screen-actions span:last-child { background: var(--gradient); }
.screen-actions svg { width: 14px; height: 14px; }

@media (max-width: 360px) {
  .phone { width: 270px; height: 560px; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

section { padding: 96px 0; }
.section-alt { background: #0b0b0f; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  margin: 0 0 12px;
  font: 900 clamp(30px, 4.2vw, 44px)/1.1 var(--rounded);
  letter-spacing: -0.8px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 860px) {
  section { padding: 64px 0; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.card h3 { margin: 16px 0 8px; font: 800 21px/1.25 var(--rounded); }
.card p { margin: 0; color: var(--muted); }

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gradient);
}
.icon svg { width: 26px; height: 26px; color: #fff; }

.step-num {
  font: 900 15px/1 var(--rounded);
  color: var(--brand-2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 20px;
}
.step-num + h3 { margin-top: 6px; }

/* Occasions */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
}

/* Fonctionnalités */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.feature svg { width: 28px; height: 28px; color: var(--brand); }
.feature h3 { margin: 14px 0 6px; font: 700 18px/1.3 var(--sans); }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Tarifs */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.plan-featured {
  border: 0;
  background:
    linear-gradient(#141418, #141418) padding-box,
    var(--gradient) border-box;
  border: 2px solid transparent;
}
.plan .clips { font: 900 40px/1 var(--rounded); letter-spacing: -1px; }
.plan .clips small { font-size: 17px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.plan .for { margin: 8px 0 20px; color: var(--muted); font-size: 15px; }
.plan .price { margin-top: auto; font: 800 26px/1 var(--rounded); }
.plan .price small { font: 400 14px/1 var(--sans); color: var(--muted); }
.pricing-note {
  margin: 28px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* Confidentialité */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; gap: 28px; } }
.privacy h2 {
  margin: 0 0 16px;
  font: 900 clamp(30px, 4.2vw, 44px)/1.1 var(--rounded);
  letter-spacing: -0.8px;
}
.privacy p { color: var(--muted); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
}
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--brand-2); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font: 400 26px/1 var(--sans);
  color: var(--brand);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Appel final */
.final {
  text-align: center;
  background: linear-gradient(0deg, #000 0%, rgba(255, 69, 115, 0.3) 100%);
}
.final h2 {
  margin: 0 0 14px;
  font: 900 clamp(34px, 5vw, 56px)/1.05 var(--rounded);
  letter-spacing: -1px;
}
.final p { margin: 0 auto 32px; max-width: 520px; color: rgba(255, 255, 255, 0.85); font-size: 19px; }
.final .cta-row { justify-content: center; }

/* ── Pied de page ─────────────────────────────────────────────────────── */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Page d'invitation (/r/CODE) et 404 ───────────────────────────────── */

.solo {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #000 0%, rgba(255, 69, 115, 0.35) 100%);
}
.solo main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}
.solo .logo { font-size: 56px; margin: 0 auto 12px; }
.solo h1 { margin: 0 0 10px; font: 800 26px/1.2 var(--rounded); }
.solo .lead { margin: 0 0 28px; color: rgba(255, 255, 255, 0.85); }
.code-box {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.code-box .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.code {
  margin: 6px 0 12px;
  font: 900 36px/1.1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 3px;
}
.solo .btn { width: 100%; }
.stack { display: grid; gap: 12px; }
.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15.5px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  font: 800 14px/1 var(--rounded);
  color: #fff;
}
.solo .small { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.solo .site-footer { border-top: 0; text-align: center; }
.solo .site-footer .wrap { justify-content: center; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
