@charset "UTF-8";

/* =========================================================================
   Digitia — feuille de style de la page d'accueil
   Registre : marque. Langage visuel : le document annoté.
   Couleurs en OKLCH, ancrées sur l'identité de l'application.
   ========================================================================= */

/* ---------- Polices auto-hébergées (aucun CDN tiers) --------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/site/assets/fonts/Archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/site/assets/fonts/Archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/site/assets/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/site/assets/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ------------------------------------------------------- */

:root {
  /* Identité reprise de l'application : violet profond, magenta, cyan. */
  --violet-abyss: oklch(0.19 0.095 296);
  --violet-deep: oklch(0.255 0.128 296);
  --violet-mid: oklch(0.42 0.205 300);
  --violet: oklch(0.558 0.253 302);
  --violet-lift: oklch(0.72 0.155 302);
  --pink: oklch(0.656 0.241 354);
  --pink-lift: oklch(0.78 0.155 354);
  --cyan: oklch(0.816 0.104 195);

  /* Neutres teintés vers le violet de la marque (jamais vers le chaud). */
  --bg: oklch(0.984 0.004 300);
  --surface: oklch(1 0 0);
  --surface-sunk: oklch(0.968 0.006 300);
  --ink: oklch(0.215 0.032 296);
  --ink-soft: oklch(0.435 0.026 296);
  /* 0.515 et non 0.55 : sur --surface-sunk, 0.55 tombait à 4.48:1, juste sous
     le seuil AA de 4.5:1 pour le petit texte. Mesuré, pas estimé. */
  --ink-faint: oklch(0.515 0.024 296);
  --line: oklch(0.895 0.011 300);
  --line-strong: oklch(0.82 0.018 300);

  /* Sur fond sombre */
  --on-dark: oklch(0.975 0.006 300);
  --on-dark-soft: oklch(0.845 0.022 300);

  /* Typographie */
  --f-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'InterVar', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-lg: clamp(1.4rem, 1.24rem + 0.75vw, 1.85rem);
  --t-xl: clamp(1.85rem, 1.55rem + 1.4vw, 2.7rem);
  --t-2xl: clamp(2.1rem, 1.65rem + 2.1vw, 3.4rem);
  --t-3xl: clamp(2.35rem, 1.75rem + 2.7vw, 4.05rem);

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --shell: 78rem;
  --band: clamp(4.5rem, 9vw, 8.5rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-lift: 0 1px 2px oklch(0.19 0.095 296 / 0.05), 0 12px 28px -14px oklch(0.19 0.095 296 / 0.22);
  --shadow-float: 0 2px 4px oklch(0.19 0.095 296 / 0.06), 0 34px 70px -26px oklch(0.19 0.095 296 / 0.45);

  /* Échelle z sémantique */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-menu: 200;
  --z-skip: 300;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

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

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

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: var(--z-skip);
  background: var(--violet-deep);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  inset-inline-start: 0;
}

/* ---------- Traits de marque : les marques d'annotation ------------------
   Deux gestes, pas un seul. Sur papier (fond clair) le surligneur fonctionne ;
   sur le fond violet il vire au bloc terne, on y trace donc un trait de
   correction à l'encre. `box-decoration-break` pour que chaque ligne d'un
   titre reçoive sa propre marque. */

.mark-highlight {
  display: inline;
  background-image: linear-gradient(to right, oklch(0.656 0.241 354 / 0.3), oklch(0.656 0.241 354 / 0.3));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.42em;
  padding-inline: 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mark-underline {
  display: inline;
  background-image: linear-gradient(to right, var(--pink), var(--pink));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% 0.075em;
  padding-bottom: 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mark-strike {
  position: relative;
  white-space: nowrap;
}

.mark-strike::after {
  content: '';
  position: absolute;
  inset-inline: -0.08em;
  top: 54%;
  height: 0.09em;
  background: var(--pink);
  border-radius: 2px;
  transform: rotate(-1.1deg);
}

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

.btn {
  --btn-bg: var(--violet-deep);
  --btn-fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: -0.006em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn--solid {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--solid:hover {
  background: var(--violet-mid);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--violet);
  color: var(--violet-mid);
}

.btn--lg {
  font-size: var(--t-base);
  padding: 0.95rem 1.7rem;
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: var(--t-xs);
}

.btn__arrow {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Boutons posés sur un fond sombre */
.masthead .btn--solid,
.hero .btn--solid,
.closing .btn--solid {
  --btn-bg: var(--on-dark);
  --btn-fg: var(--violet-abyss);
}

.masthead .btn--solid:hover,
.hero .btn--solid:hover,
.closing .btn--solid:hover {
  background: var(--pink-lift);
  color: var(--violet-abyss);
}

.hero .btn--ghost,
.closing .btn--ghost {
  color: var(--on-dark);
  border-color: oklch(0.975 0.006 300 / 0.35);
}

.hero .btn--ghost:hover,
.closing .btn--ghost:hover {
  border-color: var(--on-dark);
  color: var(--on-dark);
  background: oklch(0.975 0.006 300 / 0.08);
}

/* ---------- En-tête ------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(0.255 0.128 296 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.masthead.is-scrolled {
  background: oklch(0.19 0.095 296 / 0.95);
  border-bottom-color: oklch(0.975 0.006 300 / 0.12);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  min-height: 4.4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--on-dark);
  margin-inline-end: auto;
}

.wordmark__mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}

.mark__page {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.65;
}

.mark__rule {
  fill: currentColor;
  opacity: 0.4;
}

.mark__hit {
  fill: var(--pink);
}

.wordmark__text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.masthead__nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.masthead__nav a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.masthead__nav a:hover {
  color: var(--on-dark);
  border-bottom-color: var(--pink);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid oklch(0.975 0.006 300 / 0.28);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 1.05rem;
  height: 1.7px;
  margin-inline: auto;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}

.burger[aria-expanded='true'] span:first-child {
  transform: translateY(3.4px) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
  transform: translateY(-3.4px) rotate(-45deg);
}

.menu-mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--violet-abyss);
  z-index: var(--z-menu);
}

.menu-mobile a:not(.btn) {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: var(--t-md);
  font-weight: 500;
  padding-block: 0.7rem;
  border-bottom: 1px solid oklch(0.975 0.006 300 / 0.1);
}

.menu-mobile .btn {
  margin-top: 0.9rem;
  --btn-bg: var(--on-dark);
  --btn-fg: var(--violet-abyss);
}

/* ---------- Héros -------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--violet-deep);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  inset: -30% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(58% 62% at 78% 18%, oklch(0.558 0.253 302 / 0.5), transparent 70%),
    radial-gradient(46% 52% at 12% 8%, oklch(0.656 0.241 354 / 0.3), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.036em;
  max-width: 15ch;
}

.hero__lede {
  margin-top: 1.6rem;
  font-size: var(--t-md);
  line-height: 1.66;
  color: var(--on-dark-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.3rem;
}

.hero__meta {
  margin-top: 2rem;
  font-size: var(--t-xs);
  color: oklch(0.845 0.022 300 / 0.85);
  letter-spacing: 0.004em;
}

/* ---------- Démonstration : la réponse et ses sources -------------------- */

.demo {
  margin: 0;
}

.demo__panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.demo__bar {
  padding: 0.8rem 1.35rem;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
}

.demo__dossier {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.004em;
}

.demo__question,
.demo__answer {
  padding: 1.35rem 1.5rem;
}

.demo__question {
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink);
}

.demo__who {
  display: block;
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.demo__who--ai {
  color: var(--violet-mid);
}

.demo__text {
  font-size: var(--t-sm);
  line-height: 1.72;
}

.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  height: 1.25em;
  margin-inline: 0.18em;
  padding: 0 0.28em;
  transform: translateY(-0.18em);
  font-family: var(--f-display);
  font-size: 0.68em;
  font-weight: 700;
  line-height: 1;
  color: var(--violet-mid);
  background: oklch(0.558 0.253 302 / 0.12);
  border: 1px solid oklch(0.558 0.253 302 / 0.22);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.cite:hover,
.cite.is-active {
  background: var(--violet-mid);
  border-color: var(--violet-mid);
  color: var(--on-dark);
  transform: translateY(-0.18em) scale(1.06);
}

.demo__sources {
  padding: 1.2rem 1.5rem 1.5rem;
  background: var(--surface-sunk);
  border-top: 1px solid var(--line);
}

.demo__sources-title {
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-bottom: 0.8rem;
}

.src {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.src + .src {
  margin-top: 0.65rem;
}

.src.is-active {
  border-color: oklch(0.558 0.253 302 / 0.5);
  box-shadow: 0 0 0 3px oklch(0.558 0.253 302 / 0.1);
}

.src__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.src__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  font-family: var(--f-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--violet-mid);
  background: oklch(0.558 0.253 302 / 0.12);
  border-radius: 5px;
}

.src__file {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.src__page {
  margin-inline-start: auto;
  flex: none;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.src__quote {
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--ink-soft);
}

.src__hit {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(to right, oklch(0.656 0.241 354 / 0.26), oklch(0.656 0.241 354 / 0.26));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 100% 0.32em;
}

.demo__legende {
  margin-top: 1rem;
  font-size: var(--t-xs);
  color: oklch(0.845 0.022 300 / 0.8);
  text-align: center;
}

/* ---------- Enjeu -------------------------------------------------------- */

.stakes {
  padding-block: var(--band);
}

.stakes__statement {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.034em;
  max-width: 21ch;
  text-wrap: balance;
}

.stakes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.stakes__grid p {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Titres de section ------------------------------------------- */

.section-title {
  font-size: var(--t-xl);
  max-width: 20ch;
}

.section-title--light {
  color: var(--on-dark);
}

/* ---------- Fonctionnement ---------------------------------------------- */

.flow {
  padding-block: 0 var(--band);
}

.flow__list {
  list-style: none;
  margin: clamp(2.25rem, 4vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
}

.step__body h3 {
  font-size: var(--t-lg);
  margin-bottom: 0.6rem;
}

.step__body p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.step__body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Capacités ---------------------------------------------------- */

.caps {
  padding-block: var(--band);
  background: var(--surface-sunk);
  border-block: 1px solid var(--line);
}

.caps__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  align-items: start;
}

.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

.cap h3 {
  font-size: var(--t-md);
  letter-spacing: -0.028em;
  margin-bottom: 0.55rem;
}

.cap p {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  max-width: 54ch;
}

.cap--lead {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cap--lead h3 {
  font-size: var(--t-lg);
}

.cap__canvas {
  margin-top: auto;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.cap__doc {
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.cap__doc-title {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.cap__lines {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.cap__doc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.cap__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-mid);
  background: oklch(0.558 0.253 302 / 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.cap__chip::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--pink);
}

.cap__doc-export {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.cap__line {
  height: 0.5rem;
  width: var(--w, 100%);
  border-radius: 3px;
  background: var(--line);
}

/* Longueurs de lignes irrégulières, comme un vrai paragraphe. Déclarées ici
   plutôt qu'en attribut `style` : la CSP de production interdit les styles en
   ligne, et un attribut bloqué rendait toutes les lignes de largeur égale. */
.cap__lines .cap__line:nth-child(1) { --w: 96%; }
.cap__lines .cap__line:nth-child(2) { --w: 88%; }
.cap__lines .cap__line:nth-child(3) { --w: 72%; }
.cap__lines .cap__line:nth-child(4) { --w: 93%; }
.cap__lines .cap__line:nth-child(5) { --w: 64%; }
.cap__lines .cap__line:nth-child(6) { --w: 84%; }
.cap__lines .cap__line:nth-child(7) { --w: 47%; }

/* Les lignes « appuyées sur une source » portent la marque de surligneur :
   c'est le même geste que dans la démonstration du héros. */
.cap__line--cited {
  background: oklch(0.656 0.241 354 / 0.32);
}

.caps__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Traçabilité (seconde immersion violette) --------------------- */

.trust {
  padding-block: var(--band);
  background: var(--violet-abyss);
  color: var(--on-dark);
}

.trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.trust__lead p {
  margin-top: 1.2rem;
  color: var(--on-dark-soft);
  max-width: 42ch;
}

.trust__list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.trust__item {
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid oklch(0.975 0.006 300 / 0.16);
}

.trust__item:last-child {
  border-bottom: 1px solid oklch(0.975 0.006 300 / 0.16);
}

.trust__item dt {
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 0.5rem;
}

.trust__item dd {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: var(--t-sm);
  max-width: 58ch;
}

/* ---------- Déploiement -------------------------------------------------- */

.deploy {
  padding-block: var(--band);
}

.deploy__lede {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--t-md);
  max-width: 58ch;
}

.deploy__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.deploy__col {
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}

.deploy__col:nth-child(2) {
  border-top-color: var(--violet);
}

.deploy__col:nth-child(3) {
  border-top-color: var(--pink);
}

.deploy__col h3 {
  font-size: var(--t-md);
  letter-spacing: -0.028em;
  margin-bottom: 0.6rem;
}

.deploy__col p {
  color: var(--ink-soft);
  font-size: var(--t-sm);
}

/* ---------- Appel final -------------------------------------------------- */

.closing {
  background: var(--violet-deep);
  color: var(--on-dark);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.closing__inner {
  text-align: center;
}

.closing__title {
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 20ch;
  margin-inline: auto;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.4rem;
}

/* ---------- Pied de page ------------------------------------------------- */

.foot {
  background: var(--violet-abyss);
  color: var(--on-dark-soft);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid oklch(0.975 0.006 300 / 0.12);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.foot__brand {
  margin-inline-end: auto;
}

.foot__brand .wordmark__text {
  color: var(--on-dark);
  display: block;
  margin-bottom: 0.4rem;
}

.foot__brand p {
  font-size: var(--t-xs);
  max-width: 34ch;
}

.foot__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.foot__nav a {
  font-size: var(--t-xs);
  text-decoration: none;
  color: var(--on-dark-soft);
  transition: color 0.2s var(--ease-out);
}

.foot__nav a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot__legal {
  width: 100%;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid oklch(0.975 0.006 300 / 0.12);
  font-size: var(--t-xs);
  color: oklch(0.845 0.022 300 / 0.7);
}

/* ---------- Apparitions -------------------------------------------------- */
/* Le contenu est visible par défaut. L'animation n'est armée que si le script
   s'exécute (classe sur <html>), pour qu'aucun texte ne puisse rester masqué. */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out-soft), transform 0.75s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Adaptations ------------------------------------------------- */

@media (max-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }

  .hero__title {
    max-width: 16ch;
  }

  .caps__layout,
  .trust__inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 48rem) {

  .masthead__nav,
  .masthead__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .menu-mobile:not([hidden]) {
    display: flex;
  }

  .hero__title {
    max-width: 100%;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .step__num {
    -webkit-text-stroke-width: 1.2px;
  }

  .foot__inner {
    flex-direction: column;
  }
}

@media (max-width: 26rem) {

  .demo__question,
  .demo__answer {
    padding: 1.1rem 1.1rem;
  }

  .demo__sources {
    padding: 1rem 1.1rem 1.2rem;
  }

  .btn--lg {
    width: 100%;
  }
}

@media print {

  .masthead,
  .menu-mobile,
  .hero__glow {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
