/* =============================================================
   UrgencIA — Landing page
   Palette ocean, design clean medical/pro
   ============================================================= */

:root {
  --ocean-darkest: #0a2f3d;
  --ocean-dark: #0d3b4c;
  --ocean: #0284c7;
  --ocean-mid: #0369a1;
  --ocean-light: #e0f0ed;
  --teal: #3d8b80;
  --teal-light: #8ecbc1;
  --emerald: #059669;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #64748b;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(13, 59, 76, 0.05);
  --shadow-md: 0 4px 16px rgba(13, 59, 76, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 59, 76, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Topbar ────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ocean-dark);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.brand-name em {
  font-style: italic;
  color: var(--ocean);
  font-weight: 700;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ocean-mid);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.18s ease;
}

.admin-link:hover {
  background: var(--ocean);
  color: white;
  border-color: var(--ocean);
  transform: translateY(-1px);
}

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  background: rgba(2, 132, 199, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ocean-darkest);
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--ocean);
}

.lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 36px;
  max-width: 560px;
}

/* Feature grid */

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.features li {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feat-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 100%);
  color: white;
  border-radius: 10px;
}

.feat-icon svg { width: 20px; height: 20px; }

.features h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean-dark);
  margin-bottom: 3px;
  line-height: 1.3;
}

.features p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.4;
}

/* Trust / Securite */

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(61, 139, 128, 0.05) 100%);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius-md);
}

.trust-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 100%);
  color: white;
  border-radius: 10px;
  flex-shrink: 0;
}

.trust-icon svg { width: 20px; height: 20px; }

.trust-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ocean-darkest);
  letter-spacing: -0.01em;
}

.trust-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Positionnement sous la video */

.video-positioning {
  max-width: 360px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  text-align: center;
  margin-top: 4px;
}

/* CTA */

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ocean-dark);
  background: transparent;
  border: 1.5px solid var(--ocean);
  border-radius: 12px;
  transition: all 0.18s ease;
}

.cta-secondary:hover {
  background: var(--ocean);
  color: white;
  transform: translateY(-1px);
}

/* ─── Video / Phone frame ──────────────────────────────── */

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

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 384px;
  aspect-ratio: 496 / 1080;
  background: var(--ocean-darkest);
  border-radius: 40px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Notch evocateur */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--ocean-darkest);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: var(--ocean-darkest);
  display: block;
}

.fullscreen-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 59, 76, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.fullscreen-btn:hover {
  background: var(--ocean);
  transform: scale(1.05);
}

.video-caption {
  font-size: 14px;
  color: var(--text-mute);
  font-style: italic;
}

/* ─── Partenaires ──────────────────────────────────────── */

.partners {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 32px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logos img {
  height: 70px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(0.15);
  transition: all 0.2s ease;
}

.partner-logos img:hover {
  opacity: 1;
  filter: none;
}

/* ─── Equipe ───────────────────────────────────────────── */

.team {
  max-width: 1024px;
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.team-block {
  text-align: center;
}

.team-block h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ocean-light);
}

.team-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-block li {
  font-size: 16px;
  color: var(--text);
}

.team-block li strong { color: var(--ocean-dark); font-weight: 600; }

/* ─── Contact ──────────────────────────────────────────── */

.contact {
  background: linear-gradient(135deg, var(--ocean-darkest) 0%, var(--ocean-mid) 100%);
  color: white;
  text-align: center;
  padding: 64px 32px;
}

.contact h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.contact p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: white;
  color: var(--ocean-dark);
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ─── Footer ───────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 32px;
  font-size: 13px;
  color: var(--text-mute);
  background: white;
  border-top: 1px solid var(--border);
}

/* ─── Fullscreen video (portrait force) ────────────────── */

.phone-frame.is-fullscreen {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  max-width: none;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  padding: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame.is-fullscreen::before { display: none; }

.phone-frame.is-fullscreen video {
  width: auto;
  height: 100%;
  max-width: 100vw;
  object-fit: contain;
  border-radius: 0;
}

.phone-frame.is-fullscreen .fullscreen-btn {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  bottom: auto;
}

/* ─── Mobile ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .topbar { padding: 12px 20px; }
  .brand-name { font-size: 16px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 20px 64px;
  }

  .hero-video { order: -1; }
  .phone-frame { max-width: 312px; }

  .hero-text h1 { font-size: clamp(28px, 7vw, 38px); }
  .lead { font-size: 16px; }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .features li { padding: 12px; }
  .feat-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; }
  .feat-icon svg { width: 18px; height: 18px; }

  .partner-logos { gap: 32px; }
  .partner-logos img { height: 54px; }

  .team {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 20px;
  }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 16px; }
  .admin-link { font-size: 13px; padding: 7px 12px; }
  .hero { padding: 32px 16px 48px; }
  .partners { padding: 36px 20px; }
  .partner-logos img { height: 44px; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
