/* =========================================================
   SAHATECH : feuille de style
   ========================================================= */
:root {
  --ink: #212245;          /* marine du logo */
  --ink-2: #0874B7;
  --blue: #3361E1;
  --blue-soft: #51A8DB;
  --paper: #F7F9FE;
  --paper-2: #EBF1FC;
  --line: rgba(33,34,69, .12);
  --muted: #212245;
  --ok: #1F9D6B;
  --gold: #02DBEE;
  --gold-deep: #087C93;
  --gold-soft: #9BEAF5;
  --serif: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.02em; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
em { font-style: normal; font-weight: inherit; color: var(--ink-2); }
p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.eyebrow, .founder__role, .founder__edu, .learn__ring p, .footer p { text-align: inherit; hyphens: manual; -webkit-hyphens: manual; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(.92rem, 1.25vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow--light { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--blue);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(51,97,225,.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: #fff; }
.btn--small { padding: 9px 18px; font-size: .88rem; }
.btn--full { width: 100%; padding: 16px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(247,249,254, .88);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect:nth-child(1) { fill: var(--ink); }
.brand__mark rect:nth-child(2) { fill: var(--ink-2); }
.brand__mark rect:nth-child(3) { fill: var(--blue); }
.brand__mark rect:nth-child(4) { fill: var(--blue-soft); }
.brand__name { font-weight: 700; letter-spacing: .06em; font-size: 1.05rem; }
.brand:hover .brand__mark rect { animation: barPulse .6s var(--ease) both; }
.brand:hover .brand__mark rect:nth-child(2) { animation-delay: .06s; }
.brand:hover .brand__mark rect:nth-child(3) { animation-delay: .12s; }
.brand:hover .brand__mark rect:nth-child(4) { animation-delay: .18s; }
@keyframes barPulse { 50% { transform: scaleY(.7); } }
.brand__mark rect { transform-origin: bottom; transform-box: fill-box; }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 500; }
.nav__links > a:not(.btn) { position: relative; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__ext span { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s; }
.nav__toggle span:first-child { top: 15px; } .nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero {
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(81,168,219,.16), transparent 60%),
    radial-gradient(700px 480px at 5% 95%, rgba(8,116,183,.08), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(33,34,69,.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 15%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: 40px;
  border-radius: 50%; pointer-events: none; filter: blur(60px);
  background: conic-gradient(from 0deg, rgba(51,97,225,.22), rgba(2,219,238,.20), rgba(143,211,240,.18), rgba(33,34,69,.12), rgba(51,97,225,.22));
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-140px, 80px) rotate(160deg) scale(1.12); }
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: -.03em; line-height: 1.02; }
.hero__title em { color: var(--blue); }
.hero__title em:last-of-type {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)) no-repeat 0 88% / 0 .12em;
  animation: goldLine 1.2s var(--ease) 1s forwards;
}
@keyframes goldLine { to { background-size: 100% .12em; } }
.hero__lead { margin-top: 26px; max-width: 520px; font-size: 1.12rem; color: var(--muted); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Board */
.board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(33,34,69,.35), 0 2px 0 rgba(33,34,69,.04);
  transform: rotate(-1.2deg);
  transition: transform .6s var(--ease);
}
.board:hover { transform: rotate(0) translateY(-4px); }
.board__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.board__label { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.board__head strong { font-size: 1.05rem; }
.board__status { font-size: .78rem; font-weight: 600; color: var(--ok); background: #E6F5EE; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.board__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.board__weeks { display: grid; grid-template-columns: repeat(8, 1fr); margin-left: 118px; font-family: var(--mono); font-size: .66rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.board__rows { position: relative; padding: 6px 0; }
.row { display: flex; align-items: center; height: 40px; }
.row__name { width: 118px; flex-shrink: 0; font-size: .82rem; font-weight: 500; }
.row__track { position: relative; flex: 1; height: 100%; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 12.5% 100%; }
.row__track b {
  position: absolute; top: 11px; height: 18px; border-radius: 6px;
  left: var(--s); width: var(--w);
  background: linear-gradient(90deg, var(--ink), var(--ink-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) var(--d);
}
.row__track b.alt { background: linear-gradient(90deg, var(--blue), var(--blue-soft)); }
.panel.is-active .row__track b { transform: scaleX(1); }
.milestone {
  position: absolute; top: 13px; left: var(--s); width: 14px; height: 14px;
  background: var(--gold); transform: rotate(45deg) scale(0); border-radius: 2px;
  transition: transform .4s var(--ease) 1.6s;
}
.panel.is-active .milestone { transform: rotate(45deg) scale(1); }
.board__today {
  position: absolute; top: 0; bottom: 0; left: calc(118px + 0%); width: 0;
  border-left: 1.5px dashed var(--blue);
  transition: left 2.4s var(--ease) .4s;
  z-index: 2;
}
.board__today span { position: absolute; top: -26px; left: -30px; font-family: var(--mono); font-size: .62rem; background: var(--blue); color: #fff; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.board__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.kpi span { display: block; font-size: .72rem; color: var(--muted); }
.kpi strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.kpi strong span { display: inline; font-size: inherit; color: inherit; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 20px 0; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.marquee__track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--paper-2); }
.section__head { margin-bottom: 64px; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section__intro { color: var(--muted); font-size: 1.08rem; max-width: 460px; justify-self: end; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: svc; }
.service {
  display: grid; grid-template-columns: 112px 64px 1fr 56px; gap: 28px; align-items: start;
  padding: 36px 36px 36px 28px;
  position: relative; isolation: isolate; overflow: hidden;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line); border-radius: 20px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, background .4s;
}
/* fond qui se révèle au survol */
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(2,219,238,.12), transparent 70%),
    radial-gradient(420px 200px at 0% 100%, rgba(51,97,225,.08), transparent 70%),
    #fff;
  opacity: 0; transition: opacity .5s var(--ease);
}
/* liseré or à gauche */
.service::after {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  transform: scaleY(0); transition: transform .5s var(--ease);
}
.service:hover { transform: translateY(-3px); border-color: rgba(2,219,238,.45); box-shadow: 0 24px 50px -30px rgba(33,34,69,.35); }
.service:hover::before { opacity: 1; }
.service:hover::after { transform: scaleY(1); }

.service__num {
  font-family: var(--serif); font-weight: 500; font-size: 4.2rem; line-height: .85; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.2px var(--gold);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep)); -webkit-background-clip: text; background-clip: text;
  background-size: 100% 0%; background-repeat: no-repeat; background-position: bottom;
  transition: background-size .6s var(--ease);
}
.service:hover .service__num { background-size: 100% 100%; }

.service__icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px -14px rgba(33,34,69,.7);
  transition: background .45s var(--ease), color .45s, transform .6s var(--ease);
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: var(--ink); transform: rotate(-6deg) scale(1.04); }

