/* Identité Solva Solutions : noir profond, bleu électrique, arcs lumineux */
:root {
  --bg: #04050c;
  --ink: #f2f4ff;
  --ink-2: #a9b0cc;
  --ink-3: #6c7392;
  --line: rgba(255, 255, 255, .08);
  --brand: #2f4bff;
  --brand-2: #4aa8ff;
  --wide: "Michroma", sans-serif;
  --font: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Bouton ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid rgba(74, 168, 255, .5);
  border-radius: 999px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.btn:hover {
  background: rgba(47, 75, 255, .15);
  border-color: var(--brand-2);
  box-shadow: 0 0 28px rgba(47, 75, 255, .45);
}

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 80px 16px;
}
.nav {
  position: absolute; top: 28px; right: 40px; z-index: 2;
  display: flex; gap: 32px;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2);
}
.nav a:hover { color: #fff; }

/* Arcs de planète lumineux, comme sur la carte */
.arc {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 900px; height: 900px;
  background: radial-gradient(circle, #0a1030 0%, #04050c 72%);
}
.arc-tl {
  top: -640px; left: -480px;
  box-shadow:
    inset -14px -14px 28px -8px rgba(150, 190, 255, .9),
    inset -40px -40px 90px -20px rgba(47, 75, 255, .7),
    0 0 100px 12px rgba(47, 75, 255, .35);
}
.arc-br {
  bottom: -680px; right: -500px;
  box-shadow:
    inset 14px 14px 28px -8px rgba(150, 190, 255, .9),
    inset 40px 40px 90px -20px rgba(47, 75, 255, .7),
    0 0 100px 12px rgba(47, 75, 255, .35);
}

.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }

.logo { display: flex; flex-direction: column; align-items: center; font-weight: 400; line-height: 1; }
.logo-word {
  display: inline-flex; align-items: flex-end;
  font-family: var(--wide); font-size: clamp(3rem, 11vw, 7rem); color: #fff;
}
.logo-a { width: .95em; height: .74em; margin-left: .04em; margin-bottom: .13em; filter: drop-shadow(0 0 14px rgba(74, 168, 255, .45)); }
.logo-sub {
  font-family: var(--font); font-weight: 400;
  font-size: clamp(1rem, 3.2vw, 2rem);
  letter-spacing: .62em; margin-right: -.62em; margin-top: .5em;
}
.glow-line {
  width: 120px; height: 3px; margin: 40px 0 32px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), #9fd0ff, var(--brand));
  box-shadow: 0 0 16px rgba(74, 168, 255, .8);
}
.tagline {
  font-size: clamp(.8rem, 2vw, 1rem); letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 48px; line-height: 2;
}
.tagline-main, .tagline-sub { display: block; }
.tagline-main { color: #fff; font-weight: 500; }
.tagline-sub .hl {
  background: linear-gradient(90deg, var(--brand-2), #8fc8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Sections ---------- */
.section { max-width: 1000px; margin: 0 auto; padding: 120px 24px; text-align: center; }
.kicker { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 16px; }
h2 { font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.2; margin-bottom: 64px; }

.section-line { border-top: 1px solid var(--line); }

/* ---------- Ce qu'on fait ---------- */
.intro { max-width: 620px; margin: -32px auto 64px; color: var(--ink-2); font-size: 1.05rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  opacity: .5;
}
.step { position: relative; }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(74, 168, 255, .6);
  font-family: var(--wide); font-size: .72rem; color: #fff;
  box-shadow: 0 0 20px rgba(47, 75, 255, .35); margin-bottom: 20px;
}
.step h3 { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .92rem; max-width: 260px; margin: 0 auto; }

/* ---------- Pourquoi maintenant ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.reason {
  position: relative; padding: 30px 26px 28px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(47, 75, 255, .08), rgba(255, 255, 255, .01) 60%);
  overflow: hidden;
}
.reason::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  box-shadow: 0 0 12px var(--brand-2);
}
.reason h3 { font-weight: 600; font-size: 1.08rem; margin-bottom: 10px; }
.reason p { color: var(--ink-2); font-size: .92rem; }

/* ---------- Capacités ---------- */
.caps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 820px; margin: 0 auto 88px; }
.caps li {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(74, 168, 255, .25); background: rgba(47, 75, 255, .07);
  font-size: .88rem; color: var(--ink);
}
.caps li::before { content: "◆"; color: var(--brand-2); font-size: .6rem; margin-right: 10px; vertical-align: 2px; }

/* ---------- Pourquoi nous ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; text-align: left; max-width: 880px; margin: 0 auto; }
.why-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-n { font-family: var(--wide); font-size: .8rem; color: var(--brand-2); padding-top: 4px; text-shadow: 0 0 12px rgba(74, 168, 255, .6); }
.why-item h3 { font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-2); font-size: .92rem; }

/* ---------- Réalisations ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.product {
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s, box-shadow .25s;
}
.product:hover { border-color: rgba(74, 168, 255, .4); box-shadow: 0 0 40px rgba(47, 75, 255, .15); }
.sector { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.product h3 { font-family: var(--wide); font-weight: 400; font-size: 1rem; margin: 12px 0 10px; }
.product p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact h2 { margin-bottom: 40px; }
.contact .btn { text-transform: none; letter-spacing: .06em; font-size: .95rem; }

.footer { text-align: center; padding: 32px 16px; font-size: .75rem; color: var(--ink-3); letter-spacing: .1em; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* --- Fond étoilé qui scintille --- */
.stars, .stars::after {
  position: absolute; inset: 0; pointer-events: none;
  background-repeat: repeat;
}
.stars {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 260px 200px, rgba(160,200,255,.8), transparent),
    radial-gradient(1px 1px at 90px 250px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 310px 40px, rgba(255,255,255,.6), transparent);
  background-size: 340px 300px;
  animation: fadeIn 2s ease-out both, twinkle 5s ease-in-out 2s infinite alternate;
}
.stars::after {
  content: "";
  background-image:
    radial-gradient(1px 1px at 60px 150px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 200px 20px, rgba(140,190,255,.7), transparent),
    radial-gradient(1px 1px at 330px 260px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 180px 180px, rgba(255,255,255,.35), transparent);
  background-size: 420px 340px;
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } }

