/* CadreIA — feuille de style unique. Light mode, police système, aucune ressource externe. */

:root {
  --white: #ffffff;
  --tint: #f8fafc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #1e3a8a;
  --brand-hover: #1e40af;
  --brand-press: #172554;
  --focus: #1d4ed8;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --brand-tint: #dbeafe;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --gutter: 24px;
  --section: clamp(80px, 10vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--line-strong) var(--white);
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .faq summary::before,
  .faq summary::after {
    transition: none;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

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

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

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 16px rgb(15 23 42 / 0.15);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), color 150ms var(--ease);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.12);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-primary:active {
  background: var(--brand-press);
}

.btn-small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn-large {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.92);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgb(255 255 255 / 0.78);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
  }
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 6px;
  background: var(--brand);
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brand-check {
  stroke-width: 2.2;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(64px, 11vw, 136px) clamp(72px, 10vw, 128px);
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 40rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
}

.hero .btn {
  margin-top: 40px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section-compact {
  padding-block: clamp(56px, 7vw, 88px);
}

.section-tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section h2,
.closing h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-title {
  max-width: 22ch;
}

/* Titre à gauche, contenu à droite sur grand écran */
.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
  }
  .split > h2 {
    position: sticky;
    top: 112px;
  }
}

/* ---------- Le problème : lignes de registre ---------- */

.register {
  max-width: 46rem;
  border-top: 1px solid var(--line-strong);
}

.register p {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- La solution : étapes ---------- */

.steps {
  display: grid;
  gap: 48px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 40px;
    row-gap: 0;
  }
  .steps li {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}

.steps li {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--brand);
}

.step-label {
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  text-wrap: balance;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.steps h3 + p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Listes à coches (preuve, prix) ---------- */

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 36px;
  text-wrap: pretty;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--ok-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent);
  /* Coche dessinée en SVG inline (aucune ressource externe) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.proof {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.proof li {
  font-variant-numeric: tabular-nums;
  padding-block: 22px;
  padding-left: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.proof li::before {
  top: calc(22px + 0.15em);
}

@media (min-width: 960px) {
  .proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }
  .proof li {
    padding-block: 0 4px;
    padding-right: 32px;
    border-bottom: 0;
  }
  .proof li::before {
    top: 0.15em;
  }
  .proof li + li {
    padding-left: 72px;
    border-left: 1px solid var(--line);
  }
  .proof li + li::before {
    left: 32px;
  }
}

/* ---------- Le prix ---------- */

.price-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 18px 40px -16px rgb(15 23 42 / 0.16);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
}

.price-amount {
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-unit {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.price-alt {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.price-list-title {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}

.price-card .checklist {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 36px;
}

.price-card .checklist li {
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- FAQ (details / summary natifs) ---------- */

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color 150ms var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand);
}

/* Signe + qui pivote en × à l'ouverture */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--muted);
  transition: transform 250ms var(--ease);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq details p {
  max-width: 65ch;
  padding: 0 48px 28px 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Dernier appel ---------- */

.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 6vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--tint);
}

.closing h2 {
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 960px) {
  .closing {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }
  .closing .btn {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .closing .btn {
    width: 100%;
  }
}

/* ---------- Liste d'attente ---------- */

.waitlist {
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--tint);
  text-align: center;
}

.waitlist p {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
}

.waitlist:target {
  background: var(--white);
  box-shadow: inset 0 2px 0 var(--brand);
}

.waitlist:target p {
  color: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.brand-footer {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 420px) {
  :root {
    --gutter: 20px;
  }
  .header-inner {
    height: 60px;
  }
  .btn-small {
    min-height: 44px;
  }
  .hero .btn {
    width: 100%;
  }
}
