/* ─────────────────────────────────────────────────────────────
   Johan Blueprint Academy — style commun (accueil, tutoriels, guides)
   Même identité que formation.html : fond nuit, dégradé bleu → violet,
   Space Grotesk pour les titres, Inter pour le texte, grille « blueprint ».
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --surface: #10131b;
  --surface-2: #151925;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --faint: #6b7385;
  --blue: #3d8bff;
  --violet: #7c5cff;
  --sky: #9cc2ff;
  --grad: linear-gradient(135deg, #3d8bff 0%, #7c5cff 100%);
  --green: #22c55e;
  --gold: #fbbf24;
  --red: #ff5a5f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  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(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video,
iframe {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgba(124, 92, 255, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}
.wrap-narrow {
  width: min(780px, 100% - 32px);
  margin-inline: auto;
}
section {
  padding: 92px 0;
  position: relative;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

/* ── Typo utilitaires ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head {
  max-width: 740px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 14px 0 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(92, 116, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(92, 116, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-lg {
  padding: 18px 32px;
  font-size: 17px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s ease;
}
.btn:hover svg.go {
  transform: translateX(3px);
}
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-note {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled,
.nav.solid {
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.nav-logo img {
  height: 34px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .btn {
  padding: 10px 18px;
  font-size: 15px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .nav-login {
    display: none;
  }
  .nav.open {
    background: rgba(7, 8, 12, 0.97);
    border-color: var(--line);
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 16px 22px;
    background: rgba(7, 8, 12, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a {
    display: block;
    padding: 12px 4px;
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .nav .btn-primary {
    padding: 10px 14px;
    font-size: 14px;
  }
  .nav-logo span {
    display: none;
  }
}

/* ── Héros (accueil) ── */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.bp-grid {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bp-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(61, 139, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 139, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.bp-grid::after {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -220px;
  z-index: -1;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.26), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  margin: 20px 0 22px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 580px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}
.hero .btn-row {
  margin: 32px 0 18px;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  color: var(--muted);
}
.rating strong {
  color: var(--text);
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}
.stars svg {
  width: 15px;
  height: 15px;
}
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(430px, 100%);
}
.hero-visual .halo {
  position: absolute;
  inset: 12% 6% 0;
  border-radius: 32px;
  background: var(--grad);
  opacity: 0.9;
  box-shadow: 0 40px 120px -20px rgba(92, 116, 255, 0.7);
}
.hero-visual .halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-visual img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.hero-node {
  position: absolute;
  z-index: 2;
  min-width: 168px;
  border-radius: 10px;
  background: rgba(14, 17, 25, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  overflow: hidden;
}
.hero-node b {
  display: block;
  padding: 6px 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, rgba(61, 139, 255, 0.85), rgba(124, 92, 255, 0.6));
}
.hero-node span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: #c3cad8;
}
.hero-node span::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.hero-node.n1 {
  left: -8%;
  top: 22%;
}
.hero-node.n2 {
  right: -6%;
  bottom: 14%;
}
.hero-node.n2 b {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.8), rgba(61, 139, 255, 0.55));
}
@media (max-width: 900px) {
  .hero {
    padding-top: 118px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    width: min(360px, 88%);
  }
  .hero-node.n1 {
    left: -4%;
  }
  .hero-node.n2 {
    right: -4%;
  }
}

/* ── Bandeau chiffres ── */
.stats {
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: 26px 20px;
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ── Cartes ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-3 > *,
.grid-2 > * {
  min-width: 0;
}
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.45), 0 24px 50px -24px rgba(92, 116, 255, 0.55);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
a.card:hover .card-media img {
  transform: scale(1.04);
}
.card-media .duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}
.card h3 {
  font-size: 19px;
  line-height: 1.25;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.card-foot {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-foot svg {
  width: 16px;
  height: 16px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(61, 139, 255, 0.12);
  color: var(--sky);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ── Parcours (étapes reliées comme des nœuds) ── */
.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: etape;
}
.path > * {
  min-width: 0;
}
.path-step {
  position: relative;
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.path-step::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--sky);
}
.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -19px;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
}
.path-step h3 {
  font-size: 18px;
}
.path-step p {
  color: var(--muted);
  font-size: 15px;
}
.path-step .card-foot {
  font-size: 13.5px;
}
@media (max-width: 960px) {
  .path {
    grid-template-columns: repeat(2, 1fr);
  }
  .path-step::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .path {
    grid-template-columns: 1fr;
  }
}

