/*
Theme Name: Empire Agency
Author: Empire Agency
Description: Landing one-page Empire Agency — agence TikTok LIVE. Design system violet/glassmorphism (void, violet, aurum, mist), animations GSAP ScrollTrigger auto-hébergées, vidéo révélée au scroll. Thème autonome, aucun plugin requis.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: empire-agency
*/

/* ═══════════════════════════════════════════════════════════════
   Empire Agency — Landing one-page (thème WordPress)
   Design system : docs/04-design-system.md du projet principal
   void = fonds · violet = marque · aurum = récompense · mist = texte
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts (auto-hébergées) ── */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --void-950: #05030D;
  --void-900: #0B0620;
  --void-800: #120B33;
  --violet-200: #D8C7FF;
  --violet-300: #C0A5FF;
  --violet-400: #A876FF;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6425C4;
  --violet-900: #3B1478;
  --aurum-300: #FBD98A;
  --aurum-500: #E9B949;
  --mist-50: #F7F6FB;
  --mist-300: #B9B3CC;
  --mist-500: #7C7594;
  --mist-700: #4A4560;
  --error: #F5657A;
  --success: #34D399;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.10);
  --shadow-glass: 0 8px 32px 0 rgba(11, 6, 32, 0.45);
  --shadow-glow: 0 0 40px 0 rgba(124, 58, 237, 0.35);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void-950);
  color: var(--mist-50);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.muted { color: var(--mist-300); }

::selection { background: rgba(124, 58, 237, 0.45); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mist-700); border-radius: 999px; }

/* ── Layout ── */
.container { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 42rem; }
.section { padding: 7rem 1.5rem; }
.section-tinted { background: rgba(255, 255, 255, 0.02); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.5rem); text-align: center; margin-bottom: 3.5rem; }
.section-title.left { text-align: left; margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.gap-lg { gap: 3.5rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.self-center { align-self: center; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Glass & boutons ── */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-glass);
  padding: 1.5rem;
}
.glass-card.hoverable { transition: transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium); }
.glass-card.hoverable:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.glass-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.glass-card p { font-size: 0.9rem; color: var(--mist-300); }
.glass-card.compact { padding: 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 0.5rem;
  font: 500 0.9rem 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-premium);
}
.btn-glow {
  background: var(--violet-600);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-glow:hover { background: var(--violet-500); transform: translateY(-1px); }
.btn-glow:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--mist-300); }
.btn-ghost:hover { color: var(--mist-50); background: rgba(255, 255, 255, 0.05); }

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 6, 32, 0.55);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom-color: var(--glass-border);
}
/* Barre d'admin WordPress connectée : décaler la nav fixe */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.05rem; }
.nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: none; gap: 2rem; font-size: 0.9rem; }
.nav-links a { color: var(--mist-300); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--mist-50); }
.nav-cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 50% at 50% 20%, rgba(124, 58, 237, 0.35), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(99, 102, 241, 0.25), transparent 70%),
    linear-gradient(to bottom, rgba(5, 3, 13, 0.5), rgba(5, 3, 13, 0.2) 40%, var(--void-950));
}
.hero-content { position: relative; z-index: 2; max-width: 48rem; }
.hero-logo {
  width: clamp(7rem, 12vw, 9rem);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 40px rgba(233, 185, 73, 0.25));
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--violet-300);
  margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
.hero-sub { margin: 1.5rem auto 0; font-size: 1.1rem; color: var(--mist-300); max-width: 34rem; }
.hero-actions { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Vidéo scroll (révélation par masque, pilotée par GSAP) ── */
.scrollvideo {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(45% 45% at 50% 15%, var(--violet-900) 0%, #1C0F4D 35%, var(--void-800) 62%, var(--void-950) 100%);
}
.scrollvideo-title { font-size: clamp(2rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
.scrollvideo-sub { color: var(--mist-300); max-width: 46ch; margin: 0 auto; }
.scrollvideo-mask {
  margin: 1.5rem auto;
  max-height: 450px;
  overflow: hidden;
  pointer-events: none;
  /* Fallback sans JavaScript : vidéo entièrement révélée */
  clip-path: inset(0% 0% 0% 0% round 16px);
}
.scrollvideo-mask video { display: block; max-width: 100%; max-height: 450px; }

/* ── Étapes / méthode ── */
.step { border-top: 1px solid rgba(139, 92, 246, 0.3); padding-top: 1.5rem; }
.step-num { color: var(--violet-400); font-size: 0.9rem; }
.step h3 { font-size: 1.1rem; margin: 0.5rem 0 0.35rem; }
.step p, .method-item p { font-size: 0.9rem; color: var(--mist-300); }
.method-item { display: flex; gap: 1rem; align-items: flex-start; }
.method-num { font-size: 1.5rem; color: rgba(168, 118, 255, 0.6); flex-shrink: 0; }
.method-item h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }

/* ── Formulaire ── */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mist-300);
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font: 400 0.9rem 'Inter', sans-serif;
  color: var(--mist-50);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--violet-500);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { font-size: 0.85rem; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* ── CTA final ── */
.finalcta {
  position: relative;
  padding: 8rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.finalcta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 50% 50%, rgba(124, 58, 237, 0.3), transparent 70%);
  z-index: -1;
}
.finalcta h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.finalcta p { max-width: 32rem; margin: 0 auto 2.5rem; }

/* ── FAQ (accordéon natif <details>) ── */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion details { padding: 0; overflow: hidden; }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion .plus { color: var(--violet-400); transition: transform 0.2s var(--ease-premium); }
.accordion details[open] .plus { transform: rotate(45deg); }
.accordion details p { padding: 0 1.5rem 1rem; font-size: 0.9rem; }

/* ── Connexion créateur ── */
.cta-card { max-width: 42rem; margin: 0 auto; text-align: center; padding: 2.5rem; }
.cta-card h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-card p { margin-bottom: 1.5rem; }

/* ── Footer ── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--mist-500);
  max-width: 72rem;
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--mist-300); }
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
@media (min-width: 640px) { .footer { flex-direction: row; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { animation: none !important; transition: none !important; }
  .glass-card.hoverable:hover { transform: none; }
}
