/* =========================================================
   MSP-AI — Feuille de style
   Thème : infrastructure IA / GPU computing / data center
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg-primary: #05070d;
  --bg-secondary: #0a0e18;
  --bg-anthracite: #10141f;
  --bg-card: #12172422;
  --border-color: #232a3a;
  --border-color-strong: #2f3a52;

  --text-primary: #f4f6fb;
  --text-secondary: #a7b0c3;
  --text-muted: #6b7488;

  --accent: #35c9ff;
  --accent-2: #6ea8ff;
  --accent-glow: rgba(53, 201, 255, 0.35);

  --radius-md: 12px;
  --radius-lg: 20px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

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

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  margin: 22px 0 14px;
  max-width: 640px;
}

.body-text {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 620px;
  margin-bottom: 16px;
}

.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-anthracite); }

.section-heading { max-width: 760px; }
.section-heading.centered { max-width: 780px; margin: 0 auto; text-align: center; }
.section-heading.centered .body-text { margin-left: auto; margin-right: auto; }

.centered-title { text-align: center; max-width: 700px; margin: 0 auto 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101c;
  box-shadow: 0 0 0 rgba(53,201,255,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large { padding: 17px 36px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.88);
  border-bottom-color: var(--border-color);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px var(--accent-glow);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 3px;
  background: var(--bg-primary);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.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); }

/* ---------- Background FX ---------- */
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 100%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-1 { width: 560px; height: 560px; top: -160px; right: -120px; background: var(--accent); }
.glow-2 { width: 420px; height: 420px; bottom: -140px; left: -100px; background: var(--accent-2); opacity: 0.22; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 100px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 6px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Hero server-rack graphic */
.hero-visual { position: relative; display: flex; justify-content: center; }
.server-rack {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #0d1220, #090c15);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 60px -20px var(--accent-glow);
}
.rack-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}
.rack-led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2c3548;
}
.led-blink {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
.rack-bars { display: flex; gap: 4px; margin-left: auto; }
.rack-bars i {
  width: 3px; height: 16px;
  background: var(--border-color-strong);
  border-radius: 2px;
}
.rack-bars i:nth-child(2) { height: 10px; }
.rack-bars i:nth-child(4) { height: 12px; background: var(--accent); opacity: 0.7; }
.rack-bars i:nth-child(5) { height: 8px; }

.rack-gpu { justify-content: center; padding: 18px; margin-bottom: 0; }
.gpu-chip { width: 84px; height: 84px; }
.gpu-chip rect { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.gpu-chip rect:nth-of-type(2) { fill: rgba(53,201,255,0.12); }
.gpu-pins line { stroke: var(--border-color-strong); stroke-width: 1.4; }

.orbit-lines {
  position: absolute;
  inset: -40px;
  border: 1px solid rgba(53,201,255,0.12);
  border-radius: 50%;
  z-index: -1;
  animation: spin 40s linear infinite;
}
.orbit-lines::before, .orbit-lines::after {
  content: "";
  position: absolute; inset: 34px;
  border: 1px solid rgba(110,168,255,0.1);
  border-radius: 50%;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Intro / Pillars ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  padding: 34px 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.pillar-card:hover {
  border-color: var(--border-color-strong);
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(53,201,255,0.06), transparent);
}
.pillar-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.pillar-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Feature grid (GPU computing) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.feature-card {
  padding: 30px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; }

.feature-icon {
  display: block;
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(53,201,255,0.1);
  border: 1px solid rgba(53,201,255,0.25);
  position: relative;
}
.feature-icon::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1.5px solid var(--accent);
}
.icon-ml::before { border-radius: 50%; }
.icon-gpu::before { border-radius: 3px; }
.icon-data::before { border-radius: 3px; border-style: dashed; }
.icon-auto::before { border-radius: 3px; transform: rotate(45deg); inset: 14px; }

/* ---------- Services / Dashboard ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-top: 24px;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.dashboard-frame {
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0d1220, #090c15);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  overflow: hidden;
}
.dashboard-topbar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}
.dashboard-topbar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-color-strong);
}
.dashboard-body { padding: 26px; }
.dashboard-stat { margin-bottom: 22px; }
.dashboard-stat p { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dashboard-stat strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); }
.dashboard-stat small { font-size: 1.1rem; }

.dashboard-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-bottom: 26px;
}
.dashboard-chart i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(53,201,255,0.15));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.dashboard-rows { display: flex; flex-direction: column; gap: 12px; }
.dashboard-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-ok { background: #35d68f; box-shadow: 0 0 6px #35d68f; }
.dot-warn { background: #f2b84b; box-shadow: 0 0 6px #f2b84b; }

/* ---------- Process list ---------- */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-list li {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}
.process-list li:last-child { border-bottom: 1px solid var(--border-color); }
.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  min-width: 64px;
}
.process-list p { color: var(--text-secondary); }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.why-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
  background: var(--bg-secondary);
}
.cta-bg { position: absolute; inset: 0; }
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-inner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 22px 0 40px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { color: var(--accent); font-size: 0.9rem; font-weight: 500; }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 22px 0;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .led-blink, .orbit-lines { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(5,7,13,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 32px 28px;
  }
  .main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 20px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 20px; }

  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .pillars { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 84px 0; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .process-list li { gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
