/* insinio — refonte vitrine
   Couleurs : charte insinio (tokens.css), inchangée.
   Structure, rythme et style visuel : inspirés de deeplearn.tn
   (fond à lignes verticales, grandes cartes arrondies, titres capitales,
   cartes en escalier, dessins au trait, bandeau défilant).
   Version claire : tons clairs dominants, blocs sombres en points forts. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --wrap: 1320px;
  --pad: clamp(16px, 3vw, 32px);
  --sec: clamp(80px, 10vw, 136px);
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ───────── Couleurs d'usage (tons clairs dominants, blocs sombres en points forts) ───────── */
:root {
  --page: var(--grey-100);
  --page-line: rgba(17, 17, 17, .07);
  --fg: var(--ink);
  --fg-body: var(--grey-700);
  --fg-muted: var(--grey-500);
  --header-bg: rgba(243, 243, 243, .85);

  --hero-bg: var(--white);
  --hero-fg: var(--ink);
  --hero-muted: var(--grey-600);
  --hero-border: var(--grey-200);
  --orbit: var(--navy-deep);
  --orbit-opacity: .28;

  --card-bg: var(--white);
  --card-fg: var(--ink);
  --card-muted: var(--grey-600);
  --card-border: var(--grey-200);
  --lineart: var(--navy-deep);

  --dark-bg: var(--ink);
  --dark-fg: var(--white);
  --dark-muted: var(--grey-400);
  --dark-row: rgba(255, 255, 255, .06);
  --dark-border: rgba(255, 255, 255, .1);

  --solid-bg: var(--ink);
  --solid-fg: var(--white);
  --solid-hover: var(--grey-700);

  --mark-bg: var(--lime-wave);
  --mark-fg: var(--navy-deep);

  --strip-fg: var(--grey-400);
  --footer-bg: var(--ink);
}


/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--fg-body);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime-wave); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.1em; height: 1.1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--lime-wave); color: var(--navy-deep); font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--pad))); margin-inline: auto; }
main, .site-footer { position: relative; z-index: 1; }

/* Lignes verticales de fond, alignées sur la grille (signature deeplearn) */
.gridlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: min(var(--wrap), calc(100% - 2 * var(--pad))); margin-inline: auto;
  border-inline: 1px solid var(--page-line);
  background:
    linear-gradient(var(--page-line), var(--page-line)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--page-line), var(--page-line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--page-line), var(--page-line)) 75% 0 / 1px 100% no-repeat;
}

/* ───────── Typographie ───────── */
.display, .title, .pillar h3, .step h3, .verb strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: var(--fg);
}
.display { overflow-wrap: break-word; font-weight: 800; font-size: clamp(46px, 6.4vw, 96px); line-height: .94; }
.title   { font-weight: 800; font-size: clamp(34px, 4.3vw, 60px); line-height: .98; }
mark {
  background: var(--mark-bg); color: var(--mark-fg);
  padding: 0 .1em; margin: 0 -.04em; border-radius: .1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.eyebrow { font: 600 13px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--hero-muted); }
.intro, .section-head p { font-size: 17px; line-height: 1.65; color: var(--fg-body); }

/* ───────── Boutons (rectangles arrondis, pleine largeur empilés) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  font: 700 15px/1.1 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--lg { min-height: 62px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--lime { background: var(--lime-wave); color: var(--navy-deep); }
.btn--lime:hover { background: var(--lime-300); }
.btn--solid { background: var(--solid-bg); color: var(--solid-fg); }
.btn--solid:hover { background: var(--solid-hover); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-stack { display: grid; gap: 12px; margin-top: 36px; max-width: 460px; }
.btn-stack--narrow { max-width: 380px; }

/* ───────── En-tête ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--page-line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: block; }
.logo { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link { position: relative; font: 600 14px/1 var(--font-body); color: var(--fg); text-decoration: none; padding: 8px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime-wave); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--fg); border-radius: 12px; background: transparent; color: var(--fg); font: 700 14px/1 var(--font-body); cursor: pointer; }

/* ───────── Sections : rythme vertical ───────── */
.section { padding-block: var(--sec) 0; }
.section--tight { padding-top: calc(var(--sec) * .6); }
.section-head { max-width: 860px; margin: 0 auto 56px; text-align: center; }
.section-head p { max-width: 620px; margin: 22px auto 0; }
.center { display: flex; justify-content: center; margin-top: 48px; color: var(--fg); }

