/* ============================================================
   MOVIO — Charte graphique v1.0
   Space Grotesk · Instrument Sans · Space Mono
   Violet #5B3FE0 · Noir #0B0A10 · Blanc cassé #F5F4F8
   ============================================================ */

:root {
  --bg:        #0B0A10;
  --bg-2:      #0E0C16;
  --panel:     #16131F;
  --panel-2:   #1B1728;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);

  --violet:    #5B3FE0;
  --violet-l:  #8B6BFF;
  --violet-d:  #3A24A6;

  --white:     #F5F4F8;
  --text:      #F4F3F8;
  --muted:     #A8A4B8;
  --muted-2:   #7C7890;
  --faint:     #5B5770;

  --wa:        #25D366;
  --wa-dark:   #062B13;

  --display: 'Space Grotesk', sans-serif;
  --body:    'Instrument Sans', sans-serif;
  --mono:    'Space Mono', monospace;

  --maxw: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: var(--violet-l); text-decoration: none; transition: color .2s ease; }
a:hover { color: #A98CFF; }

::selection { background: var(--violet); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- LOGO ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--white);
}
.logo:hover { color: var(--white); }
.logo-word { display: inline-flex; }
.logo .dot { color: var(--violet); }
.logo-mark {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--violet);
  box-shadow: 0 6px 20px rgba(91,63,224,0.45);
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}
.logo-small { font-size: 18px; }
.logo-small .logo-mark { width: 26px; height: 26px; border-radius: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,10,16,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn-wa-nav) {
  font-family: var(--body); font-size: 15px; font-weight: 500;
  color: var(--muted);
}
.nav-links > a:not(.btn-wa-nav):hover { color: var(--white); }
.btn-wa-nav {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  color: var(--wa-dark); background: var(--wa);
  padding: 9px 16px; border-radius: 999px;
}
.btn-wa-nav:hover { color: var(--wa-dark); filter: brightness(1.06); }
.btn-wa-nav i { font-size: 17px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 12px;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
  cursor: pointer;
}
.btn i { font-size: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px rgba(91,63,224,0.4); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-wa { background: var(--wa); color: var(--wa-dark); box-shadow: 0 10px 30px rgba(37,211,102,0.28); }
.btn-wa:hover { color: var(--wa-dark); filter: brightness(1.06); }
.btn-big { padding: 17px 32px; font-size: 17px; }

/* ---------- KICKER / HEADINGS ---------- */
.kicker {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 18px;
}
.kicker-light { color: var(--violet-l); }

.section-head h2, .section-head .on-dark {
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; max-width: 760px;
}
.section-head { margin-bottom: 56px; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head-center h2 { margin: 0 auto; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 18px auto 0; }

/* ---------- SECTION SHELLS ---------- */
.section        { padding: 120px 0; }
.section-dark   { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-center .container { text-align: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 40px 90px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(91,63,224,0.34), transparent 72%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 30px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-l); box-shadow: 0 0 12px var(--violet-l); }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 auto 26px; max-width: 15ch;
}
.hero h1 .accent { color: var(--violet-l); }
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 38px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.showreel {
  position: relative; z-index: 1;
  max-width: 980px; margin: 72px auto 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(91,63,224,0.15);
  background: var(--panel);
}
.showreel-video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--panel); }

/* ---------- PROJECTS ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.project:hover { transform: translateY(-6px); border-color: rgba(139,107,255,0.4); }
.project-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16/9; overflow: hidden;
  background: repeating-linear-gradient(45deg, #16131F, #16131F 11px, #131020 11px, #131020 22px);
}
.project-video { width: 100%; height: 100%; object-fit: cover; }
.media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(91,63,224,0.9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  box-shadow: 0 8px 26px rgba(91,63,224,0.5);
  transition: transform .2s ease;
}
.project-media:hover .media-play { transform: translate(-50%, -50%) scale(1.1); }
.media-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--white);
  background: rgba(11,10,16,0.7); padding: 5px 12px; border-radius: 999px;
  opacity: 0; transition: opacity .2s ease; white-space: nowrap;
}
.project-media:hover .media-hint { opacity: 1; }
.project-body { padding: 24px; }
.project-body .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--violet-l);
  border: 1px solid rgba(139,107,255,0.3); border-radius: 999px; padding: 5px 11px; margin-bottom: 14px;
}
.project-body h3 { font-size: 20px; margin-bottom: 8px; }
.project-body p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: border-color .25s ease, background .25s ease;
}
.service:hover { border-color: rgba(139,107,255,0.35); background: rgba(139,107,255,0.04); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(91,63,224,0.16); color: var(--violet-l); font-size: 24px;
  margin-bottom: 20px;
}
.service h3 { font-size: 19px; margin-bottom: 8px; }
.service p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }

.banner {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--violet-d), var(--violet));
  border-radius: var(--radius); padding: 28px 32px;
}
.banner-left { display: flex; align-items: center; gap: 18px; }
.banner-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 24px;
}
.banner p { margin: 0; font-size: 16px; color: rgba(255,255,255,0.92); max-width: 620px; }
.banner p strong { color: #fff; }
.banner-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; white-space: nowrap; }
.banner-link:hover { color: #fff; }

/* ---------- FORMATS ---------- */
.ratios { display: flex; justify-content: center; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 20px; }
.ratio { display: flex; flex-direction: column; align-items: center; }
.ratio-frame {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  color: var(--violet-l); font-size: 30px; margin-bottom: 18px;
}
.ratio-169 { width: 230px; height: 130px; }
.ratio-916 { width: 120px; height: 213px; }
.ratio-11  { width: 170px; height: 170px; }
.ratio-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.ratio-desc { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 5px; }

/* ---------- POURQUOI (section claire) ---------- */
.section-white {
  padding: 120px 0;
  background: var(--white); color: var(--bg);
}
.section-white .kicker { color: var(--violet); }
.section-white h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; color: var(--bg); }
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.why-text { color: #4A4658; font-size: 17px; margin: 20px 0 0; max-width: 480px; }
.why-list { display: flex; flex-direction: column; gap: 14px; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid #E7E4EE; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(20,10,50,0.03);
}
.why-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(91,63,224,0.1); color: var(--violet); font-size: 21px;
}
.why-item strong { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--bg); margin-bottom: 3px; }
.why-item span { font-size: 14px; color: #6A6678; line-height: 1.5; }

/* ---------- PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.step {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--violet-l); border: 1px solid rgba(139,107,255,0.35);
  margin-bottom: 20px;
}
.step-num-filled { background: var(--violet); color: #fff; border-color: var(--violet); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- CTA FINAL ---------- */
.cta-section { padding: 40px 40px 120px; }
.cta-card {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(140deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 28px;
  padding: 80px 40px; text-align: center; overflow: hidden;
}
.cta-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 480px;
  background: radial-gradient(closest-side, rgba(91,63,224,0.4), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(30px, 4.5vw, 50px); line-height: 1.05; margin-bottom: 16px; }
.cta-card p { color: var(--muted); font-size: 18px; margin: 0 auto 34px; max-width: 460px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.copyright { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- WHATSAPP FLOTTANT ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(6,5,10,0.92); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 1000px; width: 100%; }
.lightbox-inner video { width: 100%; border-radius: 14px; background: #000; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.14); }

/* ---------- REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 16px; }
  .nav-links > a:not(.btn-wa-nav) { display: none; }
  .projects { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .container, .nav-inner, .hero { padding-left: 22px; padding-right: 22px; }
  .section, .section-dark, .section-white { padding: 80px 0; }
  .projects, .services, .steps { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .ratios { gap: 26px; }
  .cta-card { padding: 56px 24px; }
}
