/* =========================================================
   POSSINT — Feuille de style principale
   Charte : bleu nuit + dégradé violet / bleu (issu du logo)
   ========================================================= */

:root {
  /* Fonds */
  --bg:          #0d1122;
  --bg-2:        #10142a;
  --surface:     #161b33;
  --surface-2:   #1c2242;

  /* Texte */
  --text:        #eef0fb;
  --muted:       #99a2c4;
  --faint:       #6d7699;

  /* Accents (repris du logo) */
  --violet:      #a855f7;
  --blue:        #5b8bff;
  --deep-blue:   #0f2d5a;

  /* Bordures & voiles */
  --border:      rgba(240, 238, 255, 0.09);
  --border-lit:  rgba(168, 85, 247, 0.35);

  /* Dégradé signature */
  --grad:        linear-gradient(135deg, #a855f7 0%, #5b8bff 100%);
  --grad-soft:   linear-gradient(135deg, rgba(168,85,247,0.16), rgba(91,139,255,0.16));

  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1140px;
  --header-h:    72px;

  --shadow:      0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px -10px rgba(168, 85, 247, 0.45);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Fond ambiance : halos de couleur diffus */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% -5%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(55% 50% at 8% 8%, rgba(91, 139, 255, 0.15), transparent 55%),
    radial-gradient(80% 60% at 50% 110%, rgba(15, 45, 90, 0.35), transparent 60%),
    var(--bg);
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

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

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

section { scroll-margin-top: 96px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  padding: 6px 14px;
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  background: var(--grad-soft);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(168, 85, 247, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(168, 85, 247, 0.7);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--border-lit);
  background: rgba(168, 85, 247, 0.08);
}

/* ---------- En-tête / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 17, 34, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(70px, 9vw, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  margin: 22px 0 20px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.hero-tags span {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* Visuel : cube du logo qui flotte dans un halo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5), transparent 62%);
  filter: blur(20px);
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(360px, 78%);
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
@keyframes float {
  0%, 100% { transform: translateY(-10px); }
  50%      { transform: translateY(10px); }
}

/* ---------- Titres de section ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  margin: 16px 0 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-lit);
  box-shadow: var(--shadow-glow);
}
.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-lit);
  margin-bottom: 20px;
  color: var(--violet);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Approche (étapes) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step .num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Engagements ---------- */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.commit {
  display: flex;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.commit .check {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}
.commit h3 { font-size: 1.1rem; margin: 2px 0 8px; }
.commit p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Bandeau CTA final ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(46px, 7vw, 76px) clamp(28px, 6vw, 72px);
  text-align: center;
  background: linear-gradient(140deg, rgba(168,85,247,0.20), rgba(91,139,255,0.14)), var(--surface);
  border: 1px solid var(--border-lit);
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 16px; }
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 32px; }
.cta .hero-cta { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: 0.95rem; margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--violet); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--faint);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-tags { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .cards, .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .cards, .commit-grid, .steps { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
