*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #05040a;
  --bg-soft: #0b0914;
  --fg: #f7f7ff;
  --muted: #a9a6c4;
  --accent: #f4b400; /* jaune */
  --accent-soft: rgba(244, 180, 0, 0.12);
  --primary: #7c3aed; /* pourpre violet tech */
  --primary-soft: rgba(124, 58, 237, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151226 0, #05040a 40%, #020107 100%);
  color: var(--fg);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 4, 10, 0.96), rgba(5, 4, 10, 0.8), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.15s ease-out;
}

.nav-links a:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.nav-links a.active {
  color: #05040a;
  background: linear-gradient(135deg, var(--accent), #ffe37f);
  border-color: transparent;
  font-weight: 600;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 4, 10, 0.8);
  justify-content: center;
  align-items: center;
  gap: 0.18rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--fg);
}

/* Hero */

.hero {
  padding: 3.2rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 1rem;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--accent), #ffe37f);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.hero-badges span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.18), rgba(14, 11, 31, 0.9));
  color: var(--muted);
}

/* Hero visual */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.card-metric {
  position: relative;
  z-index: 2;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.18), rgba(16, 11, 40, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  max-width: 260px;
}

.card-metric h2 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 0.03em;
}

.card-metric h2 span {
  font-size: 1.4rem;
}

.card-metric p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.grid-illustration {
  position: absolute;
  inset: auto 0 0 auto;
  width: 230px;
  height: 230px;
  border-radius: 36px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.3), transparent 65%),
              linear-gradient(135deg, rgba(244, 180, 0, 0.1), rgba(10, 10, 40, 0.9));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  opacity: 0.9;
}

.grid-node {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.4), rgba(7, 4, 25, 0.95));
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  animation: pulse 4s ease-in-out infinite;
}

.grid-node:nth-child(2),
.grid-node:nth-child(5) {
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.6), rgba(4, 4, 20, 0.95));
}

.grid-node:nth-child(3),
.grid-node:nth-child(6) {
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.35), rgba(124, 58, 237, 0.5));
}

.grid-node:nth-child(2) { animation-delay: 0.5s; }
.grid-node:nth-child(3) { animation-delay: 1s; }
.grid-node:nth-child(4) { animation-delay: 1.5s; }
.grid-node:nth-child(5) { animation-delay: 2s; }
.grid-node:nth-child(6) { animation-delay: 2.5s; }

@keyframes pulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-6px) scale(1.02); opacity: 1; }
}

/* Sections */

.section {
  padding: 2.8rem 0;
}

.bg-soft {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.13), rgba(5, 4, 10, 0.96));
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.section-intro {
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 36rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(7, 6, 20, 0.96), rgba(22, 15, 60, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-list {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.card-list li + li {
  margin-top: 0.2rem;
}

/* Split layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Advantages */

.advantages {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.advantages li + li {
  margin-top: 0.4rem;
}

.advantages strong {
  color: var(--fg);
}

/* Highlight box */

.highlight-box {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.18), rgba(10, 7, 30, 0.98));
  border: 1px solid rgba(244, 180, 0, 0.4);
  box-shadow: var(--shadow-soft);
  font-size: 0.92rem;
}

.highlight-box p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.highlight-box .btn {
  margin-top: 0.4rem;
}

/* CTA banner */

.cta-banner {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(5, 4, 10, 0.96));
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  color: #05040a;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn-secondary {
  background: rgba(5, 4, 10, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--fg);
}

.btn-secondary:hover {
  border-color: rgba(244, 180, 0, 0.7);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.12), rgba(5, 4, 12, 0.96));
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: rgba(244, 180, 0, 0.7);
  background: radial-gradient(circle at top left, rgba(244, 180, 0, 0.08), rgba(5, 4, 12, 0.96));
}

.full-width {
  width: 100%;
}

/* Page hero */

.page-hero {
  padding: 2.3rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

/* Contact form */

.contact-form {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(7, 6, 20, 0.96), rgba(22, 15, 60, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.form-row label {
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(3, 3, 10, 0.85);
  padding: 0.55rem 0.7rem;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(244, 180, 0, 0.8);
  box-shadow: 0 0 0 1px rgba(244, 180, 0, 0.4);
}

.form-consent {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-consent input {
  width: auto;
  margin-right: 0.4rem;
}

/* Legal content */

.legal-content h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.legal-content h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.12), rgba(5, 4, 10, 1));
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.footer-inner a:hover {
  border-color: rgba(244, 180, 0, 0.6);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-illustration {
    position: absolute;
    opacity: 0.4;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 3.4rem;
    right: 0.7rem;
    padding: 0.9rem;
    flex-direction: column;
    background: radial-gradient(circle at top, #151226, #05040a);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.2rem;
  }

  .page-hero {
    padding-top: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, 100%);
  }

  .hero-text h1 {
    font-size: 1.85rem;
  }

  .cta-banner h2 {
    font-size: 1.1rem;
  }
}