.service h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 600; margin-bottom: 10px; transition: color .3s; }
.service:hover h3 { color: var(--ink-2); }
.service p { color: var(--muted); max-width: 640px; }

.service__arrow {
  width: 52px; height: 52px; border-radius: 50%; justify-self: end; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
  transition: background .4s var(--ease), border-color .4s, color .4s, transform .5s var(--ease);
}
.service__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__arrow { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); transform: rotate(-45deg); }

.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .78rem; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: border-color .3s, color .3s, background .3s;
}
.service:hover .tags li { border-color: rgba(2,219,238,.4); }
.tags li:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; padding-top: 40px; }
.steps__line { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps__line span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s linear; }
.step__dot { position: absolute; top: -40px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); transition: .4s var(--ease); }
.step { position: relative; }
.step.is-reached .step__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(2,219,238,.2); }
.step__num { font-family: var(--mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 8px 0 10px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Academy ---------- */
.academy { background: var(--ink); color: #fff; padding: 120px 0; position: relative; overflow: hidden; }
.academy::after {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(81,168,219,.28), transparent 65%); pointer-events: none;
}
.academy em { color: var(--gold-soft); }
.academy__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; position: relative; z-index: 1; }
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; z-index: 1; }
.course {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column;
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.course:hover { border-color: rgba(143,211,240,.5); background: rgba(255,255,255,.06); transform: translateY(-4px); }
.course__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; font-size: .78rem; }
.course__badge { background: var(--blue); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.course__meta { color: #fff; font-family: var(--mono); font-size: .72rem; }
.course h3 { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; margin-bottom: 12px; }
.course > p { color: #fff; margin-bottom: 28px; }
.course__modules { list-style: none; padding: 0; margin: 0 0 32px; }
.course__modules li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .96rem; }
.course__modules span { font-family: var(--mono); font-size: .75rem; color: var(--gold-soft); padding-top: 3px; }
.course__link { margin-top: auto; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; color: #fff; }
.course__link span { transition: transform .3s var(--ease); }
.course__link:hover span { transform: translateX(6px); }
.course__link:hover { color: #8FD3F0; }

/* Matrix */
.matrix {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 6px; aspect-ratio: 16 / 9; position: relative; margin: 0 0 14px 28px;
}
.matrix__axis { position: absolute; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.matrix__axis--y { left: -30px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); left: -14px; }
.matrix__axis--x { bottom: -22px; left: 50%; transform: translateX(-50%); }
.matrix__q {
  font: inherit; font-size: .85rem; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  cursor: pointer; transition: .3s var(--ease); padding: 8px;
}
.matrix__q:hover, .matrix__q.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.matrix__tip { font-size: .9rem; color: #fff; margin: 30px 0 28px; min-height: 2.8em; }
.matrix__tip strong { color: #fff; }

.academy__perks { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 36px; }
.academy__perks strong { color: var(--gold-soft); display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 4px; }
.academy__perks span { color: #fff; font-size: .9rem; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.audience__item { padding: 36px 32px 36px 0; border-right: 1px solid var(--line); }
.audience__item + .audience__item { padding-left: 32px; }
.audience__item:last-child { border-right: 0; }
.audience__item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 12px; }
.audience__item p { color: var(--muted); }

/* ---------- Fondateurs ---------- */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.founder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.founder:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 48px -28px rgba(33,34,69,.35); }
.founder__top { display: flex; align-items: center; gap: 18px; }
.founder__avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--paper-2); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold); }
.founder h3 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.founder__creds { display: block; margin-top: 4px; font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--blue); letter-spacing: .01em; }
.founder__role { font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .03em; color: var(--gold-deep); margin-top: 6px; }
.founder > p { color: var(--muted); }
.founder__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.founder__tags li { font-size: .8rem; font-weight: 600; color: var(--ink); background: #EEF3FD; border: 1.5px solid var(--blue); padding: 6px 12px; border-radius: 999px; }
.founder__edu { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink) !important; }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } .founder { padding: 26px; } }