/* --- Arcs : entrée puis respiration lente --- */
.arc-tl { animation: arcInTl 2s var(--ease) both, breathe 6s ease-in-out 2s infinite alternate; }
.arc-br { animation: arcInBr 2s var(--ease) .2s both, breathe 6s ease-in-out 2.2s infinite alternate-reverse; }
@keyframes arcInTl { from { opacity: 0; transform: translate(-120px, -120px); } }
@keyframes arcInBr { from { opacity: 0; transform: translate(120px, 120px); } }
@keyframes breathe { from { filter: brightness(.85); } to { filter: brightness(1.35); } }

/* --- Intro du logo --- */
.logo-word { animation: logoIn 1.4s var(--ease) .2s both; }
@keyframes logoIn {
  from { opacity: 0; filter: blur(14px); letter-spacing: .25em; transform: translateY(12px); }
}
.logo-a { animation: aIn 1s var(--ease) .8s both, aGlow 4s ease-in-out 2s infinite alternate; }
@keyframes aIn { from { opacity: 0; transform: translateY(-28px); } }
@keyframes aGlow {
  from { filter: drop-shadow(0 0 8px rgba(74, 168, 255, .3)); }
  to   { filter: drop-shadow(0 0 22px rgba(74, 168, 255, .8)); }
}
.logo-sub { animation: subIn 1.6s var(--ease) 1s both; }
@keyframes subIn { from { opacity: 0; letter-spacing: 1.3em; margin-right: -1.3em; } }

/* --- Trait lumineux : se déploie puis reflet qui passe --- */
.glow-line {
  background-size: 250% 100%;
  animation: lineIn 1s var(--ease) 1.5s both, shimmer 3.5s linear 2.5s infinite;
}
@keyframes lineIn { from { transform: scaleX(0); opacity: 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* --- Texte, bouton, nav --- */
.tagline { animation: up 1s var(--ease) 1.8s both; }
.hero .btn { animation: up 1s var(--ease) 2.05s both; }
.nav { animation: fadeIn 1s ease-out 2.3s both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* --- Indicateur de scroll --- */
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; z-index: 2;
  width: 1px; height: 52px; margin-left: -.5px; overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.25));
  animation: fadeIn 1s ease-out 2.6s both;
}
.scroll-cue span {
  position: absolute; left: 0; top: -16px; width: 1px; height: 16px;
  background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }

/* --- Apparition au scroll --- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
.product.reveal, .btn.reveal {
  transition:
    opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s),
    border-color .25s, box-shadow .25s, background .25s;
}

/* --- Lumière qui suit la souris sur les cartes --- */
.product { position: relative; overflow: hidden; }
.product::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(74, 168, 255, .16), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.product:hover::before { opacity: 1; }
.product > * { position: relative; }

/* --- Bouton : reflet au survol --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .arc { width: 560px; height: 560px; }
  .arc-tl { top: -430px; left: -340px; }
  .arc-br { bottom: -450px; right: -360px; }
}
/* --- Mobile : même mise en scène, recadrée pour un écran de téléphone --- */
@media (max-width: 560px) {
  .hero { padding: 96px 16px 110px; }
  .nav { top: 22px; right: 0; left: 0; justify-content: center; gap: 20px; font-size: .62rem; letter-spacing: .16em; }

  /* Arcs plus petits pour garder l'effet "planètes" dans les coins */
  .arc { width: 380px; height: 380px; }
  .arc-tl { top: -270px; left: -230px; }
  .arc-br { bottom: -270px; right: -230px; }
  @keyframes arcInTl { from { opacity: 0; transform: translate(-60px, -60px); } }
  @keyframes arcInBr { from { opacity: 0; transform: translate(60px, 60px); } }

  .logo-word { font-size: 17vw; }
  .logo-sub { font-size: 4.4vw; letter-spacing: .5em; margin-right: -.5em; }
  @keyframes subIn { from { opacity: 0; letter-spacing: 1em; margin-right: -1em; } }
  .glow-line { width: 90px; margin: 32px 0 26px; }
  .tagline { font-size: .72rem; letter-spacing: .22em; margin-bottom: 40px; }
  .hero .btn { padding: 14px 34px; }
  .scroll-cue { bottom: 24px; height: 44px; }

  .section { padding: 88px 16px; }
  h2 { margin-bottom: 44px; }
  .intro { margin: -20px auto 48px; font-size: .98rem; }
  .nav-opt { display: none; }
  .reasons { grid-template-columns: 1fr; gap: 14px; }
  .caps { gap: 8px; margin-bottom: 64px; }
  .caps li { font-size: .8rem; padding: 8px 14px; }
  .why { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .products { grid-template-columns: 1fr; gap: 14px; }
  .product { padding: 24px 22px; }
  .contact .btn { font-size: .85rem; padding: 14px 22px; max-width: 100%; }
}

/* Écrans tactiles : pas de survol, un retour visuel au toucher à la place */
@media (hover: none) {
  .product::before { display: none; }
  .product:active { border-color: rgba(74, 168, 255, .4); box-shadow: 0 0 30px rgba(47, 75, 255, .2); }
  .btn:active { background: rgba(47, 75, 255, .2); box-shadow: 0 0 24px rgba(47, 75, 255, .45); }
}