/* ───────── 1. Hero ───────── */
.hero { padding-top: 20px; }
.hero-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  min-height: min(720px, calc(100svh - var(--header-h) - 40px));
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--hero-border); border-radius: var(--r-xl);
  background: var(--hero-bg); color: var(--hero-fg);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-copy .display { color: var(--hero-fg); margin: 22px 0 26px; }
.hero-lead { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--hero-muted); }
.hero-copy .btn--ghost { color: var(--hero-fg); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font: 600 14px/1 var(--font-body); color: var(--hero-muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .i { color: var(--hero-fg); }

.hero-art { position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%; transform: scale(1.35); transform-origin: 60% 70%; }
.orbits {
  position: absolute; z-index: 1; width: 135%; height: auto; left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  stroke: var(--orbit); stroke-width: 1.2; opacity: 1;
  animation: spin 80s linear infinite;
}
.orbits circle { stroke-opacity: var(--orbit-opacity); }
.orbits .dot { fill: var(--navy-deep); stroke: none; }
.orbits .dot--big { fill: var(--lime-wave); stroke: var(--navy-deep); stroke-width: 2; stroke-opacity: 1; }
.orbits .dot--peach { fill: var(--peach-flow); }
.vertical-label {
  position: absolute; z-index: 2; right: 18px; bottom: 22px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-deep);
}
@keyframes spin { to { transform: translate(-40%, -50%) rotate(360deg); } }

/* ───────── 2. Bandeau défilant ───────── */
.strip { position: relative; z-index: 1; overflow: hidden; padding: 40px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.strip ul { display: flex; gap: 56px; padding-right: 56px; }
.strip li { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; font: 700 clamp(22px, 2.6vw, 34px)/1 var(--font-display); letter-spacing: -.01em; color: var(--strip-fg); }
.strip li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime-wave); }
.strip li:nth-child(even)::after { background: var(--peach-flow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── 3. Expertises : titre collant + escalier ───────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.split-copy .intro { margin-top: 26px; max-width: 470px; }
.stairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 8px; }
.stairs .step:nth-child(2) { margin-top: 150px; }
.stairs .step:nth-child(3) { margin-top: 300px; }
.step {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 360px; padding: 24px 22px 26px;
  border-radius: 22px; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(8, 14, 51, .45); }
.step-num { position: absolute; top: 22px; right: 22px; font: 800 22px/1 var(--font-display); }
.step-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; }
.step-icon .i { width: 22px; height: 22px; }
.step h3 { font-weight: 800; font-size: 21px; line-height: 1.05; color: inherit; margin-bottom: 14px; }
.step p { font-size: 14.5px; line-height: 1.55; }
.step-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font: 700 14px/1.2 var(--font-body); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.step--lime { background: var(--lime-wave); color: var(--navy-deep); }
.step--peach { background: var(--peach-flow); color: var(--navy-deep); }
.step--dark { background: var(--dark-bg); color: var(--dark-fg); }
.step--dark .step-num, .step--dark .step-icon { color: var(--lime-wave); }
.step--dark p { color: var(--dark-muted); }

/* ───────── 4. Approche : trois grandes cartes ───────── */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 540px; padding: 40px 32px 28px;
  border: 1px solid var(--card-border); border-radius: var(--r-lg);
  background: var(--card-bg); color: var(--card-fg);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.pillar:hover { transform: translateY(-6px); border-color: var(--lime-wave); }
