/* ═══════════════════════════════════════════════════════════════════
   ASCENDIA LABS — Design system
   Thème clair, accent indigo/violet aligné sur le logo.
   Utilisé par toutes les pages du site.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Fonds */
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-tint: #f4f2fe;

  /* Marque */
  --brand: #5b3fd9;
  --brand-deep: #4338ca;
  --brand-light: #8b5cf6;
  --brand-wash: #ede9fe;

  /* Texte */
  --txt: #15151d;
  --txt-2: #4b4b5a;
  --muted: #7b7b8c;

  /* Filets */
  --line: #e9e9f1;
  --line-2: #d8d8e6;

  --shadow-sm: 0 1px 2px rgba(21, 21, 29, .04), 0 1px 3px rgba(21, 21, 29, .05);
  --shadow-md: 0 4px 16px -6px rgba(21, 21, 29, .10), 0 2px 6px -2px rgba(21, 21, 29, .05);
  --shadow-brand: 0 12px 30px -14px rgba(91, 63, 217, .55);

  --r: 14px;
  --maxw: 1140px;

  --f-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f-sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ── Structure ──────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.sec {
  padding-block: clamp(60px, 8.5vw, 104px);
  border-top: 1px solid var(--line);
}
.sec-soft { background: var(--bg-soft); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.sec-num {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--brand);
  background: var(--brand-wash);
  border-radius: 5px;
  padding: 4px 9px;
  flex: none;
  line-height: 1.4;
}

/* ── Typographie ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  color: var(--txt);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.85rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.032em; }
h3 { font-size: 1.13rem; letter-spacing: -.018em; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
  color: var(--txt-2);
  line-height: 1.68;
  max-width: 64ch;
}

.sub { color: var(--txt-2); }
.muted { color: var(--muted); font-size: .89rem; }

.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .69rem;
  font-weight: 500;
  color: var(--brand);
  margin: 0 0 20px;
}

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

strong { font-weight: 700; color: var(--txt); }

/* ── Boutons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .94rem;
  letter-spacing: -.01em;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-light));
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: var(--shadow-brand);
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 18px 40px -16px rgba(91, 63, 217, .6);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--txt);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  color: var(--brand-deep);
  border-color: var(--brand-light);
  background: #fff;
  filter: none;
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 10px 18px; font-size: .87rem; }
.btn-block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ── En-tête ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--txt);
  flex: none;
}
.logo:hover { color: var(--txt); }
.logo svg { display: block; flex: none; }

.logo-text {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: .98rem;
  line-height: 1.1;
}
.logo-text span { color: var(--muted); font-weight: 700; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: .89rem;
  font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--brand); }

@media (max-width: 940px) { .nav-links { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(56px, 8vw, 100px) clamp(50px, 7vw, 84px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -180px;
  width: 780px;
  height: 660px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .16) 0%, rgba(67, 56, 202, .07) 42%, transparent 68%);
}

.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 26px; }
.hero .cta-row { margin-top: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand-light);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ── Grilles & cartes ───────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--txt-2); font-size: .94rem; }

.card-idx {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--brand);
  display: block;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ── Listes ─────────────────────────────────────────────────────── */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.list li {
  position: relative;
  padding-left: 24px;
  color: var(--txt-2);
  font-size: .94rem;
  line-height: 1.58;
}
.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-light));
  transform: rotate(45deg);
  border-radius: 1px;
}

.list-neg li::before {
  background: transparent;
  border: 1.5px solid var(--line-2);
}

/* ── Cadre « c'est / ce n'est pas » ─────────────────────────────── */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .frame { grid-template-columns: 1fr; } }

.frame > div { padding: 28px; }
.frame > div + div { border-left: 1px solid var(--line); background: var(--bg-soft); }
@media (max-width: 760px) {
  .frame > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

.frame h3 {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--brand);
}
.frame > div + div h3 { color: var(--muted); }

