/* ==========================================================================
   IT Partner — feuille de styles
   Vanilla CSS, aucune dépendance. Les couleurs et rayons se règlent
   dans :root ci-dessous.
   ========================================================================== */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-surface-2: #f4f4f6;
  --color-text: #0b0b12;
  --color-anthracite: #25262e;
  --color-muted: #5d5f6c;
  --color-border: #e6e6ec;
  --color-border-strong: #d6d6de;
  --color-primary: #5b5bf6;          /* indigo électrique, usage parcimonieux */
  --color-primary-hover: #4a4ae6;
  --color-primary-soft: rgba(91, 91, 246, 0.09);
  --color-dark: #0b0b12;
  --color-dark-2: #15151e;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 11, 18, 0.04);
  --shadow: 0 1px 2px rgba(11, 11, 18, 0.04), 0 8px 24px -12px rgba(11, 11, 18, 0.10);
  --shadow-lg: 0 2px 4px rgba(11, 11, 18, 0.04), 0 24px 48px -20px rgba(11, 11, 18, 0.18);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

.text-accent {
  color: var(--color-primary);
  background: linear-gradient(100deg, var(--color-primary) 10%, #8a6cff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transform: translateY(var(--btn-y));
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --btn-y: -1px; }
.btn:active { --btn-y: 0px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-text);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(11,11,18,.5);
}
.btn-primary:hover {
  background: var(--color-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px rgba(91,91,246,.7);
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--color-border-strong); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-text); background: var(--color-surface); }

.btn-arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(91,91,246,.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 250, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(250, 250, 250, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--color-border);
}

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

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; font-size: 15px; }
.logo-mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--color-text);
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 10px 1px rgba(91,91,246,.8);
}