/* ---------- Contact ---------- */
.contact { padding: 120px 0; background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact__lead { color: var(--muted); margin-top: 22px; max-width: 440px; font-size: 1.08rem; }
.contact__info { margin: 40px 0 0; display: grid; gap: 18px; }
.contact__info div { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); padding-top: 14px; }
.contact__info dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact__info dd { margin: 0; font-weight: 500; }
.contact__info a:hover { color: var(--blue); }

.form { background: #fff; padding: 40px; border-radius: 20px; border: 1px solid var(--line); display: grid; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 22px 0 8px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field label { position: absolute; left: 0; top: 18px; color: var(--muted); pointer-events: none; transition: .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: .75rem; color: var(--blue); }
.field.is-error input { border-color: #C2410C; }
.chips { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .85rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; transition: .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form__note { font-size: .9rem; min-height: 1.4em; color: var(--ok); }
.form__note.is-error { color: #C2410C; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 48px 0; border-top: 3px solid var(--gold); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__mark rect:nth-child(1) { fill: #fff; }
.footer__links { display: flex; gap: 28px; font-size: .92rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .contact__grid, .section__head--split, .courses { grid-template-columns: 1fr; }
  .section__intro { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps__line { display: none; }
  .step__dot { top: -30px; }
  .academy__perks { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 90px 56px 1fr; gap: 22px; }
  .service__num { font-size: 3.4rem; }
  .service__icon { width: 56px; height: 56px; }
  .service__arrow { display: none; }
  .audience { grid-template-columns: 1fr; }
  .audience__item, .audience__item + .audience__item { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--paper); padding: 28px 24px 32px; box-shadow: 0 20px 40px -20px rgba(33,34,69,.25);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .hero { padding: 120px 0 64px; }
  .section, .academy, .contact { padding: 84px 0; }
  .service { grid-template-columns: auto 1fr; gap: 14px 18px; padding: 26px 22px; }
  .service__num { font-size: 3rem; }
  .service__icon { width: 52px; height: 52px; border-radius: 14px; justify-self: end; }
  .service__body { grid-column: 1 / -1; }
  .service__arrow { display: none; }
  .steps, .academy__perks { grid-template-columns: 1fr; }
  .board { padding: 18px; }
  .row__name, .board__weeks { font-size: .7rem; }
  .row__name { width: 92px; }
  .board__weeks { margin-left: 92px; }
  .course, .form { padding: 26px; }
}

/* =========================================================
   Vitrine du haut de page : un visuel par service
   ========================================================= */
.showcase { position: relative; min-width: 0; }
.hero__grid > * { min-width: 0; }
.panel { min-width: 0; }
.board { display: grid; }
.panel {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s;
  display: flex; flex-direction: column;
}
.panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel .board__foot { margin-top: auto; }
.panel > .board__rows, .panel > .flow, .panel > .roadmap, .panel > .caps, .panel > .learn { margin-bottom: 18px; }
.board__status--info { color: var(--ink-2); background: #E4EDFD; }
.board__status--info i { background: var(--ink-2); }
.board__status--warn { color: #A8620B; background: #E0F7FC; }
.board__status--warn i { background: #E8A33D; }

/* Onglets */
.tabs { display: flex; gap: 6px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.tabs button {
  position: relative; overflow: hidden;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: color .25s, background .25s, border-color .25s;
}
.tabs button span { position: relative; z-index: 1; }
.tabs button:hover { color: var(--ink); border-color: rgba(33,34,69,.3); }
.tabs button.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.tabs button i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform: scaleX(0); transform-origin: left; }
.tabs button.is-active i { animation: tabTimer 6.5s linear forwards; }
.showcase:hover .tabs button.is-active i { animation-play-state: paused; }
@keyframes tabTimer { to { transform: scaleX(1); } }

/* Solutions : schéma de flux */
.flow { width: 100%; height: auto; }
.flow .wires path { fill: none; stroke: #9DB0DA; stroke-width: 1.6; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1s var(--ease) .5s; }
.panel.is-active .flow .wires path { stroke-dashoffset: 0; }
.flow .pulses circle { fill: var(--blue); opacity: 0; transition: opacity .4s 1.3s; }
.panel.is-active .flow .pulses circle { opacity: 1; }
.flow .node { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease) var(--d), transform .5s var(--ease) var(--d); }
.panel.is-active .flow .node { opacity: 1; transform: none; }
.flow .node rect { fill: #F3F6FD; stroke: rgba(33,34,69,.18); }
.flow .node text { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.flow .node--key rect { fill: var(--ink); stroke: var(--ink); }
.flow .node--key text { fill: #fff; }
.flow .node--band rect { fill: none; stroke-dasharray: 4 4; stroke: rgba(51,97,225,.5); }
.flow .node--band text { font-family: var(--mono); font-size: 10px; font-weight: 400; fill: var(--ink-2); }

/* Entreprise : feuille de route */
.roadmap { display: grid; gap: 8px; }
.roadmap__axis, .roadmap__row { display: grid; grid-template-columns: 92px repeat(3, 1fr); gap: 8px; align-items: center; }
.roadmap__axis { position: relative; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 8px; margin-bottom: 2px; }
.roadmap__axis span:first-child { grid-column: 2; }
.roadmap__axis i { position: absolute; left: 100px; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; }
.roadmap__axis i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), var(--blue-soft)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.panel.is-active .roadmap__axis i::after { transform: scaleX(1); }
.roadmap__layer { font-size: .8rem; font-weight: 600; }
.roadmap__row b {
  font-size: .74rem; font-weight: 500; line-height: 1.25;
  padding: 9px 10px; border-radius: 8px; background: #F1F2F5; color: var(--muted);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(.25s + var(--c) * .45s);
}
.roadmap__row b:nth-of-type(2) { background: #E4EDFD; color: var(--ink-2); }
.roadmap__row b.is-target { background: var(--ink); color: #fff; }
.panel.is-active .roadmap__row b { opacity: 1; transform: none; }

/* Affaires : carte des capacités */
.caps { display: grid; gap: 10px; }
.caps__domain { display: grid; grid-template-columns: 92px repeat(4, 1fr); gap: 6px; align-items: stretch; }
.caps__domain > span { font-size: .8rem; font-weight: 600; align-self: center; }
.caps b {
  position: relative; font-size: .7rem; font-weight: 600; line-height: 1.2;
  display: flex; align-items: flex-end; min-height: 46px; padding: 7px; border-radius: 7px;
  background: #F1F2F5; color: var(--ink);
  opacity: 0; transform: scale(.92);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .6s var(--ease), color .6s;
  transition-delay: calc(var(--i) * 60ms);
}
.panel.is-active .caps b { opacity: 1; transform: none; }
.panel.is-active .caps b[data-m="1"] { background: #D5E3FA; }
.panel.is-active .caps b[data-m="2"] { background: #B5C8F5; }
.panel.is-active .caps b[data-m="3"] { background: #7FA0EE; color: #fff; }
.panel.is-active .caps b[data-m="4"] { background: #3B6FE0; color: #fff; }
.panel.is-active .caps b[data-m="5"] { background: #0874B7; color: #fff; }
.caps b.is-gap::after {
  content: ""; position: absolute; inset: -3px; border: 2px solid var(--gold); border-radius: 9px;
  opacity: 0; transition: opacity .3s 1.2s;
}
.panel.is-active .caps b.is-gap::after { opacity: 1; animation: gapPulse 1.8s ease-in-out 1.4s infinite; }
@keyframes gapPulse { 50% { inset: -6px; opacity: .35; } }
.caps__legend { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 98px; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.caps__legend i { order: 2; width: 90px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #D5E3FA, #0874B7); }
.caps__legend span:nth-child(3) { order: 1; }
.caps__legend span:nth-child(4) { order: 3; }

/* Formation : progression */
.learn { display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: center; padding: 6px 0; }
.learn__ring { position: relative; text-align: center; }
.learn__ring svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.learn__ring circle { fill: none; stroke: #EEF3FB; stroke-width: 10; }
.learn__ring .learn__bar { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 2s var(--ease) .3s; }
.panel.is-active .learn__ring .learn__bar { stroke-dashoffset: 100; }
.learn__ring strong { position: absolute; top: 40px; left: 0; right: 0; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.learn__ring > span { position: absolute; top: 74px; left: 0; right: 0; font-size: .7rem; color: var(--muted); }
.learn__mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.learn__mods li { font-size: .8rem; font-weight: 500; }
.learn__mods span { display: block; margin-bottom: 5px; }
.learn__mods i { display: block; height: 6px; border-radius: 3px; background: #EEF3FB; position: relative; overflow: hidden; }
.learn__mods i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--p); background: linear-gradient(90deg, var(--ink), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) var(--d); border-radius: 3px; }
.panel.is-active .learn__mods i::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .roadmap__axis, .roadmap__row { grid-template-columns: 70px repeat(3, 1fr); gap: 5px; }
  .roadmap__axis i { left: 75px; }
  .roadmap__row b { font-size: .64rem; padding: 7px 6px; }
  .caps__domain { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .caps b { font-size: .58rem; min-height: 38px; padding: 5px; word-break: break-word; }
  .caps__domain > span { grid-column: 1 / -1; }
  .caps__legend { margin-left: 0; }
  .learn { grid-template-columns: 1fr; justify-items: center; }
  .learn__mods { width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .tabs button { flex-shrink: 0; }
}

/* Touche or : bouton principal de la section Academy */
.academy .btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.course--feature { border-color: rgba(2,219,238,.45); }
.course--feature:hover { border-color: var(--gold); }

/* =========================================================
   Diagnostic express
   ========================================================= */
.diag {
  padding: 120px 0; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(2,219,238,.10), transparent 65%),
    radial-gradient(600px 380px at 0% 100%, rgba(51,97,225,.07), transparent 65%),
    #fff;
}
.diag__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }

.diag__questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.diag__questions li[data-dim] {
  counter-increment: q;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 28px; align-items: center;
}
.diag__questions li[data-dim]:first-child { border-top: 1px solid var(--line); }
.diag__dim { grid-column: 1; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.diag__dim::before { content: "0" counter(q) "  "; color: var(--muted); white-space: pre; }
.diag__questions p { grid-column: 1; font-size: 1.02rem; line-height: 1.45; }
.scale { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.scale button {
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .25s var(--ease);
}
.scale button:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.scale button.is-fill { background: #EAF0FD; color: var(--ink-2); border-color: rgba(8,116,183,.2); }
.scale button.is-on { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); box-shadow: 0 8px 18px -10px rgba(33,34,69,.8); }
.scale button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.diag__legend { display: flex; justify-content: flex-end; gap: 132px; padding-top: 12px; font-family: var(--mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.diag__result {
  position: sticky; top: 100px;
  background: linear-gradient(160deg, #0E2560 0%, var(--ink) 55%, #081638 100%);
  color: #fff; border-radius: 24px; padding: 30px;
  border: 1px solid rgba(2,219,238,.35);
  box-shadow: 0 40px 80px -40px rgba(33,34,69,.65);
}
.diag__result .board__label { color: #fff; }
.diag__top { display: flex; justify-content: space-between; align-items: flex-start; }
.diag__level { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--gold-soft); margin-top: 2px; }
.diag__score { text-align: right; }
.diag__score strong { font-family: var(--serif); font-weight: 500; font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.diag__score span { display: block; font-family: var(--mono); font-size: .7rem; color: #fff; }

.radar { width: 100%; height: auto; margin: 6px 0 0; overflow: visible; }
.radar__grid polygon { fill: none; stroke: rgba(255,255,255,.10); }
.radar__grid polygon:last-child { stroke: rgba(255,255,255,.22); }
.radar__axes line { stroke: rgba(255,255,255,.10); }
.radar__target { fill: none; stroke: rgba(143,211,240,.65); stroke-width: 1.2; stroke-dasharray: 4 4; }
.radar__shape { fill: rgba(2,219,238,.28); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(2,219,238,.35)); }
.radar__dots circle { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 2; }
.radar__labels text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; fill: rgba(255,255,255,.85); }
.radar__key { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .75rem; color: #fff; margin: 4px 0 18px; }
.radar__key i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--gold); }
.radar__key i.k2 { border-top: 2px dashed rgba(143,211,240,.8); margin-left: 14px; }

.diag__reco { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-bottom: 22px; }
.diag__reco ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.diag__reco li { animation: recoIn .5s var(--ease) both; }
.diag__reco li + li { animation-delay: .1s; }
@keyframes recoIn { from { opacity: 0; transform: translateY(6px); } }
.diag__badge { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--ink); background: var(--gold-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.diag__reco p { font-size: .92rem; color: #fff; }
.diag__reco a { font-size: .85rem; font-weight: 600; color: #8FD3F0; display: inline-flex; gap: 6px; margin-top: 4px; }
.diag__reco a:hover { color: var(--gold-soft); }

.btn--gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(2,219,238,.8); }

@media (max-width: 980px) {
  .diag__grid { grid-template-columns: 1fr; }
  .diag__result { position: static; }
}
@media (max-width: 760px) {
  .diag { padding: 84px 0; }
  .diag__questions li[data-dim] { grid-template-columns: 1fr; }
  .scale { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .scale button { flex: 1; width: auto; }
  .diag__legend { justify-content: space-between; gap: 0; }
  .diag__result { padding: 22px; }
}

/* =========================================================
   Deux villes : Montréal et Casablanca
   ========================================================= */
.cities {
  margin-top: 36px; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px;
  box-shadow: 0 20px 40px -32px rgba(33,34,69,.4);
}
.city { display: grid; gap: 2px; }
.city:last-child { text-align: right; justify-items: end; }
.city__code { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--gold-deep); }
.city strong { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
.city__country { font-size: .8rem; color: var(--muted); }
.cities__arc { width: 100%; height: auto; overflow: visible; }
.cities__arc path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 5; }
.cities__arc circle { fill: var(--ink); }
.cities__arc circle.end { fill: var(--gold); }
@media (max-width: 760px) {
  .cities { grid-template-columns: 1fr 70px 1fr; padding: 18px; }
  .city strong { font-size: 1.15rem; }
}

/* =========================================================
   Téléphones (iPhone, Android)
   ========================================================= */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; overflow-x: clip; }
  p { text-align: left; }
  .wrap { width: min(1200px, 100% - 40px); }
  .nav__links > a:not(.btn) { font-size: 1.1rem; padding: 4px 0; }
  .nav__links .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__links { flex-wrap: wrap; gap: 12px 22px; }
  .field input, .field textarea { font-size: 16px; }
  .hero .btn { width: 100%; }
  .roadmap__row b { font-size: .7rem; }
  .caps b { font-size: .66rem; }
  .founder__top { flex-direction: column; align-items: flex-start; }
  .founder h3 { font-size: 1.5rem; }
  .cities { grid-template-columns: 1fr 48px 1fr; padding: 16px; }
}
