/* ============================================================
   Liary Solution — Site vitrine
   Style : glassmorphism + dégradé violet → turquoise
   ============================================================ */

:root {
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --teal: #2dd4bf;
  --teal-light: #5eead4;
  --indigo: #6366f1;

  --bg: #0b0a1f;
  --bg-2: #110f2b;
  --text: #eef0fb;
  --text-soft: #b9bcd6;
  --text-dim: #8a8db0;

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.22);

  --grad: linear-gradient(120deg, var(--violet) 0%, var(--indigo) 45%, var(--teal) 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 58, 237, 0.18), rgba(45, 212, 191, 0.18));

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -20px rgba(8, 6, 30, 0.7);
  --container: 1160px;

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Sora', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Background decor ===== */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(45, 212, 191, 0.12), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.blob--1 { width: 440px; height: 440px; background: var(--violet); top: -120px; left: -80px; }
.blob--2 { width: 520px; height: 520px; background: var(--teal); bottom: -160px; right: -120px; animation-delay: -6s; }
.blob--3 { width: 360px; height: 360px; background: var(--indigo); top: 40%; left: 55%; animation-delay: -11s; opacity: 0.35; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ===== Glass utility ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 31, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, 0.8);
}
.brand__accent { color: var(--teal-light); }

/* Logo vectoriel (SVG inline) — net à toute taille, lisible sur fond sombre. */
.brand__logo { height: 38px; width: auto; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 500;
  font-size: 0.96rem;
}
.nav__links a { color: var(--text-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: var(--text) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(124, 58, 237, 0.85);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(45, 212, 191, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

/* ===== Typography helpers ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.grad-text {
  background: linear-gradient(100deg, var(--violet-light), var(--teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero ===== */
.hero { padding: clamp(64px, 12vw, 130px) 0 clamp(48px, 8vw, 90px); }
.hero__inner { max-width: 860px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(100deg, var(--violet-light), var(--teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section__head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section__head--left { text-align: left; margin-inline: 0; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 16px;
}
.section__sub { color: var(--text-soft); font-size: 1.08rem; }

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.card:hover { transform: translateY(-6px); border-color: var(--glass-hi); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--glass-border);
  color: var(--teal-light);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 18px; }
.card__list { display: flex; flex-direction: column; gap: 9px; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
}
.card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--grad-soft);
  border-color: var(--glass-hi);
}
.card--cta h3 { font-size: 1.4rem; }
.card--cta p { margin-bottom: 22px; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--glass-hi); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(100deg, var(--violet-light), var(--teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* ===== Expertise ===== */
.expertise {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.features { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 34px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features__dot {
  flex: none;
  margin-top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}
.features div { color: var(--text-soft); font-size: 1rem; }
.features strong { color: var(--text); font-weight: 600; }

/* ===== Code card visual ===== */
.code-card { border-radius: var(--radius-lg); overflow: hidden; }
.code-card__bar {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}
.code-card__bar span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.code-card__bar span:nth-child(1) { background: #ff5f57; }
.code-card__bar span:nth-child(2) { background: #febc2e; }
.code-card__bar span:nth-child(3) { background: #28c840; }
.code-card__body {
  padding: 24px 26px;
  font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.85;
  overflow-x: auto;
  color: var(--text-soft);
}
.c-key { color: #c4b5fd; }
.c-var { color: #5eead4; }
.c-fn  { color: #93c5fd; }
.c-prop{ color: #f0abfc; }
.c-str { color: #6ee7b7; }
.c-num { color: #fcd34d; }
.c-cmt { color: var(--text-dim); font-style: italic; }

/* ===== CTA band ===== */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--grad-soft);
  border-color: var(--glass-hi);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: var(--text-soft); }

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.contact__info li { display: flex; align-items: center; gap: 14px; color: var(--text-soft); }
.contact__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 1.1rem;
}
.contact__info a:hover { color: var(--teal-light); }

.contact__form {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.07);
}
.field select option { background: var(--bg-2); color: var(--text); }
.field input.invalid, .field textarea.invalid { border-color: #fb7185; }
.form__note { font-size: 0.92rem; min-height: 1.2em; }
.form__note.ok { color: var(--teal-light); }
.form__note.err { color: #fb7185; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 56px 0 30px;
  margin-top: 40px;
  background: rgba(8, 7, 22, 0.5);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer__brand { max-width: 340px; }
.footer__brand p { color: var(--text-dim); margin-top: 14px; font-size: 0.95rem; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: var(--text-soft); font-size: 0.95rem; }
.footer__nav a:hover { color: var(--teal-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .expertise, .contact { grid-template-columns: 1fr; }
  .expertise__visual { order: -1; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(11, 10, 31, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 8px; }
  .nav__cta { text-align: center; margin-top: 8px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
