/* Kairos AI — Direction A « Chronomètre »
   IBM Plex Sans (UI) + IBM Plex Mono (démo uniquement)
   Contraste AA vérifié pour texte / liens / boutons. */

:root {
  --ink: #0e1520;
  --slate: #3a4556;
  --muted: #5a6575;
  --paper: #f2f4f7;
  --surface: #ffffff;
  --accent: #0b6e6e;
  --accent-deep: #085454;
  --line: #c5ccd6;
  --ok: #1f6b45;
  --warn: #9a3412;

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.25rem, 4vw + 1rem, 3.25rem);
  --fs-h2: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  --fs-h3: clamp(1.25rem, 1vw + 0.9rem, 1.5rem);
  --fs-body: clamp(1.0625rem, 0.2vw + 1rem, 1.125rem);
  --fs-small: 0.9375rem;

  --lh-tight: 1.2;
  --lh-body: 1.6;

  --space: 0.25rem;
  --section-y: clamp(3.5rem, 6vw, 5.5rem);
  --content: 72rem;
  --prose: 65ch;
  --radius: 2px;
  --nav-h: 4rem;

  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
  --shadow-soft: 0 1px 0 rgba(14, 21, 32, 0.04);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-deep);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space);
  color: var(--surface);
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__title {
  margin: 0 0 1rem;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section__lead {
  margin: 0 0 2rem;
  color: var(--slate);
  max-width: var(--prose);
}

.section__header {
  margin-bottom: 2.5rem;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-small);
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav__list a:not(.btn):hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--surface);
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--secondary:hover {
  background: var(--surface);
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

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

.btn--ghost:hover {
  border-color: var(--slate);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 8vw, 5.5rem);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, #e8edf2 0%, var(--paper) 55%, #eef6f6 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(14, 21, 32, 0.035) 47px,
      rgba(14, 21, 32, 0.035) 48px
    );
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line) 12%,
    var(--accent) 48%,
    var(--accent) 52%,
    var(--line) 88%,
    transparent 100%
  );
}

.hero__tick {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 12px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--paper);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 5vw + 1rem, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.hero__brand span {
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.hero__text {
  margin: 0 0 2rem;
  max-width: 38ch;
  color: var(--slate);
  font-size: 1.125rem;
}

.hero-preview {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-preview:hover {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.hero-preview__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-preview__line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--slate);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-preview__line--mono {
  color: var(--ink);
}

.hero-preview__line--wait {
  color: var(--warn);
  font-weight: 500;
}

.hero-preview__k {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--accent);
  font-weight: 500;
}

/* —— Comparison grid —— */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.compare--highlight {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.compare h3 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.compare dl {
  margin: 0;
}

.compare dt {
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}

.compare dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
}

/* —— Agent loop diagram —— */
.loop {
  margin: 0 0 2.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.section--alt .loop {
  background: var(--paper);
}

.loop__svg {
  width: 100%;
  min-width: 640px;
  height: auto;
  display: block;
}

.loop__label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}

.loop__label--back {
  font-size: 12px;
  font-weight: 600;
  fill: var(--accent);
}

.loop__node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}

.section--alt .loop__node {
  fill: var(--paper);
}

.loop__arrow {
  stroke: var(--slate);
  stroke-width: 1.5;
  fill: none;
  marker-end: url(#arrowhead);
}

.loop__arrow--back {
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-dasharray: 5 4;
  marker-end: url(#arrowhead-accent);
}

/* —— Use cases —— */
.cases {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cases {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section--alt .case {
  background: var(--surface);
}

.case__role {
  margin: 0 0 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
}

.case--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.case--cta .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.case h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.case p {
  margin: 0 0 0.75rem;
  color: var(--slate);
  font-size: var(--fs-small);
}

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

/* —— Timeline —— */
.timeline {
  --timeline-date: 7.5rem;
  --timeline-gap: 1.25rem;
  --timeline-rail: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: var(--timeline-date) var(--timeline-gap) minmax(0, 1fr);
  column-gap: 0;
  align-items: start;
  position: relative;
  padding: 0 0 1.75rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Ligne verticale continue (centrée dans la colonne rail) */
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-date) + (var(--timeline-gap) - var(--timeline-rail)) / 2);
  top: 0;
  bottom: 0;
  width: var(--timeline-rail);
  background: var(--line);
}

.timeline__item:first-child::before {
  top: 0.55rem;
}

.timeline__item:last-child::before {
  bottom: auto;
  height: 0.55rem;
}

/* Point sur la ligne */
.timeline__item::after {
  content: "";
  position: absolute;
  left: calc(var(--timeline-date) + (var(--timeline-gap) - 10px) / 2);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface);
  z-index: 1;
}

.timeline__year {
  margin: 0;
  padding-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  text-align: right;
}

.timeline__body {
  grid-column: 3;
  min-width: 0;
}

.timeline__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline__body > p {
  margin: 0;
  color: var(--slate);
  font-size: var(--fs-small);
  max-width: var(--prose);
}

@media (max-width: 520px) {
  .timeline {
    --timeline-date: 5.75rem;
    --timeline-gap: 1rem;
  }

  .timeline__year {
    font-size: 0.75rem;
  }
}

/* —— Why + limits —— */
.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}