/* ── Bloc formation ── */
.offer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 26px;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35), 0 40px 90px -40px rgba(92, 116, 255, 0.55);
}
.offer > * {
  min-width: 0;
}
.offer h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin: 12px 0 14px;
}
.offer p {
  color: var(--muted);
}
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 6px;
  flex-wrap: wrap;
}
.offer-price b {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
}
.offer-price span {
  color: var(--muted);
  font-size: 15px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: var(--green);
  margin-top: 2px;
}
.check svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 860px) {
  .offer {
    grid-template-columns: 1fr;
  }
}

/* ── Johan ── */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about > * {
  min-width: 0;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.about h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 14px 0 18px;
}
.about p {
  color: var(--muted);
}
.about p + p {
  margin-top: 14px;
}
.about p strong {
  color: var(--text);
}
.about-facts {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.about-facts b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
}
.about-facts span {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo {
    max-width: 340px;
  }
}

/* ── Avis ── */
.testimonial {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.testimonial blockquote strong {
  color: var(--text);
  font-weight: 600;
}
.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-weight: 700;
}
.author b {
  display: block;
  font-size: 15px;
}
.author span {
  color: var(--faint);
  font-size: 13.5px;
}

/* ── FAQ ── */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  font-family: var(--font);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.4;
}
.plus {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease;
}
.plus svg {
  width: 14px;
  height: 14px;
}
.faq-item[open] .plus {
  transform: rotate(45deg);
}
.faq-item .faq-a {
  padding: 0 22px 22px;
  color: var(--muted);
}
.faq-item .faq-a p + p {
  margin-top: 10px;
}

/* ── Appel final ── */
.final {
  text-align: center;
  padding: 100px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(124, 92, 255, 0.3), transparent 70%);
}
.final h2 {
  font-size: clamp(30px, 4.8vw, 52px);
  max-width: 820px;
  margin: 16px auto 20px;
}
.final p {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 32px;
}
.final .btn-row {
  justify-content: center;
}

/* ── Pied de page ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  color: var(--faint);
  font-size: 14px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid > * {
  min-width: 0;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h2 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.site-footer a {
  text-decoration: none;
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ═════════ Pages articles (tutoriels et guides) ═════════ */
.page-head {
  padding: 120px 0 34px;
  overflow: hidden;
  isolation: isolate;
}
.crumbs ol {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--faint);
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--faint);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}
.page-head h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 16px 0 18px;
  max-width: 900px;
}
.page-lead {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--muted);
  max-width: 760px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.meta-author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--surface-2);
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(61, 139, 255, 0.12);
  color: var(--sky);
  box-shadow: inset 0 0 0 1px rgba(61, 139, 255, 0.25);
}

/* Lecteur YouTube léger (la vidéo ne se charge qu'au clic) */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 80px -40px rgba(92, 116, 255, 0.55);
}
.yt img,
.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.yt button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0) 40%, rgba(7, 8, 12, 0.75));
  display: grid;
  place-items: center;
  color: #fff;
}
.yt .play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 0 0 10px rgba(124, 92, 255, 0.18), 0 20px 50px -10px rgba(92, 116, 255, 0.9);
  transition: transform 0.25s ease;
}
.yt button:hover .play {
  transform: scale(1.07);
}
.yt .play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.yt .yt-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.yt .yt-label span:last-child {
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.video-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--faint);
}
.video-caption a {
  color: var(--muted);
}

/* Mise en page article : texte + colonne latérale */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding: 44px 0 80px;
}
.article-layout > * {
  min-width: 0;
}
.aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}
@media (max-width: 1020px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .aside {
    position: static;
    order: -1;
    margin-bottom: 28px;
  }
  .aside .aside-cta {
    display: none;
  }
}
.toc {
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 18px 18px 14px;
}
.toc summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.toc[open] summary svg {
  transform: rotate(45deg);
}
.toc ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.4;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc);
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sky);
}
.toc a:hover,
.toc a.active {
  background: rgba(61, 139, 255, 0.1);
  color: var(--text);
}
.aside-cta {
  border-radius: 16px;
  padding: 22px;
  background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(124, 92, 255, 0.3), transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}
