/* Volyarsenal AI — feuille de style (polices et ressources 100 % locales) */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07080c;
  --bg-2: #0d0f15;
  --text: #eceff6;
  --muted: #a3acbf;
  --line: rgba(255, 255, 255, .09);
  --blue: #3b78ff;
  --blue-l: #7db0ff;
  --blue-d: #1f4fd8;
  --cu: #d9894c;
  --cu-l: #f0b484;
  --cu-d: #b8612a;
  --radius: 20px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - clamp(40px, 10vw, 80px)); margin-inline: auto; }

/* Repères à remplir */
.todo {
  background: rgba(217, 137, 76, .14);
  color: var(--cu-l);
  outline: 1px dashed rgba(217, 137, 76, .6);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(7, 8, 12, .35);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(7, 8, 12, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--line);
}
.nav-in {
  width: min(1120px, 100% - clamp(40px, 10vw, 80px));
  margin-inline: auto; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem var(--head); letter-spacing: -.01em; }
.brand b { font-weight: 600; color: var(--cu-l); }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--text); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .25s, top .25s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  --glow: rgba(59, 120, 255, .45);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #3a74ff 0%, var(--blue-d) 100%);
  color: #fff; text-decoration: none; font: 500 1rem var(--body); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(59, 120, 255, .25), 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .2s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(217, 137, 76, .5), 0 10px 36px -6px rgba(217, 137, 76, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ghost {
  background: rgba(255, 255, 255, .03); box-shadow: none; color: var(--text); border-color: var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(217, 137, 76, .5); box-shadow: none; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px 0 90px; overflow: hidden; isolation: isolate;
}
.hero::before { /* grille fine */
  content: ""; position: absolute; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 35%, transparent 100%); }
.hero-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-glow i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform, opacity; }
.hero-glow i:first-child {
  width: min(70vw, 760px); aspect-ratio: 1; left: -12%; top: -18%;
  background: radial-gradient(circle, rgba(59, 120, 255, .34), transparent 68%);
  animation: breathe 11s ease-in-out infinite alternate;
}
.hero-glow i:last-child {
  width: min(60vw, 640px); aspect-ratio: 1; right: -10%; bottom: -22%;
  background: radial-gradient(circle, rgba(217, 137, 76, .28), transparent 68%);
  animation: breathe 13s ease-in-out -4s infinite alternate;
}
@keyframes breathe { from { transform: scale(.92) translate3d(0, 0, 0); opacity: .75; } to { transform: scale(1.12) translate3d(2%, 3%, 0); opacity: 1; } }

.hero-in { width: min(1040px, 100% - 40px); }
.hero-logo { width: 148px; height: auto; margin: 0 auto 22px; filter: drop-shadow(0 0 22px rgba(59, 120, 255, .45)); }
.eyebrow {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .03); color: var(--muted);
  font: 500 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.hero h1 span { display: block; }
.l1 { background: linear-gradient(180deg, #fff 30%, #9db8ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.l2 { background: linear-gradient(95deg, var(--cu-l), var(--cu) 55%, #e39a5f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--cu-l); padding-bottom: .08em; }
.lead { max-width: 600px; margin: 28px auto 0; color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cu-l); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .9; } 55% { transform: translateY(12px); opacity: .15; } }

/* ---------- Sections ---------- */
.sep { border: 0; height: 1px; margin: 0; background: linear-gradient(90deg, transparent, rgba(59, 120, 255, .5), rgba(217, 137, 76, .5), transparent); opacity: .55; }
.sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.kicker { font: 500 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--cu-l); margin-bottom: 18px; }
.sec h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; max-width: 18ch; }
.sub { color: var(--muted); margin-top: 18px; max-width: 54ch; font-size: 1.1rem; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }

/* Cartes en verre dépoli + halo qui suit la souris */
.card {
  position: relative; display: block; padding: 34px 30px 36px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  text-decoration: none; overflow: hidden;
  transition: transform .3s, border-color .3s;
  --mx: 50%; --my: 0%;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 137, 76, .17), rgba(59, 120, 255, .06) 45%, transparent 70%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(240, 180, 132, .95), rgba(59, 120, 255, .55) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after, .card:focus-visible::before, .card:focus-visible::after { opacity: 1; }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 1.4rem; font-weight: 600; margin: 26px 0 12px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 1rem; }
.ico {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 120, 255, .18), rgba(217, 137, 76, .12));
  border: 1px solid rgba(255, 255, 255, .1);
}
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--cu-l); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cu), transparent); opacity: .5; }
.step { position: relative; padding-top: 0; }
.num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(255, 255, 255, .14);
  font: 600 1rem var(--head); color: var(--cu-l); letter-spacing: .02em;
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -4px rgba(59, 120, 255, .5);
}
.step h3 { font-size: 1.35rem; margin: 26px 0 10px; font-weight: 600; }
.step p { color: var(--muted); max-width: 34ch; }

/* Contact */
.contact { padding: 36px 34px; }
.contact .label { display: block; margin-top: 24px; font: 500 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact .value { display: block; margin-top: 8px; font: 500 clamp(1.15rem, 2.6vw, 1.5rem) var(--head); letter-spacing: -.01em; overflow-wrap: anywhere; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 44px 0 30px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015)); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand strong { display: block; font: 600 1.05rem var(--head); }
.foot-brand span { color: var(--muted); font-size: .92rem; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot-links a:hover { color: var(--text); }
.copy { text-align: center; color: #7d8699; font-size: .85rem; margin-top: 34px; padding: 0 20px; }

/* Page mentions légales */
.legal { padding: 140px 0 70px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; margin-bottom: 30px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--cu-l); font-weight: 600; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal strong { color: var(--text); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s !important; }
.reveal.d2 { transition-delay: .24s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 38px; }
  .steps::before { top: 0; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue), var(--cu), transparent); }
  .step { padding-left: 84px; }
  .step .num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 10px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 8, 12, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 22px;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu.open { visibility: visible; opacity: 1; transform: none; }
  .menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .btn { margin-top: 18px; justify-content: center; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .scroll-cue { display: none; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* Écrans tactiles : pas de survol, on laisse un léger liseré */
@media (hover: none) {
  .card::after { opacity: .45; --mx: 20%; --my: 0%; }
}

/* Réduire les animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