.main-nav ul { display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  display: block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--color-muted);
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active { color: var(--color-text); }
.main-nav a:not(.btn):hover { background: rgba(11,11,18,.04); }
.nav-cta-mobile { display: none; }

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

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Sections génériques ---------- */
.section { padding-block: 120px; position: relative; }
.section-tight { padding-block: 88px; }
.section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); }
.section-head .h2-sm { font-size: clamp(26px, 3vw, 34px); }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--color-muted); }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--color-muted); font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 88px) 0 112px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,11,18,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,18,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 25%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 720px;
  height: 520px;
  right: -120px;
  top: 40px;
  background: radial-gradient(closest-side, rgba(91,91,246,.16), rgba(138,108,255,.06) 55%, transparent);
  filter: blur(10px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-60px, 30px, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-anthracite);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
  flex: none;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero-lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--color-muted);
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--color-muted);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--color-primary-soft) center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.2 2.2L8.5 2.6' fill='none' stroke='%235b5bf6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Visuel hero */
.hero-visual { position: relative; min-width: 0; padding: 24px 0 92px; }
.console {
  position: relative;
  background: var(--color-dark);
  color: #c9cad6;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 40px 80px -30px rgba(11,11,18,.45), 0 0 0 1px rgba(11,11,18,.06);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(91,91,246,.55), transparent 35%, transparent 70%, rgba(138,108,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.console-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console-title { margin-left: 10px; color: #7d7f8f; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.console-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.console-code { padding: 18px 16px; border-right: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.code-line {
  white-space: nowrap;
  line-height: 1.95;
  opacity: 0;
  transform: translateX(-6px);
  animation: code-in .5s var(--ease) forwards;
}
.code-line:nth-child(1) { animation-delay: .35s; }
.code-line:nth-child(2) { animation-delay: .5s; }
.code-line:nth-child(3) { animation-delay: .65s; }
.code-line:nth-child(4) { animation-delay: .8s; }
.code-line:nth-child(5) { animation-delay: .95s; }
.code-line:nth-child(6) { animation-delay: 1.1s; }
@keyframes code-in { to { opacity: 1; transform: none; } }
.ln { display: inline-block; width: 22px; color: #4a4c5a; user-select: none; }
.tk-k { color: #a78bfa; }
.tk-v { color: #e6e7ef; }
.tk-f { color: #8b9cff; }
.tk-p { color: #c9cad6; }
.tk-s { color: #9fe0c8; }
.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--color-primary);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.console-side { padding: 18px 16px; }
.side-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6e7080; margin-bottom: 12px; }
.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #d4d5df;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
}
.st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-done { background: #3ecf8e; }
.st-run { background: var(--color-primary); box-shadow: 0 0 0 0 rgba(91,91,246,.6); animation: ping 2s infinite; }
.st-todo { background: transparent; border: 1.5px solid #555766; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(91,91,246,.6); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(91,91,246,0); }
}

.console-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.arch { display: flex; align-items: center; }
.arch .node {
  flex: none;
  padding: 5px 10px;
  font-size: 11px;
  color: #b9bac7;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(255,255,255,.03);
}
.arch .node-accent { color: #fff; border-color: rgba(91,91,246,.6); background: rgba(91,91,246,.18); box-shadow: 0 0 18px -4px rgba(91,91,246,.7); }
.arch .wire {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 4px, transparent 4px 8px);
  background-size: 16px 1px;
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 16px 0; } }

.float-card {
  position: absolute;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: float 7s ease-in-out infinite;
}
.float-progress { left: -28px; bottom: 0; width: 190px; padding: 14px 16px; }
.fc-label { color: var(--color-muted); font-size: 12px; }
.fc-value { margin-top: 2px; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; }
.fc-value span { color: var(--color-muted); font-weight: 500; font-size: 14px; }
.fc-bar { margin-top: 10px; height: 5px; border-radius: 99px; background: var(--color-surface-2); overflow: hidden; }
.fc-bar span {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), #8a6cff);
  transform-origin: left;
  animation: bar-in 1.4s .6s var(--ease) both;
}
@keyframes bar-in { from { transform: scaleX(0); } }
.float-status {
  right: -18px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-weight: 540;
  animation-delay: -3.5s;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62,207,142,.18); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Problème ---------- */
.card-problem { padding-top: 26px; }
.card-index {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.statement {
  margin: 64px auto 0;
  max-width: 820px;
  text-align: center;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 560;
  color: var(--color-muted);
}
.statement span { color: var(--color-text); }

/* ---------- Formules ---------- */
.section-pricing {
  background:
    radial-gradient(ellipse 60% 50% at 70% 55%, rgba(91,91,246,.06), transparent 70%),
    var(--color-bg);
}
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }

.plan-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(160deg, var(--color-primary), rgba(138,108,255,.45) 45%, var(--color-border) 80%) border-box;
  box-shadow: 0 24px 60px -28px rgba(91,91,246,.45), var(--shadow);
  padding-block: 40px 30px; /* carte centrale légèrement plus haute */
}
.plan-featured:hover { border-color: transparent; box-shadow: 0 30px 70px -28px rgba(91,91,246,.55), var(--shadow); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(91,91,246,.8);
}

.plan-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.plan-name { margin-top: 10px; font-size: 24px; letter-spacing: -0.03em; }
.plan-desc { margin-top: 8px; font-size: 14.5px; color: var(--color-muted); min-height: 4.5em; min-height: 3lh; }
.plan-cta { padding-inline: 10px; font-size: 14px; white-space: normal; text-align: center; }
@media (min-width: 1200px) { .plan-cta { white-space: nowrap; font-size: 13.5px; padding-inline: 8px; } }
.plan-pricing {
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.plan-price {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-price-quote { font-size: 24px; line-height: 1.375; } /* même hauteur de ligne que le prix chiffré (33 px) */
.plan-price-month { margin-top: 6px; font-size: 14px; color: var(--color-muted); }
.plan-pack {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  line-height: 1.5;
  color: var(--color-anthracite);
  min-height: 3em; /* 2 lignes : aligne les cartes */
}
.plan-featured .plan-price { color: var(--color-primary); }
.pricing-hours { margin-top: 28px; text-align: center; font-size: 15px; color: var(--color-muted); }
.pricing-hours + .pricing-note { margin-top: 20px; }
.plan-list { margin: 20px 0 22px; display: grid; gap: 10px; font-size: 14px; color: var(--color-anthracite); }
.plan-list li { position: relative; padding-left: 20px; line-height: 1.45; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  border: 1.5px solid var(--color-primary);
}
.plan-engagement {
  margin-top: auto;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  font-size: 12.5px;
}
.eng-label { color: var(--color-muted); }
.eng-value { font-weight: 600; text-align: right; }
.eng-meter { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.eng-meter i { height: 4px; border-radius: 99px; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.eng-meter[data-level="1"] i:nth-child(-n+1),
.eng-meter[data-level="2"] i:nth-child(-n+2),
.eng-meter[data-level="3"] i:nth-child(-n+3),
.eng-meter[data-level="4"] i:nth-child(-n+4),
.eng-meter[data-level="5"] i:nth-child(-n+5) { background: var(--color-text); border-color: var(--color-text); }
.plan-featured .eng-meter i:nth-child(-n+4) { background: var(--color-primary); border-color: var(--color-primary); }

.pricing-note {
  margin: 40px auto 0;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 18px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pricing-note p { font-size: 15px; color: var(--color-muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-top: 8px; }
.timeline-track {
  position: absolute;
  left: 16.667%;
  right: 16.667%;
  top: 17px;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-text), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease);
}
.timeline.is-active .timeline-progress { transform: scaleX(1); }

.timeline-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tl-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl-node {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border-strong);
  transition: border-color .4s, background-color .4s, box-shadow .4s;
}
.tl-node::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: background-color .4s;
}
.timeline.is-active .tl-node { border-color: var(--color-text); }
.timeline.is-active .tl-node::after { background: var(--color-text); }
.timeline.is-active .tl-step:last-child .tl-node { border-color: var(--color-primary); box-shadow: 0 0 0 6px var(--color-primary-soft); }
.timeline.is-active .tl-step:last-child .tl-node::after { background: var(--color-primary); }
.timeline.is-active .tl-step:nth-child(1) .tl-node { transition-delay: .1s; }
.timeline.is-active .tl-step:nth-child(2) .tl-node { transition-delay: .8s; }
.timeline.is-active .tl-step:nth-child(3) .tl-node { transition-delay: 1.6s; }

.tl-month { margin-top: 18px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.tl-tags {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-tags li {
  padding: 6px 8px;
  font-size: 13px;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.tl-tags li.is-new {
  color: var(--color-text);
  font-weight: 560;
  background: var(--color-primary-soft);
  border-color: rgba(91,91,246,.3);
}

/* ---------- Services ---------- */
.card-service .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: stroke .3s, background-color .3s, border-color .3s;
}
.card-service:hover .icon { stroke: var(--color-primary); background: var(--color-primary-soft); border-color: rgba(91,91,246,.25); }
.section-alt .card { background: var(--color-bg); }

/* ---------- Méthode ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: calc(25% - 32px);
  height: 1px;
  background: var(--color-border-strong);
}
.steps::after {
  background: linear-gradient(90deg, var(--color-primary), #8a6cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) .2s;
}
.steps.is-active::after { transform: scaleX(1); }
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 24px; font-size: 20px; }
.step p { margin-top: 10px; color: var(--color-muted); font-size: 15px; max-width: 260px; }

/* ---------- Pourquoi (sombre) ---------- */
.section-dark {
  background: var(--color-dark);
  color: #f2f2f6;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(91,91,246,.18), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark .section-lead { color: #9a9cab; }
.section-dark .eyebrow { color: #a5a5ff; }

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin-inline: auto;
}
.compare-col {
  height: 100%;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}
.compare-col h3 { font-size: 22px; }
.compare-col ul { margin-top: 26px; display: grid; gap: 14px; }
.compare-col li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.compare-hire { color: #b4b5c2; }
.compare-hire li::before {
  content: "";
  width: 16px;
  height: 1.5px;
  flex: none;
  background: #5c5e6c;
}
.compare-partner {
  background: linear-gradient(180deg, rgba(91,91,246,.14), rgba(91,91,246,.03));
  border-color: rgba(91,91,246,.35);
  box-shadow: 0 30px 80px -40px rgba(91,91,246,.6);
}
.compare-partner li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(91,91,246,.25) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.2 2.2L8.5 2.6' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.compare-vs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6e7080;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

/* ---------- Pour qui ---------- */
.card-audience h3 { display: flex; align-items: center; gap: 10px; }
.card-audience h3::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 2px;
  background: var(--color-primary);
}

/* ---------- Technologies ---------- */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}
.tech-list li {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-anthracite);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.tech-list li:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { font-size: inherit; letter-spacing: normal; }
.faq-q button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: inherit;
  font-size: 17px;
  font-weight: 560;
  text-align: left;
  color: var(--color-text);
  background: none;
  border: 0;
  cursor: pointer;
}
.faq-q button:hover { color: var(--color-primary); }
.faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: transform .35s var(--ease), border-color .3s, background-color .3s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: var(--color-text); border-color: var(--color-text); color: #fff; }
.faq-q button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; color: var(--color-muted); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .4s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }
/* Sans JavaScript : réponses visibles */
html:not(.js) .faq-a { grid-template-rows: 1fr; }
html:not(.js) .faq-a p { opacity: 1; transform: none; }

/* ---------- CTA final ---------- */
.cta-box {
  position: relative;
  overflow: hidden;
  padding: 96px 32px;
  text-align: center;
  color: #fff;
  background: var(--color-dark);
  border-radius: 28px;
  isolation: isolate;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 80%);
}
.cta-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -220px;
  width: 640px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91,91,246,.45), transparent);
  filter: blur(20px);
}
.cta-box h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.035em; }
.cta-box > p:not(.cta-note) { margin: 20px auto 36px; max-width: 540px; font-size: 18px; color: #a9abba; }
.cta-box .btn-primary { background: #fff; color: var(--color-text); }
.cta-box .btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(91,91,246,.35), 0 14px 36px -10px rgba(91,91,246,.8); }
.cta-note { margin-top: 18px; font-size: 13.5px; color: #7d7f8f; }
.cta-final { padding-top: 96px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; max-width: 340px; font-size: 14.5px; color: var(--color-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; }
.footer-links a { color: var(--color-muted); transition: color .2s; }
.footer-links a:hover { color: var(--color-text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--color-muted);
  position: relative;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--color-border);
}

/* ---------- Apparition au scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Les cartes gardent leur propre transition au survol une fois visibles */
.js .card.reveal.is-visible,
.js .plan.reveal.is-visible {
  transition: opacity .8s var(--ease) var(--reveal-delay, 0s), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablette large et en dessous */
@media (max-width: 1199px) {
  .pricing { gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 40px; }
  .float-progress { left: -8px; }
  .float-status { right: -4px; }
}

/* Navigation compacte */
@media (max-width: 1023px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 16px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) {
    padding: 16px 4px;
    font-size: 20px;
    font-weight: 560;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .main-nav a:not(.btn):hover { background: none; color: var(--color-primary); }
  .nav-cta-mobile { display: inline-flex; padding: 15px 20px; }
  .site-header.menu-is-open { background: var(--color-bg); border-bottom-color: var(--color-border); }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 620px; }

  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .compare { grid-template-columns: 1fr; max-width: 560px; }
  .compare-vs { margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 899px) {
  .pricing { grid-template-columns: 1fr; max-width: 520px; align-items: stretch; }
  .plan-featured { padding-block: 28px 22px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .timeline-track { display: none; }
  .timeline-steps { grid-template-columns: 1fr; gap: 0; }
  .tl-step {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 20px;
    align-items: start;
    text-align: left;
    padding-bottom: 28px;
  }
  .tl-step::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
  }
  .tl-step:last-child::before { display: none; }
  .tl-step .tl-node { grid-row: 1 / span 2; }
  .tl-month { margin-top: -2px; }
  .tl-tags { margin-top: 12px; flex-direction: row; flex-wrap: wrap; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 80px; }
  .section-tight { padding-block: 64px; }
  .section-head { margin-bottom: 40px; }
  .section-lead { font-size: 16.5px; }

  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
  .badge { font-size: 10.5px; letter-spacing: .05em; padding: 6px 12px 6px 10px; }
  .hero h1 { margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 16px 0 88px; }
  .console { font-size: 11.5px; }
  .console-body { grid-template-columns: 1fr; }
  .console-code { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .console-side .task-list li:nth-child(n+3) { display: none; }
  .float-progress { left: 8px; width: 170px; }
  .float-status { right: 8px; top: -2px; font-size: 12px; }

  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card-index { margin-bottom: 18px; }

  .plan-featured { margin-block: 8px; }
  .plan-desc { min-height: 0; }
  .plan-pack { min-height: 0; }
  .pricing-note { flex-direction: column; align-items: stretch; text-align: center; border-radius: var(--radius-lg); padding: 24px; }

  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .compare-col { padding: 28px 24px; }

  .faq-q button { font-size: 16px; padding: 20px 0; }
  .faq-a p { padding-right: 0; }

  .cta-box { padding: 64px 22px; border-radius: 22px; }
  .cta-box .btn { width: 100%; }
  .cta-final { padding-top: 40px; }

  .footer-inner { flex-direction: column; }
  .footer-bottom::before { left: 20px; right: 20px; }
}

@media (max-width: 380px) {
  .console-title { display: none; }
  .arch .node { padding: 4px 7px; font-size: 10.5px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .code-line { opacity: 1; transform: none; }
}

/* ---------- Utilitaires ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Réponses fermées de la FAQ : masquées aussi pour les lecteurs d'écran */
.js .faq-a-inner { visibility: hidden; transition: visibility 0s linear .4s; }
.js .faq-item.is-open .faq-a-inner { visibility: visible; transition: visibility 0s; }

/* Mentions légales (données de démonstration) */
.footer-legal p { margin: 0 0 4px; }
.footer-legal ul { list-style: none; margin: 4px 0 0; padding: 0; }
.footer-legal li { margin: 2px 0; }