.panel {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--limits {
  border-color: var(--warn);
  box-shadow: inset 3px 0 0 var(--warn);
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.panel--limits .checklist li::before {
  content: "!";
  color: var(--warn);
  font-weight: 700;
}

/* —— Demo shell —— */
.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #eef6f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--slate);
}

.demo-banner__icon {
  font-weight: 700;
  color: var(--accent);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.demo-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: var(--slate);
}

.demo-controls select {
  font: inherit;
  font-size: var(--fs-small);
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.demo-query {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.demo-panels {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .demo-panels {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.demo-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.demo-panel__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.demo-panel__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.demo-panel__body {
  padding: 1.1rem;
  flex: 1;
  max-height: 34rem;
  overflow-y: auto;
}

.demo-panel--agent {
  border-color: var(--accent);
}

.demo-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.demo-step {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.demo-step__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.demo-step__status--done {
  color: var(--ok);
}

.demo-step__status--wait {
  color: var(--warn);
}

.demo-step__status--run {
  color: var(--accent);
}

.demo-step__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.demo-step__text {
  margin: 0;
  color: var(--slate);
}

.demo-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.demo-plan {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.demo-plan li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.25rem 0;
  color: var(--slate);
}

.demo-plan li[data-done="true"] {
  color: var(--ink);
}

.demo-plan__mark {
  flex: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--muted);
}

.demo-plan li[data-done="true"] .demo-plan__mark {
  color: var(--ok);
}

.demo-drafts {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.demo-drafts li {
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--slate);
}

.demo-drafts strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 600;
}

.demo-step.is-enter {
  animation: demo-fade 0.28s ease;
}

@keyframes demo-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chatbot-reply {
  margin: 0;
  color: var(--slate);
  white-space: pre-wrap;
}

.chatbot-reply + .chatbot-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* —— CTA Academy —— */
.cta-band {
  padding-block: var(--section-y);
  background:
    linear-gradient(135deg, #0e1520 0%, #16303a 55%, #0b6e6e 140%);
  color: var(--surface);
}

.cta-band .section__title {
  color: var(--surface);
  max-width: 18ch;
}

.cta-band p {
  margin: 0 0 1.5rem;
  max-width: var(--prose);
  color: #d7e2e8;
}

.cta-band .btn--primary {
  background: var(--surface);
  color: var(--accent-deep);
  border-color: var(--surface);
}

.cta-band .btn--primary:hover {
  background: #e8edf2;
  color: var(--ink);
  border-color: #e8edf2;
}

/* —— Contact —— */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--accent);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-small);
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--slate);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* —— Academy : modules, FAQ —— */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.module {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.module__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}

.module__body h3 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.module__level {
  margin: 0 0 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}

.module__body p {
  margin: 0 0 0.5rem;
  color: var(--slate);
}

.module__body ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate);
}

.module__body li {
  padding: 0.15rem 0;
}

@media (max-width: 520px) {
  .module {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.faq {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

.faq summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--ink);
}

.faq summary:focus-visible {
  box-shadow: var(--focus);
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--slate);
  max-width: var(--prose);
}

/* —— Articles, guides, glossaire —— */
.breadcrumb {
  margin: 0 0 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--slate);
}

.article-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(165deg, #e8edf2 0%, var(--paper) 70%);
}

.article-head h1 {
  margin: 0 0 1rem;
  max-width: 24ch;
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
}

.article-head .lead {
  margin: 0 0 1.5rem;
  max-width: var(--prose);
  color: var(--slate);
  font-size: 1.125rem;
}

.article-meta {
  margin: 0 0 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.prose {
  max-width: 46rem;
  padding-block: 2.5rem 3rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--slate);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}

.prose li {
  padding: 0.2rem 0;
}

.prose strong {
  color: var(--ink);
}

.prose .note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #eef6f6;
  border-left: 3px solid var(--accent);
  color: var(--slate);
}

.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  color: var(--slate);
}

.table-wrap th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.related {
  padding-block: 3rem;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 1.5rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.case h3 a {
  color: var(--ink);
  text-decoration: none;
}

.case h3 a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.glossary dt {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.glossary dd {
  margin: 0.35rem 0 0;
  color: var(--slate);
  max-width: var(--prose);
}

.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.portrait {
  margin: 0 0 1.5rem;
}

.portrait img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* —— Utility —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