.pillar h3 { font-weight: 800; font-size: clamp(22px, 2vw, 28px); line-height: 1.02; color: var(--card-fg); max-width: 300px; }
.pillar p { margin-top: 16px; max-width: 300px; font-size: 15.5px; line-height: 1.6; color: var(--card-muted); }
.lineart { width: 100%; margin-top: auto; padding-top: 28px; stroke: var(--lineart); fill: none; stroke-width: .9; overflow: visible; }
.lineart .accent { stroke: var(--lime-600); }
.lineart .accent-peach { stroke: var(--peach-500); }

/* ───────── 5. Grand bloc sombre ───────── */
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-xl); background: var(--dark-bg); color: var(--dark-fg);
  overflow: hidden;
}
.feature-copy .title { color: var(--dark-fg); font-size: clamp(30px, 3.6vw, 52px); }
.feature-copy > p { margin-top: 24px; max-width: 560px; font-size: 17px; color: var(--dark-muted); }
.flow { display: grid; gap: 14px; margin-top: 36px; }
.flow li {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: 12px;
  background: var(--dark-row); border-right: 3px solid var(--lime-wave);
}
.flow li:nth-child(2) { border-right-color: var(--peach-flow); }
.flow-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--lime-wave); flex: none; }
.flow strong { display: block; font: 800 17px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.flow span { color: var(--dark-muted); font-size: 15px; }
.feature-art { position: relative; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 80%; transform: scale(1.6); transform-origin: 25% 80%; }
.network { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--navy-deep); stroke-opacity: .55; stroke-width: 1; }
.network circle { fill: var(--navy-deep); stroke: none; }
.feature-caption { position: absolute; left: 18px; bottom: 16px; font: 700 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-deep); }

/* ───────── 6. Les trois verbes (ligne de chiffres) ───────── */
.verbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-top: 56px; }
.verb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 16px; }
.verb strong { font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.verb strong::first-letter { color: inherit; }
.verb:nth-child(1) strong { text-decoration: underline 6px var(--lime-wave); text-underline-offset: 10px; }
.verb:nth-child(2) strong { text-decoration: underline 6px var(--peach-flow); text-underline-offset: 10px; }
.verb:nth-child(3) strong { text-decoration: underline 6px var(--lime-wave); text-underline-offset: 10px; }
.verb span { font-size: 15px; color: var(--fg-muted); margin-top: 8px; }

/* ───────── 7. Appel à l'action ───────── */
.cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-xl); background: var(--lime-wave); color: var(--navy-deep);
}
.cta-card::after {
  content: ""; position: absolute; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(22, 35, 114, .18);
  box-shadow: 0 0 0 70px rgba(22, 35, 114, .0), inset 0 0 0 70px rgba(255, 171, 125, .0);
  pointer-events: none;
}
.cta-card::before {
  content: ""; position: absolute; right: -40px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(22, 35, 114, .18); pointer-events: none;
}
.cta-mark { width: clamp(72px, 8vw, 120px); height: clamp(72px, 8vw, 120px); color: var(--navy-deep); }
.cta-card .title { color: var(--navy-deep); font-size: clamp(32px, 4vw, 56px); }
.cta-card .btn { position: relative; z-index: 1; }

/* ───────── Pied de page ───────── */
.site-footer { margin-top: var(--sec); padding: 72px 0 32px; background: var(--footer-bg); color: var(--grey-300); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 22px; font-size: 14.5px; color: var(--grey-400); }
.site-footer nav { display: grid; align-content: start; gap: 14px; }
.site-footer h2 { margin-bottom: 6px; font: 700 13px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.site-footer nav a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 15px; text-decoration: none; color: var(--grey-300); }
.site-footer nav a:hover { color: var(--lime-wave); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: var(--grey-400); }


/* ═════════ Pages intérieures ═════════ */

/* Variables complémentaires */
:root {
  --field-bg: var(--white);
  --field-border: var(--grey-300);
  --error: var(--status-danger);
  --chip-bg: rgba(255, 255, 255, .08);
}

/* Fil d'Ariane */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--hero-muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--hero-fg); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--hero-fg); }