/* ── Tarifs ─────────────────────────────────────────────────────── */
.offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 880px) { .offers { grid-template-columns: 1fr; } }

.offer {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.offer-featured {
  border-color: var(--brand-light);
  box-shadow: 0 20px 50px -28px rgba(91, 63, 217, .45);
  position: relative;
}
.offer-featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-light));
}

.offer-tag {
  font-family: var(--f-mono);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.offer-featured .offer-tag { color: var(--brand); }

.offer h3 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -.03em; }

.offer-desc {
  color: var(--txt-2);
  font-size: .93rem;
  min-height: 3.2em;
  margin-bottom: 22px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.price b {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.price em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer .list { margin-bottom: 26px; }
.offer .btn { margin-top: auto; }

.offer-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}

/* ── Étapes / déroulé ───────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 200px;
  gap: 24px;
  padding: 24px 28px;
  align-items: start;
}
.step + .step { border-top: 1px solid var(--line); }

.step-n {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--brand);
  padding-top: 4px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--txt-2); font-size: .93rem; margin: 0; }
.step-when {
  font-family: var(--f-mono);
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 5px;
}

@media (max-width: 840px) {
  .step { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .step-when { grid-column: 2; padding-top: 8px; }
}

/* ── Encadré d'information ──────────────────────────────────────── */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-light);
  border-radius: 10px;
  background: var(--bg-tint);
  padding: 26px 30px;
}
.notice h3 { margin-bottom: 12px; }
.notice p { color: var(--txt-2); font-size: .94rem; max-width: 80ch; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -.02em;
  position: relative;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--brand);
}
.faq details > div {
  padding: 0 60px 24px 0;
  color: var(--txt-2);
  font-size: .94rem;
  max-width: 84ch;
}

/* ── CTA final ──────────────────────────────────────────────────── */
.final {
  text-align: center;
  padding-block: clamp(60px, 8.5vw, 104px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(680px 320px at 50% 0%, rgba(139, 92, 246, .10) 0%, transparent 70%),
    var(--bg-soft);
}
.final h2 { max-width: 20ch; margin-inline: auto; }
.final .lead { margin: 22px auto 34px; text-align: center; }
.final .cta-row { justify-content: center; }

/* ── Pied de page ───────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-block: 52px 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

.foot h4 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.foot-links { display: grid; gap: 9px; }
.foot-links a {
  color: var(--txt-2);
  text-decoration: none;
  font-size: .89rem;
  width: fit-content;
}
.foot-links a:hover { color: var(--brand); }

.foot address {
  font-style: normal;
  color: var(--txt-2);
  font-size: .89rem;
  line-height: 1.72;
}

.foot-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .79rem;
  color: var(--muted);
}

/* ── Pages légales ──────────────────────────────────────────────── */
.doc {
  padding-block: clamp(44px, 6vw, 76px) clamp(56px, 8vw, 92px);
  max-width: 810px;
}
.doc h1 { font-size: clamp(1.95rem, 4.2vw, 2.9rem); margin-bottom: 14px; }
.doc .updated {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-size: 1.28rem;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h3 { margin-top: 26px; margin-bottom: 8px; }
.doc p, .doc li { color: var(--txt-2); font-size: .95rem; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--brand-light); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: .91rem;
  background: #fff;
}
.doc th, .doc td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.doc th {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .71rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  white-space: nowrap;
}
.doc td { color: var(--txt-2); }

.doc blockquote {
  border-left: 3px solid var(--brand-light);
  background: var(--bg-tint);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 18px 0;
}
.doc blockquote p { margin: 0; font-size: .92rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 30px;
}
.back:hover { color: var(--brand); }

/* ── Marqueur de contenu à compléter ────────────────────────────── */
.todo {
  background: #fff4cc;
  border-bottom: 1px dashed #d19b00;
  color: #7a5a00;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: .84em;
}

/* ── Révélation au scroll ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-wash); color: var(--brand-deep); }
