/* ============================================================================
   SMZ Digital — Feuille de style
   Agence : conception, développement & commercialisation de produits numériques
   Design system "Aurora" — sombre, cinétique, haut de gamme
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --bg:        #0A0A0F;
  --bg-2:      #0F0F17;
  --surface:   #14141F;
  --surface-2: #1A1A28;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);

  --ink:       #F5F5FA;
  --ink-soft:  #C4C4D4;
  --muted:     #8A8AA0;
  --muted-2:   #5E5E74;

  --violet:    #7C5CFF;
  --blue:      #4D7CFF;
  --teal:      #00E0C6;
  --coral:     #FF5D73;

  --grad:      linear-gradient(115deg, #7C5CFF 0%, #4D7CFF 48%, #00E0C6 100%);
  --grad-soft: linear-gradient(115deg, rgba(124,92,255,.18), rgba(0,224,198,.18));

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1240px;
  --pad:  clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,1,.36,1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain + aurore globale, posés derrière tout le contenu */
body::before {
  /* aurore */
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  background:
    radial-gradient(40vmax 40vmax at 12% 8%,  rgba(124,92,255,.22), transparent 60%),
    radial-gradient(38vmax 38vmax at 88% 4%,  rgba(0,224,198,.16),  transparent 60%),
    radial-gradient(44vmax 44vmax at 70% 92%, rgba(77,124,255,.16), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}
body::after {
  /* grain subtil */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lueur qui suit le curseur (alimentée par le JS) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(124,92,255,.10), transparent 65%);
  transform: translate3d(var(--mx, 50vw), var(--my, 30vh), 0);
  transition: opacity .4s ease;
  will-change: transform;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; z-index: 1; }
.section-pad { padding-block: clamp(80px, 11vw, 160px); }

/* ---------- Typographie utilitaire ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--line-2);
}
.kicker .num { color: var(--teal); }

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
.display {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: var(--ink-soft); }
.muted { color: var(--muted); }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 550; font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .3s;
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #07070C;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(124,92,255,.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(124,92,255,.42); }

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); transform: translateY(-2px); }

.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .name { font-size: 18px; }
.brand .name b { font-weight: 700; }
.brand .dot { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.link {
  font-size: 15px; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color .25s;
}
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--grad); transition: width .3s var(--ease);
}
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); }
.burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 4px auto; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: clamp(70px,9vw,120px); position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02);
  font-size: 13.5px; color: var(--ink-soft); margin-bottom: 30px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0,224,198,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,224,198,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0,224,198,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,224,198,0); }
}
.hero h1 { max-width: 16ch; margin-bottom: 28px; }
.hero .lead { max-width: 56ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 40px; border-top: 1px solid var(--line);
}
.stat .n { font-size: clamp(2rem,3.4vw,2.9rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .02em;
  color: var(--ink-soft); text-transform: uppercase;
}
.marquee-item::after { content: "✳"; color: var(--violet); font-size: 13px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section header ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.sec-head .kicker { margin-bottom: 22px; }
.sec-head p.lead { margin-top: 22px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.service {
  position: relative; padding: 34px 30px 36px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--gx,50%) var(--gy,0%), rgba(124,92,255,.14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.service:hover { transform: translateY(-6px); border-color: var(--line-2); }
.service:hover::before { opacity: 1; }
.service .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 24px;
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.service .ico svg { width: 26px; height: 26px; stroke: var(--ink); }
.service .num {
  position: absolute; top: 28px; right: 30px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted-2);
}
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15.5px; }
.service .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.service .tags span {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft);
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px;
}

/* ---------- Méthode / Process ---------- */
.method { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  position: relative; padding: 36px 28px 36px 0;
  border-top: 1px solid var(--line-2);
}
.step + .step { padding-left: 28px; }
.step .s-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--teal);
  margin-bottom: 18px; display: block;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step .bar { position: absolute; top: -1px; left: 0; height: 2px; width: 38px; background: var(--grad); }

/* ---------- Réalisations ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.work {
  position: relative; display: block; padding: 38px 36px 40px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden; min-height: 320px;
  transition: transform .5s var(--ease), border-color .4s;
}
.work.span-2 { grid-column: span 2; }
.work::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(700px circle at 85% -10%, var(--accent, rgba(124,92,255,.18)), transparent 55%);
  transition: opacity .5s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-2); }
.work:hover::after { opacity: .9; }
.work > * { position: relative; z-index: 1; }
.work-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.work .chip {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-soft);
}
.work .ext { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: .3s; }
.work:hover .ext { background: var(--ink); color: #0A0A0F; transform: rotate(-45deg); }
.work h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 8px; }
.work .role { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal); margin-bottom: 18px; }
.work p { color: var(--ink-soft); max-width: 60ch; font-size: 15.5px; }
.work .meta { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.work .meta div .mv { font-weight: 600; font-size: 1.05rem; }
.work .meta div .ml { font-size: 12.5px; color: var(--muted); }
.work .stk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.work .stk span { font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- Bandeau capacités / stack ---------- */
.capabilities { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px,6vw,90px); align-items: start; }
.cap-list { display: grid; gap: 2px; }
.cap-row {
  display: flex; align-items: center; gap: 18px; padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.cap-row .cn { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); width: 30px; flex: none; }
.cap-row .ct { font-size: 1.05rem; font-weight: 500; }
.cap-row .cd { color: var(--muted); font-size: 14.5px; margin-left: auto; text-align: right; max-width: 46%; }

/* ---------- CTA bandeau ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 90px) var(--pad);
  text-align: center;
  background:
    radial-gradient(60vmax 40vmax at 50% -30%, rgba(124,92,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.005));
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 22px; }
.cta-band p { max-width: 52ch; margin: 0 auto 36px; color: var(--ink-soft); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.contact-aside .lead { margin: 22px 0 36px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px;
  background: var(--surface); margin-bottom: 14px;
  transition: border-color .3s, transform .3s;
}
.contact-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.contact-card .cc-l { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-card .cc-v { font-size: 1.15rem; font-weight: 550; margin-top: 6px; }
.contact-card a.cc-v:hover { color: var(--teal); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: .02em; }
.field label .req { color: var(--coral); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--ink); font-size: 15.5px; font-family: inherit;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238A8AA0' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124,92,255,.14); background: var(--surface-2);
}
.field.two { grid-template-columns: 1fr 1fr; gap: 18px; display: grid; }
@media (max-width: 560px){ .field.two { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted); max-width: 40ch; }
.form-msg { font-size: 14px; padding: 12px 16px; border-radius: 10px; display: none; }
.form-msg.ok  { display: block; background: rgba(0,224,198,.10); border: 1px solid rgba(0,224,198,.3); color: #7af0e0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 64px 36px; margin-top: clamp(60px,8vw,120px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 18px; }
.footer .f-desc { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer .f-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.footer .f-col a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 6px 0; transition: color .25s, padding-left .25s; }
.footer .f-col a:hover { color: var(--ink); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom .signa { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Pages légales ---------- */
.legal { padding-top: 150px; }
.legal .wrap { max-width: 860px; }
.legal h1 { margin-bottom: 14px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 50px; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 14px; font-size: 16px; }
.legal ul { padding-left: 22px; margin-bottom: 18px; }
.legal li { list-style: disc; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 14px; }
.legal .back:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding-left: 0; padding-right: 24px; }
  .capabilities { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(10,10,15,.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 18px var(--pad) 26px;
  }
  .nav.open .nav-links a.link { font-size: 18px; padding: 10px 0; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work.span-2 { grid-column: auto; }
  .cap-row .cd { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(124,92,255,.35); color: #fff; }