/* Hero des pages : titre un peu plus petit, panneau illustré sur le visuel */
.display--page { font-size: clamp(40px, 5.2vw, 80px); line-height: .96; }
.hero--page .hero-art img { object-position: 40% 60%; }
.hero-panel {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 48px));
  padding: 22px; border-radius: 20px;
  background: rgba(255, 255, 255, .74); color: var(--navy-deep);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(8, 14, 51, .45);
  border: 1px solid rgba(255, 255, 255, .7);
}
.panel-top { font: 700 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.panel-badge { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--lime-wave); color: var(--navy-deep); font: 800 15px/1.2 var(--font-display); }
.panel-stack { display: grid; gap: 10px; margin-top: 16px; }
.panel-stack li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(22, 35, 114, .07); font: 700 15px/1 var(--font-body); }
.panel-stack .bar { width: 56px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--lime-wave) 70%, rgba(22, 35, 114, .15) 0); }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-600); box-shadow: 0 0 0 4px rgba(170, 248, 102, .35); }
.led--peach { background: var(--peach-500); box-shadow: 0 0 0 4px rgba(255, 171, 125, .35); }
.panel-path { display: grid; gap: 10px; margin-top: 16px; counter-reset: none; }
.panel-path li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(22, 35, 114, .07); font: 800 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.panel-path li:nth-child(2) { margin-left: 22px; }
.panel-path li:nth-child(3) { margin-left: 44px; }
.panel-path span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-deep); color: var(--lime-wave); font-size: 14px; }
.hero-panel--window { width: min(400px, calc(100% - 40px)); }
.app-window { margin-top: 14px; border-radius: 14px; overflow: hidden; background: var(--white); color: var(--navy-deep); box-shadow: 0 10px 30px -18px rgba(8, 14, 51, .5); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--navy-deep); color: var(--white); font: 400 12px/1 var(--font-mono, monospace); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.app-bar i:first-child { background: var(--peach-flow); }
.app-bar i:nth-child(2) { background: var(--lime-wave); }
.app-bar span { margin-left: 8px; opacity: .85; }
.app-body { display: grid; grid-template-columns: 44px 1fr; min-height: 170px; }
.app-side { display: grid; align-content: start; gap: 10px; padding: 14px 12px; background: var(--grey-100); }
.app-side b { height: 8px; border-radius: 4px; background: var(--grey-300); }
.app-side b:first-child { background: var(--lime-wave); }
.app-main { display: grid; align-content: start; gap: 4px; padding: 14px 16px; }
.app-main strong { font: 800 17px/1.1 var(--font-display); }
.app-main > span { font-size: 13px; color: var(--grey-600); }
.app-modules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.app-modules em { font-style: normal; font: 700 12px/1 var(--font-body); padding: 7px 10px; border-radius: 999px; background: var(--lime-100); }
.app-modules em:nth-child(2) { background: var(--peach-100); }
.app-records { display: grid; gap: 6px; margin-top: 10px; }
.app-records span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: var(--grey-050); border: 1px solid var(--grey-200); font-size: 12px; font-weight: 600; }
.app-records span::after { content: ""; width: 40px; height: 6px; margin-top: 5px; border-radius: 6px; background: var(--grey-300); }

/* Cartes d'offre : grille 2 colonnes, colonne de droite décalée */
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cap-grid .cap-card:nth-child(even) { position: relative; top: 64px; }
.cap-grid { padding-bottom: 64px; }
.cap-card {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 250px; padding: 28px 26px;
  border: 1px solid var(--card-border); border-radius: 22px;
  background: var(--card-bg); color: var(--card-fg);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cap-card:hover { border-color: var(--lime-wave); box-shadow: 0 24px 48px -32px rgba(8, 14, 51, .5); }
.cap-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: auto; border-radius: 14px; background: var(--lime-wave); color: var(--navy-deep); }
.cap-card:nth-child(4n+2) .cap-icon, .cap-card:nth-child(4n+3) .cap-icon { background: var(--peach-flow); }
.cap-icon .i { width: 24px; height: 24px; }
.cap-card h3 { margin-top: 18px; font: 800 21px/1.08 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; color: var(--card-fg); }
.cap-card p { font-size: 15px; line-height: 1.6; color: var(--card-muted); }

