/* Layout : une colonne alignée à gauche. Hero (accroche à gauche, grande photo détourée en fond à droite), la courbe de croissance sous le texte, puis 3 cartes de routage (Coaching en grand, Newsletter et OpenClassrooms côte à côte). */
:root {
  /* Couleurs : design system Mathieu Nebra (thème sombre unique) */
  --ground: #231d3b;
  --ground-deep: #1f1a34;
  --ground-raised: #302456;
  --glow: #684cba;
  --glow-soft: #44366f;
  --lavender: #ba99fd;
  --on-lavender: #231d3b;
  --ink: #ffffff;
  --ink-muted: #cbb9eb;
  /* Typo */
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Espacement, rayons, trait */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 999px;
  --glow-dot: 0 0 24px rgba(186, 153, 253, 0.6);
  --stroke-line: 3px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(60vw 520px at 0% 0%, var(--glow) 0%, transparent 70%),
    radial-gradient(50vw 480px at 100% 100%, var(--glow-soft) 0%, transparent 70%),
    linear-gradient(160deg, var(--ground) 0%, var(--ground-deep) 100%);
  background-color: var(--ground);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: var(--stroke-line) solid var(--lavender); outline-offset: 4px; border-radius: var(--radius-sm); }
img { max-width: 100%; display: block; }

.page {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 72px);
}

/* Barre du haut */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.language-switch { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.language-switch:hover { color: var(--ink); }
.top-link { font-size: 16px; font-weight: 600; color: var(--lavender); }
.top-link:hover { color: var(--ink); }

/* Hero */
.stage { position: relative; }
.stage::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -6%; bottom: 8%; width: min(64%, 680px); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow) 0%, transparent 100%);
  opacity: 0.55;
}
.hero-photo {
  position: absolute; z-index: 1; right: -4%; bottom: 0;
  height: 112%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%), linear-gradient(to right, transparent 0%, #000 24%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 96%), linear-gradient(to right, transparent 0%, #000 24%, #000 84%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
.hero { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(340px, 40vw, 460px); }
.hero-text { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; max-width: min(56%, 600px); }
.eyebrow {
  margin: 0;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lavender);
}
.headline {
  text-wrap: balance;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.headline > span { display: block; }
.headline .l2 { display: inline; }
.headline .l2 { color: var(--lavender); }
.glue { white-space: nowrap; }
.pill {
  display: inline-block;
  background: var(--lavender);
  color: var(--on-lavender);
  border-radius: var(--radius-md);
  padding: 0 0.22em;
  line-height: 1.15;
}
.lede > span { display: block; text-wrap: balance; }
.lede { margin: 0; max-width: 21em; font-size: clamp(17px, 1.7vw, 20px); color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.socials a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); padding-block: 6px; }
.socials a:hover { color: var(--lavender); }
.socials svg { width: 22px; height: 22px; flex: none; }
.socials .count { color: var(--ink-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.ico { fill: none; stroke: var(--lavender); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Courbe de croissance : à plat puis ça décolle. Déborde à gauche, se termine par le point. */
.curve {
  position: relative; z-index: 2;
  height: clamp(48px, 8vw, 96px);
  margin-left: calc((100% - 100vw) / 2);
  margin-top: calc(-1 * clamp(8px, 3vw, 32px));
}
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: draw 1.4s ease-out both; }
.curve path { fill: none; stroke: var(--lavender); stroke-width: var(--stroke-line); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.curve .dot {
  position: absolute; left: 99%; top: 12%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
  background: var(--lavender);
  box-shadow: var(--glow-dot);
  animation: pop 0.4s ease-out 1.2s both;
}
@keyframes draw { from { clip-path: inset(-20px 100% -20px 0); } to { clip-path: inset(-20px 0 -20px 0); } }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }

/* Cartes de routage */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-md);
  background: var(--ground-raised);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--glow-dot); }
.card .word {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.card .sub { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.2; font-weight: 400; }
.card .desc { margin: var(--space-1) 0 0; max-width: 36em; font-size: 16px; color: var(--ink-muted); }
.card .go {
  margin-top: auto;
  padding-top: var(--space-2);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--lavender);
}
.card .go svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.card:hover .go svg { transform: translateX(4px); }

.card.main {
  grid-column: 1 / -1;
  background:
    radial-gradient(70% 140% at 0% 0%, var(--glow) 0%, transparent 65%),
    var(--ground-raised);
}
.card.main .word { font-size: clamp(52px, 11vw, 120px); }
.card.main .sub { font-size: clamp(20px, 3vw, 34px); }
.card.main .desc { font-size: 18px; color: var(--ink); }
.card.main .go {
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--lavender);
  color: var(--on-lavender);
}
.card.main .go .ico { stroke: var(--on-lavender); }

.posts-label { margin: var(--space-2) 0 0; font-size: 14px; color: var(--ink-muted); }
.posts { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.posts a { display: block; padding-block: 6px; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.posts a:hover { color: var(--lavender); }
.go.stretch::after { content: ""; position: absolute; inset: 0; }

/* Pied de page */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); font-size: 14px; color: var(--ink-muted); }
.foot p { margin: 0; }


@media (max-width: 720px) {
  .stage::before { right: -20%; top: -4%; bottom: auto; width: 90%; }
  .hero-photo { position: relative; display: block; right: auto; height: clamp(260px, 78vw, 360px); margin: -8px -8% -44px auto; }
  .hero { min-height: 0; }
  .hero-text { max-width: none; }
  .curve { margin-top: 0; }
  .routes { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .curve svg, .curve .dot { animation: none; }
  .card, .card .go svg { transition: none; }
  .card:hover { transform: none; }
}