.aside-cta b {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  margin: 8px 0;
}
.aside-cta p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}
.aside-cta .btn {
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
}

/* Corps de texte */
.prose {
  font-size: 17.5px;
  color: #d6dbe6;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  font-size: clamp(25px, 3vw, 32px);
  color: var(--text);
  margin-top: 2.1em;
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: 21px;
  color: var(--text);
  margin-top: 1.7em;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose a {
  color: var(--sky);
  text-decoration: underline;
  text-decoration-color: rgba(156, 194, 255, 0.4);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--sky);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--sky);
}
.prose .check-list {
  padding-left: 0;
}
.prose .check-list li + li {
  margin-top: 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #e7ecf7;
}
kbd {
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  white-space: nowrap;
}
/* Nom de nœud Blueprint, dessiné comme dans l'éditeur */
.node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.84em;
  font-weight: 600;
  padding: 1px 8px 1px 6px;
  border-radius: 6px;
  background: #1a1f2c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 3px 0 0 var(--blue);
  color: #fff;
  white-space: nowrap;
}
.node.ev {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 3px 0 0 var(--red);
}
.node.fn {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 3px 0 0 var(--green);
}
.lead-box {
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lead-box h2 {
  font-family: var(--font);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 14px !important;
}
.lead-box .check-list {
  gap: 10px;
  font-size: 16px;
}
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.07);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
  font-size: 16px;
}
.callout svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--green);
  margin-top: 2px;
}
.callout.warn {
  background: rgba(251, 191, 36, 0.07);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}
.callout.warn svg {
  color: var(--gold);
}
.callout.info {
  background: rgba(61, 139, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(61, 139, 255, 0.28);
}
.callout.info svg {
  color: var(--sky);
}
.callout p + p {
  margin-top: 8px;
}
/* Étapes numérotées reliées par un « câble » d'exécution */
.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.steps > li {
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0 !important;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  background: var(--grad);
  color: #fff;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.steps > li:last-child::after {
  display: none;
}
.steps > li > strong:first-child {
  display: block;
  font-family: var(--display);
  font-size: 18.5px;
  margin-bottom: 4px;
  padding-top: 4px;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 560px;
}
.table-wrap th,
.table-wrap td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table-wrap thead th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
.table-wrap tbody th {
  color: var(--text);
  font-weight: 600;
}
.table-wrap tr:last-child th,
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.chapters {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 6px;
}
.chapters li {
  margin: 0 !important;
}
.chapters a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none !important;
  color: var(--text) !important;
}
.chapters a:hover {
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.45);
}
.chapters time {
  flex: none;
  min-width: 58px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
}
.inline-cta {
  margin: 2.2em 0 !important;
  padding: 26px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(124, 92, 255, 0.25), transparent 60%), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}
.inline-cta > * {
  min-width: 0;
}
.inline-cta b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}
.inline-cta p {
  color: var(--muted);
  font-size: 15.5px;
}
.prose .inline-cta a.btn {
  color: #fff;
  text-decoration: none;
}
@media (max-width: 640px) {
  .inline-cta {
    grid-template-columns: 1fr;
  }
}
.author-box {
  margin-top: 3em !important;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.author-box b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  color: var(--text);
}
.author-box p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}
.related {
  padding: 72px 0 90px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.related h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 12px 0 28px;
}

/* ── Hub des tutoriels ── */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.filters a {
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.filters a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

/* ── 404 ── */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 0 80px;
}
.notfound b {
  font-family: var(--display);
  font-size: clamp(80px, 16vw, 160px);
  line-height: 1;
}

/* ── Apparition douce (le contenu reste visible sans JavaScript) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Captures tirées des vidéos */
.prose .shot {
  margin: 28px 0 8px;
}
.shot a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  background: #0d0f15;
  cursor: zoom-in;
  position: relative;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shot a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  pointer-events: none;
}
.shot a:hover img {
  transform: scale(1.02);
}
.shot a:focus-visible {
  outline: 2px solid #3d8bff;
  outline-offset: 3px;
}
.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid #3d8bff;
}

/* Agrandissement d'une capture */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.zoom.open {
  display: flex;
}
.zoom figure {
  margin: 0;
  max-width: min(1440px, 100%);
}
.zoom img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  cursor: default;
}
.zoom figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.zoom-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.zoom-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