/* Puces technologiques dans le bloc sombre */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--dark-border); background: var(--chip-bg); font: 600 13px/1 var(--font-body); color: var(--dark-fg); }
.flow span { display: block; margin-top: 4px; }

/* Méthode : 4 étapes en escalier */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.method .step { min-height: 290px; justify-content: flex-end; }
.method .step:nth-child(2) { margin-top: 56px; }
.method .step:nth-child(3) { margin-top: 112px; }
.method .step:nth-child(4) { margin-top: 168px; }
.method .step:hover { transform: none; box-shadow: none; }
.method .step-num { position: static; margin-bottom: auto; font-size: 44px; letter-spacing: -.02em; }
.method .step h3 { font-size: 24px; margin: 28px 0 10px; }
.method .step--dark .step-num { color: var(--lime-wave); }
.method .step:nth-child(4).step--dark .step-num { color: var(--peach-flow); }

/* Questions fréquentes */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; justify-items: start; gap: 28px; color: var(--fg); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--card-border); border-radius: 18px; background: var(--card-bg); color: var(--card-fg); transition: border-color .25s var(--ease); }
.faq-list details[open] { border-color: var(--lime-wave); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font: 700 18px/1.3 var(--font-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lime-wave); color: var(--navy-deep); transition: transform .3s var(--ease); }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 24px; max-width: 640px; font-size: 15.5px; line-height: 1.65; color: var(--card-muted); }

/* Contact (bas des pages d'expertise) */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(24px, 4.5vw, 64px);
  border-radius: var(--r-xl); background: var(--dark-bg); color: var(--dark-fg);
}
.contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-copy .title { color: var(--dark-fg); font-size: clamp(32px, 3.8vw, 54px); }
.contact-copy > p { margin-top: 22px; max-width: 480px; font-size: 17px; color: var(--dark-muted); }
.contact-note { display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; padding: 22px; border-radius: 16px; background: var(--dark-row); border-right: 3px solid var(--lime-wave); }
.contact-mark { flex: none; width: 44px; height: 44px; color: var(--lime-wave); }
.contact-note strong { display: block; font: 800 17px/1.2 var(--font-display); text-transform: uppercase; }
.contact-note p { margin-top: 6px; font-size: 14.5px; color: var(--dark-muted); }

/* Carte formulaire */
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card-bg); color: var(--card-fg); border: 1px solid var(--card-border); }
.form-heading { font: 800 26px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; color: var(--card-fg); }
.form-intro { margin-top: 10px; font-size: 14.5px; color: var(--card-muted); }
.form-fields { display: grid; gap: 16px; margin-top: 24px; }
.form-fields[hidden], .form-feedback[hidden], .field-error[hidden], .form-error-summary[hidden] { display: none; }
.form-context { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 14px; border-radius: 999px; background: var(--lime-wave); color: var(--navy-deep); font: 700 13px/1 var(--font-body); }
.form-error-summary { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--error); color: var(--error); font-weight: 700; font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font: 700 14px/1.3 var(--font-body); color: var(--card-fg); }
.field label span { font-weight: 500; color: var(--card-muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px;
  border: 1.5px solid var(--field-border); border-radius: 12px;
  background: var(--field-bg); color: var(--card-fg);
  font: 500 15px/1.4 var(--font-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-500); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 4px rgba(170, 248, 102, .45); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { display: block; color: var(--error); font-size: 13.5px; font-weight: 600; }
.form-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.form-choices legend { width: 100%; margin-bottom: 10px; font: 700 14px/1.3 var(--font-body); color: var(--card-fg); }
.form-choices .field-error { width: 100%; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 11px 16px; border: 1.5px solid var(--field-border); border-radius: 999px; font: 600 14px/1 var(--font-body); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.choice input:hover + span { border-color: var(--card-fg); }
.choice input:checked + span { background: var(--lime-wave); border-color: var(--lime-wave); color: var(--navy-deep); }
.choice input:focus-visible + span { outline: 3px solid var(--navy-400); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--card-muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime-600); }
.prototype-note { font-size: 13px; color: var(--card-muted); text-align: center; }
.privacy-detail { font-size: 13.5px; color: var(--card-muted); }
.privacy-detail summary { cursor: pointer; font-weight: 700; color: var(--card-fg); }
.privacy-detail p { margin-top: 8px; }
.form-feedback { display: grid; justify-items: start; gap: 14px; margin-top: 24px; padding: 28px; border-radius: 18px; background: var(--lime-100); color: var(--navy-deep); }
.feedback-icon { width: 44px; height: 44px; color: var(--lime-600); }
.form-feedback h3 { font: 800 24px/1.1 var(--font-display); text-transform: uppercase; }
.form-feedback p { font-size: 15px; line-height: 1.6; }

/* Page contact */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-intro { grid-template-columns: 1fr; min-height: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.contact-intro .hero-copy { justify-content: flex-start; }
.options { display: grid; gap: 12px; margin-top: 36px; }
.options a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 16px; text-decoration: none;
  border: 1.5px solid var(--hero-border); color: var(--hero-fg);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.options a:hover { border-color: var(--lime-wave); background: color-mix(in srgb, var(--lime-wave) 10%, transparent); }
.option-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lime-wave); color: var(--navy-deep); }
.options li:nth-child(2) .option-icon { background: var(--peach-flow); }
.options strong { display: block; font: 800 17px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.options a > span:nth-child(2) > span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--hero-muted); }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--lime-wave); }
.tail-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl);
  background: var(--peach-flow); color: var(--navy-deep);
}
.tail-card .title { color: var(--navy-deep); font-size: clamp(28px, 3.4vw, 46px); }
.tail-card p { margin-top: 16px; max-width: 720px; font-size: 17px; }

@media (max-width: 1080px) {
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method .step:nth-child(3) { margin-top: 0; }
  .method .step:nth-child(4) { margin-top: 56px; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .contact-page { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
}
@media (max-width: 900px) {
  .hero-panel { width: min(340px, calc(100% - 32px)); padding: 16px; }
  .cap-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .cap-grid .cap-card:nth-child(even) { top: 0; }
  .cap-card { min-height: 0; }
  .method { grid-template-columns: 1fr; }
  .method .step:nth-child(n) { margin-top: 0; min-height: 0; }
  .method .step h3 { margin-top: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .tail-card { grid-template-columns: 1fr; }
  .hero--page .hero-art { min-height: 400px; }
}


/* ───────── Apparition au défilement ───────── */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready .stairs [data-reveal]:nth-child(2), .reveal-ready .pillars [data-reveal]:nth-child(2), .reveal-ready .verbs [data-reveal]:nth-child(2) { transition-delay: .1s; }
.reveal-ready .stairs [data-reveal]:nth-child(3), .reveal-ready .pillars [data-reveal]:nth-child(3), .reveal-ready .verbs [data-reveal]:nth-child(3) { transition-delay: .2s; }
.reveal-ready .step[data-reveal].is-in:hover, .reveal-ready .pillar[data-reveal].is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .split { grid-template-columns: 1fr; }
  .split-copy { position: static; }
  .split .btn-stack { display: none; } /* doublon des cartes juste en dessous */
  .stairs .step:nth-child(2) { margin-top: 80px; }
  .stairs .step:nth-child(3) { margin-top: 160px; }
  .pillar { min-height: 480px; padding-inline: 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 20px; background: var(--page); border-bottom: 1px solid var(--page-line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--page-line); }
  .nav-link::after { display: none; }
  .nav .btn { margin: 18px 0 0; }

  .hero-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-art { min-height: 300px; order: -1; }
  .stairs, .pillars, .verbs { grid-template-columns: 1fr; }
  .stairs .step:nth-child(n) { margin-top: 0; }
  .step { min-height: 0; }
  .pillar { min-height: 0; }
  .lineart { max-width: 320px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-art { min-height: 280px; }
  .verbs { gap: 28px; }
  .cta-card { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .display { font-size: clamp(40px, 12vw, 56px); }
  .display--page { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-lead { font-size: 17px; }
}
